@formio/js 5.0.0-rc.26 → 5.0.0-rc.27-dev.5543.40bb827

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2253) hide show
  1. package/package.json +10 -8
  2. package/types/formio.d.ts +2 -0
  3. package/dist/fonts/bootstrap-icons.woff +0 -0
  4. package/dist/fonts/bootstrap-icons.woff2 +0 -0
  5. package/dist/formio.builder.css +0 -2299
  6. package/dist/formio.builder.min.css +0 -1
  7. package/dist/formio.embed.css +0 -1
  8. package/dist/formio.embed.js +0 -2
  9. package/dist/formio.embed.min.css +0 -1
  10. package/dist/formio.embed.min.js +0 -2
  11. package/dist/formio.embed.min.js.LICENSE.txt +0 -1
  12. package/dist/formio.form.css +0 -2034
  13. package/dist/formio.form.js +0 -8273
  14. package/dist/formio.form.min.css +0 -1
  15. package/dist/formio.form.min.js +0 -2
  16. package/dist/formio.form.min.js.LICENSE.txt +0 -43
  17. package/dist/formio.full.css +0 -3941
  18. package/dist/formio.full.js +0 -10280
  19. package/dist/formio.full.min.css +0 -5
  20. package/dist/formio.full.min.js +0 -2
  21. package/dist/formio.full.min.js.LICENSE.txt +0 -43
  22. package/dist/formio.js +0 -2809
  23. package/dist/formio.min.js +0 -2
  24. package/dist/formio.min.js.LICENSE.txt +0 -12
  25. package/dist/formio.utils.js +0 -2310
  26. package/dist/formio.utils.min.js +0 -2
  27. package/dist/formio.utils.min.js.LICENSE.txt +0 -36
  28. package/lib/cjs/CDN.d.ts +0 -29
  29. package/lib/cjs/CDN.js +0 -77
  30. package/lib/cjs/Element.d.ts +0 -255
  31. package/lib/cjs/Element.js +0 -603
  32. package/lib/cjs/Embed.d.ts +0 -42
  33. package/lib/cjs/Embed.js +0 -320
  34. package/lib/cjs/EventEmitter.d.ts +0 -7
  35. package/lib/cjs/EventEmitter.js +0 -52
  36. package/lib/cjs/Form.d.ts +0 -93
  37. package/lib/cjs/Form.js +0 -379
  38. package/lib/cjs/FormBuilder.d.ts +0 -6
  39. package/lib/cjs/FormBuilder.js +0 -39
  40. package/lib/cjs/Formio.d.ts +0 -2
  41. package/lib/cjs/Formio.js +0 -95
  42. package/lib/cjs/PDF.d.ts +0 -40
  43. package/lib/cjs/PDF.js +0 -291
  44. package/lib/cjs/PDFBuilder.d.ts +0 -55
  45. package/lib/cjs/PDFBuilder.js +0 -480
  46. package/lib/cjs/Webform.d.ts +0 -405
  47. package/lib/cjs/Webform.js +0 -1436
  48. package/lib/cjs/WebformBuilder.d.ts +0 -126
  49. package/lib/cjs/WebformBuilder.js +0 -1578
  50. package/lib/cjs/Wizard.d.ts +0 -96
  51. package/lib/cjs/Wizard.js +0 -916
  52. package/lib/cjs/WizardBuilder.d.ts +0 -48
  53. package/lib/cjs/WizardBuilder.js +0 -269
  54. package/lib/cjs/addons/FormioAddon.d.ts +0 -19
  55. package/lib/cjs/addons/FormioAddon.js +0 -36
  56. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +0 -717
  57. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.form.d.ts +0 -590
  58. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.form.js +0 -316
  59. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.js +0 -397
  60. package/lib/cjs/addons/index.d.ts +0 -625
  61. package/lib/cjs/addons/index.js +0 -25
  62. package/lib/cjs/builders/Builders.d.ts +0 -18
  63. package/lib/cjs/builders/Builders.js +0 -29
  64. package/lib/cjs/builders/index.d.ts +0 -2
  65. package/lib/cjs/builders/index.js +0 -7
  66. package/lib/cjs/components/Components.d.ts +0 -258
  67. package/lib/cjs/components/Components.js +0 -80
  68. package/lib/cjs/components/_classes/component/Component.d.ts +0 -798
  69. package/lib/cjs/components/_classes/component/Component.form.d.ts +0 -3
  70. package/lib/cjs/components/_classes/component/Component.form.js +0 -77
  71. package/lib/cjs/components/_classes/component/Component.js +0 -3200
  72. package/lib/cjs/components/_classes/component/editForm/Component.edit.addons.d.ts +0 -645
  73. package/lib/cjs/components/_classes/component/editForm/Component.edit.addons.js +0 -46
  74. package/lib/cjs/components/_classes/component/editForm/Component.edit.api.d.ts +0 -42
  75. package/lib/cjs/components/_classes/component/editForm/Component.edit.api.js +0 -40
  76. package/lib/cjs/components/_classes/component/editForm/Component.edit.conditional.d.ts +0 -113
  77. package/lib/cjs/components/_classes/component/editForm/Component.edit.conditional.js +0 -55
  78. package/lib/cjs/components/_classes/component/editForm/Component.edit.data.d.ts +0 -219
  79. package/lib/cjs/components/_classes/component/editForm/Component.edit.data.js +0 -161
  80. package/lib/cjs/components/_classes/component/editForm/Component.edit.display.d.ts +0 -160
  81. package/lib/cjs/components/_classes/component/editForm/Component.edit.display.js +0 -202
  82. package/lib/cjs/components/_classes/component/editForm/Component.edit.layout.d.ts +0 -44
  83. package/lib/cjs/components/_classes/component/editForm/Component.edit.layout.js +0 -79
  84. package/lib/cjs/components/_classes/component/editForm/Component.edit.logic.d.ts +0 -368
  85. package/lib/cjs/components/_classes/component/editForm/Component.edit.logic.js +0 -415
  86. package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.d.ts +0 -140
  87. package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +0 -209
  88. package/lib/cjs/components/_classes/component/editForm/utils.d.ts +0 -83
  89. package/lib/cjs/components/_classes/component/editForm/utils.js +0 -137
  90. package/lib/cjs/components/_classes/component/fixtures/comp1.d.ts +0 -33
  91. package/lib/cjs/components/_classes/component/fixtures/comp1.js +0 -33
  92. package/lib/cjs/components/_classes/component/fixtures/comp2.d.ts +0 -33
  93. package/lib/cjs/components/_classes/component/fixtures/comp2.js +0 -33
  94. package/lib/cjs/components/_classes/component/fixtures/comp3.d.ts +0 -14
  95. package/lib/cjs/components/_classes/component/fixtures/comp3.js +0 -14
  96. package/lib/cjs/components/_classes/component/fixtures/comp4.d.ts +0 -17
  97. package/lib/cjs/components/_classes/component/fixtures/comp4.js +0 -18
  98. package/lib/cjs/components/_classes/component/fixtures/index.d.ts +0 -5
  99. package/lib/cjs/components/_classes/component/fixtures/index.js +0 -14
  100. package/lib/cjs/components/_classes/componentModal/ComponentModal.d.ts +0 -46
  101. package/lib/cjs/components/_classes/componentModal/ComponentModal.js +0 -183
  102. package/lib/cjs/components/_classes/field/Field.d.ts +0 -5
  103. package/lib/cjs/components/_classes/field/Field.js +0 -37
  104. package/lib/cjs/components/_classes/input/Input.d.ts +0 -42
  105. package/lib/cjs/components/_classes/input/Input.js +0 -303
  106. package/lib/cjs/components/_classes/list/ListComponent.d.ts +0 -18
  107. package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +0 -3
  108. package/lib/cjs/components/_classes/list/ListComponent.form.js +0 -16
  109. package/lib/cjs/components/_classes/list/ListComponent.js +0 -255
  110. package/lib/cjs/components/_classes/list/editForm/ListComponent.edit.data.d.ts +0 -183
  111. package/lib/cjs/components/_classes/list/editForm/ListComponent.edit.data.js +0 -119
  112. package/lib/cjs/components/_classes/multivalue/Multivalue.d.ts +0 -29
  113. package/lib/cjs/components/_classes/multivalue/Multivalue.js +0 -255
  114. package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +0 -133
  115. package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +0 -3
  116. package/lib/cjs/components/_classes/nested/NestedComponent.form.js +0 -19
  117. package/lib/cjs/components/_classes/nested/NestedComponent.js +0 -692
  118. package/lib/cjs/components/_classes/nested/fixtures/comp1.d.ts +0 -8
  119. package/lib/cjs/components/_classes/nested/fixtures/comp1.js +0 -16
  120. package/lib/cjs/components/_classes/nested/fixtures/comp2.d.ts +0 -236
  121. package/lib/cjs/components/_classes/nested/fixtures/comp2.js +0 -227
  122. package/lib/cjs/components/_classes/nested/fixtures/comp3.d.ts +0 -26
  123. package/lib/cjs/components/_classes/nested/fixtures/comp3.js +0 -29
  124. package/lib/cjs/components/_classes/nested/fixtures/index.d.ts +0 -3
  125. package/lib/cjs/components/_classes/nested/fixtures/index.js +0 -12
  126. package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +0 -15
  127. package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.js +0 -184
  128. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.d.ts +0 -12
  129. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +0 -127
  130. package/lib/cjs/components/address/Address.d.ts +0 -66
  131. package/lib/cjs/components/address/Address.form.d.ts +0 -3
  132. package/lib/cjs/components/address/Address.form.js +0 -28
  133. package/lib/cjs/components/address/Address.js +0 -552
  134. package/lib/cjs/components/address/editForm/Address.edit.data.d.ts +0 -31
  135. package/lib/cjs/components/address/editForm/Address.edit.data.js +0 -23
  136. package/lib/cjs/components/address/editForm/Address.edit.display.d.ts +0 -49
  137. package/lib/cjs/components/address/editForm/Address.edit.display.js +0 -44
  138. package/lib/cjs/components/address/editForm/Address.edit.provider.d.ts +0 -164
  139. package/lib/cjs/components/address/editForm/Address.edit.provider.js +0 -156
  140. package/lib/cjs/components/address/fixtures/comp1.d.ts +0 -34
  141. package/lib/cjs/components/address/fixtures/comp1.js +0 -71
  142. package/lib/cjs/components/address/fixtures/comp2.d.ts +0 -62
  143. package/lib/cjs/components/address/fixtures/comp2.js +0 -103
  144. package/lib/cjs/components/address/fixtures/comp3.d.ts +0 -44
  145. package/lib/cjs/components/address/fixtures/comp3.js +0 -85
  146. package/lib/cjs/components/address/fixtures/comp4.d.ts +0 -56
  147. package/lib/cjs/components/address/fixtures/comp4.js +0 -93
  148. package/lib/cjs/components/address/fixtures/index.d.ts +0 -5
  149. package/lib/cjs/components/address/fixtures/index.js +0 -14
  150. package/lib/cjs/components/address/fixtures/values.d.ts +0 -22
  151. package/lib/cjs/components/address/fixtures/values.js +0 -19
  152. package/lib/cjs/components/alert/Alert.d.ts +0 -30
  153. package/lib/cjs/components/alert/Alert.js +0 -183
  154. package/lib/cjs/components/builder.d.ts +0 -2
  155. package/lib/cjs/components/builder.js +0 -91
  156. package/lib/cjs/components/button/Button.d.ts +0 -45
  157. package/lib/cjs/components/button/Button.form.d.ts +0 -3
  158. package/lib/cjs/components/button/Button.form.js +0 -24
  159. package/lib/cjs/components/button/Button.js +0 -467
  160. package/lib/cjs/components/button/editForm/Button.edit.display.d.ts +0 -360
  161. package/lib/cjs/components/button/editForm/Button.edit.display.js +0 -253
  162. package/lib/cjs/components/button/fixtures/comp1.d.ts +0 -15
  163. package/lib/cjs/components/button/fixtures/comp1.js +0 -16
  164. package/lib/cjs/components/button/fixtures/comp2.d.ts +0 -25
  165. package/lib/cjs/components/button/fixtures/comp2.js +0 -57
  166. package/lib/cjs/components/button/fixtures/comp3.d.ts +0 -113
  167. package/lib/cjs/components/button/fixtures/comp3.js +0 -84
  168. package/lib/cjs/components/button/fixtures/index.d.ts +0 -4
  169. package/lib/cjs/components/button/fixtures/index.js +0 -12
  170. package/lib/cjs/components/button/fixtures/values.d.ts +0 -2
  171. package/lib/cjs/components/button/fixtures/values.js +0 -6
  172. package/lib/cjs/components/checkbox/Checkbox.d.ts +0 -77
  173. package/lib/cjs/components/checkbox/Checkbox.form.d.ts +0 -3
  174. package/lib/cjs/components/checkbox/Checkbox.form.js +0 -26
  175. package/lib/cjs/components/checkbox/Checkbox.js +0 -221
  176. package/lib/cjs/components/checkbox/editForm/Checkbox.edit.data.d.ts +0 -5
  177. package/lib/cjs/components/checkbox/editForm/Checkbox.edit.data.js +0 -8
  178. package/lib/cjs/components/checkbox/editForm/Checkbox.edit.display.d.ts +0 -75
  179. package/lib/cjs/components/checkbox/editForm/Checkbox.edit.display.js +0 -79
  180. package/lib/cjs/components/checkbox/editForm/Checkbox.edit.validation.d.ts +0 -5
  181. package/lib/cjs/components/checkbox/editForm/Checkbox.edit.validation.js +0 -12
  182. package/lib/cjs/components/checkbox/fixtures/comp1.d.ts +0 -24
  183. package/lib/cjs/components/checkbox/fixtures/comp1.js +0 -24
  184. package/lib/cjs/components/checkbox/fixtures/comp2.d.ts +0 -12
  185. package/lib/cjs/components/checkbox/fixtures/comp2.js +0 -13
  186. package/lib/cjs/components/checkbox/fixtures/comp3.d.ts +0 -15
  187. package/lib/cjs/components/checkbox/fixtures/comp3.js +0 -16
  188. package/lib/cjs/components/checkbox/fixtures/comp4.d.ts +0 -46
  189. package/lib/cjs/components/checkbox/fixtures/comp4.js +0 -39
  190. package/lib/cjs/components/checkbox/fixtures/customDefaultComponent.d.ts +0 -25
  191. package/lib/cjs/components/checkbox/fixtures/customDefaultComponent.js +0 -25
  192. package/lib/cjs/components/checkbox/fixtures/index.d.ts +0 -6
  193. package/lib/cjs/components/checkbox/fixtures/index.js +0 -16
  194. package/lib/cjs/components/checkbox/fixtures/values.d.ts +0 -2
  195. package/lib/cjs/components/checkbox/fixtures/values.js +0 -6
  196. package/lib/cjs/components/columns/Columns.d.ts +0 -27
  197. package/lib/cjs/components/columns/Columns.form.d.ts +0 -3
  198. package/lib/cjs/components/columns/Columns.form.js +0 -16
  199. package/lib/cjs/components/columns/Columns.js +0 -160
  200. package/lib/cjs/components/columns/editForm/Columns.edit.display.d.ts +0 -58
  201. package/lib/cjs/components/columns/editForm/Columns.edit.display.js +0 -100
  202. package/lib/cjs/components/columns/fixtures/comp1.d.ts +0 -45
  203. package/lib/cjs/components/columns/fixtures/comp1.js +0 -85
  204. package/lib/cjs/components/columns/fixtures/comp2.d.ts +0 -24
  205. package/lib/cjs/components/columns/fixtures/comp2.js +0 -127
  206. package/lib/cjs/components/columns/fixtures/comp3.d.ts +0 -45
  207. package/lib/cjs/components/columns/fixtures/comp3.js +0 -53
  208. package/lib/cjs/components/columns/fixtures/index.d.ts +0 -4
  209. package/lib/cjs/components/columns/fixtures/index.js +0 -12
  210. package/lib/cjs/components/container/Container.d.ts +0 -15
  211. package/lib/cjs/components/container/Container.form.d.ts +0 -3
  212. package/lib/cjs/components/container/Container.form.js +0 -21
  213. package/lib/cjs/components/container/Container.js +0 -82
  214. package/lib/cjs/components/container/editForm/Container.edit.data.d.ts +0 -5
  215. package/lib/cjs/components/container/editForm/Container.edit.data.js +0 -16
  216. package/lib/cjs/components/container/editForm/Container.edit.display.d.ts +0 -5
  217. package/lib/cjs/components/container/editForm/Container.edit.display.js +0 -20
  218. package/lib/cjs/components/container/fixtures/comp1.d.ts +0 -49
  219. package/lib/cjs/components/container/fixtures/comp1.js +0 -82
  220. package/lib/cjs/components/container/fixtures/comp2.d.ts +0 -30
  221. package/lib/cjs/components/container/fixtures/comp2.js +0 -34
  222. package/lib/cjs/components/container/fixtures/comp3.d.ts +0 -77
  223. package/lib/cjs/components/container/fixtures/comp3.js +0 -57
  224. package/lib/cjs/components/container/fixtures/index.d.ts +0 -4
  225. package/lib/cjs/components/container/fixtures/index.js +0 -12
  226. package/lib/cjs/components/content/Content.d.ts +0 -17
  227. package/lib/cjs/components/content/Content.form.d.ts +0 -3
  228. package/lib/cjs/components/content/Content.form.js +0 -43
  229. package/lib/cjs/components/content/Content.js +0 -78
  230. package/lib/cjs/components/content/editForm/Content.edit.display.d.ts +0 -18
  231. package/lib/cjs/components/content/editForm/Content.edit.display.js +0 -48
  232. package/lib/cjs/components/content/editForm/Content.edit.logic.d.ts +0 -48
  233. package/lib/cjs/components/content/editForm/Content.edit.logic.js +0 -100
  234. package/lib/cjs/components/content/fixtures/comp1.d.ts +0 -13
  235. package/lib/cjs/components/content/fixtures/comp1.js +0 -14
  236. package/lib/cjs/components/content/fixtures/index.d.ts +0 -2
  237. package/lib/cjs/components/content/fixtures/index.js +0 -8
  238. package/lib/cjs/components/currency/Currency.d.ts +0 -8
  239. package/lib/cjs/components/currency/Currency.form.d.ts +0 -3
  240. package/lib/cjs/components/currency/Currency.form.js +0 -46
  241. package/lib/cjs/components/currency/Currency.js +0 -180
  242. package/lib/cjs/components/currency/editForm/Currency.edit.data.d.ts +0 -29
  243. package/lib/cjs/components/currency/editForm/Currency.edit.data.js +0 -192
  244. package/lib/cjs/components/currency/editForm/Currency.edit.display.d.ts +0 -18
  245. package/lib/cjs/components/currency/editForm/Currency.edit.display.js +0 -40
  246. package/lib/cjs/components/currency/fixtures/comp1.d.ts +0 -31
  247. package/lib/cjs/components/currency/fixtures/comp1.js +0 -31
  248. package/lib/cjs/components/currency/fixtures/comp2.d.ts +0 -20
  249. package/lib/cjs/components/currency/fixtures/comp2.js +0 -20
  250. package/lib/cjs/components/currency/fixtures/comp3.d.ts +0 -13
  251. package/lib/cjs/components/currency/fixtures/comp3.js +0 -14
  252. package/lib/cjs/components/currency/fixtures/comp4.d.ts +0 -17
  253. package/lib/cjs/components/currency/fixtures/comp4.js +0 -20
  254. package/lib/cjs/components/currency/fixtures/index.d.ts +0 -5
  255. package/lib/cjs/components/currency/fixtures/index.js +0 -14
  256. package/lib/cjs/components/currency/fixtures/values.d.ts +0 -2
  257. package/lib/cjs/components/currency/fixtures/values.js +0 -8
  258. package/lib/cjs/components/datagrid/DataGrid.d.ts +0 -88
  259. package/lib/cjs/components/datagrid/DataGrid.form.d.ts +0 -3
  260. package/lib/cjs/components/datagrid/DataGrid.form.js +0 -26
  261. package/lib/cjs/components/datagrid/DataGrid.js +0 -648
  262. package/lib/cjs/components/datagrid/editForm/DataGrid.edit.data.d.ts +0 -5
  263. package/lib/cjs/components/datagrid/editForm/DataGrid.edit.data.js +0 -8
  264. package/lib/cjs/components/datagrid/editForm/DataGrid.edit.display.d.ts +0 -283
  265. package/lib/cjs/components/datagrid/editForm/DataGrid.edit.display.js +0 -149
  266. package/lib/cjs/components/datagrid/editForm/DataGrid.edit.validation.d.ts +0 -20
  267. package/lib/cjs/components/datagrid/editForm/DataGrid.edit.validation.js +0 -26
  268. package/lib/cjs/components/datagrid/fixtures/comp-modal-with-required-fields.d.ts +0 -37
  269. package/lib/cjs/components/datagrid/fixtures/comp-modal-with-required-fields.js +0 -42
  270. package/lib/cjs/components/datagrid/fixtures/comp-on-blur-validation.d.ts +0 -0
  271. package/lib/cjs/components/datagrid/fixtures/comp-on-blur-validation.js +0 -1
  272. package/lib/cjs/components/datagrid/fixtures/comp-row-groups-with-def-value.d.ts +0 -63
  273. package/lib/cjs/components/datagrid/fixtures/comp-row-groups-with-def-value.js +0 -81
  274. package/lib/cjs/components/datagrid/fixtures/comp-with-collapsible-groups.d.ts +0 -76
  275. package/lib/cjs/components/datagrid/fixtures/comp-with-collapsible-groups.js +0 -75
  276. package/lib/cjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.d.ts +0 -197
  277. package/lib/cjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.js +0 -178
  278. package/lib/cjs/components/datagrid/fixtures/comp-with-def-value.d.ts +0 -61
  279. package/lib/cjs/components/datagrid/fixtures/comp-with-def-value.js +0 -69
  280. package/lib/cjs/components/datagrid/fixtures/comp-with-logic.d.ts +0 -165
  281. package/lib/cjs/components/datagrid/fixtures/comp-with-logic.js +0 -180
  282. package/lib/cjs/components/datagrid/fixtures/comp1.d.ts +0 -93
  283. package/lib/cjs/components/datagrid/fixtures/comp1.js +0 -115
  284. package/lib/cjs/components/datagrid/fixtures/comp2.d.ts +0 -18
  285. package/lib/cjs/components/datagrid/fixtures/comp2.js +0 -29
  286. package/lib/cjs/components/datagrid/fixtures/comp3.d.ts +0 -14
  287. package/lib/cjs/components/datagrid/fixtures/comp3.js +0 -23
  288. package/lib/cjs/components/datagrid/fixtures/comp4.d.ts +0 -27
  289. package/lib/cjs/components/datagrid/fixtures/comp4.js +0 -28
  290. package/lib/cjs/components/datagrid/fixtures/comp5.d.ts +0 -67
  291. package/lib/cjs/components/datagrid/fixtures/comp5.js +0 -77
  292. package/lib/cjs/components/datagrid/fixtures/comp6.d.ts +0 -567
  293. package/lib/cjs/components/datagrid/fixtures/comp6.js +0 -296
  294. package/lib/cjs/components/datagrid/fixtures/comp7.d.ts +0 -28
  295. package/lib/cjs/components/datagrid/fixtures/comp7.js +0 -35
  296. package/lib/cjs/components/datagrid/fixtures/comp8.d.ts +0 -35
  297. package/lib/cjs/components/datagrid/fixtures/comp8.js +0 -37
  298. package/lib/cjs/components/datagrid/fixtures/index.d.ts +0 -15
  299. package/lib/cjs/components/datagrid/fixtures/index.js +0 -34
  300. package/lib/cjs/components/datamap/DataMap.d.ts +0 -36
  301. package/lib/cjs/components/datamap/DataMap.form.d.ts +0 -3
  302. package/lib/cjs/components/datamap/DataMap.form.js +0 -21
  303. package/lib/cjs/components/datamap/DataMap.js +0 -301
  304. package/lib/cjs/components/datamap/editForm/DataMap.edit.data.d.ts +0 -5
  305. package/lib/cjs/components/datamap/editForm/DataMap.edit.data.js +0 -12
  306. package/lib/cjs/components/datamap/editForm/DataMap.edit.display.d.ts +0 -30
  307. package/lib/cjs/components/datamap/editForm/DataMap.edit.display.js +0 -48
  308. package/lib/cjs/components/datamap/fixtures/comp1.d.ts +0 -18
  309. package/lib/cjs/components/datamap/fixtures/comp1.js +0 -15
  310. package/lib/cjs/components/datamap/fixtures/formWithConditionalPanel.d.ts +0 -87
  311. package/lib/cjs/components/datamap/fixtures/formWithConditionalPanel.js +0 -85
  312. package/lib/cjs/components/datamap/fixtures/index.d.ts +0 -3
  313. package/lib/cjs/components/datamap/fixtures/index.js +0 -10
  314. package/lib/cjs/components/datetime/DateTime.d.ts +0 -39
  315. package/lib/cjs/components/datetime/DateTime.form.d.ts +0 -3
  316. package/lib/cjs/components/datetime/DateTime.form.js +0 -40
  317. package/lib/cjs/components/datetime/DateTime.js +0 -164
  318. package/lib/cjs/components/datetime/editForm/DateTime.edit.data.d.ts +0 -24
  319. package/lib/cjs/components/datetime/editForm/DateTime.edit.data.js +0 -23
  320. package/lib/cjs/components/datetime/editForm/DateTime.edit.date.d.ts +0 -61
  321. package/lib/cjs/components/datetime/editForm/DateTime.edit.date.js +0 -75
  322. package/lib/cjs/components/datetime/editForm/DateTime.edit.display.d.ts +0 -128
  323. package/lib/cjs/components/datetime/editForm/DateTime.edit.display.js +0 -100
  324. package/lib/cjs/components/datetime/editForm/DateTime.edit.time.d.ts +0 -9
  325. package/lib/cjs/components/datetime/editForm/DateTime.edit.time.js +0 -36
  326. package/lib/cjs/components/datetime/editForm/DateTime.edit.validation.d.ts +0 -40
  327. package/lib/cjs/components/datetime/editForm/DateTime.edit.validation.js +0 -84
  328. package/lib/cjs/components/datetime/fixtures/comp1.d.ts +0 -45
  329. package/lib/cjs/components/datetime/fixtures/comp1.js +0 -44
  330. package/lib/cjs/components/datetime/fixtures/comp10.d.ts +0 -102
  331. package/lib/cjs/components/datetime/fixtures/comp10.js +0 -86
  332. package/lib/cjs/components/datetime/fixtures/comp11.d.ts +0 -58
  333. package/lib/cjs/components/datetime/fixtures/comp11.js +0 -55
  334. package/lib/cjs/components/datetime/fixtures/comp12.d.ts +0 -57
  335. package/lib/cjs/components/datetime/fixtures/comp12.js +0 -55
  336. package/lib/cjs/components/datetime/fixtures/comp2.d.ts +0 -42
  337. package/lib/cjs/components/datetime/fixtures/comp2.js +0 -43
  338. package/lib/cjs/components/datetime/fixtures/comp3.d.ts +0 -51
  339. package/lib/cjs/components/datetime/fixtures/comp3.js +0 -40
  340. package/lib/cjs/components/datetime/fixtures/comp5.d.ts +0 -57
  341. package/lib/cjs/components/datetime/fixtures/comp5.js +0 -48
  342. package/lib/cjs/components/datetime/fixtures/comp6.d.ts +0 -55
  343. package/lib/cjs/components/datetime/fixtures/comp6.js +0 -49
  344. package/lib/cjs/components/datetime/fixtures/comp7.d.ts +0 -59
  345. package/lib/cjs/components/datetime/fixtures/comp7.js +0 -53
  346. package/lib/cjs/components/datetime/fixtures/comp8.d.ts +0 -59
  347. package/lib/cjs/components/datetime/fixtures/comp8.js +0 -52
  348. package/lib/cjs/components/datetime/fixtures/comp9.d.ts +0 -64
  349. package/lib/cjs/components/datetime/fixtures/comp9.js +0 -95
  350. package/lib/cjs/components/datetime/fixtures/index.d.ts +0 -12
  351. package/lib/cjs/components/datetime/fixtures/index.js +0 -28
  352. package/lib/cjs/components/datetime/fixtures/values.d.ts +0 -2
  353. package/lib/cjs/components/datetime/fixtures/values.js +0 -6
  354. package/lib/cjs/components/day/Day.d.ts +0 -163
  355. package/lib/cjs/components/day/Day.form.d.ts +0 -3
  356. package/lib/cjs/components/day/Day.form.js +0 -47
  357. package/lib/cjs/components/day/Day.js +0 -573
  358. package/lib/cjs/components/day/editForm/Day.edit.data.d.ts +0 -5
  359. package/lib/cjs/components/day/editForm/Day.edit.data.js +0 -8
  360. package/lib/cjs/components/day/editForm/Day.edit.day.d.ts +0 -40
  361. package/lib/cjs/components/day/editForm/Day.edit.day.js +0 -48
  362. package/lib/cjs/components/day/editForm/Day.edit.display.d.ts +0 -40
  363. package/lib/cjs/components/day/editForm/Day.edit.display.js +0 -46
  364. package/lib/cjs/components/day/editForm/Day.edit.month.d.ts +0 -40
  365. package/lib/cjs/components/day/editForm/Day.edit.month.js +0 -40
  366. package/lib/cjs/components/day/editForm/Day.edit.validation.d.ts +0 -29
  367. package/lib/cjs/components/day/editForm/Day.edit.validation.js +0 -54
  368. package/lib/cjs/components/day/editForm/Day.edit.year.d.ts +0 -40
  369. package/lib/cjs/components/day/editForm/Day.edit.year.js +0 -58
  370. package/lib/cjs/components/day/fixtures/comp1.d.ts +0 -46
  371. package/lib/cjs/components/day/fixtures/comp1.js +0 -39
  372. package/lib/cjs/components/day/fixtures/comp2.d.ts +0 -46
  373. package/lib/cjs/components/day/fixtures/comp2.js +0 -39
  374. package/lib/cjs/components/day/fixtures/comp3.d.ts +0 -48
  375. package/lib/cjs/components/day/fixtures/comp3.js +0 -41
  376. package/lib/cjs/components/day/fixtures/comp4.d.ts +0 -53
  377. package/lib/cjs/components/day/fixtures/comp4.js +0 -56
  378. package/lib/cjs/components/day/fixtures/comp5.d.ts +0 -29
  379. package/lib/cjs/components/day/fixtures/comp5.js +0 -32
  380. package/lib/cjs/components/day/fixtures/comp6.d.ts +0 -81
  381. package/lib/cjs/components/day/fixtures/comp6.js +0 -76
  382. package/lib/cjs/components/day/fixtures/index.d.ts +0 -7
  383. package/lib/cjs/components/day/fixtures/index.js +0 -18
  384. package/lib/cjs/components/day/fixtures/values.d.ts +0 -2
  385. package/lib/cjs/components/day/fixtures/values.js +0 -6
  386. package/lib/cjs/components/editgrid/EditGrid.d.ts +0 -99
  387. package/lib/cjs/components/editgrid/EditGrid.form.d.ts +0 -3
  388. package/lib/cjs/components/editgrid/EditGrid.form.js +0 -33
  389. package/lib/cjs/components/editgrid/EditGrid.js +0 -1167
  390. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.data.d.ts +0 -18
  391. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.data.js +0 -20
  392. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.d.ts +0 -82
  393. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.js +0 -58
  394. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.d.ts +0 -58
  395. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.js +0 -131
  396. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.validation.d.ts +0 -29
  397. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.validation.js +0 -34
  398. package/lib/cjs/components/editgrid/fixtures/comp-openWhenEmpty.d.ts +0 -34
  399. package/lib/cjs/components/editgrid/fixtures/comp-openWhenEmpty.js +0 -36
  400. package/lib/cjs/components/editgrid/fixtures/comp-with-basic-components.d.ts +0 -327
  401. package/lib/cjs/components/editgrid/fixtures/comp-with-basic-components.js +0 -220
  402. package/lib/cjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.d.ts +0 -77
  403. package/lib/cjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.js +0 -84
  404. package/lib/cjs/components/editgrid/fixtures/comp-with-custom-default-value.d.ts +0 -190
  405. package/lib/cjs/components/editgrid/fixtures/comp-with-custom-default-value.js +0 -227
  406. package/lib/cjs/components/editgrid/fixtures/comp1.d.ts +0 -89
  407. package/lib/cjs/components/editgrid/fixtures/comp1.js +0 -128
  408. package/lib/cjs/components/editgrid/fixtures/comp10.d.ts +0 -49
  409. package/lib/cjs/components/editgrid/fixtures/comp10.js +0 -48
  410. package/lib/cjs/components/editgrid/fixtures/comp11.d.ts +0 -53
  411. package/lib/cjs/components/editgrid/fixtures/comp11.js +0 -50
  412. package/lib/cjs/components/editgrid/fixtures/comp12.d.ts +0 -57
  413. package/lib/cjs/components/editgrid/fixtures/comp12.js +0 -50
  414. package/lib/cjs/components/editgrid/fixtures/comp13.d.ts +0 -64
  415. package/lib/cjs/components/editgrid/fixtures/comp13.js +0 -64
  416. package/lib/cjs/components/editgrid/fixtures/comp14.d.ts +0 -88
  417. package/lib/cjs/components/editgrid/fixtures/comp14.js +0 -84
  418. package/lib/cjs/components/editgrid/fixtures/comp15.d.ts +0 -54
  419. package/lib/cjs/components/editgrid/fixtures/comp15.js +0 -51
  420. package/lib/cjs/components/editgrid/fixtures/comp2.d.ts +0 -112
  421. package/lib/cjs/components/editgrid/fixtures/comp2.js +0 -114
  422. package/lib/cjs/components/editgrid/fixtures/comp3.d.ts +0 -27
  423. package/lib/cjs/components/editgrid/fixtures/comp3.js +0 -28
  424. package/lib/cjs/components/editgrid/fixtures/comp4.d.ts +0 -23
  425. package/lib/cjs/components/editgrid/fixtures/comp4.js +0 -24
  426. package/lib/cjs/components/editgrid/fixtures/comp5.d.ts +0 -19
  427. package/lib/cjs/components/editgrid/fixtures/comp5.js +0 -22
  428. package/lib/cjs/components/editgrid/fixtures/comp6.d.ts +0 -50
  429. package/lib/cjs/components/editgrid/fixtures/comp6.js +0 -58
  430. package/lib/cjs/components/editgrid/fixtures/comp7.d.ts +0 -129
  431. package/lib/cjs/components/editgrid/fixtures/comp7.js +0 -123
  432. package/lib/cjs/components/editgrid/fixtures/comp8.d.ts +0 -148
  433. package/lib/cjs/components/editgrid/fixtures/comp8.js +0 -156
  434. package/lib/cjs/components/editgrid/fixtures/comp9.d.ts +0 -86
  435. package/lib/cjs/components/editgrid/fixtures/comp9.js +0 -62
  436. package/lib/cjs/components/editgrid/fixtures/index.d.ts +0 -19
  437. package/lib/cjs/components/editgrid/fixtures/index.js +0 -42
  438. package/lib/cjs/components/email/Email.d.ts +0 -4
  439. package/lib/cjs/components/email/Email.form.d.ts +0 -3
  440. package/lib/cjs/components/email/Email.form.js +0 -21
  441. package/lib/cjs/components/email/Email.js +0 -54
  442. package/lib/cjs/components/email/editForm/Email.edit.display.d.ts +0 -5
  443. package/lib/cjs/components/email/editForm/Email.edit.display.js +0 -20
  444. package/lib/cjs/components/email/editForm/Email.edit.validation.d.ts +0 -24
  445. package/lib/cjs/components/email/editForm/Email.edit.validation.js +0 -28
  446. package/lib/cjs/components/email/fixtures/comp1.d.ts +0 -26
  447. package/lib/cjs/components/email/fixtures/comp1.js +0 -26
  448. package/lib/cjs/components/email/fixtures/comp2.d.ts +0 -23
  449. package/lib/cjs/components/email/fixtures/comp2.js +0 -13
  450. package/lib/cjs/components/email/fixtures/index.d.ts +0 -3
  451. package/lib/cjs/components/email/fixtures/index.js +0 -10
  452. package/lib/cjs/components/email/fixtures/values.d.ts +0 -2
  453. package/lib/cjs/components/email/fixtures/values.js +0 -6
  454. package/lib/cjs/components/fieldset/Fieldset.d.ts +0 -15
  455. package/lib/cjs/components/fieldset/Fieldset.form.d.ts +0 -3
  456. package/lib/cjs/components/fieldset/Fieldset.form.js +0 -16
  457. package/lib/cjs/components/fieldset/Fieldset.js +0 -47
  458. package/lib/cjs/components/fieldset/editForm/Fieldset.edit.display.d.ts +0 -33
  459. package/lib/cjs/components/fieldset/editForm/Fieldset.edit.display.js +0 -44
  460. package/lib/cjs/components/fieldset/fixtures/comp1.d.ts +0 -46
  461. package/lib/cjs/components/fieldset/fixtures/comp1.js +0 -81
  462. package/lib/cjs/components/fieldset/fixtures/index.d.ts +0 -2
  463. package/lib/cjs/components/fieldset/fixtures/index.js +0 -8
  464. package/lib/cjs/components/file/File.d.ts +0 -81
  465. package/lib/cjs/components/file/File.form.d.ts +0 -3
  466. package/lib/cjs/components/file/File.form.js +0 -33
  467. package/lib/cjs/components/file/File.js +0 -777
  468. package/lib/cjs/components/file/editForm/File.edit.data.d.ts +0 -5
  469. package/lib/cjs/components/file/editForm/File.edit.data.js +0 -8
  470. package/lib/cjs/components/file/editForm/File.edit.display.d.ts +0 -5
  471. package/lib/cjs/components/file/editForm/File.edit.display.js +0 -8
  472. package/lib/cjs/components/file/editForm/File.edit.file.d.ts +0 -275
  473. package/lib/cjs/components/file/editForm/File.edit.file.js +0 -288
  474. package/lib/cjs/components/file/editForm/File.edit.validation.d.ts +0 -5
  475. package/lib/cjs/components/file/editForm/File.edit.validation.js +0 -12
  476. package/lib/cjs/components/file/fixtures/comp1.d.ts +0 -15
  477. package/lib/cjs/components/file/fixtures/comp1.js +0 -18
  478. package/lib/cjs/components/file/fixtures/comp2.d.ts +0 -35
  479. package/lib/cjs/components/file/fixtures/comp2.js +0 -31
  480. package/lib/cjs/components/file/fixtures/index.d.ts +0 -3
  481. package/lib/cjs/components/file/fixtures/index.js +0 -10
  482. package/lib/cjs/components/file/fixtures/values.d.ts +0 -10
  483. package/lib/cjs/components/file/fixtures/values.js +0 -15
  484. package/lib/cjs/components/form/Form.d.ts +0 -98
  485. package/lib/cjs/components/form/Form.form.d.ts +0 -3
  486. package/lib/cjs/components/form/Form.form.js +0 -30
  487. package/lib/cjs/components/form/Form.js +0 -730
  488. package/lib/cjs/components/form/editForm/Form.edit.data.d.ts +0 -82
  489. package/lib/cjs/components/form/editForm/Form.edit.data.js +0 -21
  490. package/lib/cjs/components/form/editForm/Form.edit.display.d.ts +0 -5
  491. package/lib/cjs/components/form/editForm/Form.edit.display.js +0 -29
  492. package/lib/cjs/components/form/editForm/Form.edit.form.d.ts +0 -89
  493. package/lib/cjs/components/form/editForm/Form.edit.form.js +0 -75
  494. package/lib/cjs/components/form/fixtures/comp1.d.ts +0 -45
  495. package/lib/cjs/components/form/fixtures/comp1.js +0 -80
  496. package/lib/cjs/components/form/fixtures/comp2.d.ts +0 -14
  497. package/lib/cjs/components/form/fixtures/comp2.js +0 -15
  498. package/lib/cjs/components/form/fixtures/comp3.d.ts +0 -187
  499. package/lib/cjs/components/form/fixtures/comp3.js +0 -170
  500. package/lib/cjs/components/form/fixtures/comp4.d.ts +0 -107
  501. package/lib/cjs/components/form/fixtures/comp4.js +0 -91
  502. package/lib/cjs/components/form/fixtures/comp5.d.ts +0 -42
  503. package/lib/cjs/components/form/fixtures/comp5.js +0 -45
  504. package/lib/cjs/components/form/fixtures/comp6.d.ts +0 -74
  505. package/lib/cjs/components/form/fixtures/comp6.js +0 -94
  506. package/lib/cjs/components/form/fixtures/formModalEdit.d.ts +0 -42
  507. package/lib/cjs/components/form/fixtures/formModalEdit.js +0 -51
  508. package/lib/cjs/components/form/fixtures/index.d.ts +0 -8
  509. package/lib/cjs/components/form/fixtures/index.js +0 -20
  510. package/lib/cjs/components/form/fixtures/values.d.ts +0 -6
  511. package/lib/cjs/components/form/fixtures/values.js +0 -9
  512. package/lib/cjs/components/hidden/Hidden.d.ts +0 -26
  513. package/lib/cjs/components/hidden/Hidden.form.d.ts +0 -3
  514. package/lib/cjs/components/hidden/Hidden.form.js +0 -29
  515. package/lib/cjs/components/hidden/Hidden.js +0 -61
  516. package/lib/cjs/components/hidden/editForm/Hidden.edit.data.d.ts +0 -5
  517. package/lib/cjs/components/hidden/editForm/Hidden.edit.data.js +0 -16
  518. package/lib/cjs/components/hidden/editForm/Hidden.edit.display.d.ts +0 -5
  519. package/lib/cjs/components/hidden/editForm/Hidden.edit.display.js +0 -44
  520. package/lib/cjs/components/hidden/fixtures/comp1.d.ts +0 -18
  521. package/lib/cjs/components/hidden/fixtures/comp1.js +0 -18
  522. package/lib/cjs/components/hidden/fixtures/index.d.ts +0 -2
  523. package/lib/cjs/components/hidden/fixtures/index.js +0 -8
  524. package/lib/cjs/components/hidden/fixtures/values.d.ts +0 -2
  525. package/lib/cjs/components/hidden/fixtures/values.js +0 -6
  526. package/lib/cjs/components/html/HTML.d.ts +0 -18
  527. package/lib/cjs/components/html/HTML.form.d.ts +0 -3
  528. package/lib/cjs/components/html/HTML.form.js +0 -29
  529. package/lib/cjs/components/html/HTML.js +0 -93
  530. package/lib/cjs/components/html/editForm/HTML.edit.display.d.ts +0 -77
  531. package/lib/cjs/components/html/editForm/HTML.edit.display.js +0 -100
  532. package/lib/cjs/components/html/editForm/HTML.edit.logic.d.ts +0 -48
  533. package/lib/cjs/components/html/editForm/HTML.edit.logic.js +0 -100
  534. package/lib/cjs/components/html/fixtures/comp1.d.ts +0 -19
  535. package/lib/cjs/components/html/fixtures/comp1.js +0 -22
  536. package/lib/cjs/components/html/fixtures/comp2.d.ts +0 -21
  537. package/lib/cjs/components/html/fixtures/comp2.js +0 -24
  538. package/lib/cjs/components/html/fixtures/index.d.ts +0 -3
  539. package/lib/cjs/components/html/fixtures/index.js +0 -10
  540. package/lib/cjs/components/index.d.ts +0 -100
  541. package/lib/cjs/components/index.js +0 -104
  542. package/lib/cjs/components/number/Number.d.ts +0 -54
  543. package/lib/cjs/components/number/Number.form.d.ts +0 -3
  544. package/lib/cjs/components/number/Number.form.js +0 -26
  545. package/lib/cjs/components/number/Number.js +0 -204
  546. package/lib/cjs/components/number/editForm/Number.edit.data.d.ts +0 -18
  547. package/lib/cjs/components/number/editForm/Number.edit.data.js +0 -32
  548. package/lib/cjs/components/number/editForm/Number.edit.display.d.ts +0 -5
  549. package/lib/cjs/components/number/editForm/Number.edit.display.js +0 -24
  550. package/lib/cjs/components/number/editForm/Number.edit.validation.d.ts +0 -20
  551. package/lib/cjs/components/number/editForm/Number.edit.validation.js +0 -46
  552. package/lib/cjs/components/number/fixtures/comp1.d.ts +0 -33
  553. package/lib/cjs/components/number/fixtures/comp1.js +0 -32
  554. package/lib/cjs/components/number/fixtures/comp2.d.ts +0 -32
  555. package/lib/cjs/components/number/fixtures/comp2.js +0 -31
  556. package/lib/cjs/components/number/fixtures/comp3.d.ts +0 -14
  557. package/lib/cjs/components/number/fixtures/comp3.js +0 -15
  558. package/lib/cjs/components/number/fixtures/comp4.d.ts +0 -14
  559. package/lib/cjs/components/number/fixtures/comp4.js +0 -15
  560. package/lib/cjs/components/number/fixtures/comp5.d.ts +0 -20
  561. package/lib/cjs/components/number/fixtures/comp5.js +0 -20
  562. package/lib/cjs/components/number/fixtures/comp6.d.ts +0 -40
  563. package/lib/cjs/components/number/fixtures/comp6.js +0 -27
  564. package/lib/cjs/components/number/fixtures/comp7.d.ts +0 -15
  565. package/lib/cjs/components/number/fixtures/comp7.js +0 -16
  566. package/lib/cjs/components/number/fixtures/index.d.ts +0 -8
  567. package/lib/cjs/components/number/fixtures/index.js +0 -20
  568. package/lib/cjs/components/number/fixtures/values.d.ts +0 -2
  569. package/lib/cjs/components/number/fixtures/values.js +0 -11
  570. package/lib/cjs/components/panel/Panel.d.ts +0 -15
  571. package/lib/cjs/components/panel/Panel.form.d.ts +0 -3
  572. package/lib/cjs/components/panel/Panel.form.js +0 -21
  573. package/lib/cjs/components/panel/Panel.js +0 -62
  574. package/lib/cjs/components/panel/editForm/Panel.edit.conditional.d.ts +0 -75
  575. package/lib/cjs/components/panel/editForm/Panel.edit.conditional.js +0 -42
  576. package/lib/cjs/components/panel/editForm/Panel.edit.display.d.ts +0 -228
  577. package/lib/cjs/components/panel/editForm/Panel.edit.display.js +0 -213
  578. package/lib/cjs/components/panel/fixtures/comp1.d.ts +0 -46
  579. package/lib/cjs/components/panel/fixtures/comp1.js +0 -80
  580. package/lib/cjs/components/panel/fixtures/comp2.d.ts +0 -80
  581. package/lib/cjs/components/panel/fixtures/comp2.js +0 -69
  582. package/lib/cjs/components/panel/fixtures/index.d.ts +0 -3
  583. package/lib/cjs/components/panel/fixtures/index.js +0 -10
  584. package/lib/cjs/components/password/Password.d.ts +0 -3
  585. package/lib/cjs/components/password/Password.form.d.ts +0 -3
  586. package/lib/cjs/components/password/Password.form.js +0 -26
  587. package/lib/cjs/components/password/Password.js +0 -40
  588. package/lib/cjs/components/password/editForm/Password.edit.data.d.ts +0 -18
  589. package/lib/cjs/components/password/editForm/Password.edit.data.js +0 -48
  590. package/lib/cjs/components/password/editForm/Password.edit.display.d.ts +0 -5
  591. package/lib/cjs/components/password/editForm/Password.edit.display.js +0 -16
  592. package/lib/cjs/components/password/editForm/Password.edit.validation.d.ts +0 -5
  593. package/lib/cjs/components/password/editForm/Password.edit.validation.js +0 -16
  594. package/lib/cjs/components/password/fixtures/comp1.d.ts +0 -22
  595. package/lib/cjs/components/password/fixtures/comp1.js +0 -22
  596. package/lib/cjs/components/password/fixtures/comp2.d.ts +0 -27
  597. package/lib/cjs/components/password/fixtures/comp2.js +0 -29
  598. package/lib/cjs/components/password/fixtures/index.d.ts +0 -3
  599. package/lib/cjs/components/password/fixtures/index.js +0 -10
  600. package/lib/cjs/components/password/fixtures/values.d.ts +0 -2
  601. package/lib/cjs/components/password/fixtures/values.js +0 -6
  602. package/lib/cjs/components/phonenumber/PhoneNumber.d.ts +0 -3
  603. package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +0 -3
  604. package/lib/cjs/components/phonenumber/PhoneNumber.form.js +0 -38
  605. package/lib/cjs/components/phonenumber/PhoneNumber.js +0 -33
  606. package/lib/cjs/components/phonenumber/editForm/PhoneNumber.edit.validation.d.ts +0 -5
  607. package/lib/cjs/components/phonenumber/editForm/PhoneNumber.edit.validation.js +0 -24
  608. package/lib/cjs/components/phonenumber/fixtures/comp1.d.ts +0 -27
  609. package/lib/cjs/components/phonenumber/fixtures/comp1.js +0 -27
  610. package/lib/cjs/components/phonenumber/fixtures/index.d.ts +0 -2
  611. package/lib/cjs/components/phonenumber/fixtures/index.js +0 -8
  612. package/lib/cjs/components/phonenumber/fixtures/values.d.ts +0 -2
  613. package/lib/cjs/components/phonenumber/fixtures/values.js +0 -6
  614. package/lib/cjs/components/radio/Radio.d.ts +0 -65
  615. package/lib/cjs/components/radio/Radio.form.d.ts +0 -3
  616. package/lib/cjs/components/radio/Radio.form.js +0 -26
  617. package/lib/cjs/components/radio/Radio.js +0 -376
  618. package/lib/cjs/components/radio/editForm/Radio.edit.data.d.ts +0 -134
  619. package/lib/cjs/components/radio/editForm/Radio.edit.data.js +0 -85
  620. package/lib/cjs/components/radio/editForm/Radio.edit.display.d.ts +0 -40
  621. package/lib/cjs/components/radio/editForm/Radio.edit.display.js +0 -34
  622. package/lib/cjs/components/radio/editForm/Radio.edit.validation.d.ts +0 -18
  623. package/lib/cjs/components/radio/editForm/Radio.edit.validation.js +0 -20
  624. package/lib/cjs/components/radio/fixtures/comp1.d.ts +0 -28
  625. package/lib/cjs/components/radio/fixtures/comp1.js +0 -42
  626. package/lib/cjs/components/radio/fixtures/comp2.d.ts +0 -85
  627. package/lib/cjs/components/radio/fixtures/comp2.js +0 -86
  628. package/lib/cjs/components/radio/fixtures/comp3.d.ts +0 -85
  629. package/lib/cjs/components/radio/fixtures/comp3.js +0 -90
  630. package/lib/cjs/components/radio/fixtures/comp4.d.ts +0 -19
  631. package/lib/cjs/components/radio/fixtures/comp4.js +0 -27
  632. package/lib/cjs/components/radio/fixtures/comp5.d.ts +0 -39
  633. package/lib/cjs/components/radio/fixtures/comp5.js +0 -35
  634. package/lib/cjs/components/radio/fixtures/comp6.d.ts +0 -38
  635. package/lib/cjs/components/radio/fixtures/comp6.js +0 -33
  636. package/lib/cjs/components/radio/fixtures/comp7.d.ts +0 -23
  637. package/lib/cjs/components/radio/fixtures/comp7.js +0 -21
  638. package/lib/cjs/components/radio/fixtures/comp8.d.ts +0 -118
  639. package/lib/cjs/components/radio/fixtures/comp8.js +0 -113
  640. package/lib/cjs/components/radio/fixtures/comp9.d.ts +0 -35
  641. package/lib/cjs/components/radio/fixtures/comp9.js +0 -32
  642. package/lib/cjs/components/radio/fixtures/index.d.ts +0 -10
  643. package/lib/cjs/components/radio/fixtures/index.js +0 -24
  644. package/lib/cjs/components/radio/fixtures/values.d.ts +0 -2
  645. package/lib/cjs/components/radio/fixtures/values.js +0 -7
  646. package/lib/cjs/components/recaptcha/ReCaptcha.d.ts +0 -23
  647. package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +0 -3
  648. package/lib/cjs/components/recaptcha/ReCaptcha.form.js +0 -32
  649. package/lib/cjs/components/recaptcha/ReCaptcha.js +0 -142
  650. package/lib/cjs/components/recaptcha/editForm/ReCaptcha.edit.display.d.ts +0 -44
  651. package/lib/cjs/components/recaptcha/editForm/ReCaptcha.edit.display.js +0 -108
  652. package/lib/cjs/components/recaptcha/fixtures/comp1.d.ts +0 -8
  653. package/lib/cjs/components/recaptcha/fixtures/comp1.js +0 -9
  654. package/lib/cjs/components/recaptcha/fixtures/index.d.ts +0 -2
  655. package/lib/cjs/components/recaptcha/fixtures/index.js +0 -8
  656. package/lib/cjs/components/resource/Resource.d.ts +0 -10
  657. package/lib/cjs/components/resource/Resource.form.d.ts +0 -3
  658. package/lib/cjs/components/resource/Resource.form.js +0 -16
  659. package/lib/cjs/components/resource/Resource.js +0 -39
  660. package/lib/cjs/components/resource/editForm/Resource.edit.display.d.ts +0 -173
  661. package/lib/cjs/components/resource/editForm/Resource.edit.display.js +0 -102
  662. package/lib/cjs/components/resource/fixtures/comp1.d.ts +0 -30
  663. package/lib/cjs/components/resource/fixtures/comp1.js +0 -30
  664. package/lib/cjs/components/resource/fixtures/comp2.d.ts +0 -35
  665. package/lib/cjs/components/resource/fixtures/comp2.js +0 -31
  666. package/lib/cjs/components/resource/fixtures/index.d.ts +0 -3
  667. package/lib/cjs/components/resource/fixtures/index.js +0 -10
  668. package/lib/cjs/components/select/Select.d.ts +0 -145
  669. package/lib/cjs/components/select/Select.form.d.ts +0 -3
  670. package/lib/cjs/components/select/Select.form.js +0 -26
  671. package/lib/cjs/components/select/Select.js +0 -1466
  672. package/lib/cjs/components/select/editForm/Select.edit.data.d.ts +0 -1039
  673. package/lib/cjs/components/select/editForm/Select.edit.data.js +0 -629
  674. package/lib/cjs/components/select/editForm/Select.edit.display.d.ts +0 -27
  675. package/lib/cjs/components/select/editForm/Select.edit.display.js +0 -28
  676. package/lib/cjs/components/select/editForm/Select.edit.validation.d.ts +0 -30
  677. package/lib/cjs/components/select/editForm/Select.edit.validation.js +0 -35
  678. package/lib/cjs/components/select/fixtures/comp1.d.ts +0 -40
  679. package/lib/cjs/components/select/fixtures/comp1.js +0 -66
  680. package/lib/cjs/components/select/fixtures/comp10.d.ts +0 -41
  681. package/lib/cjs/components/select/fixtures/comp10.js +0 -32
  682. package/lib/cjs/components/select/fixtures/comp11.d.ts +0 -28
  683. package/lib/cjs/components/select/fixtures/comp11.js +0 -24
  684. package/lib/cjs/components/select/fixtures/comp12.d.ts +0 -53
  685. package/lib/cjs/components/select/fixtures/comp12.js +0 -29
  686. package/lib/cjs/components/select/fixtures/comp13.d.ts +0 -28
  687. package/lib/cjs/components/select/fixtures/comp13.js +0 -31
  688. package/lib/cjs/components/select/fixtures/comp14.d.ts +0 -40
  689. package/lib/cjs/components/select/fixtures/comp14.js +0 -27
  690. package/lib/cjs/components/select/fixtures/comp15.d.ts +0 -50
  691. package/lib/cjs/components/select/fixtures/comp15.js +0 -41
  692. package/lib/cjs/components/select/fixtures/comp16.d.ts +0 -34
  693. package/lib/cjs/components/select/fixtures/comp16.js +0 -33
  694. package/lib/cjs/components/select/fixtures/comp17.d.ts +0 -51
  695. package/lib/cjs/components/select/fixtures/comp17.js +0 -43
  696. package/lib/cjs/components/select/fixtures/comp18.d.ts +0 -49
  697. package/lib/cjs/components/select/fixtures/comp18.js +0 -42
  698. package/lib/cjs/components/select/fixtures/comp19.d.ts +0 -23
  699. package/lib/cjs/components/select/fixtures/comp19.js +0 -36
  700. package/lib/cjs/components/select/fixtures/comp2.d.ts +0 -41
  701. package/lib/cjs/components/select/fixtures/comp2.js +0 -67
  702. package/lib/cjs/components/select/fixtures/comp3.d.ts +0 -35
  703. package/lib/cjs/components/select/fixtures/comp3.js +0 -209
  704. package/lib/cjs/components/select/fixtures/comp4.d.ts +0 -103
  705. package/lib/cjs/components/select/fixtures/comp4.js +0 -106
  706. package/lib/cjs/components/select/fixtures/comp5.d.ts +0 -21
  707. package/lib/cjs/components/select/fixtures/comp5.js +0 -28
  708. package/lib/cjs/components/select/fixtures/comp6.d.ts +0 -20
  709. package/lib/cjs/components/select/fixtures/comp6.js +0 -30
  710. package/lib/cjs/components/select/fixtures/comp7.d.ts +0 -63
  711. package/lib/cjs/components/select/fixtures/comp7.js +0 -46
  712. package/lib/cjs/components/select/fixtures/comp8.d.ts +0 -72
  713. package/lib/cjs/components/select/fixtures/comp8.js +0 -37
  714. package/lib/cjs/components/select/fixtures/comp9.d.ts +0 -88
  715. package/lib/cjs/components/select/fixtures/comp9.js +0 -67
  716. package/lib/cjs/components/select/fixtures/index.d.ts +0 -20
  717. package/lib/cjs/components/select/fixtures/index.js +0 -45
  718. package/lib/cjs/components/select/fixtures/values.d.ts +0 -2
  719. package/lib/cjs/components/select/fixtures/values.js +0 -7
  720. package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +0 -52
  721. package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +0 -3
  722. package/lib/cjs/components/selectboxes/SelectBoxes.form.js +0 -25
  723. package/lib/cjs/components/selectboxes/SelectBoxes.js +0 -258
  724. package/lib/cjs/components/selectboxes/editForm/SelectBoxes.edit.validation.d.ts +0 -9
  725. package/lib/cjs/components/selectboxes/editForm/SelectBoxes.edit.validation.js +0 -36
  726. package/lib/cjs/components/selectboxes/fixtures/comp1.d.ts +0 -24
  727. package/lib/cjs/components/selectboxes/fixtures/comp1.js +0 -54
  728. package/lib/cjs/components/selectboxes/fixtures/comp2.d.ts +0 -24
  729. package/lib/cjs/components/selectboxes/fixtures/comp2.js +0 -54
  730. package/lib/cjs/components/selectboxes/fixtures/comp3.d.ts +0 -23
  731. package/lib/cjs/components/selectboxes/fixtures/comp3.js +0 -21
  732. package/lib/cjs/components/selectboxes/fixtures/comp4.d.ts +0 -66
  733. package/lib/cjs/components/selectboxes/fixtures/comp4.js +0 -81
  734. package/lib/cjs/components/selectboxes/fixtures/comp5.d.ts +0 -37
  735. package/lib/cjs/components/selectboxes/fixtures/comp5.js +0 -33
  736. package/lib/cjs/components/selectboxes/fixtures/comp6.d.ts +0 -14
  737. package/lib/cjs/components/selectboxes/fixtures/comp6.js +0 -15
  738. package/lib/cjs/components/selectboxes/fixtures/comp7.d.ts +0 -18
  739. package/lib/cjs/components/selectboxes/fixtures/comp7.js +0 -31
  740. package/lib/cjs/components/selectboxes/fixtures/index.d.ts +0 -8
  741. package/lib/cjs/components/selectboxes/fixtures/index.js +0 -20
  742. package/lib/cjs/components/selectboxes/fixtures/values.d.ts +0 -6
  743. package/lib/cjs/components/selectboxes/fixtures/values.js +0 -24
  744. package/lib/cjs/components/signature/Signature.d.ts +0 -46
  745. package/lib/cjs/components/signature/Signature.form.d.ts +0 -3
  746. package/lib/cjs/components/signature/Signature.form.js +0 -26
  747. package/lib/cjs/components/signature/Signature.js +0 -259
  748. package/lib/cjs/components/signature/editForm/Signature.edit.data.d.ts +0 -5
  749. package/lib/cjs/components/signature/editForm/Signature.edit.data.js +0 -16
  750. package/lib/cjs/components/signature/editForm/Signature.edit.display.d.ts +0 -51
  751. package/lib/cjs/components/signature/editForm/Signature.edit.display.js +0 -71
  752. package/lib/cjs/components/signature/editForm/Signature.edit.validation.d.ts +0 -5
  753. package/lib/cjs/components/signature/editForm/Signature.edit.validation.js +0 -12
  754. package/lib/cjs/components/signature/fixtures/comp1.d.ts +0 -30
  755. package/lib/cjs/components/signature/fixtures/comp1.js +0 -30
  756. package/lib/cjs/components/signature/fixtures/index.d.ts +0 -2
  757. package/lib/cjs/components/signature/fixtures/index.js +0 -8
  758. package/lib/cjs/components/signature/fixtures/values.d.ts +0 -2
  759. package/lib/cjs/components/signature/fixtures/values.js +0 -7
  760. package/lib/cjs/components/survey/Survey.d.ts +0 -37
  761. package/lib/cjs/components/survey/Survey.form.d.ts +0 -3
  762. package/lib/cjs/components/survey/Survey.form.js +0 -26
  763. package/lib/cjs/components/survey/Survey.js +0 -156
  764. package/lib/cjs/components/survey/editForm/Survey.edit.data.d.ts +0 -44
  765. package/lib/cjs/components/survey/editForm/Survey.edit.data.js +0 -72
  766. package/lib/cjs/components/survey/editForm/Survey.edit.display.d.ts +0 -5
  767. package/lib/cjs/components/survey/editForm/Survey.edit.display.js +0 -8
  768. package/lib/cjs/components/survey/editForm/Survey.edit.validation.d.ts +0 -5
  769. package/lib/cjs/components/survey/editForm/Survey.edit.validation.js +0 -8
  770. package/lib/cjs/components/survey/fixtures/comp1.d.ts +0 -31
  771. package/lib/cjs/components/survey/fixtures/comp1.js +0 -55
  772. package/lib/cjs/components/survey/fixtures/comp2.d.ts +0 -31
  773. package/lib/cjs/components/survey/fixtures/comp2.js +0 -55
  774. package/lib/cjs/components/survey/fixtures/index.d.ts +0 -3
  775. package/lib/cjs/components/survey/fixtures/index.js +0 -10
  776. package/lib/cjs/components/survey/fixtures/values.d.ts +0 -5
  777. package/lib/cjs/components/survey/fixtures/values.js +0 -12
  778. package/lib/cjs/components/table/Table.d.ts +0 -23
  779. package/lib/cjs/components/table/Table.form.d.ts +0 -3
  780. package/lib/cjs/components/table/Table.form.js +0 -16
  781. package/lib/cjs/components/table/Table.js +0 -175
  782. package/lib/cjs/components/table/editForm/Table.edit.display.d.ts +0 -55
  783. package/lib/cjs/components/table/editForm/Table.edit.display.js +0 -111
  784. package/lib/cjs/components/table/fixtures/comp1.d.ts +0 -53
  785. package/lib/cjs/components/table/fixtures/comp1.js +0 -237
  786. package/lib/cjs/components/table/fixtures/index.d.ts +0 -2
  787. package/lib/cjs/components/table/fixtures/index.js +0 -8
  788. package/lib/cjs/components/tabs/Tabs.d.ts +0 -30
  789. package/lib/cjs/components/tabs/Tabs.form.d.ts +0 -3
  790. package/lib/cjs/components/tabs/Tabs.form.js +0 -16
  791. package/lib/cjs/components/tabs/Tabs.js +0 -207
  792. package/lib/cjs/components/tabs/editForm/Tabs.edit.display.d.ts +0 -49
  793. package/lib/cjs/components/tabs/editForm/Tabs.edit.display.js +0 -68
  794. package/lib/cjs/components/tabs/fixtures/comp1.d.ts +0 -23
  795. package/lib/cjs/components/tabs/fixtures/comp1.js +0 -33
  796. package/lib/cjs/components/tabs/fixtures/index.d.ts +0 -2
  797. package/lib/cjs/components/tabs/fixtures/index.js +0 -8
  798. package/lib/cjs/components/tags/Tags.d.ts +0 -41
  799. package/lib/cjs/components/tags/Tags.form.d.ts +0 -3
  800. package/lib/cjs/components/tags/Tags.form.js +0 -16
  801. package/lib/cjs/components/tags/Tags.js +0 -174
  802. package/lib/cjs/components/tags/editForm/Tags.edit.data.d.ts +0 -51
  803. package/lib/cjs/components/tags/editForm/Tags.edit.data.js +0 -39
  804. package/lib/cjs/components/tags/fixtures/comp1.d.ts +0 -20
  805. package/lib/cjs/components/tags/fixtures/comp1.js +0 -20
  806. package/lib/cjs/components/tags/fixtures/comp2.d.ts +0 -10
  807. package/lib/cjs/components/tags/fixtures/comp2.js +0 -11
  808. package/lib/cjs/components/tags/fixtures/comp3.d.ts +0 -23
  809. package/lib/cjs/components/tags/fixtures/comp3.js +0 -20
  810. package/lib/cjs/components/tags/fixtures/comp4.d.ts +0 -9
  811. package/lib/cjs/components/tags/fixtures/comp4.js +0 -10
  812. package/lib/cjs/components/tags/fixtures/comp5.d.ts +0 -24
  813. package/lib/cjs/components/tags/fixtures/comp5.js +0 -24
  814. package/lib/cjs/components/tags/fixtures/comp6.d.ts +0 -17
  815. package/lib/cjs/components/tags/fixtures/comp6.js +0 -20
  816. package/lib/cjs/components/tags/fixtures/index.d.ts +0 -7
  817. package/lib/cjs/components/tags/fixtures/index.js +0 -18
  818. package/lib/cjs/components/tags/fixtures/values.d.ts +0 -2
  819. package/lib/cjs/components/tags/fixtures/values.js +0 -6
  820. package/lib/cjs/components/textarea/TextArea.d.ts +0 -37
  821. package/lib/cjs/components/textarea/TextArea.form.d.ts +0 -3
  822. package/lib/cjs/components/textarea/TextArea.form.js +0 -21
  823. package/lib/cjs/components/textarea/TextArea.js +0 -537
  824. package/lib/cjs/components/textarea/editForm/TextArea.edit.display.d.ts +0 -355
  825. package/lib/cjs/components/textarea/editForm/TextArea.edit.display.js +0 -263
  826. package/lib/cjs/components/textarea/editForm/TextArea.edit.validation.d.ts +0 -10
  827. package/lib/cjs/components/textarea/editForm/TextArea.edit.validation.js +0 -22
  828. package/lib/cjs/components/textarea/fixtures/comp1.d.ts +0 -31
  829. package/lib/cjs/components/textarea/fixtures/comp1.js +0 -31
  830. package/lib/cjs/components/textarea/fixtures/comp2.d.ts +0 -29
  831. package/lib/cjs/components/textarea/fixtures/comp2.js +0 -29
  832. package/lib/cjs/components/textarea/fixtures/comp3.d.ts +0 -27
  833. package/lib/cjs/components/textarea/fixtures/comp3.js +0 -29
  834. package/lib/cjs/components/textarea/fixtures/comp4.d.ts +0 -30
  835. package/lib/cjs/components/textarea/fixtures/comp4.js +0 -27
  836. package/lib/cjs/components/textarea/fixtures/index.d.ts +0 -5
  837. package/lib/cjs/components/textarea/fixtures/index.js +0 -14
  838. package/lib/cjs/components/textarea/fixtures/values.d.ts +0 -2
  839. package/lib/cjs/components/textarea/fixtures/values.js +0 -6
  840. package/lib/cjs/components/textfield/TextField.d.ts +0 -60
  841. package/lib/cjs/components/textfield/TextField.form.d.ts +0 -3
  842. package/lib/cjs/components/textfield/TextField.form.js +0 -26
  843. package/lib/cjs/components/textfield/TextField.js +0 -251
  844. package/lib/cjs/components/textfield/editForm/TextField.edit.data.d.ts +0 -46
  845. package/lib/cjs/components/textfield/editForm/TextField.edit.data.js +0 -58
  846. package/lib/cjs/components/textfield/editForm/TextField.edit.display.d.ts +0 -248
  847. package/lib/cjs/components/textfield/editForm/TextField.edit.display.js +0 -208
  848. package/lib/cjs/components/textfield/editForm/TextField.edit.validation.d.ts +0 -10
  849. package/lib/cjs/components/textfield/editForm/TextField.edit.validation.js +0 -49
  850. package/lib/cjs/components/textfield/fixtures/comp-with-display-and-value-masks.d.ts +0 -47
  851. package/lib/cjs/components/textfield/fixtures/comp-with-display-and-value-masks.js +0 -48
  852. package/lib/cjs/components/textfield/fixtures/comp1.d.ts +0 -33
  853. package/lib/cjs/components/textfield/fixtures/comp1.js +0 -33
  854. package/lib/cjs/components/textfield/fixtures/comp2.d.ts +0 -33
  855. package/lib/cjs/components/textfield/fixtures/comp2.js +0 -33
  856. package/lib/cjs/components/textfield/fixtures/comp3.d.ts +0 -33
  857. package/lib/cjs/components/textfield/fixtures/comp3.js +0 -33
  858. package/lib/cjs/components/textfield/fixtures/comp4.d.ts +0 -23
  859. package/lib/cjs/components/textfield/fixtures/comp4.js +0 -27
  860. package/lib/cjs/components/textfield/fixtures/comp5.d.ts +0 -12
  861. package/lib/cjs/components/textfield/fixtures/comp5.js +0 -13
  862. package/lib/cjs/components/textfield/fixtures/comp6.d.ts +0 -25
  863. package/lib/cjs/components/textfield/fixtures/comp6.js +0 -21
  864. package/lib/cjs/components/textfield/fixtures/comp7.d.ts +0 -37
  865. package/lib/cjs/components/textfield/fixtures/comp7.js +0 -38
  866. package/lib/cjs/components/textfield/fixtures/index.d.ts +0 -9
  867. package/lib/cjs/components/textfield/fixtures/index.js +0 -22
  868. package/lib/cjs/components/textfield/fixtures/values.d.ts +0 -2
  869. package/lib/cjs/components/textfield/fixtures/values.js +0 -7
  870. package/lib/cjs/components/time/Time.d.ts +0 -27
  871. package/lib/cjs/components/time/Time.form.d.ts +0 -3
  872. package/lib/cjs/components/time/Time.form.js +0 -21
  873. package/lib/cjs/components/time/Time.js +0 -153
  874. package/lib/cjs/components/time/editForm/Time.edit.data.d.ts +0 -10
  875. package/lib/cjs/components/time/editForm/Time.edit.data.js +0 -13
  876. package/lib/cjs/components/time/editForm/Time.edit.display.d.ts +0 -52
  877. package/lib/cjs/components/time/editForm/Time.edit.display.js +0 -42
  878. package/lib/cjs/components/time/fixtures/comp1.d.ts +0 -24
  879. package/lib/cjs/components/time/fixtures/comp1.js +0 -24
  880. package/lib/cjs/components/time/fixtures/comp2.d.ts +0 -10
  881. package/lib/cjs/components/time/fixtures/comp2.js +0 -11
  882. package/lib/cjs/components/time/fixtures/comp3.d.ts +0 -15
  883. package/lib/cjs/components/time/fixtures/comp3.js +0 -18
  884. package/lib/cjs/components/time/fixtures/index.d.ts +0 -6
  885. package/lib/cjs/components/time/fixtures/index.js +0 -16
  886. package/lib/cjs/components/time/fixtures/timeForm.d.ts +0 -47
  887. package/lib/cjs/components/time/fixtures/timeForm.js +0 -52
  888. package/lib/cjs/components/time/fixtures/timeForm2.d.ts +0 -38
  889. package/lib/cjs/components/time/fixtures/timeForm2.js +0 -44
  890. package/lib/cjs/components/time/fixtures/values.d.ts +0 -2
  891. package/lib/cjs/components/time/fixtures/values.js +0 -7
  892. package/lib/cjs/components/tree/Node.d.ts +0 -55
  893. package/lib/cjs/components/tree/Node.js +0 -185
  894. package/lib/cjs/components/tree/Tree.d.ts +0 -48
  895. package/lib/cjs/components/tree/Tree.form.d.ts +0 -3
  896. package/lib/cjs/components/tree/Tree.form.js +0 -21
  897. package/lib/cjs/components/tree/Tree.js +0 -383
  898. package/lib/cjs/components/tree/editForm/Tree.edit.data.d.ts +0 -5
  899. package/lib/cjs/components/tree/editForm/Tree.edit.data.js +0 -9
  900. package/lib/cjs/components/tree/editForm/Tree.edit.display.d.ts +0 -9
  901. package/lib/cjs/components/tree/editForm/Tree.edit.display.js +0 -12
  902. package/lib/cjs/components/tree/fixtures/comp1.d.ts +0 -23
  903. package/lib/cjs/components/tree/fixtures/comp1.js +0 -24
  904. package/lib/cjs/components/tree/fixtures/comp2.d.ts +0 -116
  905. package/lib/cjs/components/tree/fixtures/comp2.js +0 -82
  906. package/lib/cjs/components/tree/fixtures/comp3.d.ts +0 -24
  907. package/lib/cjs/components/tree/fixtures/comp3.js +0 -25
  908. package/lib/cjs/components/tree/fixtures/comp4.d.ts +0 -42
  909. package/lib/cjs/components/tree/fixtures/comp4.js +0 -47
  910. package/lib/cjs/components/tree/fixtures/index.d.ts +0 -5
  911. package/lib/cjs/components/tree/fixtures/index.js +0 -14
  912. package/lib/cjs/components/unknown/Unknown.d.ts +0 -28
  913. package/lib/cjs/components/unknown/Unknown.form.d.ts +0 -34
  914. package/lib/cjs/components/unknown/Unknown.form.js +0 -25
  915. package/lib/cjs/components/unknown/Unknown.js +0 -30
  916. package/lib/cjs/components/unknown/editForm/Unknown.edit.display.d.ts +0 -24
  917. package/lib/cjs/components/unknown/editForm/Unknown.edit.display.js +0 -27
  918. package/lib/cjs/components/unknown/fixtures/comp1.d.ts +0 -7
  919. package/lib/cjs/components/unknown/fixtures/comp1.js +0 -8
  920. package/lib/cjs/components/unknown/fixtures/index.d.ts +0 -2
  921. package/lib/cjs/components/unknown/fixtures/index.js +0 -8
  922. package/lib/cjs/components/url/Url.d.ts +0 -3
  923. package/lib/cjs/components/url/Url.form.d.ts +0 -3
  924. package/lib/cjs/components/url/Url.form.js +0 -26
  925. package/lib/cjs/components/url/Url.js +0 -39
  926. package/lib/cjs/components/url/editForm/Url.edit.data.d.ts +0 -5
  927. package/lib/cjs/components/url/editForm/Url.edit.data.js +0 -8
  928. package/lib/cjs/components/url/editForm/Url.edit.display.d.ts +0 -5
  929. package/lib/cjs/components/url/editForm/Url.edit.display.js +0 -20
  930. package/lib/cjs/components/url/editForm/Url.edit.validation.d.ts +0 -5
  931. package/lib/cjs/components/url/editForm/Url.edit.validation.js +0 -12
  932. package/lib/cjs/components/url/fixtures/comp1.d.ts +0 -26
  933. package/lib/cjs/components/url/fixtures/comp1.js +0 -26
  934. package/lib/cjs/components/url/fixtures/comp2.d.ts +0 -26
  935. package/lib/cjs/components/url/fixtures/comp2.js +0 -23
  936. package/lib/cjs/components/url/fixtures/index.d.ts +0 -3
  937. package/lib/cjs/components/url/fixtures/index.js +0 -10
  938. package/lib/cjs/components/url/fixtures/values.d.ts +0 -2
  939. package/lib/cjs/components/url/fixtures/values.js +0 -6
  940. package/lib/cjs/components/well/Well.d.ts +0 -15
  941. package/lib/cjs/components/well/Well.form.d.ts +0 -3
  942. package/lib/cjs/components/well/Well.form.js +0 -16
  943. package/lib/cjs/components/well/Well.js +0 -45
  944. package/lib/cjs/components/well/editForm/Well.edit.display.d.ts +0 -5
  945. package/lib/cjs/components/well/editForm/Well.edit.display.js +0 -32
  946. package/lib/cjs/components/well/fixtures/comp1.d.ts +0 -43
  947. package/lib/cjs/components/well/fixtures/comp1.js +0 -77
  948. package/lib/cjs/components/well/fixtures/index.d.ts +0 -2
  949. package/lib/cjs/components/well/fixtures/index.js +0 -8
  950. package/lib/cjs/displays/Displays.d.ts +0 -18
  951. package/lib/cjs/displays/Displays.js +0 -29
  952. package/lib/cjs/displays/index.d.ts +0 -2
  953. package/lib/cjs/displays/index.js +0 -7
  954. package/lib/cjs/formio.embed.d.ts +0 -2
  955. package/lib/cjs/formio.embed.js +0 -100
  956. package/lib/cjs/formio.form.d.ts +0 -23
  957. package/lib/cjs/formio.form.js +0 -167
  958. package/lib/cjs/i18n.d.ts +0 -13
  959. package/lib/cjs/i18n.js +0 -19
  960. package/lib/cjs/index.d.ts +0 -4
  961. package/lib/cjs/index.js +0 -34
  962. package/lib/cjs/licenses/Licenses.d.ts +0 -7
  963. package/lib/cjs/licenses/Licenses.js +0 -22
  964. package/lib/cjs/licenses/index.d.ts +0 -2
  965. package/lib/cjs/licenses/index.js +0 -7
  966. package/lib/cjs/package.json +0 -3
  967. package/lib/cjs/pdf.image.d.ts +0 -2
  968. package/lib/cjs/pdf.image.js +0 -94
  969. package/lib/cjs/providers/Providers.d.ts +0 -84
  970. package/lib/cjs/providers/Providers.js +0 -34
  971. package/lib/cjs/providers/address/AddressProvider.d.ts +0 -17
  972. package/lib/cjs/providers/address/AddressProvider.js +0 -61
  973. package/lib/cjs/providers/address/AzureAddressProvider.d.ts +0 -12
  974. package/lib/cjs/providers/address/AzureAddressProvider.js +0 -31
  975. package/lib/cjs/providers/address/CustomAddressProvider.d.ts +0 -7
  976. package/lib/cjs/providers/address/CustomAddressProvider.js +0 -26
  977. package/lib/cjs/providers/address/GoogleAddressProvider.d.ts +0 -18
  978. package/lib/cjs/providers/address/GoogleAddressProvider.js +0 -117
  979. package/lib/cjs/providers/address/NominatimAddressProvider.d.ts +0 -11
  980. package/lib/cjs/providers/address/NominatimAddressProvider.js +0 -31
  981. package/lib/cjs/providers/address/index.d.ts +0 -6
  982. package/lib/cjs/providers/address/index.js +0 -12
  983. package/lib/cjs/providers/auth/index.d.ts +0 -2
  984. package/lib/cjs/providers/auth/index.js +0 -3
  985. package/lib/cjs/providers/index.d.ts +0 -2
  986. package/lib/cjs/providers/index.js +0 -7
  987. package/lib/cjs/providers/processor/fileProcessor.d.ts +0 -2
  988. package/lib/cjs/providers/processor/fileProcessor.js +0 -40
  989. package/lib/cjs/providers/storage/azure.d.ts +0 -17
  990. package/lib/cjs/providers/storage/azure.js +0 -35
  991. package/lib/cjs/providers/storage/base64.d.ts +0 -10
  992. package/lib/cjs/providers/storage/base64.js +0 -31
  993. package/lib/cjs/providers/storage/dropbox.d.ts +0 -8
  994. package/lib/cjs/providers/storage/dropbox.js +0 -57
  995. package/lib/cjs/providers/storage/googleDrive.d.ts +0 -9
  996. package/lib/cjs/providers/storage/googleDrive.js +0 -60
  997. package/lib/cjs/providers/storage/index.d.ts +0 -15
  998. package/lib/cjs/providers/storage/index.js +0 -19
  999. package/lib/cjs/providers/storage/indexeddb.d.ts +0 -11
  1000. package/lib/cjs/providers/storage/indexeddb.js +0 -120
  1001. package/lib/cjs/providers/storage/s3.d.ts +0 -18
  1002. package/lib/cjs/providers/storage/s3.js +0 -53
  1003. package/lib/cjs/providers/storage/uploadAdapter.d.ts +0 -1
  1004. package/lib/cjs/providers/storage/uploadAdapter.js +0 -57
  1005. package/lib/cjs/providers/storage/url.d.ts +0 -11
  1006. package/lib/cjs/providers/storage/url.js +0 -142
  1007. package/lib/cjs/providers/storage/xhr.d.ts +0 -7
  1008. package/lib/cjs/providers/storage/xhr.js +0 -100
  1009. package/lib/cjs/templates/Templates.d.ts +0 -11
  1010. package/lib/cjs/templates/Templates.js +0 -47
  1011. package/lib/cjs/templates/index.d.ts +0 -229
  1012. package/lib/cjs/templates/index.js +0 -9
  1013. package/lib/cjs/translations/en.d.ts +0 -66
  1014. package/lib/cjs/translations/en.js +0 -67
  1015. package/lib/cjs/utils/ChoicesWrapper.d.ts +0 -38
  1016. package/lib/cjs/utils/ChoicesWrapper.js +0 -194
  1017. package/lib/cjs/utils/Evaluator.d.ts +0 -4
  1018. package/lib/cjs/utils/Evaluator.js +0 -69
  1019. package/lib/cjs/utils/builder.d.ts +0 -22
  1020. package/lib/cjs/utils/builder.js +0 -84
  1021. package/lib/cjs/utils/calendarUtils.d.ts +0 -41
  1022. package/lib/cjs/utils/calendarUtils.js +0 -136
  1023. package/lib/cjs/utils/conditionOperators/ConditionOperator.d.ts +0 -7
  1024. package/lib/cjs/utils/conditionOperators/ConditionOperator.js +0 -29
  1025. package/lib/cjs/utils/conditionOperators/DateGreaterThan.d.ts +0 -13
  1026. package/lib/cjs/utils/conditionOperators/DateGreaterThan.js +0 -37
  1027. package/lib/cjs/utils/conditionOperators/DateGreaterThanOrEqual.d.ts +0 -4
  1028. package/lib/cjs/utils/conditionOperators/DateGreaterThanOrEqual.js +0 -18
  1029. package/lib/cjs/utils/conditionOperators/DateLessThan.d.ts +0 -4
  1030. package/lib/cjs/utils/conditionOperators/DateLessThan.js +0 -18
  1031. package/lib/cjs/utils/conditionOperators/DateLessThanOrEqual.d.ts +0 -4
  1032. package/lib/cjs/utils/conditionOperators/DateLessThanOrEqual.js +0 -18
  1033. package/lib/cjs/utils/conditionOperators/EndsWith.d.ts +0 -7
  1034. package/lib/cjs/utils/conditionOperators/EndsWith.js +0 -19
  1035. package/lib/cjs/utils/conditionOperators/GreaterThan.d.ts +0 -7
  1036. package/lib/cjs/utils/conditionOperators/GreaterThan.js +0 -19
  1037. package/lib/cjs/utils/conditionOperators/GreaterThanOrEqual.d.ts +0 -7
  1038. package/lib/cjs/utils/conditionOperators/GreaterThanOrEqual.js +0 -19
  1039. package/lib/cjs/utils/conditionOperators/Includes.d.ts +0 -7
  1040. package/lib/cjs/utils/conditionOperators/Includes.js +0 -19
  1041. package/lib/cjs/utils/conditionOperators/IsDateEqual.d.ts +0 -4
  1042. package/lib/cjs/utils/conditionOperators/IsDateEqual.js +0 -18
  1043. package/lib/cjs/utils/conditionOperators/IsEmptyValue.d.ts +0 -9
  1044. package/lib/cjs/utils/conditionOperators/IsEmptyValue.js +0 -30
  1045. package/lib/cjs/utils/conditionOperators/IsEqualTo.d.ts +0 -7
  1046. package/lib/cjs/utils/conditionOperators/IsEqualTo.js +0 -30
  1047. package/lib/cjs/utils/conditionOperators/IsNotDateEqual.d.ts +0 -4
  1048. package/lib/cjs/utils/conditionOperators/IsNotDateEqual.js +0 -18
  1049. package/lib/cjs/utils/conditionOperators/IsNotEmptyValue.d.ts +0 -4
  1050. package/lib/cjs/utils/conditionOperators/IsNotEmptyValue.js +0 -18
  1051. package/lib/cjs/utils/conditionOperators/IsNotEqualTo.d.ts +0 -7
  1052. package/lib/cjs/utils/conditionOperators/IsNotEqualTo.js +0 -19
  1053. package/lib/cjs/utils/conditionOperators/LessThan.d.ts +0 -7
  1054. package/lib/cjs/utils/conditionOperators/LessThan.js +0 -19
  1055. package/lib/cjs/utils/conditionOperators/LessThanOrEqual.d.ts +0 -7
  1056. package/lib/cjs/utils/conditionOperators/LessThanOrEqual.js +0 -19
  1057. package/lib/cjs/utils/conditionOperators/NotIncludes.d.ts +0 -4
  1058. package/lib/cjs/utils/conditionOperators/NotIncludes.js +0 -18
  1059. package/lib/cjs/utils/conditionOperators/StartsWith.d.ts +0 -7
  1060. package/lib/cjs/utils/conditionOperators/StartsWith.js +0 -19
  1061. package/lib/cjs/utils/conditionOperators/index.d.ts +0 -7
  1062. package/lib/cjs/utils/conditionOperators/index.js +0 -44
  1063. package/lib/cjs/utils/formUtils.d.ts +0 -173
  1064. package/lib/cjs/utils/formUtils.js +0 -583
  1065. package/lib/cjs/utils/i18n.d.ts +0 -16
  1066. package/lib/cjs/utils/i18n.js +0 -88
  1067. package/lib/cjs/utils/index.d.ts +0 -2
  1068. package/lib/cjs/utils/index.js +0 -30
  1069. package/lib/cjs/utils/jsonlogic/operators.d.ts +0 -1
  1070. package/lib/cjs/utils/jsonlogic/operators.js +0 -265
  1071. package/lib/cjs/utils/utils.d.ts +0 -374
  1072. package/lib/cjs/utils/utils.js +0 -1487
  1073. package/lib/cjs/validator/Rules.d.ts +0 -53
  1074. package/lib/cjs/validator/Rules.js +0 -22
  1075. package/lib/cjs/validator/Validator.d.ts +0 -228
  1076. package/lib/cjs/validator/Validator.js +0 -1113
  1077. package/lib/cjs/validator/conjunctions/index.d.ts +0 -7
  1078. package/lib/cjs/validator/conjunctions/index.js +0 -18
  1079. package/lib/cjs/validator/operators/index.d.ts +0 -7
  1080. package/lib/cjs/validator/operators/index.js +0 -18
  1081. package/lib/cjs/validator/quickRules/index.d.ts +0 -7
  1082. package/lib/cjs/validator/quickRules/index.js +0 -18
  1083. package/lib/cjs/validator/rules/Custom.d.ts +0 -5
  1084. package/lib/cjs/validator/rules/Custom.js +0 -30
  1085. package/lib/cjs/validator/rules/Date.d.ts +0 -5
  1086. package/lib/cjs/validator/rules/Date.js +0 -25
  1087. package/lib/cjs/validator/rules/Day.d.ts +0 -5
  1088. package/lib/cjs/validator/rules/Day.js +0 -58
  1089. package/lib/cjs/validator/rules/Email.d.ts +0 -5
  1090. package/lib/cjs/validator/rules/Email.js +0 -24
  1091. package/lib/cjs/validator/rules/JSON.d.ts +0 -5
  1092. package/lib/cjs/validator/rules/JSON.js +0 -29
  1093. package/lib/cjs/validator/rules/Mask.d.ts +0 -5
  1094. package/lib/cjs/validator/rules/Mask.js +0 -32
  1095. package/lib/cjs/validator/rules/Max.d.ts +0 -5
  1096. package/lib/cjs/validator/rules/Max.js +0 -21
  1097. package/lib/cjs/validator/rules/MaxDate.d.ts +0 -5
  1098. package/lib/cjs/validator/rules/MaxDate.js +0 -34
  1099. package/lib/cjs/validator/rules/MaxLength.d.ts +0 -5
  1100. package/lib/cjs/validator/rules/MaxLength.js +0 -20
  1101. package/lib/cjs/validator/rules/MaxWords.d.ts +0 -5
  1102. package/lib/cjs/validator/rules/MaxWords.js +0 -20
  1103. package/lib/cjs/validator/rules/MaxYear.d.ts +0 -5
  1104. package/lib/cjs/validator/rules/MaxYear.js +0 -22
  1105. package/lib/cjs/validator/rules/Min.d.ts +0 -5
  1106. package/lib/cjs/validator/rules/Min.js +0 -21
  1107. package/lib/cjs/validator/rules/MinDate.d.ts +0 -5
  1108. package/lib/cjs/validator/rules/MinDate.js +0 -30
  1109. package/lib/cjs/validator/rules/MinLength.d.ts +0 -5
  1110. package/lib/cjs/validator/rules/MinLength.js +0 -20
  1111. package/lib/cjs/validator/rules/MinWords.d.ts +0 -5
  1112. package/lib/cjs/validator/rules/MinWords.js +0 -20
  1113. package/lib/cjs/validator/rules/MinYear.d.ts +0 -5
  1114. package/lib/cjs/validator/rules/MinYear.js +0 -22
  1115. package/lib/cjs/validator/rules/Pattern.d.ts +0 -5
  1116. package/lib/cjs/validator/rules/Pattern.js +0 -20
  1117. package/lib/cjs/validator/rules/Required.d.ts +0 -5
  1118. package/lib/cjs/validator/rules/Required.js +0 -17
  1119. package/lib/cjs/validator/rules/Rule.d.ts +0 -7
  1120. package/lib/cjs/validator/rules/Rule.js +0 -12
  1121. package/lib/cjs/validator/rules/Select.d.ts +0 -5
  1122. package/lib/cjs/validator/rules/Select.js +0 -95
  1123. package/lib/cjs/validator/rules/Time.d.ts +0 -5
  1124. package/lib/cjs/validator/rules/Time.js +0 -19
  1125. package/lib/cjs/validator/rules/Unique.d.ts +0 -5
  1126. package/lib/cjs/validator/rules/Unique.js +0 -69
  1127. package/lib/cjs/validator/rules/Url.d.ts +0 -5
  1128. package/lib/cjs/validator/rules/Url.js +0 -23
  1129. package/lib/cjs/validator/rules/index.d.ts +0 -47
  1130. package/lib/cjs/validator/rules/index.js +0 -51
  1131. package/lib/cjs/validator/transformers/index.d.ts +0 -7
  1132. package/lib/cjs/validator/transformers/index.js +0 -18
  1133. package/lib/cjs/validator/valueSources/index.d.ts +0 -7
  1134. package/lib/cjs/validator/valueSources/index.js +0 -18
  1135. package/lib/cjs/widgets/CalendarWidget.d.ts +0 -97
  1136. package/lib/cjs/widgets/CalendarWidget.js +0 -468
  1137. package/lib/cjs/widgets/InputWidget.d.ts +0 -24
  1138. package/lib/cjs/widgets/InputWidget.js +0 -74
  1139. package/lib/cjs/widgets/index.d.ts +0 -7
  1140. package/lib/cjs/widgets/index.js +0 -11
  1141. package/lib/mjs/CDN.d.ts +0 -29
  1142. package/lib/mjs/CDN.js +0 -75
  1143. package/lib/mjs/Element.d.ts +0 -255
  1144. package/lib/mjs/Element.js +0 -571
  1145. package/lib/mjs/Embed.d.ts +0 -42
  1146. package/lib/mjs/Embed.js +0 -293
  1147. package/lib/mjs/EventEmitter.d.ts +0 -7
  1148. package/lib/mjs/EventEmitter.js +0 -26
  1149. package/lib/mjs/Form.d.ts +0 -93
  1150. package/lib/mjs/Form.js +0 -350
  1151. package/lib/mjs/FormBuilder.d.ts +0 -6
  1152. package/lib/mjs/FormBuilder.js +0 -34
  1153. package/lib/mjs/Formio.d.ts +0 -2
  1154. package/lib/mjs/Formio.js +0 -89
  1155. package/lib/mjs/PDF.d.ts +0 -40
  1156. package/lib/mjs/PDF.js +0 -284
  1157. package/lib/mjs/PDFBuilder.d.ts +0 -55
  1158. package/lib/mjs/PDFBuilder.js +0 -473
  1159. package/lib/mjs/Webform.d.ts +0 -405
  1160. package/lib/mjs/Webform.js +0 -1431
  1161. package/lib/mjs/WebformBuilder.d.ts +0 -126
  1162. package/lib/mjs/WebformBuilder.js +0 -1576
  1163. package/lib/mjs/Wizard.d.ts +0 -96
  1164. package/lib/mjs/Wizard.js +0 -904
  1165. package/lib/mjs/WizardBuilder.d.ts +0 -48
  1166. package/lib/mjs/WizardBuilder.js +0 -262
  1167. package/lib/mjs/addons/FormioAddon.d.ts +0 -19
  1168. package/lib/mjs/addons/FormioAddon.js +0 -30
  1169. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +0 -717
  1170. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.form.d.ts +0 -590
  1171. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.form.js +0 -311
  1172. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.js +0 -388
  1173. package/lib/mjs/addons/index.d.ts +0 -625
  1174. package/lib/mjs/addons/index.js +0 -19
  1175. package/lib/mjs/builders/Builders.d.ts +0 -18
  1176. package/lib/mjs/builders/Builders.js +0 -24
  1177. package/lib/mjs/builders/index.d.ts +0 -2
  1178. package/lib/mjs/builders/index.js +0 -2
  1179. package/lib/mjs/components/Components.d.ts +0 -258
  1180. package/lib/mjs/components/Components.js +0 -75
  1181. package/lib/mjs/components/_classes/component/Component.d.ts +0 -798
  1182. package/lib/mjs/components/_classes/component/Component.form.d.ts +0 -3
  1183. package/lib/mjs/components/_classes/component/Component.form.js +0 -71
  1184. package/lib/mjs/components/_classes/component/Component.js +0 -3164
  1185. package/lib/mjs/components/_classes/component/editForm/Component.edit.addons.d.ts +0 -645
  1186. package/lib/mjs/components/_classes/component/editForm/Component.edit.addons.js +0 -39
  1187. package/lib/mjs/components/_classes/component/editForm/Component.edit.api.d.ts +0 -42
  1188. package/lib/mjs/components/_classes/component/editForm/Component.edit.api.js +0 -38
  1189. package/lib/mjs/components/_classes/component/editForm/Component.edit.conditional.d.ts +0 -113
  1190. package/lib/mjs/components/_classes/component/editForm/Component.edit.conditional.js +0 -50
  1191. package/lib/mjs/components/_classes/component/editForm/Component.edit.data.d.ts +0 -219
  1192. package/lib/mjs/components/_classes/component/editForm/Component.edit.data.js +0 -156
  1193. package/lib/mjs/components/_classes/component/editForm/Component.edit.display.d.ts +0 -160
  1194. package/lib/mjs/components/_classes/component/editForm/Component.edit.display.js +0 -199
  1195. package/lib/mjs/components/_classes/component/editForm/Component.edit.layout.d.ts +0 -44
  1196. package/lib/mjs/components/_classes/component/editForm/Component.edit.layout.js +0 -77
  1197. package/lib/mjs/components/_classes/component/editForm/Component.edit.logic.d.ts +0 -368
  1198. package/lib/mjs/components/_classes/component/editForm/Component.edit.logic.js +0 -410
  1199. package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.d.ts +0 -140
  1200. package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +0 -204
  1201. package/lib/mjs/components/_classes/component/editForm/utils.d.ts +0 -83
  1202. package/lib/mjs/components/_classes/component/editForm/utils.js +0 -132
  1203. package/lib/mjs/components/_classes/component/fixtures/comp1.d.ts +0 -33
  1204. package/lib/mjs/components/_classes/component/fixtures/comp1.js +0 -31
  1205. package/lib/mjs/components/_classes/component/fixtures/comp2.d.ts +0 -33
  1206. package/lib/mjs/components/_classes/component/fixtures/comp2.js +0 -31
  1207. package/lib/mjs/components/_classes/component/fixtures/comp3.d.ts +0 -14
  1208. package/lib/mjs/components/_classes/component/fixtures/comp3.js +0 -12
  1209. package/lib/mjs/components/_classes/component/fixtures/comp4.d.ts +0 -17
  1210. package/lib/mjs/components/_classes/component/fixtures/comp4.js +0 -16
  1211. package/lib/mjs/components/_classes/component/fixtures/index.d.ts +0 -5
  1212. package/lib/mjs/components/_classes/component/fixtures/index.js +0 -5
  1213. package/lib/mjs/components/_classes/componentModal/ComponentModal.d.ts +0 -46
  1214. package/lib/mjs/components/_classes/componentModal/ComponentModal.js +0 -177
  1215. package/lib/mjs/components/_classes/field/Field.d.ts +0 -5
  1216. package/lib/mjs/components/_classes/field/Field.js +0 -34
  1217. package/lib/mjs/components/_classes/input/Input.d.ts +0 -42
  1218. package/lib/mjs/components/_classes/input/Input.js +0 -296
  1219. package/lib/mjs/components/_classes/list/ListComponent.d.ts +0 -18
  1220. package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +0 -3
  1221. package/lib/mjs/components/_classes/list/ListComponent.form.js +0 -10
  1222. package/lib/mjs/components/_classes/list/ListComponent.js +0 -249
  1223. package/lib/mjs/components/_classes/list/editForm/ListComponent.edit.data.d.ts +0 -183
  1224. package/lib/mjs/components/_classes/list/editForm/ListComponent.edit.data.js +0 -117
  1225. package/lib/mjs/components/_classes/multivalue/Multivalue.d.ts +0 -29
  1226. package/lib/mjs/components/_classes/multivalue/Multivalue.js +0 -249
  1227. package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +0 -133
  1228. package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +0 -3
  1229. package/lib/mjs/components/_classes/nested/NestedComponent.form.js +0 -13
  1230. package/lib/mjs/components/_classes/nested/NestedComponent.js +0 -686
  1231. package/lib/mjs/components/_classes/nested/fixtures/comp1.d.ts +0 -8
  1232. package/lib/mjs/components/_classes/nested/fixtures/comp1.js +0 -14
  1233. package/lib/mjs/components/_classes/nested/fixtures/comp2.d.ts +0 -236
  1234. package/lib/mjs/components/_classes/nested/fixtures/comp2.js +0 -225
  1235. package/lib/mjs/components/_classes/nested/fixtures/comp3.d.ts +0 -26
  1236. package/lib/mjs/components/_classes/nested/fixtures/comp3.js +0 -27
  1237. package/lib/mjs/components/_classes/nested/fixtures/index.d.ts +0 -3
  1238. package/lib/mjs/components/_classes/nested/fixtures/index.js +0 -3
  1239. package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +0 -15
  1240. package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.js +0 -178
  1241. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.d.ts +0 -12
  1242. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +0 -128
  1243. package/lib/mjs/components/address/Address.d.ts +0 -66
  1244. package/lib/mjs/components/address/Address.form.d.ts +0 -3
  1245. package/lib/mjs/components/address/Address.form.js +0 -22
  1246. package/lib/mjs/components/address/Address.js +0 -541
  1247. package/lib/mjs/components/address/editForm/Address.edit.data.d.ts +0 -31
  1248. package/lib/mjs/components/address/editForm/Address.edit.data.js +0 -21
  1249. package/lib/mjs/components/address/editForm/Address.edit.display.d.ts +0 -49
  1250. package/lib/mjs/components/address/editForm/Address.edit.display.js +0 -42
  1251. package/lib/mjs/components/address/editForm/Address.edit.provider.d.ts +0 -164
  1252. package/lib/mjs/components/address/editForm/Address.edit.provider.js +0 -151
  1253. package/lib/mjs/components/address/fixtures/comp1.d.ts +0 -34
  1254. package/lib/mjs/components/address/fixtures/comp1.js +0 -69
  1255. package/lib/mjs/components/address/fixtures/comp2.d.ts +0 -62
  1256. package/lib/mjs/components/address/fixtures/comp2.js +0 -101
  1257. package/lib/mjs/components/address/fixtures/comp3.d.ts +0 -44
  1258. package/lib/mjs/components/address/fixtures/comp3.js +0 -83
  1259. package/lib/mjs/components/address/fixtures/comp4.d.ts +0 -56
  1260. package/lib/mjs/components/address/fixtures/comp4.js +0 -91
  1261. package/lib/mjs/components/address/fixtures/index.d.ts +0 -5
  1262. package/lib/mjs/components/address/fixtures/index.js +0 -5
  1263. package/lib/mjs/components/address/fixtures/values.d.ts +0 -22
  1264. package/lib/mjs/components/address/fixtures/values.js +0 -17
  1265. package/lib/mjs/components/alert/Alert.d.ts +0 -30
  1266. package/lib/mjs/components/alert/Alert.js +0 -176
  1267. package/lib/mjs/components/builder.d.ts +0 -2
  1268. package/lib/mjs/components/builder.js +0 -86
  1269. package/lib/mjs/components/button/Button.d.ts +0 -45
  1270. package/lib/mjs/components/button/Button.form.d.ts +0 -3
  1271. package/lib/mjs/components/button/Button.form.js +0 -18
  1272. package/lib/mjs/components/button/Button.js +0 -460
  1273. package/lib/mjs/components/button/editForm/Button.edit.display.d.ts +0 -360
  1274. package/lib/mjs/components/button/editForm/Button.edit.display.js +0 -247
  1275. package/lib/mjs/components/button/fixtures/comp1.d.ts +0 -15
  1276. package/lib/mjs/components/button/fixtures/comp1.js +0 -14
  1277. package/lib/mjs/components/button/fixtures/comp2.d.ts +0 -25
  1278. package/lib/mjs/components/button/fixtures/comp2.js +0 -55
  1279. package/lib/mjs/components/button/fixtures/comp3.d.ts +0 -113
  1280. package/lib/mjs/components/button/fixtures/comp3.js +0 -82
  1281. package/lib/mjs/components/button/fixtures/index.d.ts +0 -4
  1282. package/lib/mjs/components/button/fixtures/index.js +0 -4
  1283. package/lib/mjs/components/button/fixtures/values.d.ts +0 -2
  1284. package/lib/mjs/components/button/fixtures/values.js +0 -4
  1285. package/lib/mjs/components/checkbox/Checkbox.d.ts +0 -77
  1286. package/lib/mjs/components/checkbox/Checkbox.form.d.ts +0 -3
  1287. package/lib/mjs/components/checkbox/Checkbox.form.js +0 -20
  1288. package/lib/mjs/components/checkbox/Checkbox.js +0 -219
  1289. package/lib/mjs/components/checkbox/editForm/Checkbox.edit.data.d.ts +0 -5
  1290. package/lib/mjs/components/checkbox/editForm/Checkbox.edit.data.js +0 -6
  1291. package/lib/mjs/components/checkbox/editForm/Checkbox.edit.display.d.ts +0 -75
  1292. package/lib/mjs/components/checkbox/editForm/Checkbox.edit.display.js +0 -74
  1293. package/lib/mjs/components/checkbox/editForm/Checkbox.edit.validation.d.ts +0 -5
  1294. package/lib/mjs/components/checkbox/editForm/Checkbox.edit.validation.js +0 -10
  1295. package/lib/mjs/components/checkbox/fixtures/comp1.d.ts +0 -24
  1296. package/lib/mjs/components/checkbox/fixtures/comp1.js +0 -22
  1297. package/lib/mjs/components/checkbox/fixtures/comp2.d.ts +0 -12
  1298. package/lib/mjs/components/checkbox/fixtures/comp2.js +0 -11
  1299. package/lib/mjs/components/checkbox/fixtures/comp3.d.ts +0 -15
  1300. package/lib/mjs/components/checkbox/fixtures/comp3.js +0 -14
  1301. package/lib/mjs/components/checkbox/fixtures/comp4.d.ts +0 -46
  1302. package/lib/mjs/components/checkbox/fixtures/comp4.js +0 -37
  1303. package/lib/mjs/components/checkbox/fixtures/customDefaultComponent.d.ts +0 -25
  1304. package/lib/mjs/components/checkbox/fixtures/customDefaultComponent.js +0 -23
  1305. package/lib/mjs/components/checkbox/fixtures/index.d.ts +0 -6
  1306. package/lib/mjs/components/checkbox/fixtures/index.js +0 -6
  1307. package/lib/mjs/components/checkbox/fixtures/values.d.ts +0 -2
  1308. package/lib/mjs/components/checkbox/fixtures/values.js +0 -4
  1309. package/lib/mjs/components/columns/Columns.d.ts +0 -27
  1310. package/lib/mjs/components/columns/Columns.form.d.ts +0 -3
  1311. package/lib/mjs/components/columns/Columns.form.js +0 -10
  1312. package/lib/mjs/components/columns/Columns.js +0 -153
  1313. package/lib/mjs/components/columns/editForm/Columns.edit.display.d.ts +0 -58
  1314. package/lib/mjs/components/columns/editForm/Columns.edit.display.js +0 -98
  1315. package/lib/mjs/components/columns/fixtures/comp1.d.ts +0 -45
  1316. package/lib/mjs/components/columns/fixtures/comp1.js +0 -83
  1317. package/lib/mjs/components/columns/fixtures/comp2.d.ts +0 -24
  1318. package/lib/mjs/components/columns/fixtures/comp2.js +0 -125
  1319. package/lib/mjs/components/columns/fixtures/comp3.d.ts +0 -45
  1320. package/lib/mjs/components/columns/fixtures/comp3.js +0 -51
  1321. package/lib/mjs/components/columns/fixtures/index.d.ts +0 -4
  1322. package/lib/mjs/components/columns/fixtures/index.js +0 -4
  1323. package/lib/mjs/components/container/Container.d.ts +0 -15
  1324. package/lib/mjs/components/container/Container.form.d.ts +0 -3
  1325. package/lib/mjs/components/container/Container.form.js +0 -15
  1326. package/lib/mjs/components/container/Container.js +0 -76
  1327. package/lib/mjs/components/container/editForm/Container.edit.data.d.ts +0 -5
  1328. package/lib/mjs/components/container/editForm/Container.edit.data.js +0 -14
  1329. package/lib/mjs/components/container/editForm/Container.edit.display.d.ts +0 -5
  1330. package/lib/mjs/components/container/editForm/Container.edit.display.js +0 -18
  1331. package/lib/mjs/components/container/fixtures/comp1.d.ts +0 -49
  1332. package/lib/mjs/components/container/fixtures/comp1.js +0 -80
  1333. package/lib/mjs/components/container/fixtures/comp2.d.ts +0 -30
  1334. package/lib/mjs/components/container/fixtures/comp2.js +0 -32
  1335. package/lib/mjs/components/container/fixtures/comp3.d.ts +0 -77
  1336. package/lib/mjs/components/container/fixtures/comp3.js +0 -55
  1337. package/lib/mjs/components/container/fixtures/index.d.ts +0 -4
  1338. package/lib/mjs/components/container/fixtures/index.js +0 -4
  1339. package/lib/mjs/components/content/Content.d.ts +0 -17
  1340. package/lib/mjs/components/content/Content.form.d.ts +0 -3
  1341. package/lib/mjs/components/content/Content.form.js +0 -37
  1342. package/lib/mjs/components/content/Content.js +0 -71
  1343. package/lib/mjs/components/content/editForm/Content.edit.display.d.ts +0 -18
  1344. package/lib/mjs/components/content/editForm/Content.edit.display.js +0 -46
  1345. package/lib/mjs/components/content/editForm/Content.edit.logic.d.ts +0 -48
  1346. package/lib/mjs/components/content/editForm/Content.edit.logic.js +0 -98
  1347. package/lib/mjs/components/content/fixtures/comp1.d.ts +0 -13
  1348. package/lib/mjs/components/content/fixtures/comp1.js +0 -12
  1349. package/lib/mjs/components/content/fixtures/index.d.ts +0 -2
  1350. package/lib/mjs/components/content/fixtures/index.js +0 -2
  1351. package/lib/mjs/components/currency/Currency.d.ts +0 -8
  1352. package/lib/mjs/components/currency/Currency.form.d.ts +0 -3
  1353. package/lib/mjs/components/currency/Currency.form.js +0 -40
  1354. package/lib/mjs/components/currency/Currency.js +0 -174
  1355. package/lib/mjs/components/currency/editForm/Currency.edit.data.d.ts +0 -29
  1356. package/lib/mjs/components/currency/editForm/Currency.edit.data.js +0 -190
  1357. package/lib/mjs/components/currency/editForm/Currency.edit.display.d.ts +0 -18
  1358. package/lib/mjs/components/currency/editForm/Currency.edit.display.js +0 -38
  1359. package/lib/mjs/components/currency/fixtures/comp1.d.ts +0 -31
  1360. package/lib/mjs/components/currency/fixtures/comp1.js +0 -29
  1361. package/lib/mjs/components/currency/fixtures/comp2.d.ts +0 -20
  1362. package/lib/mjs/components/currency/fixtures/comp2.js +0 -18
  1363. package/lib/mjs/components/currency/fixtures/comp3.d.ts +0 -13
  1364. package/lib/mjs/components/currency/fixtures/comp3.js +0 -12
  1365. package/lib/mjs/components/currency/fixtures/comp4.d.ts +0 -17
  1366. package/lib/mjs/components/currency/fixtures/comp4.js +0 -18
  1367. package/lib/mjs/components/currency/fixtures/index.d.ts +0 -5
  1368. package/lib/mjs/components/currency/fixtures/index.js +0 -5
  1369. package/lib/mjs/components/currency/fixtures/values.d.ts +0 -2
  1370. package/lib/mjs/components/currency/fixtures/values.js +0 -6
  1371. package/lib/mjs/components/datagrid/DataGrid.d.ts +0 -88
  1372. package/lib/mjs/components/datagrid/DataGrid.form.d.ts +0 -3
  1373. package/lib/mjs/components/datagrid/DataGrid.form.js +0 -20
  1374. package/lib/mjs/components/datagrid/DataGrid.js +0 -644
  1375. package/lib/mjs/components/datagrid/editForm/DataGrid.edit.data.d.ts +0 -5
  1376. package/lib/mjs/components/datagrid/editForm/DataGrid.edit.data.js +0 -6
  1377. package/lib/mjs/components/datagrid/editForm/DataGrid.edit.display.d.ts +0 -283
  1378. package/lib/mjs/components/datagrid/editForm/DataGrid.edit.display.js +0 -147
  1379. package/lib/mjs/components/datagrid/editForm/DataGrid.edit.validation.d.ts +0 -20
  1380. package/lib/mjs/components/datagrid/editForm/DataGrid.edit.validation.js +0 -24
  1381. package/lib/mjs/components/datagrid/fixtures/comp-modal-with-required-fields.d.ts +0 -37
  1382. package/lib/mjs/components/datagrid/fixtures/comp-modal-with-required-fields.js +0 -40
  1383. package/lib/mjs/components/datagrid/fixtures/comp-on-blur-validation.d.ts +0 -0
  1384. package/lib/mjs/components/datagrid/fixtures/comp-on-blur-validation.js +0 -1
  1385. package/lib/mjs/components/datagrid/fixtures/comp-row-groups-with-def-value.d.ts +0 -63
  1386. package/lib/mjs/components/datagrid/fixtures/comp-row-groups-with-def-value.js +0 -79
  1387. package/lib/mjs/components/datagrid/fixtures/comp-with-collapsible-groups.d.ts +0 -76
  1388. package/lib/mjs/components/datagrid/fixtures/comp-with-collapsible-groups.js +0 -73
  1389. package/lib/mjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.d.ts +0 -197
  1390. package/lib/mjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.js +0 -176
  1391. package/lib/mjs/components/datagrid/fixtures/comp-with-def-value.d.ts +0 -61
  1392. package/lib/mjs/components/datagrid/fixtures/comp-with-def-value.js +0 -67
  1393. package/lib/mjs/components/datagrid/fixtures/comp-with-logic.d.ts +0 -165
  1394. package/lib/mjs/components/datagrid/fixtures/comp-with-logic.js +0 -178
  1395. package/lib/mjs/components/datagrid/fixtures/comp1.d.ts +0 -93
  1396. package/lib/mjs/components/datagrid/fixtures/comp1.js +0 -113
  1397. package/lib/mjs/components/datagrid/fixtures/comp2.d.ts +0 -18
  1398. package/lib/mjs/components/datagrid/fixtures/comp2.js +0 -27
  1399. package/lib/mjs/components/datagrid/fixtures/comp3.d.ts +0 -14
  1400. package/lib/mjs/components/datagrid/fixtures/comp3.js +0 -21
  1401. package/lib/mjs/components/datagrid/fixtures/comp4.d.ts +0 -27
  1402. package/lib/mjs/components/datagrid/fixtures/comp4.js +0 -26
  1403. package/lib/mjs/components/datagrid/fixtures/comp5.d.ts +0 -67
  1404. package/lib/mjs/components/datagrid/fixtures/comp5.js +0 -75
  1405. package/lib/mjs/components/datagrid/fixtures/comp6.d.ts +0 -567
  1406. package/lib/mjs/components/datagrid/fixtures/comp6.js +0 -294
  1407. package/lib/mjs/components/datagrid/fixtures/comp7.d.ts +0 -28
  1408. package/lib/mjs/components/datagrid/fixtures/comp7.js +0 -33
  1409. package/lib/mjs/components/datagrid/fixtures/comp8.d.ts +0 -35
  1410. package/lib/mjs/components/datagrid/fixtures/comp8.js +0 -35
  1411. package/lib/mjs/components/datagrid/fixtures/index.d.ts +0 -15
  1412. package/lib/mjs/components/datagrid/fixtures/index.js +0 -15
  1413. package/lib/mjs/components/datamap/DataMap.d.ts +0 -36
  1414. package/lib/mjs/components/datamap/DataMap.form.d.ts +0 -3
  1415. package/lib/mjs/components/datamap/DataMap.form.js +0 -15
  1416. package/lib/mjs/components/datamap/DataMap.js +0 -295
  1417. package/lib/mjs/components/datamap/editForm/DataMap.edit.data.d.ts +0 -5
  1418. package/lib/mjs/components/datamap/editForm/DataMap.edit.data.js +0 -10
  1419. package/lib/mjs/components/datamap/editForm/DataMap.edit.display.d.ts +0 -30
  1420. package/lib/mjs/components/datamap/editForm/DataMap.edit.display.js +0 -46
  1421. package/lib/mjs/components/datamap/fixtures/comp1.d.ts +0 -18
  1422. package/lib/mjs/components/datamap/fixtures/comp1.js +0 -13
  1423. package/lib/mjs/components/datamap/fixtures/formWithConditionalPanel.d.ts +0 -87
  1424. package/lib/mjs/components/datamap/fixtures/formWithConditionalPanel.js +0 -83
  1425. package/lib/mjs/components/datamap/fixtures/index.d.ts +0 -3
  1426. package/lib/mjs/components/datamap/fixtures/index.js +0 -3
  1427. package/lib/mjs/components/datetime/DateTime.d.ts +0 -39
  1428. package/lib/mjs/components/datetime/DateTime.form.d.ts +0 -3
  1429. package/lib/mjs/components/datetime/DateTime.form.js +0 -34
  1430. package/lib/mjs/components/datetime/DateTime.js +0 -187
  1431. package/lib/mjs/components/datetime/editForm/DateTime.edit.data.d.ts +0 -24
  1432. package/lib/mjs/components/datetime/editForm/DateTime.edit.data.js +0 -21
  1433. package/lib/mjs/components/datetime/editForm/DateTime.edit.date.d.ts +0 -61
  1434. package/lib/mjs/components/datetime/editForm/DateTime.edit.date.js +0 -70
  1435. package/lib/mjs/components/datetime/editForm/DateTime.edit.display.d.ts +0 -128
  1436. package/lib/mjs/components/datetime/editForm/DateTime.edit.display.js +0 -98
  1437. package/lib/mjs/components/datetime/editForm/DateTime.edit.time.d.ts +0 -9
  1438. package/lib/mjs/components/datetime/editForm/DateTime.edit.time.js +0 -34
  1439. package/lib/mjs/components/datetime/editForm/DateTime.edit.validation.d.ts +0 -40
  1440. package/lib/mjs/components/datetime/editForm/DateTime.edit.validation.js +0 -82
  1441. package/lib/mjs/components/datetime/fixtures/comp1.d.ts +0 -45
  1442. package/lib/mjs/components/datetime/fixtures/comp1.js +0 -42
  1443. package/lib/mjs/components/datetime/fixtures/comp10.d.ts +0 -102
  1444. package/lib/mjs/components/datetime/fixtures/comp10.js +0 -84
  1445. package/lib/mjs/components/datetime/fixtures/comp11.d.ts +0 -58
  1446. package/lib/mjs/components/datetime/fixtures/comp11.js +0 -53
  1447. package/lib/mjs/components/datetime/fixtures/comp12.d.ts +0 -57
  1448. package/lib/mjs/components/datetime/fixtures/comp12.js +0 -53
  1449. package/lib/mjs/components/datetime/fixtures/comp2.d.ts +0 -42
  1450. package/lib/mjs/components/datetime/fixtures/comp2.js +0 -41
  1451. package/lib/mjs/components/datetime/fixtures/comp3.d.ts +0 -51
  1452. package/lib/mjs/components/datetime/fixtures/comp3.js +0 -38
  1453. package/lib/mjs/components/datetime/fixtures/comp5.d.ts +0 -57
  1454. package/lib/mjs/components/datetime/fixtures/comp5.js +0 -46
  1455. package/lib/mjs/components/datetime/fixtures/comp6.d.ts +0 -55
  1456. package/lib/mjs/components/datetime/fixtures/comp6.js +0 -47
  1457. package/lib/mjs/components/datetime/fixtures/comp7.d.ts +0 -59
  1458. package/lib/mjs/components/datetime/fixtures/comp7.js +0 -51
  1459. package/lib/mjs/components/datetime/fixtures/comp8.d.ts +0 -59
  1460. package/lib/mjs/components/datetime/fixtures/comp8.js +0 -50
  1461. package/lib/mjs/components/datetime/fixtures/comp9.d.ts +0 -64
  1462. package/lib/mjs/components/datetime/fixtures/comp9.js +0 -93
  1463. package/lib/mjs/components/datetime/fixtures/index.d.ts +0 -12
  1464. package/lib/mjs/components/datetime/fixtures/index.js +0 -12
  1465. package/lib/mjs/components/datetime/fixtures/values.d.ts +0 -2
  1466. package/lib/mjs/components/datetime/fixtures/values.js +0 -4
  1467. package/lib/mjs/components/day/Day.d.ts +0 -163
  1468. package/lib/mjs/components/day/Day.form.d.ts +0 -3
  1469. package/lib/mjs/components/day/Day.form.js +0 -41
  1470. package/lib/mjs/components/day/Day.js +0 -568
  1471. package/lib/mjs/components/day/editForm/Day.edit.data.d.ts +0 -5
  1472. package/lib/mjs/components/day/editForm/Day.edit.data.js +0 -6
  1473. package/lib/mjs/components/day/editForm/Day.edit.day.d.ts +0 -40
  1474. package/lib/mjs/components/day/editForm/Day.edit.day.js +0 -46
  1475. package/lib/mjs/components/day/editForm/Day.edit.display.d.ts +0 -40
  1476. package/lib/mjs/components/day/editForm/Day.edit.display.js +0 -44
  1477. package/lib/mjs/components/day/editForm/Day.edit.month.d.ts +0 -40
  1478. package/lib/mjs/components/day/editForm/Day.edit.month.js +0 -38
  1479. package/lib/mjs/components/day/editForm/Day.edit.validation.d.ts +0 -29
  1480. package/lib/mjs/components/day/editForm/Day.edit.validation.js +0 -52
  1481. package/lib/mjs/components/day/editForm/Day.edit.year.d.ts +0 -40
  1482. package/lib/mjs/components/day/editForm/Day.edit.year.js +0 -56
  1483. package/lib/mjs/components/day/fixtures/comp1.d.ts +0 -46
  1484. package/lib/mjs/components/day/fixtures/comp1.js +0 -37
  1485. package/lib/mjs/components/day/fixtures/comp2.d.ts +0 -46
  1486. package/lib/mjs/components/day/fixtures/comp2.js +0 -37
  1487. package/lib/mjs/components/day/fixtures/comp3.d.ts +0 -48
  1488. package/lib/mjs/components/day/fixtures/comp3.js +0 -39
  1489. package/lib/mjs/components/day/fixtures/comp4.d.ts +0 -53
  1490. package/lib/mjs/components/day/fixtures/comp4.js +0 -54
  1491. package/lib/mjs/components/day/fixtures/comp5.d.ts +0 -29
  1492. package/lib/mjs/components/day/fixtures/comp5.js +0 -30
  1493. package/lib/mjs/components/day/fixtures/comp6.d.ts +0 -81
  1494. package/lib/mjs/components/day/fixtures/comp6.js +0 -74
  1495. package/lib/mjs/components/day/fixtures/index.d.ts +0 -7
  1496. package/lib/mjs/components/day/fixtures/index.js +0 -7
  1497. package/lib/mjs/components/day/fixtures/values.d.ts +0 -2
  1498. package/lib/mjs/components/day/fixtures/values.js +0 -4
  1499. package/lib/mjs/components/editgrid/EditGrid.d.ts +0 -99
  1500. package/lib/mjs/components/editgrid/EditGrid.form.d.ts +0 -3
  1501. package/lib/mjs/components/editgrid/EditGrid.form.js +0 -27
  1502. package/lib/mjs/components/editgrid/EditGrid.js +0 -1156
  1503. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.data.d.ts +0 -18
  1504. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.data.js +0 -18
  1505. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.d.ts +0 -82
  1506. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.js +0 -53
  1507. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.d.ts +0 -58
  1508. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.js +0 -126
  1509. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.validation.d.ts +0 -29
  1510. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.validation.js +0 -32
  1511. package/lib/mjs/components/editgrid/fixtures/comp-openWhenEmpty.d.ts +0 -34
  1512. package/lib/mjs/components/editgrid/fixtures/comp-openWhenEmpty.js +0 -34
  1513. package/lib/mjs/components/editgrid/fixtures/comp-with-basic-components.d.ts +0 -327
  1514. package/lib/mjs/components/editgrid/fixtures/comp-with-basic-components.js +0 -218
  1515. package/lib/mjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.d.ts +0 -77
  1516. package/lib/mjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.js +0 -82
  1517. package/lib/mjs/components/editgrid/fixtures/comp-with-custom-default-value.d.ts +0 -190
  1518. package/lib/mjs/components/editgrid/fixtures/comp-with-custom-default-value.js +0 -225
  1519. package/lib/mjs/components/editgrid/fixtures/comp1.d.ts +0 -89
  1520. package/lib/mjs/components/editgrid/fixtures/comp1.js +0 -126
  1521. package/lib/mjs/components/editgrid/fixtures/comp10.d.ts +0 -49
  1522. package/lib/mjs/components/editgrid/fixtures/comp10.js +0 -46
  1523. package/lib/mjs/components/editgrid/fixtures/comp11.d.ts +0 -53
  1524. package/lib/mjs/components/editgrid/fixtures/comp11.js +0 -48
  1525. package/lib/mjs/components/editgrid/fixtures/comp12.d.ts +0 -57
  1526. package/lib/mjs/components/editgrid/fixtures/comp12.js +0 -48
  1527. package/lib/mjs/components/editgrid/fixtures/comp13.d.ts +0 -64
  1528. package/lib/mjs/components/editgrid/fixtures/comp13.js +0 -62
  1529. package/lib/mjs/components/editgrid/fixtures/comp14.d.ts +0 -88
  1530. package/lib/mjs/components/editgrid/fixtures/comp14.js +0 -82
  1531. package/lib/mjs/components/editgrid/fixtures/comp15.d.ts +0 -54
  1532. package/lib/mjs/components/editgrid/fixtures/comp15.js +0 -49
  1533. package/lib/mjs/components/editgrid/fixtures/comp2.d.ts +0 -112
  1534. package/lib/mjs/components/editgrid/fixtures/comp2.js +0 -112
  1535. package/lib/mjs/components/editgrid/fixtures/comp3.d.ts +0 -27
  1536. package/lib/mjs/components/editgrid/fixtures/comp3.js +0 -26
  1537. package/lib/mjs/components/editgrid/fixtures/comp4.d.ts +0 -23
  1538. package/lib/mjs/components/editgrid/fixtures/comp4.js +0 -22
  1539. package/lib/mjs/components/editgrid/fixtures/comp5.d.ts +0 -19
  1540. package/lib/mjs/components/editgrid/fixtures/comp5.js +0 -20
  1541. package/lib/mjs/components/editgrid/fixtures/comp6.d.ts +0 -50
  1542. package/lib/mjs/components/editgrid/fixtures/comp6.js +0 -56
  1543. package/lib/mjs/components/editgrid/fixtures/comp7.d.ts +0 -129
  1544. package/lib/mjs/components/editgrid/fixtures/comp7.js +0 -121
  1545. package/lib/mjs/components/editgrid/fixtures/comp8.d.ts +0 -148
  1546. package/lib/mjs/components/editgrid/fixtures/comp8.js +0 -154
  1547. package/lib/mjs/components/editgrid/fixtures/comp9.d.ts +0 -86
  1548. package/lib/mjs/components/editgrid/fixtures/comp9.js +0 -60
  1549. package/lib/mjs/components/editgrid/fixtures/index.d.ts +0 -19
  1550. package/lib/mjs/components/editgrid/fixtures/index.js +0 -19
  1551. package/lib/mjs/components/email/Email.d.ts +0 -4
  1552. package/lib/mjs/components/email/Email.form.d.ts +0 -3
  1553. package/lib/mjs/components/email/Email.form.js +0 -15
  1554. package/lib/mjs/components/email/Email.js +0 -48
  1555. package/lib/mjs/components/email/editForm/Email.edit.display.d.ts +0 -5
  1556. package/lib/mjs/components/email/editForm/Email.edit.display.js +0 -18
  1557. package/lib/mjs/components/email/editForm/Email.edit.validation.d.ts +0 -24
  1558. package/lib/mjs/components/email/editForm/Email.edit.validation.js +0 -26
  1559. package/lib/mjs/components/email/fixtures/comp1.d.ts +0 -26
  1560. package/lib/mjs/components/email/fixtures/comp1.js +0 -24
  1561. package/lib/mjs/components/email/fixtures/comp2.d.ts +0 -23
  1562. package/lib/mjs/components/email/fixtures/comp2.js +0 -11
  1563. package/lib/mjs/components/email/fixtures/index.d.ts +0 -3
  1564. package/lib/mjs/components/email/fixtures/index.js +0 -3
  1565. package/lib/mjs/components/email/fixtures/values.d.ts +0 -2
  1566. package/lib/mjs/components/email/fixtures/values.js +0 -4
  1567. package/lib/mjs/components/fieldset/Fieldset.d.ts +0 -15
  1568. package/lib/mjs/components/fieldset/Fieldset.form.d.ts +0 -3
  1569. package/lib/mjs/components/fieldset/Fieldset.form.js +0 -10
  1570. package/lib/mjs/components/fieldset/Fieldset.js +0 -41
  1571. package/lib/mjs/components/fieldset/editForm/Fieldset.edit.display.d.ts +0 -33
  1572. package/lib/mjs/components/fieldset/editForm/Fieldset.edit.display.js +0 -42
  1573. package/lib/mjs/components/fieldset/fixtures/comp1.d.ts +0 -46
  1574. package/lib/mjs/components/fieldset/fixtures/comp1.js +0 -79
  1575. package/lib/mjs/components/fieldset/fixtures/index.d.ts +0 -2
  1576. package/lib/mjs/components/fieldset/fixtures/index.js +0 -2
  1577. package/lib/mjs/components/file/File.d.ts +0 -81
  1578. package/lib/mjs/components/file/File.form.d.ts +0 -3
  1579. package/lib/mjs/components/file/File.form.js +0 -27
  1580. package/lib/mjs/components/file/File.js +0 -774
  1581. package/lib/mjs/components/file/editForm/File.edit.data.d.ts +0 -5
  1582. package/lib/mjs/components/file/editForm/File.edit.data.js +0 -6
  1583. package/lib/mjs/components/file/editForm/File.edit.display.d.ts +0 -5
  1584. package/lib/mjs/components/file/editForm/File.edit.display.js +0 -6
  1585. package/lib/mjs/components/file/editForm/File.edit.file.d.ts +0 -275
  1586. package/lib/mjs/components/file/editForm/File.edit.file.js +0 -283
  1587. package/lib/mjs/components/file/editForm/File.edit.validation.d.ts +0 -5
  1588. package/lib/mjs/components/file/editForm/File.edit.validation.js +0 -10
  1589. package/lib/mjs/components/file/fixtures/comp1.d.ts +0 -15
  1590. package/lib/mjs/components/file/fixtures/comp1.js +0 -16
  1591. package/lib/mjs/components/file/fixtures/comp2.d.ts +0 -35
  1592. package/lib/mjs/components/file/fixtures/comp2.js +0 -29
  1593. package/lib/mjs/components/file/fixtures/index.d.ts +0 -3
  1594. package/lib/mjs/components/file/fixtures/index.js +0 -3
  1595. package/lib/mjs/components/file/fixtures/values.d.ts +0 -10
  1596. package/lib/mjs/components/file/fixtures/values.js +0 -13
  1597. package/lib/mjs/components/form/Form.d.ts +0 -98
  1598. package/lib/mjs/components/form/Form.form.d.ts +0 -3
  1599. package/lib/mjs/components/form/Form.form.js +0 -24
  1600. package/lib/mjs/components/form/Form.js +0 -717
  1601. package/lib/mjs/components/form/editForm/Form.edit.data.d.ts +0 -82
  1602. package/lib/mjs/components/form/editForm/Form.edit.data.js +0 -16
  1603. package/lib/mjs/components/form/editForm/Form.edit.display.d.ts +0 -5
  1604. package/lib/mjs/components/form/editForm/Form.edit.display.js +0 -27
  1605. package/lib/mjs/components/form/editForm/Form.edit.form.d.ts +0 -89
  1606. package/lib/mjs/components/form/editForm/Form.edit.form.js +0 -72
  1607. package/lib/mjs/components/form/fixtures/comp1.d.ts +0 -45
  1608. package/lib/mjs/components/form/fixtures/comp1.js +0 -78
  1609. package/lib/mjs/components/form/fixtures/comp2.d.ts +0 -14
  1610. package/lib/mjs/components/form/fixtures/comp2.js +0 -13
  1611. package/lib/mjs/components/form/fixtures/comp3.d.ts +0 -187
  1612. package/lib/mjs/components/form/fixtures/comp3.js +0 -168
  1613. package/lib/mjs/components/form/fixtures/comp4.d.ts +0 -107
  1614. package/lib/mjs/components/form/fixtures/comp4.js +0 -89
  1615. package/lib/mjs/components/form/fixtures/comp5.d.ts +0 -42
  1616. package/lib/mjs/components/form/fixtures/comp5.js +0 -43
  1617. package/lib/mjs/components/form/fixtures/comp6.d.ts +0 -74
  1618. package/lib/mjs/components/form/fixtures/comp6.js +0 -92
  1619. package/lib/mjs/components/form/fixtures/formModalEdit.d.ts +0 -42
  1620. package/lib/mjs/components/form/fixtures/formModalEdit.js +0 -49
  1621. package/lib/mjs/components/form/fixtures/index.d.ts +0 -8
  1622. package/lib/mjs/components/form/fixtures/index.js +0 -8
  1623. package/lib/mjs/components/form/fixtures/values.d.ts +0 -6
  1624. package/lib/mjs/components/form/fixtures/values.js +0 -7
  1625. package/lib/mjs/components/hidden/Hidden.d.ts +0 -26
  1626. package/lib/mjs/components/hidden/Hidden.form.d.ts +0 -3
  1627. package/lib/mjs/components/hidden/Hidden.form.js +0 -23
  1628. package/lib/mjs/components/hidden/Hidden.js +0 -55
  1629. package/lib/mjs/components/hidden/editForm/Hidden.edit.data.d.ts +0 -5
  1630. package/lib/mjs/components/hidden/editForm/Hidden.edit.data.js +0 -14
  1631. package/lib/mjs/components/hidden/editForm/Hidden.edit.display.d.ts +0 -5
  1632. package/lib/mjs/components/hidden/editForm/Hidden.edit.display.js +0 -42
  1633. package/lib/mjs/components/hidden/fixtures/comp1.d.ts +0 -18
  1634. package/lib/mjs/components/hidden/fixtures/comp1.js +0 -16
  1635. package/lib/mjs/components/hidden/fixtures/index.d.ts +0 -2
  1636. package/lib/mjs/components/hidden/fixtures/index.js +0 -2
  1637. package/lib/mjs/components/hidden/fixtures/values.d.ts +0 -2
  1638. package/lib/mjs/components/hidden/fixtures/values.js +0 -4
  1639. package/lib/mjs/components/html/HTML.d.ts +0 -18
  1640. package/lib/mjs/components/html/HTML.form.d.ts +0 -3
  1641. package/lib/mjs/components/html/HTML.form.js +0 -23
  1642. package/lib/mjs/components/html/HTML.js +0 -87
  1643. package/lib/mjs/components/html/editForm/HTML.edit.display.d.ts +0 -77
  1644. package/lib/mjs/components/html/editForm/HTML.edit.display.js +0 -98
  1645. package/lib/mjs/components/html/editForm/HTML.edit.logic.d.ts +0 -48
  1646. package/lib/mjs/components/html/editForm/HTML.edit.logic.js +0 -98
  1647. package/lib/mjs/components/html/fixtures/comp1.d.ts +0 -19
  1648. package/lib/mjs/components/html/fixtures/comp1.js +0 -20
  1649. package/lib/mjs/components/html/fixtures/comp2.d.ts +0 -21
  1650. package/lib/mjs/components/html/fixtures/comp2.js +0 -22
  1651. package/lib/mjs/components/html/fixtures/index.d.ts +0 -3
  1652. package/lib/mjs/components/html/fixtures/index.js +0 -3
  1653. package/lib/mjs/components/index.d.ts +0 -100
  1654. package/lib/mjs/components/index.js +0 -99
  1655. package/lib/mjs/components/number/Number.d.ts +0 -54
  1656. package/lib/mjs/components/number/Number.form.d.ts +0 -3
  1657. package/lib/mjs/components/number/Number.form.js +0 -20
  1658. package/lib/mjs/components/number/Number.js +0 -201
  1659. package/lib/mjs/components/number/editForm/Number.edit.data.d.ts +0 -18
  1660. package/lib/mjs/components/number/editForm/Number.edit.data.js +0 -30
  1661. package/lib/mjs/components/number/editForm/Number.edit.display.d.ts +0 -5
  1662. package/lib/mjs/components/number/editForm/Number.edit.display.js +0 -22
  1663. package/lib/mjs/components/number/editForm/Number.edit.validation.d.ts +0 -20
  1664. package/lib/mjs/components/number/editForm/Number.edit.validation.js +0 -44
  1665. package/lib/mjs/components/number/fixtures/comp1.d.ts +0 -33
  1666. package/lib/mjs/components/number/fixtures/comp1.js +0 -30
  1667. package/lib/mjs/components/number/fixtures/comp2.d.ts +0 -32
  1668. package/lib/mjs/components/number/fixtures/comp2.js +0 -29
  1669. package/lib/mjs/components/number/fixtures/comp3.d.ts +0 -14
  1670. package/lib/mjs/components/number/fixtures/comp3.js +0 -13
  1671. package/lib/mjs/components/number/fixtures/comp4.d.ts +0 -14
  1672. package/lib/mjs/components/number/fixtures/comp4.js +0 -13
  1673. package/lib/mjs/components/number/fixtures/comp5.d.ts +0 -20
  1674. package/lib/mjs/components/number/fixtures/comp5.js +0 -18
  1675. package/lib/mjs/components/number/fixtures/comp6.d.ts +0 -40
  1676. package/lib/mjs/components/number/fixtures/comp6.js +0 -25
  1677. package/lib/mjs/components/number/fixtures/comp7.d.ts +0 -15
  1678. package/lib/mjs/components/number/fixtures/comp7.js +0 -14
  1679. package/lib/mjs/components/number/fixtures/index.d.ts +0 -8
  1680. package/lib/mjs/components/number/fixtures/index.js +0 -8
  1681. package/lib/mjs/components/number/fixtures/values.d.ts +0 -2
  1682. package/lib/mjs/components/number/fixtures/values.js +0 -9
  1683. package/lib/mjs/components/panel/Panel.d.ts +0 -15
  1684. package/lib/mjs/components/panel/Panel.form.d.ts +0 -3
  1685. package/lib/mjs/components/panel/Panel.form.js +0 -15
  1686. package/lib/mjs/components/panel/Panel.js +0 -55
  1687. package/lib/mjs/components/panel/editForm/Panel.edit.conditional.d.ts +0 -75
  1688. package/lib/mjs/components/panel/editForm/Panel.edit.conditional.js +0 -40
  1689. package/lib/mjs/components/panel/editForm/Panel.edit.display.d.ts +0 -228
  1690. package/lib/mjs/components/panel/editForm/Panel.edit.display.js +0 -208
  1691. package/lib/mjs/components/panel/fixtures/comp1.d.ts +0 -46
  1692. package/lib/mjs/components/panel/fixtures/comp1.js +0 -78
  1693. package/lib/mjs/components/panel/fixtures/comp2.d.ts +0 -80
  1694. package/lib/mjs/components/panel/fixtures/comp2.js +0 -67
  1695. package/lib/mjs/components/panel/fixtures/index.d.ts +0 -3
  1696. package/lib/mjs/components/panel/fixtures/index.js +0 -3
  1697. package/lib/mjs/components/password/Password.d.ts +0 -3
  1698. package/lib/mjs/components/password/Password.form.d.ts +0 -3
  1699. package/lib/mjs/components/password/Password.form.js +0 -20
  1700. package/lib/mjs/components/password/Password.js +0 -34
  1701. package/lib/mjs/components/password/editForm/Password.edit.data.d.ts +0 -18
  1702. package/lib/mjs/components/password/editForm/Password.edit.data.js +0 -46
  1703. package/lib/mjs/components/password/editForm/Password.edit.display.d.ts +0 -5
  1704. package/lib/mjs/components/password/editForm/Password.edit.display.js +0 -14
  1705. package/lib/mjs/components/password/editForm/Password.edit.validation.d.ts +0 -5
  1706. package/lib/mjs/components/password/editForm/Password.edit.validation.js +0 -14
  1707. package/lib/mjs/components/password/fixtures/comp1.d.ts +0 -22
  1708. package/lib/mjs/components/password/fixtures/comp1.js +0 -20
  1709. package/lib/mjs/components/password/fixtures/comp2.d.ts +0 -27
  1710. package/lib/mjs/components/password/fixtures/comp2.js +0 -27
  1711. package/lib/mjs/components/password/fixtures/index.d.ts +0 -3
  1712. package/lib/mjs/components/password/fixtures/index.js +0 -3
  1713. package/lib/mjs/components/password/fixtures/values.d.ts +0 -2
  1714. package/lib/mjs/components/password/fixtures/values.js +0 -4
  1715. package/lib/mjs/components/phonenumber/PhoneNumber.d.ts +0 -3
  1716. package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +0 -3
  1717. package/lib/mjs/components/phonenumber/PhoneNumber.form.js +0 -32
  1718. package/lib/mjs/components/phonenumber/PhoneNumber.js +0 -27
  1719. package/lib/mjs/components/phonenumber/editForm/PhoneNumber.edit.validation.d.ts +0 -5
  1720. package/lib/mjs/components/phonenumber/editForm/PhoneNumber.edit.validation.js +0 -22
  1721. package/lib/mjs/components/phonenumber/fixtures/comp1.d.ts +0 -27
  1722. package/lib/mjs/components/phonenumber/fixtures/comp1.js +0 -25
  1723. package/lib/mjs/components/phonenumber/fixtures/index.d.ts +0 -2
  1724. package/lib/mjs/components/phonenumber/fixtures/index.js +0 -2
  1725. package/lib/mjs/components/phonenumber/fixtures/values.d.ts +0 -2
  1726. package/lib/mjs/components/phonenumber/fixtures/values.js +0 -4
  1727. package/lib/mjs/components/radio/Radio.d.ts +0 -65
  1728. package/lib/mjs/components/radio/Radio.form.d.ts +0 -3
  1729. package/lib/mjs/components/radio/Radio.form.js +0 -20
  1730. package/lib/mjs/components/radio/Radio.js +0 -372
  1731. package/lib/mjs/components/radio/editForm/Radio.edit.data.d.ts +0 -134
  1732. package/lib/mjs/components/radio/editForm/Radio.edit.data.js +0 -80
  1733. package/lib/mjs/components/radio/editForm/Radio.edit.display.d.ts +0 -40
  1734. package/lib/mjs/components/radio/editForm/Radio.edit.display.js +0 -32
  1735. package/lib/mjs/components/radio/editForm/Radio.edit.validation.d.ts +0 -18
  1736. package/lib/mjs/components/radio/editForm/Radio.edit.validation.js +0 -18
  1737. package/lib/mjs/components/radio/fixtures/comp1.d.ts +0 -28
  1738. package/lib/mjs/components/radio/fixtures/comp1.js +0 -40
  1739. package/lib/mjs/components/radio/fixtures/comp2.d.ts +0 -85
  1740. package/lib/mjs/components/radio/fixtures/comp2.js +0 -84
  1741. package/lib/mjs/components/radio/fixtures/comp3.d.ts +0 -85
  1742. package/lib/mjs/components/radio/fixtures/comp3.js +0 -88
  1743. package/lib/mjs/components/radio/fixtures/comp4.d.ts +0 -19
  1744. package/lib/mjs/components/radio/fixtures/comp4.js +0 -25
  1745. package/lib/mjs/components/radio/fixtures/comp5.d.ts +0 -39
  1746. package/lib/mjs/components/radio/fixtures/comp5.js +0 -33
  1747. package/lib/mjs/components/radio/fixtures/comp6.d.ts +0 -38
  1748. package/lib/mjs/components/radio/fixtures/comp6.js +0 -31
  1749. package/lib/mjs/components/radio/fixtures/comp7.d.ts +0 -23
  1750. package/lib/mjs/components/radio/fixtures/comp7.js +0 -19
  1751. package/lib/mjs/components/radio/fixtures/comp8.d.ts +0 -118
  1752. package/lib/mjs/components/radio/fixtures/comp8.js +0 -111
  1753. package/lib/mjs/components/radio/fixtures/comp9.d.ts +0 -35
  1754. package/lib/mjs/components/radio/fixtures/comp9.js +0 -30
  1755. package/lib/mjs/components/radio/fixtures/index.d.ts +0 -10
  1756. package/lib/mjs/components/radio/fixtures/index.js +0 -10
  1757. package/lib/mjs/components/radio/fixtures/values.d.ts +0 -2
  1758. package/lib/mjs/components/radio/fixtures/values.js +0 -5
  1759. package/lib/mjs/components/recaptcha/ReCaptcha.d.ts +0 -23
  1760. package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +0 -3
  1761. package/lib/mjs/components/recaptcha/ReCaptcha.form.js +0 -26
  1762. package/lib/mjs/components/recaptcha/ReCaptcha.js +0 -139
  1763. package/lib/mjs/components/recaptcha/editForm/ReCaptcha.edit.display.d.ts +0 -44
  1764. package/lib/mjs/components/recaptcha/editForm/ReCaptcha.edit.display.js +0 -106
  1765. package/lib/mjs/components/recaptcha/fixtures/comp1.d.ts +0 -8
  1766. package/lib/mjs/components/recaptcha/fixtures/comp1.js +0 -7
  1767. package/lib/mjs/components/recaptcha/fixtures/index.d.ts +0 -2
  1768. package/lib/mjs/components/recaptcha/fixtures/index.js +0 -2
  1769. package/lib/mjs/components/resource/Resource.d.ts +0 -10
  1770. package/lib/mjs/components/resource/Resource.form.d.ts +0 -3
  1771. package/lib/mjs/components/resource/Resource.form.js +0 -10
  1772. package/lib/mjs/components/resource/Resource.js +0 -33
  1773. package/lib/mjs/components/resource/editForm/Resource.edit.display.d.ts +0 -173
  1774. package/lib/mjs/components/resource/editForm/Resource.edit.display.js +0 -100
  1775. package/lib/mjs/components/resource/fixtures/comp1.d.ts +0 -30
  1776. package/lib/mjs/components/resource/fixtures/comp1.js +0 -28
  1777. package/lib/mjs/components/resource/fixtures/comp2.d.ts +0 -35
  1778. package/lib/mjs/components/resource/fixtures/comp2.js +0 -29
  1779. package/lib/mjs/components/resource/fixtures/index.d.ts +0 -3
  1780. package/lib/mjs/components/resource/fixtures/index.js +0 -3
  1781. package/lib/mjs/components/select/Select.d.ts +0 -145
  1782. package/lib/mjs/components/select/Select.form.d.ts +0 -3
  1783. package/lib/mjs/components/select/Select.form.js +0 -20
  1784. package/lib/mjs/components/select/Select.js +0 -1491
  1785. package/lib/mjs/components/select/editForm/Select.edit.data.d.ts +0 -1039
  1786. package/lib/mjs/components/select/editForm/Select.edit.data.js +0 -627
  1787. package/lib/mjs/components/select/editForm/Select.edit.display.d.ts +0 -27
  1788. package/lib/mjs/components/select/editForm/Select.edit.display.js +0 -26
  1789. package/lib/mjs/components/select/editForm/Select.edit.validation.d.ts +0 -30
  1790. package/lib/mjs/components/select/editForm/Select.edit.validation.js +0 -33
  1791. package/lib/mjs/components/select/fixtures/comp1.d.ts +0 -40
  1792. package/lib/mjs/components/select/fixtures/comp1.js +0 -64
  1793. package/lib/mjs/components/select/fixtures/comp10.d.ts +0 -41
  1794. package/lib/mjs/components/select/fixtures/comp10.js +0 -30
  1795. package/lib/mjs/components/select/fixtures/comp11.d.ts +0 -28
  1796. package/lib/mjs/components/select/fixtures/comp11.js +0 -22
  1797. package/lib/mjs/components/select/fixtures/comp12.d.ts +0 -53
  1798. package/lib/mjs/components/select/fixtures/comp12.js +0 -27
  1799. package/lib/mjs/components/select/fixtures/comp13.d.ts +0 -28
  1800. package/lib/mjs/components/select/fixtures/comp13.js +0 -29
  1801. package/lib/mjs/components/select/fixtures/comp14.d.ts +0 -40
  1802. package/lib/mjs/components/select/fixtures/comp14.js +0 -25
  1803. package/lib/mjs/components/select/fixtures/comp15.d.ts +0 -50
  1804. package/lib/mjs/components/select/fixtures/comp15.js +0 -39
  1805. package/lib/mjs/components/select/fixtures/comp16.d.ts +0 -34
  1806. package/lib/mjs/components/select/fixtures/comp16.js +0 -31
  1807. package/lib/mjs/components/select/fixtures/comp17.d.ts +0 -51
  1808. package/lib/mjs/components/select/fixtures/comp17.js +0 -41
  1809. package/lib/mjs/components/select/fixtures/comp18.d.ts +0 -49
  1810. package/lib/mjs/components/select/fixtures/comp18.js +0 -40
  1811. package/lib/mjs/components/select/fixtures/comp19.d.ts +0 -23
  1812. package/lib/mjs/components/select/fixtures/comp19.js +0 -34
  1813. package/lib/mjs/components/select/fixtures/comp2.d.ts +0 -41
  1814. package/lib/mjs/components/select/fixtures/comp2.js +0 -65
  1815. package/lib/mjs/components/select/fixtures/comp3.d.ts +0 -35
  1816. package/lib/mjs/components/select/fixtures/comp3.js +0 -206
  1817. package/lib/mjs/components/select/fixtures/comp4.d.ts +0 -103
  1818. package/lib/mjs/components/select/fixtures/comp4.js +0 -104
  1819. package/lib/mjs/components/select/fixtures/comp5.d.ts +0 -21
  1820. package/lib/mjs/components/select/fixtures/comp5.js +0 -26
  1821. package/lib/mjs/components/select/fixtures/comp6.d.ts +0 -20
  1822. package/lib/mjs/components/select/fixtures/comp6.js +0 -28
  1823. package/lib/mjs/components/select/fixtures/comp7.d.ts +0 -63
  1824. package/lib/mjs/components/select/fixtures/comp7.js +0 -44
  1825. package/lib/mjs/components/select/fixtures/comp8.d.ts +0 -72
  1826. package/lib/mjs/components/select/fixtures/comp8.js +0 -35
  1827. package/lib/mjs/components/select/fixtures/comp9.d.ts +0 -88
  1828. package/lib/mjs/components/select/fixtures/comp9.js +0 -65
  1829. package/lib/mjs/components/select/fixtures/index.d.ts +0 -20
  1830. package/lib/mjs/components/select/fixtures/index.js +0 -20
  1831. package/lib/mjs/components/select/fixtures/values.d.ts +0 -2
  1832. package/lib/mjs/components/select/fixtures/values.js +0 -5
  1833. package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +0 -52
  1834. package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +0 -3
  1835. package/lib/mjs/components/selectboxes/SelectBoxes.form.js +0 -19
  1836. package/lib/mjs/components/selectboxes/SelectBoxes.js +0 -255
  1837. package/lib/mjs/components/selectboxes/editForm/SelectBoxes.edit.validation.d.ts +0 -9
  1838. package/lib/mjs/components/selectboxes/editForm/SelectBoxes.edit.validation.js +0 -34
  1839. package/lib/mjs/components/selectboxes/fixtures/comp1.d.ts +0 -24
  1840. package/lib/mjs/components/selectboxes/fixtures/comp1.js +0 -52
  1841. package/lib/mjs/components/selectboxes/fixtures/comp2.d.ts +0 -24
  1842. package/lib/mjs/components/selectboxes/fixtures/comp2.js +0 -52
  1843. package/lib/mjs/components/selectboxes/fixtures/comp3.d.ts +0 -23
  1844. package/lib/mjs/components/selectboxes/fixtures/comp3.js +0 -19
  1845. package/lib/mjs/components/selectboxes/fixtures/comp4.d.ts +0 -66
  1846. package/lib/mjs/components/selectboxes/fixtures/comp4.js +0 -79
  1847. package/lib/mjs/components/selectboxes/fixtures/comp5.d.ts +0 -37
  1848. package/lib/mjs/components/selectboxes/fixtures/comp5.js +0 -31
  1849. package/lib/mjs/components/selectboxes/fixtures/comp6.d.ts +0 -14
  1850. package/lib/mjs/components/selectboxes/fixtures/comp6.js +0 -13
  1851. package/lib/mjs/components/selectboxes/fixtures/comp7.d.ts +0 -18
  1852. package/lib/mjs/components/selectboxes/fixtures/comp7.js +0 -29
  1853. package/lib/mjs/components/selectboxes/fixtures/index.d.ts +0 -8
  1854. package/lib/mjs/components/selectboxes/fixtures/index.js +0 -8
  1855. package/lib/mjs/components/selectboxes/fixtures/values.d.ts +0 -6
  1856. package/lib/mjs/components/selectboxes/fixtures/values.js +0 -22
  1857. package/lib/mjs/components/signature/Signature.d.ts +0 -46
  1858. package/lib/mjs/components/signature/Signature.form.d.ts +0 -3
  1859. package/lib/mjs/components/signature/Signature.form.js +0 -20
  1860. package/lib/mjs/components/signature/Signature.js +0 -255
  1861. package/lib/mjs/components/signature/editForm/Signature.edit.data.d.ts +0 -5
  1862. package/lib/mjs/components/signature/editForm/Signature.edit.data.js +0 -14
  1863. package/lib/mjs/components/signature/editForm/Signature.edit.display.d.ts +0 -51
  1864. package/lib/mjs/components/signature/editForm/Signature.edit.display.js +0 -69
  1865. package/lib/mjs/components/signature/editForm/Signature.edit.validation.d.ts +0 -5
  1866. package/lib/mjs/components/signature/editForm/Signature.edit.validation.js +0 -10
  1867. package/lib/mjs/components/signature/fixtures/comp1.d.ts +0 -30
  1868. package/lib/mjs/components/signature/fixtures/comp1.js +0 -28
  1869. package/lib/mjs/components/signature/fixtures/index.d.ts +0 -2
  1870. package/lib/mjs/components/signature/fixtures/index.js +0 -2
  1871. package/lib/mjs/components/signature/fixtures/values.d.ts +0 -2
  1872. package/lib/mjs/components/signature/fixtures/values.js +0 -5
  1873. package/lib/mjs/components/survey/Survey.d.ts +0 -37
  1874. package/lib/mjs/components/survey/Survey.form.d.ts +0 -3
  1875. package/lib/mjs/components/survey/Survey.form.js +0 -20
  1876. package/lib/mjs/components/survey/Survey.js +0 -153
  1877. package/lib/mjs/components/survey/editForm/Survey.edit.data.d.ts +0 -44
  1878. package/lib/mjs/components/survey/editForm/Survey.edit.data.js +0 -70
  1879. package/lib/mjs/components/survey/editForm/Survey.edit.display.d.ts +0 -5
  1880. package/lib/mjs/components/survey/editForm/Survey.edit.display.js +0 -6
  1881. package/lib/mjs/components/survey/editForm/Survey.edit.validation.d.ts +0 -5
  1882. package/lib/mjs/components/survey/editForm/Survey.edit.validation.js +0 -6
  1883. package/lib/mjs/components/survey/fixtures/comp1.d.ts +0 -31
  1884. package/lib/mjs/components/survey/fixtures/comp1.js +0 -53
  1885. package/lib/mjs/components/survey/fixtures/comp2.d.ts +0 -31
  1886. package/lib/mjs/components/survey/fixtures/comp2.js +0 -53
  1887. package/lib/mjs/components/survey/fixtures/index.d.ts +0 -3
  1888. package/lib/mjs/components/survey/fixtures/index.js +0 -3
  1889. package/lib/mjs/components/survey/fixtures/values.d.ts +0 -5
  1890. package/lib/mjs/components/survey/fixtures/values.js +0 -10
  1891. package/lib/mjs/components/table/Table.d.ts +0 -23
  1892. package/lib/mjs/components/table/Table.form.d.ts +0 -3
  1893. package/lib/mjs/components/table/Table.form.js +0 -10
  1894. package/lib/mjs/components/table/Table.js +0 -169
  1895. package/lib/mjs/components/table/editForm/Table.edit.display.d.ts +0 -55
  1896. package/lib/mjs/components/table/editForm/Table.edit.display.js +0 -109
  1897. package/lib/mjs/components/table/fixtures/comp1.d.ts +0 -53
  1898. package/lib/mjs/components/table/fixtures/comp1.js +0 -235
  1899. package/lib/mjs/components/table/fixtures/index.d.ts +0 -2
  1900. package/lib/mjs/components/table/fixtures/index.js +0 -2
  1901. package/lib/mjs/components/tabs/Tabs.d.ts +0 -30
  1902. package/lib/mjs/components/tabs/Tabs.form.d.ts +0 -3
  1903. package/lib/mjs/components/tabs/Tabs.form.js +0 -10
  1904. package/lib/mjs/components/tabs/Tabs.js +0 -201
  1905. package/lib/mjs/components/tabs/editForm/Tabs.edit.display.d.ts +0 -49
  1906. package/lib/mjs/components/tabs/editForm/Tabs.edit.display.js +0 -66
  1907. package/lib/mjs/components/tabs/fixtures/comp1.d.ts +0 -23
  1908. package/lib/mjs/components/tabs/fixtures/comp1.js +0 -31
  1909. package/lib/mjs/components/tabs/fixtures/index.d.ts +0 -2
  1910. package/lib/mjs/components/tabs/fixtures/index.js +0 -2
  1911. package/lib/mjs/components/tags/Tags.d.ts +0 -41
  1912. package/lib/mjs/components/tags/Tags.form.d.ts +0 -3
  1913. package/lib/mjs/components/tags/Tags.form.js +0 -10
  1914. package/lib/mjs/components/tags/Tags.js +0 -171
  1915. package/lib/mjs/components/tags/editForm/Tags.edit.data.d.ts +0 -51
  1916. package/lib/mjs/components/tags/editForm/Tags.edit.data.js +0 -37
  1917. package/lib/mjs/components/tags/fixtures/comp1.d.ts +0 -20
  1918. package/lib/mjs/components/tags/fixtures/comp1.js +0 -18
  1919. package/lib/mjs/components/tags/fixtures/comp2.d.ts +0 -10
  1920. package/lib/mjs/components/tags/fixtures/comp2.js +0 -9
  1921. package/lib/mjs/components/tags/fixtures/comp3.d.ts +0 -23
  1922. package/lib/mjs/components/tags/fixtures/comp3.js +0 -18
  1923. package/lib/mjs/components/tags/fixtures/comp4.d.ts +0 -9
  1924. package/lib/mjs/components/tags/fixtures/comp4.js +0 -8
  1925. package/lib/mjs/components/tags/fixtures/comp5.d.ts +0 -24
  1926. package/lib/mjs/components/tags/fixtures/comp5.js +0 -22
  1927. package/lib/mjs/components/tags/fixtures/comp6.d.ts +0 -17
  1928. package/lib/mjs/components/tags/fixtures/comp6.js +0 -18
  1929. package/lib/mjs/components/tags/fixtures/index.d.ts +0 -7
  1930. package/lib/mjs/components/tags/fixtures/index.js +0 -7
  1931. package/lib/mjs/components/tags/fixtures/values.d.ts +0 -2
  1932. package/lib/mjs/components/tags/fixtures/values.js +0 -4
  1933. package/lib/mjs/components/textarea/TextArea.d.ts +0 -37
  1934. package/lib/mjs/components/textarea/TextArea.form.d.ts +0 -3
  1935. package/lib/mjs/components/textarea/TextArea.form.js +0 -15
  1936. package/lib/mjs/components/textarea/TextArea.js +0 -529
  1937. package/lib/mjs/components/textarea/editForm/TextArea.edit.display.d.ts +0 -355
  1938. package/lib/mjs/components/textarea/editForm/TextArea.edit.display.js +0 -258
  1939. package/lib/mjs/components/textarea/editForm/TextArea.edit.validation.d.ts +0 -10
  1940. package/lib/mjs/components/textarea/editForm/TextArea.edit.validation.js +0 -20
  1941. package/lib/mjs/components/textarea/fixtures/comp1.d.ts +0 -31
  1942. package/lib/mjs/components/textarea/fixtures/comp1.js +0 -29
  1943. package/lib/mjs/components/textarea/fixtures/comp2.d.ts +0 -29
  1944. package/lib/mjs/components/textarea/fixtures/comp2.js +0 -27
  1945. package/lib/mjs/components/textarea/fixtures/comp3.d.ts +0 -27
  1946. package/lib/mjs/components/textarea/fixtures/comp3.js +0 -27
  1947. package/lib/mjs/components/textarea/fixtures/comp4.d.ts +0 -30
  1948. package/lib/mjs/components/textarea/fixtures/comp4.js +0 -25
  1949. package/lib/mjs/components/textarea/fixtures/index.d.ts +0 -5
  1950. package/lib/mjs/components/textarea/fixtures/index.js +0 -5
  1951. package/lib/mjs/components/textarea/fixtures/values.d.ts +0 -2
  1952. package/lib/mjs/components/textarea/fixtures/values.js +0 -4
  1953. package/lib/mjs/components/textfield/TextField.d.ts +0 -60
  1954. package/lib/mjs/components/textfield/TextField.form.d.ts +0 -3
  1955. package/lib/mjs/components/textfield/TextField.form.js +0 -20
  1956. package/lib/mjs/components/textfield/TextField.js +0 -229
  1957. package/lib/mjs/components/textfield/editForm/TextField.edit.data.d.ts +0 -46
  1958. package/lib/mjs/components/textfield/editForm/TextField.edit.data.js +0 -56
  1959. package/lib/mjs/components/textfield/editForm/TextField.edit.display.d.ts +0 -248
  1960. package/lib/mjs/components/textfield/editForm/TextField.edit.display.js +0 -203
  1961. package/lib/mjs/components/textfield/editForm/TextField.edit.validation.d.ts +0 -10
  1962. package/lib/mjs/components/textfield/editForm/TextField.edit.validation.js +0 -47
  1963. package/lib/mjs/components/textfield/fixtures/comp-with-display-and-value-masks.d.ts +0 -47
  1964. package/lib/mjs/components/textfield/fixtures/comp-with-display-and-value-masks.js +0 -46
  1965. package/lib/mjs/components/textfield/fixtures/comp1.d.ts +0 -33
  1966. package/lib/mjs/components/textfield/fixtures/comp1.js +0 -31
  1967. package/lib/mjs/components/textfield/fixtures/comp2.d.ts +0 -33
  1968. package/lib/mjs/components/textfield/fixtures/comp2.js +0 -31
  1969. package/lib/mjs/components/textfield/fixtures/comp3.d.ts +0 -33
  1970. package/lib/mjs/components/textfield/fixtures/comp3.js +0 -31
  1971. package/lib/mjs/components/textfield/fixtures/comp4.d.ts +0 -23
  1972. package/lib/mjs/components/textfield/fixtures/comp4.js +0 -25
  1973. package/lib/mjs/components/textfield/fixtures/comp5.d.ts +0 -12
  1974. package/lib/mjs/components/textfield/fixtures/comp5.js +0 -11
  1975. package/lib/mjs/components/textfield/fixtures/comp6.d.ts +0 -25
  1976. package/lib/mjs/components/textfield/fixtures/comp6.js +0 -19
  1977. package/lib/mjs/components/textfield/fixtures/comp7.d.ts +0 -37
  1978. package/lib/mjs/components/textfield/fixtures/comp7.js +0 -36
  1979. package/lib/mjs/components/textfield/fixtures/index.d.ts +0 -9
  1980. package/lib/mjs/components/textfield/fixtures/index.js +0 -9
  1981. package/lib/mjs/components/textfield/fixtures/values.d.ts +0 -2
  1982. package/lib/mjs/components/textfield/fixtures/values.js +0 -5
  1983. package/lib/mjs/components/time/Time.d.ts +0 -27
  1984. package/lib/mjs/components/time/Time.form.d.ts +0 -3
  1985. package/lib/mjs/components/time/Time.form.js +0 -15
  1986. package/lib/mjs/components/time/Time.js +0 -153
  1987. package/lib/mjs/components/time/editForm/Time.edit.data.d.ts +0 -10
  1988. package/lib/mjs/components/time/editForm/Time.edit.data.js +0 -11
  1989. package/lib/mjs/components/time/editForm/Time.edit.display.d.ts +0 -52
  1990. package/lib/mjs/components/time/editForm/Time.edit.display.js +0 -40
  1991. package/lib/mjs/components/time/fixtures/comp1.d.ts +0 -24
  1992. package/lib/mjs/components/time/fixtures/comp1.js +0 -22
  1993. package/lib/mjs/components/time/fixtures/comp2.d.ts +0 -10
  1994. package/lib/mjs/components/time/fixtures/comp2.js +0 -9
  1995. package/lib/mjs/components/time/fixtures/comp3.d.ts +0 -15
  1996. package/lib/mjs/components/time/fixtures/comp3.js +0 -16
  1997. package/lib/mjs/components/time/fixtures/index.d.ts +0 -6
  1998. package/lib/mjs/components/time/fixtures/index.js +0 -6
  1999. package/lib/mjs/components/time/fixtures/timeForm.d.ts +0 -47
  2000. package/lib/mjs/components/time/fixtures/timeForm.js +0 -50
  2001. package/lib/mjs/components/time/fixtures/timeForm2.d.ts +0 -38
  2002. package/lib/mjs/components/time/fixtures/timeForm2.js +0 -42
  2003. package/lib/mjs/components/time/fixtures/values.d.ts +0 -2
  2004. package/lib/mjs/components/time/fixtures/values.js +0 -5
  2005. package/lib/mjs/components/tree/Node.d.ts +0 -55
  2006. package/lib/mjs/components/tree/Node.js +0 -179
  2007. package/lib/mjs/components/tree/Tree.d.ts +0 -48
  2008. package/lib/mjs/components/tree/Tree.form.d.ts +0 -3
  2009. package/lib/mjs/components/tree/Tree.form.js +0 -15
  2010. package/lib/mjs/components/tree/Tree.js +0 -384
  2011. package/lib/mjs/components/tree/editForm/Tree.edit.data.d.ts +0 -5
  2012. package/lib/mjs/components/tree/editForm/Tree.edit.data.js +0 -7
  2013. package/lib/mjs/components/tree/editForm/Tree.edit.display.d.ts +0 -9
  2014. package/lib/mjs/components/tree/editForm/Tree.edit.display.js +0 -10
  2015. package/lib/mjs/components/tree/fixtures/comp1.d.ts +0 -23
  2016. package/lib/mjs/components/tree/fixtures/comp1.js +0 -22
  2017. package/lib/mjs/components/tree/fixtures/comp2.d.ts +0 -116
  2018. package/lib/mjs/components/tree/fixtures/comp2.js +0 -80
  2019. package/lib/mjs/components/tree/fixtures/comp3.d.ts +0 -24
  2020. package/lib/mjs/components/tree/fixtures/comp3.js +0 -23
  2021. package/lib/mjs/components/tree/fixtures/comp4.d.ts +0 -42
  2022. package/lib/mjs/components/tree/fixtures/comp4.js +0 -45
  2023. package/lib/mjs/components/tree/fixtures/index.d.ts +0 -5
  2024. package/lib/mjs/components/tree/fixtures/index.js +0 -5
  2025. package/lib/mjs/components/unknown/Unknown.d.ts +0 -28
  2026. package/lib/mjs/components/unknown/Unknown.form.d.ts +0 -34
  2027. package/lib/mjs/components/unknown/Unknown.form.js +0 -19
  2028. package/lib/mjs/components/unknown/Unknown.js +0 -24
  2029. package/lib/mjs/components/unknown/editForm/Unknown.edit.display.d.ts +0 -24
  2030. package/lib/mjs/components/unknown/editForm/Unknown.edit.display.js +0 -25
  2031. package/lib/mjs/components/unknown/fixtures/comp1.d.ts +0 -7
  2032. package/lib/mjs/components/unknown/fixtures/comp1.js +0 -6
  2033. package/lib/mjs/components/unknown/fixtures/index.d.ts +0 -2
  2034. package/lib/mjs/components/unknown/fixtures/index.js +0 -2
  2035. package/lib/mjs/components/url/Url.d.ts +0 -3
  2036. package/lib/mjs/components/url/Url.form.d.ts +0 -3
  2037. package/lib/mjs/components/url/Url.form.js +0 -20
  2038. package/lib/mjs/components/url/Url.js +0 -33
  2039. package/lib/mjs/components/url/editForm/Url.edit.data.d.ts +0 -5
  2040. package/lib/mjs/components/url/editForm/Url.edit.data.js +0 -6
  2041. package/lib/mjs/components/url/editForm/Url.edit.display.d.ts +0 -5
  2042. package/lib/mjs/components/url/editForm/Url.edit.display.js +0 -18
  2043. package/lib/mjs/components/url/editForm/Url.edit.validation.d.ts +0 -5
  2044. package/lib/mjs/components/url/editForm/Url.edit.validation.js +0 -10
  2045. package/lib/mjs/components/url/fixtures/comp1.d.ts +0 -26
  2046. package/lib/mjs/components/url/fixtures/comp1.js +0 -24
  2047. package/lib/mjs/components/url/fixtures/comp2.d.ts +0 -26
  2048. package/lib/mjs/components/url/fixtures/comp2.js +0 -21
  2049. package/lib/mjs/components/url/fixtures/index.d.ts +0 -3
  2050. package/lib/mjs/components/url/fixtures/index.js +0 -3
  2051. package/lib/mjs/components/url/fixtures/values.d.ts +0 -2
  2052. package/lib/mjs/components/url/fixtures/values.js +0 -4
  2053. package/lib/mjs/components/well/Well.d.ts +0 -15
  2054. package/lib/mjs/components/well/Well.form.d.ts +0 -3
  2055. package/lib/mjs/components/well/Well.form.js +0 -10
  2056. package/lib/mjs/components/well/Well.js +0 -39
  2057. package/lib/mjs/components/well/editForm/Well.edit.display.d.ts +0 -5
  2058. package/lib/mjs/components/well/editForm/Well.edit.display.js +0 -30
  2059. package/lib/mjs/components/well/fixtures/comp1.d.ts +0 -43
  2060. package/lib/mjs/components/well/fixtures/comp1.js +0 -75
  2061. package/lib/mjs/components/well/fixtures/index.d.ts +0 -2
  2062. package/lib/mjs/components/well/fixtures/index.js +0 -2
  2063. package/lib/mjs/displays/Displays.d.ts +0 -18
  2064. package/lib/mjs/displays/Displays.js +0 -24
  2065. package/lib/mjs/displays/index.d.ts +0 -2
  2066. package/lib/mjs/displays/index.js +0 -2
  2067. package/lib/mjs/formio.embed.d.ts +0 -2
  2068. package/lib/mjs/formio.embed.js +0 -97
  2069. package/lib/mjs/formio.form.d.ts +0 -23
  2070. package/lib/mjs/formio.form.js +0 -146
  2071. package/lib/mjs/i18n.d.ts +0 -13
  2072. package/lib/mjs/i18n.js +0 -14
  2073. package/lib/mjs/index.d.ts +0 -4
  2074. package/lib/mjs/index.js +0 -13
  2075. package/lib/mjs/licenses/Licenses.d.ts +0 -7
  2076. package/lib/mjs/licenses/Licenses.js +0 -17
  2077. package/lib/mjs/licenses/index.d.ts +0 -2
  2078. package/lib/mjs/licenses/index.js +0 -2
  2079. package/lib/mjs/package.json +0 -3
  2080. package/lib/mjs/pdf.image.d.ts +0 -2
  2081. package/lib/mjs/pdf.image.js +0 -94
  2082. package/lib/mjs/providers/Providers.d.ts +0 -84
  2083. package/lib/mjs/providers/Providers.js +0 -29
  2084. package/lib/mjs/providers/address/AddressProvider.d.ts +0 -17
  2085. package/lib/mjs/providers/address/AddressProvider.js +0 -54
  2086. package/lib/mjs/providers/address/AzureAddressProvider.d.ts +0 -12
  2087. package/lib/mjs/providers/address/AzureAddressProvider.js +0 -27
  2088. package/lib/mjs/providers/address/CustomAddressProvider.d.ts +0 -7
  2089. package/lib/mjs/providers/address/CustomAddressProvider.js +0 -22
  2090. package/lib/mjs/providers/address/GoogleAddressProvider.d.ts +0 -18
  2091. package/lib/mjs/providers/address/GoogleAddressProvider.js +0 -109
  2092. package/lib/mjs/providers/address/NominatimAddressProvider.d.ts +0 -11
  2093. package/lib/mjs/providers/address/NominatimAddressProvider.js +0 -27
  2094. package/lib/mjs/providers/address/index.d.ts +0 -6
  2095. package/lib/mjs/providers/address/index.js +0 -10
  2096. package/lib/mjs/providers/auth/index.d.ts +0 -2
  2097. package/lib/mjs/providers/auth/index.js +0 -1
  2098. package/lib/mjs/providers/index.d.ts +0 -2
  2099. package/lib/mjs/providers/index.js +0 -2
  2100. package/lib/mjs/providers/processor/fileProcessor.d.ts +0 -2
  2101. package/lib/mjs/providers/processor/fileProcessor.js +0 -38
  2102. package/lib/mjs/providers/storage/azure.d.ts +0 -17
  2103. package/lib/mjs/providers/storage/azure.js +0 -30
  2104. package/lib/mjs/providers/storage/base64.d.ts +0 -10
  2105. package/lib/mjs/providers/storage/base64.js +0 -29
  2106. package/lib/mjs/providers/storage/dropbox.d.ts +0 -8
  2107. package/lib/mjs/providers/storage/dropbox.js +0 -55
  2108. package/lib/mjs/providers/storage/googleDrive.d.ts +0 -9
  2109. package/lib/mjs/providers/storage/googleDrive.js +0 -58
  2110. package/lib/mjs/providers/storage/index.d.ts +0 -15
  2111. package/lib/mjs/providers/storage/index.js +0 -14
  2112. package/lib/mjs/providers/storage/indexeddb.d.ts +0 -11
  2113. package/lib/mjs/providers/storage/indexeddb.js +0 -118
  2114. package/lib/mjs/providers/storage/s3.d.ts +0 -18
  2115. package/lib/mjs/providers/storage/s3.js +0 -48
  2116. package/lib/mjs/providers/storage/uploadAdapter.d.ts +0 -1
  2117. package/lib/mjs/providers/storage/uploadAdapter.js +0 -54
  2118. package/lib/mjs/providers/storage/url.d.ts +0 -11
  2119. package/lib/mjs/providers/storage/url.js +0 -140
  2120. package/lib/mjs/providers/storage/xhr.d.ts +0 -7
  2121. package/lib/mjs/providers/storage/xhr.js +0 -93
  2122. package/lib/mjs/templates/Templates.d.ts +0 -11
  2123. package/lib/mjs/templates/Templates.js +0 -41
  2124. package/lib/mjs/templates/index.d.ts +0 -229
  2125. package/lib/mjs/templates/index.js +0 -4
  2126. package/lib/mjs/translations/en.d.ts +0 -66
  2127. package/lib/mjs/translations/en.js +0 -65
  2128. package/lib/mjs/utils/ChoicesWrapper.d.ts +0 -38
  2129. package/lib/mjs/utils/ChoicesWrapper.js +0 -188
  2130. package/lib/mjs/utils/Evaluator.d.ts +0 -4
  2131. package/lib/mjs/utils/Evaluator.js +0 -64
  2132. package/lib/mjs/utils/builder.d.ts +0 -22
  2133. package/lib/mjs/utils/builder.js +0 -79
  2134. package/lib/mjs/utils/calendarUtils.d.ts +0 -41
  2135. package/lib/mjs/utils/calendarUtils.js +0 -128
  2136. package/lib/mjs/utils/conditionOperators/ConditionOperator.d.ts +0 -7
  2137. package/lib/mjs/utils/conditionOperators/ConditionOperator.js +0 -23
  2138. package/lib/mjs/utils/conditionOperators/DateGreaterThan.d.ts +0 -13
  2139. package/lib/mjs/utils/conditionOperators/DateGreaterThan.js +0 -31
  2140. package/lib/mjs/utils/conditionOperators/DateGreaterThanOrEqual.d.ts +0 -4
  2141. package/lib/mjs/utils/conditionOperators/DateGreaterThanOrEqual.js +0 -12
  2142. package/lib/mjs/utils/conditionOperators/DateLessThan.d.ts +0 -4
  2143. package/lib/mjs/utils/conditionOperators/DateLessThan.js +0 -12
  2144. package/lib/mjs/utils/conditionOperators/DateLessThanOrEqual.d.ts +0 -4
  2145. package/lib/mjs/utils/conditionOperators/DateLessThanOrEqual.js +0 -12
  2146. package/lib/mjs/utils/conditionOperators/EndsWith.d.ts +0 -7
  2147. package/lib/mjs/utils/conditionOperators/EndsWith.js +0 -13
  2148. package/lib/mjs/utils/conditionOperators/GreaterThan.d.ts +0 -7
  2149. package/lib/mjs/utils/conditionOperators/GreaterThan.js +0 -13
  2150. package/lib/mjs/utils/conditionOperators/GreaterThanOrEqual.d.ts +0 -7
  2151. package/lib/mjs/utils/conditionOperators/GreaterThanOrEqual.js +0 -13
  2152. package/lib/mjs/utils/conditionOperators/Includes.d.ts +0 -7
  2153. package/lib/mjs/utils/conditionOperators/Includes.js +0 -13
  2154. package/lib/mjs/utils/conditionOperators/IsDateEqual.d.ts +0 -4
  2155. package/lib/mjs/utils/conditionOperators/IsDateEqual.js +0 -12
  2156. package/lib/mjs/utils/conditionOperators/IsEmptyValue.d.ts +0 -9
  2157. package/lib/mjs/utils/conditionOperators/IsEmptyValue.js +0 -24
  2158. package/lib/mjs/utils/conditionOperators/IsEqualTo.d.ts +0 -7
  2159. package/lib/mjs/utils/conditionOperators/IsEqualTo.js +0 -24
  2160. package/lib/mjs/utils/conditionOperators/IsNotDateEqual.d.ts +0 -4
  2161. package/lib/mjs/utils/conditionOperators/IsNotDateEqual.js +0 -12
  2162. package/lib/mjs/utils/conditionOperators/IsNotEmptyValue.d.ts +0 -4
  2163. package/lib/mjs/utils/conditionOperators/IsNotEmptyValue.js +0 -12
  2164. package/lib/mjs/utils/conditionOperators/IsNotEqualTo.d.ts +0 -7
  2165. package/lib/mjs/utils/conditionOperators/IsNotEqualTo.js +0 -13
  2166. package/lib/mjs/utils/conditionOperators/LessThan.d.ts +0 -7
  2167. package/lib/mjs/utils/conditionOperators/LessThan.js +0 -13
  2168. package/lib/mjs/utils/conditionOperators/LessThanOrEqual.d.ts +0 -7
  2169. package/lib/mjs/utils/conditionOperators/LessThanOrEqual.js +0 -13
  2170. package/lib/mjs/utils/conditionOperators/NotIncludes.d.ts +0 -4
  2171. package/lib/mjs/utils/conditionOperators/NotIncludes.js +0 -12
  2172. package/lib/mjs/utils/conditionOperators/StartsWith.d.ts +0 -7
  2173. package/lib/mjs/utils/conditionOperators/StartsWith.js +0 -13
  2174. package/lib/mjs/utils/conditionOperators/index.d.ts +0 -7
  2175. package/lib/mjs/utils/conditionOperators/index.js +0 -39
  2176. package/lib/mjs/utils/formUtils.d.ts +0 -173
  2177. package/lib/mjs/utils/formUtils.js +0 -560
  2178. package/lib/mjs/utils/i18n.d.ts +0 -16
  2179. package/lib/mjs/utils/i18n.js +0 -81
  2180. package/lib/mjs/utils/index.d.ts +0 -2
  2181. package/lib/mjs/utils/index.js +0 -5
  2182. package/lib/mjs/utils/jsonlogic/operators.d.ts +0 -1
  2183. package/lib/mjs/utils/jsonlogic/operators.js +0 -262
  2184. package/lib/mjs/utils/utils.d.ts +0 -374
  2185. package/lib/mjs/utils/utils.js +0 -1386
  2186. package/lib/mjs/validator/Rules.d.ts +0 -53
  2187. package/lib/mjs/validator/Rules.js +0 -17
  2188. package/lib/mjs/validator/Validator.d.ts +0 -228
  2189. package/lib/mjs/validator/Validator.js +0 -1103
  2190. package/lib/mjs/validator/conjunctions/index.d.ts +0 -7
  2191. package/lib/mjs/validator/conjunctions/index.js +0 -16
  2192. package/lib/mjs/validator/operators/index.d.ts +0 -7
  2193. package/lib/mjs/validator/operators/index.js +0 -16
  2194. package/lib/mjs/validator/quickRules/index.d.ts +0 -7
  2195. package/lib/mjs/validator/quickRules/index.js +0 -16
  2196. package/lib/mjs/validator/rules/Custom.d.ts +0 -5
  2197. package/lib/mjs/validator/rules/Custom.js +0 -21
  2198. package/lib/mjs/validator/rules/Date.d.ts +0 -5
  2199. package/lib/mjs/validator/rules/Date.js +0 -16
  2200. package/lib/mjs/validator/rules/Day.d.ts +0 -5
  2201. package/lib/mjs/validator/rules/Day.js +0 -49
  2202. package/lib/mjs/validator/rules/Email.d.ts +0 -5
  2203. package/lib/mjs/validator/rules/Email.js +0 -15
  2204. package/lib/mjs/validator/rules/JSON.d.ts +0 -5
  2205. package/lib/mjs/validator/rules/JSON.js +0 -20
  2206. package/lib/mjs/validator/rules/Mask.d.ts +0 -5
  2207. package/lib/mjs/validator/rules/Mask.js +0 -23
  2208. package/lib/mjs/validator/rules/Max.d.ts +0 -5
  2209. package/lib/mjs/validator/rules/Max.js +0 -12
  2210. package/lib/mjs/validator/rules/MaxDate.d.ts +0 -5
  2211. package/lib/mjs/validator/rules/MaxDate.js +0 -25
  2212. package/lib/mjs/validator/rules/MaxLength.d.ts +0 -5
  2213. package/lib/mjs/validator/rules/MaxLength.js +0 -11
  2214. package/lib/mjs/validator/rules/MaxWords.d.ts +0 -5
  2215. package/lib/mjs/validator/rules/MaxWords.js +0 -11
  2216. package/lib/mjs/validator/rules/MaxYear.d.ts +0 -5
  2217. package/lib/mjs/validator/rules/MaxYear.js +0 -13
  2218. package/lib/mjs/validator/rules/Min.d.ts +0 -5
  2219. package/lib/mjs/validator/rules/Min.js +0 -12
  2220. package/lib/mjs/validator/rules/MinDate.d.ts +0 -5
  2221. package/lib/mjs/validator/rules/MinDate.js +0 -21
  2222. package/lib/mjs/validator/rules/MinLength.d.ts +0 -5
  2223. package/lib/mjs/validator/rules/MinLength.js +0 -11
  2224. package/lib/mjs/validator/rules/MinWords.d.ts +0 -5
  2225. package/lib/mjs/validator/rules/MinWords.js +0 -11
  2226. package/lib/mjs/validator/rules/MinYear.d.ts +0 -5
  2227. package/lib/mjs/validator/rules/MinYear.js +0 -13
  2228. package/lib/mjs/validator/rules/Pattern.d.ts +0 -5
  2229. package/lib/mjs/validator/rules/Pattern.js +0 -11
  2230. package/lib/mjs/validator/rules/Required.d.ts +0 -5
  2231. package/lib/mjs/validator/rules/Required.js +0 -8
  2232. package/lib/mjs/validator/rules/Rule.d.ts +0 -7
  2233. package/lib/mjs/validator/rules/Rule.js +0 -9
  2234. package/lib/mjs/validator/rules/Select.d.ts +0 -5
  2235. package/lib/mjs/validator/rules/Select.js +0 -86
  2236. package/lib/mjs/validator/rules/Time.d.ts +0 -5
  2237. package/lib/mjs/validator/rules/Time.js +0 -10
  2238. package/lib/mjs/validator/rules/Unique.d.ts +0 -5
  2239. package/lib/mjs/validator/rules/Unique.js +0 -60
  2240. package/lib/mjs/validator/rules/Url.d.ts +0 -5
  2241. package/lib/mjs/validator/rules/Url.js +0 -14
  2242. package/lib/mjs/validator/rules/index.d.ts +0 -47
  2243. package/lib/mjs/validator/rules/index.js +0 -46
  2244. package/lib/mjs/validator/transformers/index.d.ts +0 -7
  2245. package/lib/mjs/validator/transformers/index.js +0 -16
  2246. package/lib/mjs/validator/valueSources/index.d.ts +0 -7
  2247. package/lib/mjs/validator/valueSources/index.js +0 -16
  2248. package/lib/mjs/widgets/CalendarWidget.d.ts +0 -97
  2249. package/lib/mjs/widgets/CalendarWidget.js +0 -457
  2250. package/lib/mjs/widgets/InputWidget.d.ts +0 -24
  2251. package/lib/mjs/widgets/InputWidget.js +0 -68
  2252. package/lib/mjs/widgets/index.d.ts +0 -7
  2253. package/lib/mjs/widgets/index.js +0 -6
@@ -1,2 +0,0 @@
1
- /*! For license information please see formio.full.min.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Formio=t():e.Formio=t()}(self,(function(){return function(){var e={57062:function(e){var t;window,t=()=>(()=>{"use strict";var e={282:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clearChoices=t.activateChoices=t.filterChoices=t.addChoice=void 0;var i=n(883);t.addChoice=function(e){var t=e.value,n=e.label,r=e.id,o=e.groupId,s=e.disabled,a=e.elementId,l=e.customProperties,u=e.placeholder,c=e.keyCode;return{type:i.ACTION_TYPES.ADD_CHOICE,value:t,label:n,id:r,groupId:o,disabled:s,elementId:a,customProperties:l,placeholder:u,keyCode:c}},t.filterChoices=function(e){return{type:i.ACTION_TYPES.FILTER_CHOICES,results:e}},t.activateChoices=function(e){return void 0===e&&(e=!0),{type:i.ACTION_TYPES.ACTIVATE_CHOICES,active:e}},t.clearChoices=function(){return{type:i.ACTION_TYPES.CLEAR_CHOICES}}},783:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addGroup=void 0;var i=n(883);t.addGroup=function(e){var t=e.value,n=e.id,r=e.active,o=e.disabled;return{type:i.ACTION_TYPES.ADD_GROUP,value:t,id:n,active:r,disabled:o}}},464:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.highlightItem=t.removeItem=t.addItem=void 0;var i=n(883);t.addItem=function(e){var t=e.value,n=e.label,r=e.id,o=e.choiceId,s=e.groupId,a=e.customProperties,l=e.placeholder,u=e.keyCode;return{type:i.ACTION_TYPES.ADD_ITEM,value:t,label:n,id:r,choiceId:o,groupId:s,customProperties:a,placeholder:l,keyCode:u}},t.removeItem=function(e,t){return{type:i.ACTION_TYPES.REMOVE_ITEM,id:e,choiceId:t}},t.highlightItem=function(e,t){return{type:i.ACTION_TYPES.HIGHLIGHT_ITEM,id:e,highlighted:t}}},137:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setIsLoading=t.resetTo=t.clearAll=void 0;var i=n(883);t.clearAll=function(){return{type:i.ACTION_TYPES.CLEAR_ALL}},t.resetTo=function(e){return{type:i.ACTION_TYPES.RESET_TO,state:e}},t.setIsLoading=function(e){return{type:i.ACTION_TYPES.SET_IS_LOADING,isLoading:e}}},373:function(e,t,n){var i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(996)),s=r(n(221)),a=n(282),l=n(783),u=n(464),c=n(137),d=n(520),h=n(883),p=n(789),f=n(799),m=n(655),g=r(n(744)),v=r(n(686)),y="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,b={},w=function(){function e(t,n){void 0===t&&(t="[data-choice]"),void 0===n&&(n={});var r=this;void 0===n.allowHTML&&console.warn("Deprecation warning: allowHTML will default to false in a future release. To render HTML in Choices, you will need to set it to true. Setting allowHTML will suppress this message."),this.config=o.default.all([p.DEFAULT_CONFIG,e.defaults.options,n],{arrayMerge:function(e,t){return i([],t,!0)}}),n.shadowRoot&&(this.config.shadowRoot=n.shadowRoot);var s=(0,f.diff)(this.config,p.DEFAULT_CONFIG);s.length&&console.warn("Unknown config option(s) passed",s.join(", "));var a="string"==typeof t?document.querySelector(t):t;if(!(a instanceof HTMLInputElement||a instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement=a.type===h.TEXT_TYPE,this._isSelectOneElement=a.type===h.SELECT_ONE_TYPE,this._isSelectMultipleElement=a.type===h.SELECT_MULTIPLE_TYPE,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes("".concat(this.config.renderSelectedChoices))||(this.config.renderSelectedChoices="auto"),n.addItemFilter&&"function"!=typeof n.addItemFilter){var l=n.addItemFilter instanceof RegExp?n.addItemFilter:new RegExp(n.addItemFilter);this.config.addItemFilter=l.test.bind(l)}if(this._isTextElement?this.passedElement=new d.WrappedInput({element:a,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new d.WrappedSelect({element:a,classNames:this.config.classNames,template:function(e){return r._templates.option(e)}}),this.initialised=!1,this._store=new g.default,this._initialState=m.defaultState,this._currentState=m.defaultState,this._prevState=m.defaultState,this._currentValue="",this._canSearch=!!this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=(0,f.generateId)(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,!this._direction){var u=window.getComputedStyle(this.passedElement.element).direction;u!==window.getComputedStyle(document.documentElement).direction&&(this._direction=u)}if(this._idNames={itemChoice:"item-choice"},this._isSelectElement&&(this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options),this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&this._isTextElement){var c=this.passedElement.value.split(this.config.delimiter);this._presetItems=this._presetItems.concat(c)}if(this.passedElement.options&&this.passedElement.options.forEach((function(e){r._presetChoices.push({value:e.value,label:e.innerHTML,selected:!!e.selected,disabled:e.disabled||e.parentNode.disabled,placeholder:""===e.value||e.hasAttribute("placeholder"),customProperties:(0,f.parseCustomProperties)(e.dataset.customProperties)})})),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return this.config.silent||console.warn("Trying to initialise Choices on element already initialised",{element:t}),void(this.initialised=!0);this.init()}return Object.defineProperty(e,"defaults",{get:function(){return Object.preventExtensions({get options(){return b},get templates(){return v.default}})},enumerable:!1,configurable:!0}),e.prototype.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var e=this.config.callbackOnInit;e&&"function"==typeof e&&e.call(this)}},e.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=v.default,this.initialised=!1)},e.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},e.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},e.prototype.highlightItem=function(e,t){if(void 0===t&&(t=!0),!e||!e.id)return this;var n=e.id,i=e.groupId,r=void 0===i?-1:i,o=e.value,s=void 0===o?"":o,a=e.label,l=void 0===a?"":a,c=r>=0?this._store.getGroupById(r):null;return this._store.dispatch((0,u.highlightItem)(n,!0)),t&&this.passedElement.triggerEvent(h.EVENTS.highlightItem,{id:n,value:s,label:l,groupValue:c&&c.value?c.value:null}),this},e.prototype.unhighlightItem=function(e){if(!e||!e.id)return this;var t=e.id,n=e.groupId,i=void 0===n?-1:n,r=e.value,o=void 0===r?"":r,s=e.label,a=void 0===s?"":s,l=i>=0?this._store.getGroupById(i):null;return this._store.dispatch((0,u.highlightItem)(t,!1)),this.passedElement.triggerEvent(h.EVENTS.highlightItem,{id:t,value:o,label:a,groupValue:l&&l.value?l.value:null}),this},e.prototype.highlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.highlightItem(t)})),this},e.prototype.unhighlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.unhighlightItem(t)})),this},e.prototype.removeActiveItemsByValue=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.value===e})).forEach((function(e){return t._removeItem(e)})),this},e.prototype.removeActiveItems=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.id!==e})).forEach((function(e){return t._removeItem(e)})),this},e.prototype.removeHighlightedItems=function(e){var t=this;return void 0===e&&(e=!1),this._store.highlightedActiveItems.forEach((function(n){t._removeItem(n),e&&t._triggerChange(n.value)})),this},e.prototype.showDropdown=function(e){var t=this;return this.dropdown.isActive||requestAnimationFrame((function(){t.dropdown.show(),t.containerOuter.open(t.dropdown.distanceFromTopWindow),!e&&t._canSearch&&t.input.focus(),t.passedElement.triggerEvent(h.EVENTS.showDropdown,{})})),this},e.prototype.hideDropdown=function(e){var t=this;return this.dropdown.isActive?(requestAnimationFrame((function(){t.dropdown.hide(),t.containerOuter.close(),!e&&t._canSearch&&(t.input.removeActiveDescendant(),t.input.blur()),t.passedElement.triggerEvent(h.EVENTS.hideDropdown,{})})),this):this},e.prototype.getValue=function(e){void 0===e&&(e=!1);var t=this._store.activeItems.reduce((function(t,n){var i=e?n.value:n;return t.push(i),t}),[]);return this._isSelectOneElement?t[0]:t},e.prototype.setValue=function(e){var t=this;return this.initialised?(e.forEach((function(e){return t._setChoiceOrItem(e)})),this):this},e.prototype.setChoiceByValue=function(e){var t=this;return!this.initialised||this._isTextElement||(Array.isArray(e)?e:[e]).forEach((function(e){return t._findAndSelectChoiceByValue(e)})),this},e.prototype.setChoices=function(e,t,n,i){var r=this;if(void 0===e&&(e=[]),void 0===t&&(t="value"),void 0===n&&(n="label"),void 0===i&&(i=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof t||!t)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(i&&this.clearChoices(),"function"==typeof e){var o=e(this);if("function"==typeof Promise&&o instanceof Promise)return new Promise((function(e){return requestAnimationFrame(e)})).then((function(){return r._handleLoadingState(!0)})).then((function(){return o})).then((function(e){return r.setChoices(e,t,n,i)})).catch((function(e){r.config.silent||console.error(e)})).then((function(){return r._handleLoadingState(!1)})).then((function(){return r}));if(!Array.isArray(o))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof o));return this.setChoices(o,t,n,!1)}if(!Array.isArray(e))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),e.forEach((function(e){if(e.choices)r._addGroup({id:e.id?parseInt("".concat(e.id),10):null,group:e,valueKey:t,labelKey:n});else{var i=e;r._addChoice({value:i[t],label:i[n],isSelected:!!i.selected,isDisabled:!!i.disabled,placeholder:!!i.placeholder,customProperties:i.customProperties})}})),this._stopLoading(),this},e.prototype.clearChoices=function(){return this._store.dispatch((0,a.clearChoices)()),this},e.prototype.clearStore=function(){return this._store.dispatch((0,c.clearAll)()),this},e.prototype.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0))),this},e.prototype._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var e=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,t=this._isSelectElement,n=this._currentState.items!==this._prevState.items;e&&(t&&this._renderChoices(),n&&this._renderItems(),this._prevState=this._currentState)}},e.prototype._renderChoices=function(){var e=this,t=this._store,n=t.activeGroups,i=t.activeChoices,r=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return e.choiceList.scrollToTop()})),n.length>=1&&!this._isSearching){var o=i.filter((function(e){return!0===e.placeholder&&-1===e.groupId}));o.length>=1&&(r=this._createChoicesFragment(o,r)),r=this._createGroupsFragment(n,i,r)}else i.length>=1&&(r=this._createChoicesFragment(i,r));if(r.childNodes&&r.childNodes.length>0){var s=this._store.activeItems,a=this._canAddItem(s,this.input.value);if(a.response)this.choiceList.append(r),this._highlightChoice();else{var l=this._getTemplate("notice",a.notice);this.choiceList.append(l)}}else{var u=void 0;l=void 0,this._isSearching?(l="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,u=this._getTemplate("notice",l,"no-results")):(l="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,u=this._getTemplate("notice",l,"no-choices")),this.choiceList.append(u)}},e.prototype._renderItems=function(){var e=this._store.activeItems||[];this.itemList.clear();var t=this._createItemsFragment(e);t.childNodes&&this.itemList.append(t)},e.prototype._createGroupsFragment=function(e,t,n){var i=this;return void 0===n&&(n=document.createDocumentFragment()),this.config.shouldSort&&e.sort(this.config.sorter),e.forEach((function(e){var r=function(e){return t.filter((function(t){return i._isSelectOneElement?t.groupId===e.id:t.groupId===e.id&&("always"===i.config.renderSelectedChoices||!t.selected)}))}(e);if(r.length>=1){var o=i._getTemplate("choiceGroup",e);n.appendChild(o),i._createChoicesFragment(r,n,!0)}})),n},e.prototype._createChoicesFragment=function(e,t,n){var r=this;void 0===t&&(t=document.createDocumentFragment()),void 0===n&&(n=!1);var o=this.config,s=o.renderSelectedChoices,a=o.searchResultLimit,l=o.renderChoiceLimit,u=this._isSearching?f.sortByScore:this.config.sorter,c=function(e){if("auto"!==s||r._isSelectOneElement||!e.selected){var n=r._getTemplate("choice",e,r.config.itemSelectText);t.appendChild(n)}},d=e;"auto"!==s||this._isSelectOneElement||(d=e.filter((function(e){return!e.selected})));var h=d.reduce((function(e,t){return t.placeholder?e.placeholderChoices.push(t):e.normalChoices.push(t),e}),{placeholderChoices:[],normalChoices:[]}),p=h.placeholderChoices,m=h.normalChoices;(this.config.shouldSort||this._isSearching)&&m.sort(u);var g=d.length,v=this._isSelectOneElement?i(i([],p,!0),m,!0):m;this._isSearching?g=a:l&&l>0&&!n&&(g=l);for(var y=0;y<g;y+=1)v[y]&&c(v[y]);return t},e.prototype._createItemsFragment=function(e,t){var n=this;void 0===t&&(t=document.createDocumentFragment());var i=this.config,r=i.shouldSortItems,o=i.sorter,s=i.removeItemButton;return r&&!this._isSelectOneElement&&e.sort(o),this._isTextElement?this.passedElement.value=e.map((function(e){return e.value})).join(this.config.delimiter):this.passedElement.options=e,e.forEach((function(e){var i=n._getTemplate("item",e,s);t.appendChild(i)})),t},e.prototype._triggerChange=function(e){null!=e&&this.passedElement.triggerEvent(h.EVENTS.change,{value:e})},e.prototype._selectPlaceholderChoice=function(e){this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,placeholder:e.placeholder}),this._triggerChange(e.value)},e.prototype._handleButtonAction=function(e,t){if(e&&t&&this.config.removeItems&&this.config.removeItemButton){var n=t.parentNode&&t.parentNode.dataset.id,i=n&&e.find((function(e){return e.id===parseInt(n,10)}));i&&(this._removeItem(i),this._triggerChange(i.value),this._isSelectOneElement&&this._store.placeholderChoice&&this._selectPlaceholderChoice(this._store.placeholderChoice))}},e.prototype._handleItemAction=function(e,t,n){var i=this;if(void 0===n&&(n=!1),e&&t&&this.config.removeItems&&!this._isSelectOneElement){var r=t.dataset.id;e.forEach((function(e){e.id!==parseInt("".concat(r),10)||e.highlighted?!n&&e.highlighted&&i.unhighlightItem(e):i.highlightItem(e)})),this.input.focus()}},e.prototype._handleChoiceAction=function(e,t){if(e&&t){var n=t.dataset.id,i=n&&this._store.getChoiceById(n);if(i){var r=e[0]&&e[0].keyCode?e[0].keyCode:void 0,o=this.dropdown.isActive;i.keyCode=r,this.passedElement.triggerEvent(h.EVENTS.choice,{choice:i}),i.selected||i.disabled||this._canAddItem(e,i.value).response&&(this._addItem({value:i.value,label:i.label,choiceId:i.id,groupId:i.groupId,customProperties:i.customProperties,placeholder:i.placeholder,keyCode:i.keyCode}),this._triggerChange(i.value)),this.clearInput(),o&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},e.prototype._handleBackspace=function(e){if(this.config.removeItems&&e){var t=e[e.length-1],n=e.some((function(e){return e.highlighted}));this.config.editItems&&!n&&t?(this.input.value=t.value,this.input.setWidth(),this._removeItem(t),this._triggerChange(t.value)):(n||this.highlightItem(t,!1),this.removeHighlightedItems(!0))}},e.prototype._startLoading=function(){this._store.dispatch((0,c.setIsLoading)(!0))},e.prototype._stopLoading=function(){this._store.dispatch((0,c.setIsLoading)(!1))},e.prototype._handleLoadingState=function(e){void 0===e&&(e=!0);var t=this.itemList.getChild(".".concat(this.config.classNames.placeholder));e?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?t?t.innerHTML=this.config.loadingText:(t=this._getTemplate("placeholder",this.config.loadingText))&&this.itemList.append(t):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?t&&(t.innerHTML=this._placeholderValue||""):this.input.placeholder=this._placeholderValue||"")},e.prototype._handleSearch=function(e){if(this.input.isFocussed){var t=this._store.choices,n=this.config,i=n.searchFloor,r=n.searchChoices,o=t.some((function(e){return!e.active}));if(null!=e&&e.length>=i){var s=r?this._searchChoices(e):0;this.passedElement.triggerEvent(h.EVENTS.search,{value:e,resultCount:s})}else o&&(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0)))}},e.prototype._canAddItem=function(e,t){var n=!0,i="function"==typeof this.config.addItemText?this.config.addItemText(t):this.config.addItemText;if(!this._isSelectOneElement){var r=(0,f.existsInArray)(e,t);this.config.maxItemCount>0&&this.config.maxItemCount<=e.length&&(n=!1,i="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&r&&n&&(n=!1,i="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(t):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&n&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(t)&&(n=!1,i="function"==typeof this.config.customAddItemText?this.config.customAddItemText(t):this.config.customAddItemText)}return{response:n,notice:i}},e.prototype._searchChoices=function(e){var t="string"==typeof e?e.trim():e,n="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(t.length<1&&t==="".concat(n," "))return 0;var r=this._store.searchableChoices,o=t,l=Object.assign(this.config.fuseOptions,{keys:i([],this.config.searchFields,!0),includeMatches:!0}),u=new s.default(r,l).search(o);return this._currentValue=t,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,a.filterChoices)(u)),u.length},e.prototype._addEventListeners=function(){var e=this.config.shadowRoot||document.documentElement;e.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("click",this._onClick,{passive:!0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},e.prototype._removeEventListeners=function(){var e=this.config.shadowRoot||document.documentElement;e.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},e.prototype._onKeyDown=function(e){var t=e.keyCode,n=this._store.activeItems,i=this.input.isFocussed,r=this.dropdown.isActive,o=this.itemList.hasChildren(),s=String.fromCharCode(t),a=/[^\x00-\x1F]/.test(s),l=h.KEY_CODES.BACK_KEY,u=h.KEY_CODES.DELETE_KEY,c=h.KEY_CODES.ENTER_KEY,d=h.KEY_CODES.A_KEY,p=h.KEY_CODES.ESC_KEY,f=h.KEY_CODES.UP_KEY,m=h.KEY_CODES.DOWN_KEY,g=h.KEY_CODES.PAGE_UP_KEY,v=h.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElement||r||!a||(this.showDropdown(),this.input.isFocussed||(this.input.value+=e.key.toLowerCase())),t){case d:return this._onSelectKey(e,o);case c:return this._onEnterKey({event:e,activeItems:n,hasActiveDropdown:r});case p:return this._onEscapeKey(r);case f:case g:case m:case v:return this._onDirectionKey({event:e,hasActiveDropdown:r});case u:case l:return this._onDeleteKey(e,n,i)}},e.prototype._onKeyUp=function(e){var t=e.target,n=e.keyCode,i=this.input.value,r=this._store.activeItems,o=this._canAddItem(r,i),s=h.KEY_CODES.BACK_KEY,l=h.KEY_CODES.DELETE_KEY;if(this._isTextElement)if(o.notice&&i){var u=this._getTemplate("notice",o.notice);this.dropdown.element.innerHTML=u.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var c=(n===s||n===l)&&t&&!t.value,d=!this._isTextElement&&this._isSearching,p=this._canSearch&&o.response;c&&d?(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0))):p&&this._handleSearch(this.input.rawValue)}this._canSearch=this.config.searchEnabled},e.prototype._onSelectKey=function(e,t){var n=e.ctrlKey,i=e.metaKey;(n||i)&&t&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},e.prototype._onEnterKey=function(e){var t=e.event,n=e.activeItems,i=e.hasActiveDropdown,r=t.target,o=h.KEY_CODES.ENTER_KEY,s=r&&r.hasAttribute("data-button");if(this._isTextElement&&r&&r.value){var a=this.input.value;this._canAddItem(n,a).response&&(this.hideDropdown(!0),this._addItem({value:a}),this._triggerChange(a),this.clearInput())}if(s&&(this._handleButtonAction(n,r),t.preventDefault()),i){var l=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));l&&(n[0]&&(n[0].keyCode=o),this._handleChoiceAction(n,l)),t.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),t.preventDefault())},e.prototype._onEscapeKey=function(e){e&&(this.hideDropdown(!0),this.containerOuter.focus())},e.prototype._onDirectionKey=function(e){var t=e.event,n=e.hasActiveDropdown,i=t.keyCode,r=t.metaKey,o=h.KEY_CODES.DOWN_KEY,s=h.KEY_CODES.PAGE_UP_KEY,a=h.KEY_CODES.PAGE_DOWN_KEY;if(n||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var l=i===o||i===a?1:-1,u="[data-choice-selectable]",c=void 0;if(r||i===a||i===s)c=l>0?this.dropdown.element.querySelector("".concat(u,":last-of-type")):this.dropdown.element.querySelector(u);else{var d=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));c=d?(0,f.getAdjacentEl)(d,u,l):this.dropdown.element.querySelector(u)}c&&((0,f.isScrolledIntoView)(c,this.choiceList.element,l)||this.choiceList.scrollToChildElement(c,l),this._highlightChoice(c)),t.preventDefault()}},e.prototype._onDeleteKey=function(e,t,n){var i=e.target;this._isSelectOneElement||i.value||!n||(this._handleBackspace(t),e.preventDefault())},e.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},e.prototype._onTouchEnd=function(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&((t===this.containerOuter.element||t===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation()),this._wasTap=!0},e.prototype._onMouseDown=function(e){var t=e.target;if(t instanceof HTMLElement){if(y&&this.choiceList.element.contains(t)){var n=this.choiceList.element.firstElementChild,i="ltr"===this._direction?e.offsetX>=n.offsetWidth:e.offsetX<n.offsetLeft;this._isScrollingOnIe=i}if(t!==this.input.element){var r=t.closest("[data-button],[data-item],[data-choice]");if(r instanceof HTMLElement){var o=e.shiftKey,s=this._store.activeItems,a=r.dataset;"button"in a?this._handleButtonAction(s,r):"item"in a?this._handleItemAction(s,r,o):"choice"in a&&this._handleChoiceAction(s,r)}e.preventDefault()}}},e.prototype._onMouseOver=function(e){var t=e.target;t instanceof HTMLElement&&"choice"in t.dataset&&this._highlightChoice(t)},e.prototype._onClick=function(e){var t=e.target;this.containerOuter.element.contains(t)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&t!==this.input.element&&!this.dropdown.element.contains(t)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},e.prototype._onFocus=function(e){var t,n=this,i=e.target;i&&this.containerOuter.element.contains(i)&&((t={})[h.TEXT_TYPE]=function(){i===n.input.element&&n.containerOuter.addFocusState()},t[h.SELECT_ONE_TYPE]=function(){n.containerOuter.addFocusState(),i===n.input.element&&n.showDropdown(!0)},t[h.SELECT_MULTIPLE_TYPE]=function(){i===n.input.element&&(n.showDropdown(!0),n.containerOuter.addFocusState())},t)[this.passedElement.element.type]()},e.prototype._onBlur=function(e){var t,n=this,i=e.target;if(i&&this.containerOuter.element.contains(i)&&!this._isScrollingOnIe){var r=this._store.activeItems.some((function(e){return e.highlighted}));((t={})[h.TEXT_TYPE]=function(){i===n.input.element&&(n.containerOuter.removeFocusState(),r&&n.unhighlightAll(),n.hideDropdown(!0))},t[h.SELECT_ONE_TYPE]=function(){n.containerOuter.removeFocusState(),(i===n.input.element||i===n.containerOuter.element&&!n._canSearch)&&n.hideDropdown(!0)},t[h.SELECT_MULTIPLE_TYPE]=function(){i===n.input.element&&(n.containerOuter.removeFocusState(),n.hideDropdown(!0),r&&n.unhighlightAll())},t)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},e.prototype._onFormReset=function(){this._store.dispatch((0,c.resetTo)(this._initialState))},e.prototype._highlightChoice=function(e){var t=this;void 0===e&&(e=null);var n=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(n.length){var i=e;Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEach((function(e){e.classList.remove(t.config.classNames.highlightedState),e.setAttribute("aria-selected","false")})),i?this._highlightPosition=n.indexOf(i):(i=n.length>this._highlightPosition?n[this._highlightPosition]:n[n.length-1])||(i=n[0]),i.classList.add(this.config.classNames.highlightedState),i.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(h.EVENTS.highlightChoice,{el:i}),this.dropdown.isActive&&(this.input.setActiveDescendant(i.id),this.containerOuter.setActiveDescendant(i.id))}},e.prototype._addItem=function(e){var t=e.value,n=e.label,i=void 0===n?null:n,r=e.choiceId,o=void 0===r?-1:r,s=e.groupId,a=void 0===s?-1:s,l=e.customProperties,c=void 0===l?{}:l,d=e.placeholder,p=void 0!==d&&d,f=e.keyCode,m=void 0===f?-1:f,g="string"==typeof t?t.trim():t,v=this._store.items,y=i||g,b=o||-1,w=a>=0?this._store.getGroupById(a):null,_=v?v.length+1:1;this.config.prependValue&&(g=this.config.prependValue+g.toString()),this.config.appendValue&&(g+=this.config.appendValue.toString()),this._store.dispatch((0,u.addItem)({value:g,label:y,id:_,choiceId:b,groupId:a,customProperties:c,placeholder:p,keyCode:m})),this._isSelectOneElement&&this.removeActiveItems(_),this.passedElement.triggerEvent(h.EVENTS.addItem,{id:_,value:g,label:y,customProperties:c,groupValue:w&&w.value?w.value:null,keyCode:m})},e.prototype._removeItem=function(e){var t=e.id,n=e.value,i=e.label,r=e.customProperties,o=e.choiceId,s=e.groupId,a=s&&s>=0?this._store.getGroupById(s):null;t&&o&&(this._store.dispatch((0,u.removeItem)(t,o)),this.passedElement.triggerEvent(h.EVENTS.removeItem,{id:t,value:n,label:i,customProperties:r,groupValue:a&&a.value?a.value:null}))},e.prototype._addChoice=function(e){var t=e.value,n=e.label,i=void 0===n?null:n,r=e.isSelected,o=void 0!==r&&r,s=e.isDisabled,l=void 0!==s&&s,u=e.groupId,c=void 0===u?-1:u,d=e.customProperties,h=void 0===d?{}:d,p=e.placeholder,f=void 0!==p&&p,m=e.keyCode,g=void 0===m?-1:m;if(null!=t){var v=this._store.choices,y=i||t,b=v?v.length+1:1,w="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(b);this._store.dispatch((0,a.addChoice)({id:b,groupId:c,elementId:w,value:t,label:y,disabled:l,customProperties:h,placeholder:f,keyCode:g})),o&&this._addItem({value:t,label:y,choiceId:b,customProperties:h,placeholder:f,keyCode:g})}},e.prototype._addGroup=function(e){var t=this,n=e.group,i=e.id,r=e.valueKey,o=void 0===r?"value":r,s=e.labelKey,a=void 0===s?"label":s,u=(0,f.isType)("Object",n)?n.choices:Array.from(n.getElementsByTagName("OPTION")),c=i||Math.floor((new Date).valueOf()*Math.random()),d=!!n.disabled&&n.disabled;u?(this._store.dispatch((0,l.addGroup)({value:n.label,id:c,active:!0,disabled:d})),u.forEach((function(e){var n=e.disabled||e.parentNode&&e.parentNode.disabled;t._addChoice({value:e[o],label:(0,f.isType)("Object",e)?e[a]:e.innerHTML,isSelected:e.selected,isDisabled:n,groupId:c,customProperties:e.customProperties,placeholder:e.placeholder})}))):this._store.dispatch((0,l.addGroup)({value:n.label,id:n.id,active:!1,disabled:n.disabled}))},e.prototype._getTemplate=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return(t=this._templates[e]).call.apply(t,i([this,this.config],n,!1))},e.prototype._createTemplates=function(){var e=this.config.callbackOnCreateTemplates,t={};e&&"function"==typeof e&&(t=e.call(this,f.strToEl)),this._templates=(0,o.default)(v.default,t)},e.prototype._createElements=function(){this.containerOuter=new d.Container({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type,this.config.labelId),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new d.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new d.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new d.List({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new d.List({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new d.Dropdown({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},e.prototype._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},e.prototype._addPredefinedGroups=function(e){var t=this,n=this.passedElement.placeholderOption;n&&n.parentNode&&"SELECT"===n.parentNode.tagName&&this._addChoice({value:n.value,label:n.innerHTML,isSelected:n.selected,isDisabled:n.disabled,placeholder:!0}),e.forEach((function(e){return t._addGroup({group:e,id:e.id||null})}))},e.prototype._addPredefinedChoices=function(e){var t=this;this.config.shouldSort&&e.sort(this.config.sorter);var n=e.some((function(e){return e.selected})),i=e.findIndex((function(e){return void 0===e.disabled||!e.disabled}));e.forEach((function(e,r){var o=e.value,s=void 0===o?"":o,a=e.label,l=e.customProperties,u=e.placeholder;if(t._isSelectElement)if(e.choices)t._addGroup({group:e,id:e.id||null});else{var c=!(!t._isSelectOneElement||n||r!==i)||e.selected,d=e.disabled;t._addChoice({value:s,label:a,isSelected:!!c,isDisabled:!!d,placeholder:!!u,customProperties:l})}else t._addChoice({value:s,label:a,isSelected:!!e.selected,isDisabled:!!e.disabled,placeholder:!!e.placeholder,customProperties:l})}))},e.prototype._addPredefinedItems=function(e){var t=this;e.forEach((function(e){"object"==typeof e&&e.value&&t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}),"string"==typeof e&&t._addItem({value:e})}))},e.prototype._setChoiceOrItem=function(e){var t=this;({object:function(){e.value&&(t._isTextElement?t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}):t._addChoice({value:e.value,label:e.label,isSelected:!0,isDisabled:!1,customProperties:e.customProperties,placeholder:e.placeholder}))},string:function(){t._isTextElement?t._addItem({value:e}):t._addChoice({value:e,label:e,isSelected:!0,isDisabled:!1})}})[(0,f.getType)(e).toLowerCase()]()},e.prototype._findAndSelectChoiceByValue=function(e){var t=this,n=this._store.choices.find((function(n){return t.config.valueComparer(n.value,e)}));n&&!n.selected&&this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode})},e.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var e=this.passedElement.placeholderOption;return e?e.text:null}var t=this.config,n=t.placeholder,i=t.placeholderValue,r=this.passedElement.element.dataset;if(n){if(i)return i;if(r.placeholder)return r.placeholder}return null},e}();t.default=w},613:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=n(799),r=n(883),o=function(){function e(e){var t=e.element,n=e.type,i=e.classNames,r=e.position;this.element=t,this.classNames=i,this.type=n,this.position=r,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return e.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},e.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},e.prototype.shouldFlip=function(e){if("number"!=typeof e)return!1;var t=!1;return"auto"===this.position?t=!window.matchMedia("(min-height: ".concat(e+1,"px)")).matches:"top"===this.position&&(t=!0),t},e.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype.open=function(e){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(e)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},e.prototype.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},e.prototype.focus=function(){this.isFocussed||this.element.focus()},e.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},e.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},e.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===r.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},e.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===r.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},e.prototype.wrap=function(e){(0,i.wrap)(e,this.element)},e.prototype.unwrap=function(e){this.element.parentNode&&(this.element.parentNode.insertBefore(e,this.element),this.element.parentNode.removeChild(this.element))},e.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},e.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},e.prototype._onFocus=function(){this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}();t.default=o},217:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){var t=e.element,n=e.type,i=e.classNames;this.element=t,this.classNames=i,this.type=n,this.isActive=!1}return Object.defineProperty(e.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0}),e.prototype.getChild=function(e){return this.element.querySelector(e)},e.prototype.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},e.prototype.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},e}();t.default=n},520:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WrappedSelect=t.WrappedInput=t.List=t.Input=t.Container=t.Dropdown=void 0;var r=i(n(217));t.Dropdown=r.default;var o=i(n(613));t.Container=o.default;var s=i(n(11));t.Input=s.default;var a=i(n(624));t.List=a.default;var l=i(n(541));t.WrappedInput=l.default;var u=i(n(982));t.WrappedSelect=u.default},11:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=n(799),r=n(883),o=function(){function e(e){var t=e.element,n=e.type,i=e.classNames,r=e.preventPaste;this.element=t,this.type=n,this.classNames=i,this.preventPaste=r,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=t.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(e.prototype,"placeholder",{set:function(e){this.element.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return(0,i.sanitise)(this.element.value)},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawValue",{get:function(){return this.element.value},enumerable:!1,configurable:!0}),e.prototype.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},e.prototype.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},e.prototype.focus=function(){this.isFocussed||this.element.focus()},e.prototype.blur=function(){this.isFocussed&&this.element.blur()},e.prototype.clear=function(e){return void 0===e&&(e=!0),this.element.value&&(this.element.value=""),e&&this.setWidth(),this},e.prototype.setWidth=function(){var e=this.element,t=e.style,n=e.value,i=e.placeholder;t.minWidth="".concat(i.length+1,"ch"),t.width="".concat(n.length+1,"ch")},e.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype._onInput=function(){this.type!==r.SELECT_ONE_TYPE&&this.setWidth()},e.prototype._onPaste=function(e){this.preventPaste&&e.preventDefault()},e.prototype._onFocus=function(){this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}();t.default=o},624:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=n(883),r=function(){function e(e){var t=e.element;this.element=t,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return e.prototype.clear=function(){this.element.innerHTML=""},e.prototype.append=function(e){this.element.appendChild(e)},e.prototype.getChild=function(e){return this.element.querySelector(e)},e.prototype.hasChildren=function(){return this.element.hasChildNodes()},e.prototype.scrollToTop=function(){this.element.scrollTop=0},e.prototype.scrollToChildElement=function(e,t){var n=this;if(e){var i=this.element.offsetHeight,r=this.element.scrollTop+i,o=e.offsetHeight,s=e.offsetTop+o,a=t>0?this.element.scrollTop+s-r:e.offsetTop;requestAnimationFrame((function(){n._animateScroll(a,t)}))}},e.prototype._scrollDown=function(e,t,n){var i=(n-e)/t,r=i>1?i:1;this.element.scrollTop=e+r},e.prototype._scrollUp=function(e,t,n){var i=(e-n)/t,r=i>1?i:1;this.element.scrollTop=e-r},e.prototype._animateScroll=function(e,t){var n=this,r=i.SCROLLING_SPEED,o=this.element.scrollTop,s=!1;t>0?(this._scrollDown(o,r,e),o<e&&(s=!0)):(this._scrollUp(o,r,e),o>e&&(s=!0)),s&&requestAnimationFrame((function(){n._animateScroll(e,t)}))},e}();t.default=r},730:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=n(799),r=function(){function e(e){var t=e.element,n=e.classNames;if(this.element=t,this.classNames=n,!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}return Object.defineProperty(e.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),e.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var e=this.element.getAttribute("style");e&&this.element.setAttribute("data-choice-orig-style",e),this.element.setAttribute("data-choice","active")},e.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var e=this.element.getAttribute("data-choice-orig-style");e?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",e)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},e.prototype.triggerEvent=function(e,t){(0,i.dispatchEvent)(this.element,e,t)},e}();t.default=r},541:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t){var n=t.element,i=t.classNames,r=t.delimiter,o=e.call(this,{element:n,classNames:i})||this;return o.delimiter=r,o}return r(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.setAttribute("value",e),this.element.value=e},enumerable:!1,configurable:!0}),t}(o(n(730)).default);t.default=s},982:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t){var n=t.element,i=t.classNames,r=t.template,o=e.call(this,{element:n,classNames:i})||this;return o.template=r,o}return r(t,e),Object.defineProperty(t.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(e){var t=this,n=document.createDocumentFragment();e.forEach((function(e){return i=e,r=t.template(i),void n.appendChild(r);var i,r})),this.appendDocFragment(n)},enumerable:!1,configurable:!0}),t.prototype.appendDocFragment=function(e){this.element.innerHTML="",this.element.appendChild(e)},t}(o(n(730)).default);t.default=s},883:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SCROLLING_SPEED=t.SELECT_MULTIPLE_TYPE=t.SELECT_ONE_TYPE=t.TEXT_TYPE=t.KEY_CODES=t.ACTION_TYPES=t.EVENTS=void 0,t.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},t.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"},t.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},t.TEXT_TYPE="text",t.SELECT_ONE_TYPE="select-one",t.SELECT_MULTIPLE_TYPE="select-multiple",t.SCROLLING_SPEED=4},789:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CONFIG=t.DEFAULT_CLASSNAMES=void 0;var i=n(799);t.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},t.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,allowHTML:!0,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:i.sortByAlpha,shadowRoot:null,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(e){return'Press Enter to add <b>"'.concat((0,i.sanitise)(e),'"</b>')},maxItemText:function(e){return"Only ".concat(e," values can be added")},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:t.DEFAULT_CLASSNAMES}},18:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},978:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},948:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},359:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},285:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},533:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},187:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(18),t),r(n(978),t),r(n(948),t),r(n(359),t),r(n(285),t),r(n(533),t),r(n(287),t),r(n(132),t),r(n(837),t),r(n(598),t),r(n(369),t),r(n(37),t),r(n(47),t),r(n(923),t),r(n(876),t)},287:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},132:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},837:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},598:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},37:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},369:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},47:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},923:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},876:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},799:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomProperties=t.diff=t.cloneObject=t.existsInArray=t.dispatchEvent=t.sortByScore=t.sortByAlpha=t.strToEl=t.sanitise=t.isScrolledIntoView=t.getAdjacentEl=t.wrap=t.isType=t.getType=t.generateId=t.generateChars=t.getRandomNumber=void 0,t.getRandomNumber=function(e,t){return Math.floor(Math.random()*(t-e)+e)},t.generateChars=function(e){return Array.from({length:e},(function(){return(0,t.getRandomNumber)(0,36).toString(36)})).join("")},t.generateId=function(e,n){var i=e.id||e.name&&"".concat(e.name,"-").concat((0,t.generateChars)(2))||(0,t.generateChars)(4);return i=i.replace(/(:|\.|\[|\]|,)/g,""),"".concat(n,"-").concat(i)},t.getType=function(e){return Object.prototype.toString.call(e).slice(8,-1)},t.isType=function(e,n){return null!=n&&(0,t.getType)(n)===e},t.wrap=function(e,t){return void 0===t&&(t=document.createElement("div")),e.parentNode&&(e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t)),t.appendChild(e)},t.getAdjacentEl=function(e,t,n){void 0===n&&(n=1);for(var i="".concat(n>0?"next":"previous","ElementSibling"),r=e[i];r;){if(r.matches(t))return r;r=r[i]}return r},t.isScrolledIntoView=function(e,t,n){return void 0===n&&(n=1),!!e&&(n>0?t.scrollTop+t.offsetHeight>=e.offsetTop+e.offsetHeight:e.offsetTop>=t.scrollTop)},t.sanitise=function(e){return"string"!=typeof e?e:e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")},t.strToEl=(n=document.createElement("div"),function(e){var t=e.trim();n.innerHTML=t;for(var i=n.children[0];n.firstChild;)n.removeChild(n.firstChild);return i}),t.sortByAlpha=function(e,t){var n=e.value,i=e.label,r=void 0===i?n:i,o=t.value,s=t.label,a=void 0===s?o:s;return r.localeCompare(a,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},t.sortByScore=function(e,t){var n=e.score,i=void 0===n?0:n,r=t.score;return i-(void 0===r?0:r)},t.dispatchEvent=function(e,t,n){void 0===n&&(n=null);var i=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});return e.dispatchEvent(i)},t.existsInArray=function(e,t,n){return void 0===n&&(n="value"),e.some((function(e){return"string"==typeof t?e[n]===t.trim():e[n]===t}))},t.cloneObject=function(e){return JSON.parse(JSON.stringify(e))},t.diff=function(e,t){var n=Object.keys(e).sort(),i=Object.keys(t).sort();return n.filter((function(e){return i.indexOf(e)<0}))},t.parseCustomProperties=function(e){if(void 0!==e)try{return JSON.parse(e)}catch(t){return e}return{}}},273:function(e,t){var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0,t.defaultState=[],t.default=function(e,i){switch(void 0===e&&(e=t.defaultState),void 0===i&&(i={}),i.type){case"ADD_CHOICE":var r=i,o={id:r.id,elementId:r.elementId,groupId:r.groupId,value:r.value,label:r.label||r.value,disabled:r.disabled||!1,selected:!1,active:!0,score:9999,customProperties:r.customProperties,placeholder:r.placeholder||!1};return n(n([],e,!0),[o],!1);case"ADD_ITEM":var s=i;return s.choiceId>-1?e.map((function(e){var t=e;return t.id===parseInt("".concat(s.choiceId),10)&&(t.selected=!0),t})):e;case"REMOVE_ITEM":var a=i;return a.choiceId&&a.choiceId>-1?e.map((function(e){var t=e;return t.id===parseInt("".concat(a.choiceId),10)&&(t.selected=!1),t})):e;case"FILTER_CHOICES":var l=i;return e.map((function(e){var t=e;return t.active=l.results.some((function(e){var n=e.item,i=e.score;return n.id===t.id&&(t.score=i,!0)})),t}));case"ACTIVATE_CHOICES":var u=i;return e.map((function(e){var t=e;return t.active=u.active,t}));case"CLEAR_CHOICES":return t.defaultState;default:return e}}},871:function(e,t){var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0,t.defaultState=[],t.default=function(e,i){switch(void 0===e&&(e=t.defaultState),void 0===i&&(i={}),i.type){case"ADD_GROUP":var r=i;return n(n([],e,!0),[{id:r.id,value:r.value,active:r.active,disabled:r.disabled}],!1);case"CLEAR_CHOICES":return[];default:return e}}},655:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0;var r=n(791),o=i(n(52)),s=i(n(871)),a=i(n(273)),l=i(n(502)),u=n(799);t.defaultState={groups:[],items:[],choices:[],loading:!1};var c=(0,r.combineReducers)({items:o.default,groups:s.default,choices:a.default,loading:l.default});t.default=function(e,n){var i=e;if("CLEAR_ALL"===n.type)i=t.defaultState;else if("RESET_TO"===n.type)return(0,u.cloneObject)(n.state);return c(i,n)}},52:function(e,t){var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0,t.defaultState=[],t.default=function(e,i){switch(void 0===e&&(e=t.defaultState),void 0===i&&(i={}),i.type){case"ADD_ITEM":var r=i;return n(n([],e,!0),[{id:r.id,choiceId:r.choiceId,groupId:r.groupId,value:r.value,label:r.label,active:!0,highlighted:!1,customProperties:r.customProperties,placeholder:r.placeholder||!1,keyCode:null}],!1).map((function(e){var t=e;return t.highlighted=!1,t}));case"REMOVE_ITEM":return e.map((function(e){var t=e;return t.id===i.id&&(t.active=!1),t}));case"HIGHLIGHT_ITEM":var o=i;return e.map((function(e){var t=e;return t.id===o.id&&(t.highlighted=o.highlighted),t}));default:return e}}},502:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0,t.defaultState=!1,t.default=function(e,n){return void 0===e&&(e=t.defaultState),void 0===n&&(n={}),"SET_IS_LOADING"===n.type?n.isLoading:e}},744:function(e,t,n){var i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(791),s=r(n(655)),a=function(){function e(){this._store=(0,o.createStore)(s.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}return e.prototype.subscribe=function(e){this._store.subscribe(e)},e.prototype.dispatch=function(e){this._store.dispatch(e)},Object.defineProperty(e.prototype,"state",{get:function(){return this._store.getState()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeItems",{get:function(){return this.items.filter((function(e){return!0===e.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highlightedActiveItems",{get:function(){return this.items.filter((function(e){return e.active&&e.highlighted}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeChoices",{get:function(){return this.choices.filter((function(e){return!0===e.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectableChoices",{get:function(){return this.choices.filter((function(e){return!0!==e.disabled}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"searchableChoices",{get:function(){return this.selectableChoices.filter((function(e){return!0!==e.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"placeholderChoice",{get:function(){return i([],this.choices,!0).reverse().find((function(e){return!0===e.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeGroups",{get:function(){var e=this.groups,t=this.choices;return e.filter((function(e){var n=!0===e.active&&!1===e.disabled,i=t.some((function(e){return!0===e.active&&!1===e.disabled}));return n&&i}),[])},enumerable:!1,configurable:!0}),e.prototype.isLoading=function(){return this.state.loading},e.prototype.getChoiceById=function(e){return this.activeChoices.find((function(t){return t.id===parseInt(e,10)}))},e.prototype.getGroupById=function(e){return this.groups.find((function(t){return t.id===e}))},e}();t.default=a},686:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={containerOuter:function(e,t,n,i,r,o,s){var a=e.classNames.containerOuter,l=Object.assign(document.createElement("div"),{className:a});return l.dataset.type=o,t&&(l.dir=t),i&&(l.tabIndex=0),n&&(l.setAttribute("role",r?"combobox":"listbox"),r&&l.setAttribute("aria-autocomplete","list")),l.setAttribute("aria-haspopup","true"),l.setAttribute("aria-expanded","false"),s&&l.setAttribute("aria-labelledby",s),l},containerInner:function(e){var t=e.classNames.containerInner;return Object.assign(document.createElement("div"),{className:t})},itemList:function(e,t){var n=e.classNames,i=n.list,r=n.listSingle,o=n.listItems;return Object.assign(document.createElement("div"),{className:"".concat(i," ").concat(t?r:o)})},placeholder:function(e,t){var n,i=e.allowHTML,r=e.classNames.placeholder;return Object.assign(document.createElement("div"),((n={className:r})[i?"innerHTML":"innerText"]=t,n))},item:function(e,t,n){var i,r,o=e.allowHTML,s=e.classNames,a=s.item,l=s.button,u=s.highlightedState,c=s.itemSelectable,d=s.placeholder,h=t.id,p=t.value,f=t.label,m=t.customProperties,g=t.active,v=t.disabled,y=t.highlighted,b=t.placeholder,w=Object.assign(document.createElement("div"),((i={className:a})[o?"innerHTML":"innerText"]=f,i));if(Object.assign(w.dataset,{item:"",id:h,value:p,customProperties:m}),g&&w.setAttribute("aria-selected","true"),v&&w.setAttribute("aria-disabled","true"),b&&w.classList.add(d),w.classList.add(y?u:c),n){v&&w.classList.remove(c),w.dataset.deletable="";var _="Remove item",k=Object.assign(document.createElement("button"),((r={type:"button",className:l})[o?"innerHTML":"innerText"]=_,r));k.setAttribute("aria-label","".concat(_,": '").concat(p,"'")),k.dataset.button="",w.appendChild(k)}return w},choiceList:function(e,t){var n=e.classNames.list,i=Object.assign(document.createElement("div"),{className:n});return t||i.setAttribute("aria-multiselectable","true"),i.setAttribute("role","listbox"),i},choiceGroup:function(e,t){var n,i=e.allowHTML,r=e.classNames,o=r.group,s=r.groupHeading,a=r.itemDisabled,l=t.id,u=t.value,c=t.disabled,d=Object.assign(document.createElement("div"),{className:"".concat(o," ").concat(c?a:"")});return d.setAttribute("role","group"),Object.assign(d.dataset,{group:"",id:l,value:u}),c&&d.setAttribute("aria-disabled","true"),d.appendChild(Object.assign(document.createElement("div"),((n={className:s})[i?"innerHTML":"innerText"]=u,n))),d},choice:function(e,t,n){var i,r=e.allowHTML,o=e.classNames,s=o.item,a=o.itemChoice,l=o.itemSelectable,u=o.selectedState,c=o.itemDisabled,d=o.placeholder,h=t.id,p=t.value,f=t.label,m=t.groupId,g=t.elementId,v=t.disabled,y=t.selected,b=t.placeholder,w=Object.assign(document.createElement("div"),((i={id:g})[r?"innerHTML":"innerText"]=f,i.className="".concat(s," ").concat(a),i));return y&&w.classList.add(u),b&&w.classList.add(d),w.setAttribute("role",m&&m>0?"treeitem":"option"),Object.assign(w.dataset,{choice:"",id:h,value:p,selectText:n}),v?(w.classList.add(c),w.dataset.choiceDisabled="",w.setAttribute("aria-disabled","true")):(w.classList.add(l),w.dataset.choiceSelectable=""),w},input:function(e,t){var n=e.classNames,i=n.input,r=n.inputCloned,o=Object.assign(document.createElement("input"),{type:"text",name:"search_terms",className:"".concat(i," ").concat(r),autocomplete:"off",autocapitalize:"off",spellcheck:!1});return o.setAttribute("role","textbox"),o.setAttribute("aria-autocomplete","list"),o.setAttribute("aria-label",t),o},dropdown:function(e){var t=e.classNames,n=t.list,i=t.listDropdown,r=document.createElement("div");return r.classList.add(n,i),r.setAttribute("aria-expanded","false"),r},notice:function(e,t,n){var i,r=e.allowHTML,o=e.classNames,s=o.item,a=o.itemChoice,l=o.noResults,u=o.noChoices;void 0===n&&(n="");var c=[s,a];return"no-choices"===n?c.push(u):"no-results"===n&&c.push(l),Object.assign(document.createElement("div"),((i={})[r?"innerHTML":"innerText"]=t,i.className=c.join(" "),i))},option:function(e){var t=e.label,n=e.value,i=e.customProperties,r=e.active,o=e.disabled,s=new Option(t,n,!1,r);return i&&(s.dataset.customProperties="".concat(i)),s.disabled=!!o,s}};t.default=n},996:e=>{var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,n){return e.concat(t).map((function(e){return i(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||r,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=i;var u=Array.isArray(n);return u===Array.isArray(e)?u?l.arrayMerge(e,n,l):function(e,t,n){var r={};return n.isMergeableObject(e)&&o(e).forEach((function(t){r[t]=i(e[t],n)})),o(t).forEach((function(o){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(s(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(o,n)(e[o],t[o],n):r[o]=i(t[o],n))})),r}(e,n,l):i(n,l)}a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return a(e,n,t)}),{})};var l=a;e.exports=l},221:(e,t,n)=>{function i(e){return Array.isArray?Array.isArray(e):"[object Array]"===u(e)}n.r(t),n.d(t,{default:()=>z});function r(e){return"string"==typeof e}function o(e){return"number"==typeof e}function s(e){return"object"==typeof e}function a(e){return null!=e}function l(e){return!e.trim().length}function u(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const c=e=>`Missing ${e} property in key`,d=e=>`Property 'weight' in key '${e}' must be a positive integer`,h=Object.prototype.hasOwnProperty;class p{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=f(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function f(e){let t=null,n=null,o=null,s=1,a=null;if(r(e)||i(e))o=e,t=m(e),n=g(e);else{if(!h.call(e,"name"))throw new Error(c("name"));const i=e.name;if(o=i,h.call(e,"weight")&&(s=e.weight,s<=0))throw new Error(d(i));t=m(i),n=g(i),a=e.getFn}return{path:t,id:n,weight:s,src:o,getFn:a}}function m(e){return i(e)?e:e.split(".")}function g(e){return i(e)?e.join("."):e}var v={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(e,t){let n=[],l=!1;const c=(e,t,d)=>{if(a(e))if(t[d]){const h=e[t[d]];if(!a(h))return;if(d===t.length-1&&(r(h)||o(h)||function(e){return!0===e||!1===e||function(e){return s(e)&&null!==e}(e)&&"[object Boolean]"==u(e)}(h)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(h));else if(i(h)){l=!0;for(let e=0,n=h.length;e<n;e+=1)c(h[e],t,d+1)}else t.length&&c(h,t,d+1)}else n.push(e)};return c(e,r(t)?t.split("."):t,0),l?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};const y=/[^ ]+/g;class b{constructor({getFn:e=v.getFn,fieldNormWeight:t=v.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,i=Math.pow(10,t);return{get(t){const r=t.match(y).length;if(n.has(r))return n.get(r);const o=1/Math.pow(r,.5*e),s=parseFloat(Math.round(o*i)/i);return n.set(r,s),s},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,r(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();r(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!a(e)||l(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach(((t,o)=>{let s=t.getFn?t.getFn(e):this.getFn(e,t.path);if(a(s))if(i(s)){let e=[];const t=[{nestedArrIndex:-1,value:s}];for(;t.length;){const{nestedArrIndex:n,value:o}=t.pop();if(a(o))if(r(o)&&!l(o)){let t={v:o,i:n,n:this.norm.get(o)};e.push(t)}else i(o)&&o.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[o]=e}else if(r(s)&&!l(s)){let e={v:s,n:this.norm.get(s)};n.$[o]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function w(e,t,{getFn:n=v.getFn,fieldNormWeight:i=v.fieldNormWeight}={}){const r=new b({getFn:n,fieldNormWeight:i});return r.setKeys(e.map(f)),r.setSources(t),r.create(),r}function _(e,{errors:t=0,currentLocation:n=0,expectedLocation:i=0,distance:r=v.distance,ignoreLocation:o=v.ignoreLocation}={}){const s=t/e.length;if(o)return s;const a=Math.abs(i-n);return r?s+a/r:a?1:s}const k=32;function C(e){let t={};for(let n=0,i=e.length;n<i;n+=1){const r=e.charAt(n);t[r]=(t[r]||0)|1<<i-n-1}return t}class O{constructor(e,{location:t=v.location,threshold:n=v.threshold,distance:i=v.distance,includeMatches:r=v.includeMatches,findAllMatches:o=v.findAllMatches,minMatchCharLength:s=v.minMatchCharLength,isCaseSensitive:a=v.isCaseSensitive,ignoreLocation:l=v.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:i,includeMatches:r,findAllMatches:o,minMatchCharLength:s,isCaseSensitive:a,ignoreLocation:l},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const u=(e,t)=>{this.chunks.push({pattern:e,alphabet:C(e),startIndex:t})},c=this.pattern.length;if(c>k){let e=0;const t=c%k,n=c-t;for(;e<n;)u(this.pattern.substr(e,k),e),e+=k;if(t){const e=c-k;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,includeMatches:n}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:i,distance:r,threshold:o,findAllMatches:s,minMatchCharLength:a,ignoreLocation:l}=this.options;let u=[],c=0,d=!1;this.chunks.forEach((({pattern:t,alphabet:h,startIndex:p})=>{const{isMatch:f,score:m,indices:g}=function(e,t,n,{location:i=v.location,distance:r=v.distance,threshold:o=v.threshold,findAllMatches:s=v.findAllMatches,minMatchCharLength:a=v.minMatchCharLength,includeMatches:l=v.includeMatches,ignoreLocation:u=v.ignoreLocation}={}){if(t.length>k)throw new Error("Pattern length exceeds max of 32.");const c=t.length,d=e.length,h=Math.max(0,Math.min(i,d));let p=o,f=h;const m=a>1||l,g=m?Array(d):[];let y;for(;(y=e.indexOf(t,f))>-1;){let e=_(t,{currentLocation:y,expectedLocation:h,distance:r,ignoreLocation:u});if(p=Math.min(e,p),f=y+c,m){let e=0;for(;e<c;)g[y+e]=1,e+=1}}f=-1;let b=[],w=1,C=c+d;const O=1<<c-1;for(let i=0;i<c;i+=1){let o=0,a=C;for(;o<a;)_(t,{errors:i,currentLocation:h+a,expectedLocation:h,distance:r,ignoreLocation:u})<=p?o=a:C=a,a=Math.floor((C-o)/2+o);C=a;let l=Math.max(1,h-a+1),v=s?d:Math.min(h+a,d)+c,y=Array(v+2);y[v+1]=(1<<i)-1;for(let o=v;o>=l;o-=1){let s=o-1,a=n[e.charAt(s)];if(m&&(g[s]=+!!a),y[o]=(y[o+1]<<1|1)&a,i&&(y[o]|=(b[o+1]|b[o])<<1|1|b[o+1]),y[o]&O&&(w=_(t,{errors:i,currentLocation:s,expectedLocation:h,distance:r,ignoreLocation:u}),w<=p)){if(p=w,f=s,f<=h)break;l=Math.max(1,2*h-f)}}if(_(t,{errors:i+1,currentLocation:h,expectedLocation:h,distance:r,ignoreLocation:u})>p)break;b=y}const x={isMatch:f>=0,score:Math.max(.001,w)};if(m){const e=function(e=[],t=v.minMatchCharLength){let n=[],i=-1,r=-1,o=0;for(let s=e.length;o<s;o+=1){let s=e[o];s&&-1===i?i=o:s||-1===i||(r=o-1,r-i+1>=t&&n.push([i,r]),i=-1)}return e[o-1]&&o-i>=t&&n.push([i,o-1]),n}(g,a);e.length?l&&(x.indices=e):x.isMatch=!1}return x}(e,t,h,{location:i+p,distance:r,threshold:o,findAllMatches:s,minMatchCharLength:a,includeMatches:n,ignoreLocation:l});f&&(d=!0),c+=m,f&&g&&(u=[...u,...g])}));let h={isMatch:d,score:d?c/this.chunks.length:1};return d&&n&&(h.indices=u),h}}class x{constructor(e){this.pattern=e}static isMultiMatch(e){return E(e,this.multiRegex)}static isSingleMatch(e){return E(e,this.singleRegex)}search(){}}function E(e,t){const n=e.match(t);return n?n[1]:null}class S extends x{constructor(e,{location:t=v.location,threshold:n=v.threshold,distance:i=v.distance,includeMatches:r=v.includeMatches,findAllMatches:o=v.findAllMatches,minMatchCharLength:s=v.minMatchCharLength,isCaseSensitive:a=v.isCaseSensitive,ignoreLocation:l=v.ignoreLocation}={}){super(e),this._bitapSearch=new O(e,{location:t,threshold:n,distance:i,includeMatches:r,findAllMatches:o,minMatchCharLength:s,isCaseSensitive:a,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class M extends x{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const i=[],r=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+r,i.push([t,n-1]);const o=!!i.length;return{isMatch:o,score:o?0:1,indices:i}}}const P=[class extends x{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},M,class extends x{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends x{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends x{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends x{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends x{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},S],A=P.length,T=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,D=new Set([S.type,M.type]);const j=[];function R(e,t){for(let n=0,i=j.length;n<i;n+=1){let i=j[n];if(i.condition(e,t))return new i(e,t)}return new O(e,t)}const V="$and",I="$path",L=e=>!(!e[V]&&!e.$or),F=e=>({[V]:Object.keys(e).map((t=>({[t]:e[t]})))});function N(e,t,{auto:n=!0}={}){const o=e=>{let a=Object.keys(e);const l=(e=>!!e[I])(e);if(!l&&a.length>1&&!L(e))return o(F(e));if((e=>!i(e)&&s(e)&&!L(e))(e)){const i=l?e[I]:a[0],o=l?e.$val:e[i];if(!r(o))throw new Error((e=>`Invalid value for key ${e}`)(i));const s={keyId:g(i),pattern:o};return n&&(s.searcher=R(o,t)),s}let u={children:[],operator:a[0]};return a.forEach((t=>{const n=e[t];i(n)&&n.forEach((e=>{u.children.push(o(e))}))})),u};return L(e)||(e=F(e)),o(e)}function U(e,t){const n=e.matches;t.matches=[],a(n)&&n.forEach((e=>{if(!a(e.indices)||!e.indices.length)return;const{indices:n,value:i}=e;let r={indices:n,value:i};e.key&&(r.key=e.key.src),e.idx>-1&&(r.refIndex=e.idx),t.matches.push(r)}))}function $(e,t){t.score=e.score}class z{constructor(e,t={},n){this.options={...v,...t},this.options.useExtendedSearch,this._keyStore=new p(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof b))throw new Error("Incorrect 'index' type");this._myIndex=t||w(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){a(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let n=0,i=this._docs.length;n<i;n+=1){const r=this._docs[n];e(r,n)&&(this.removeAt(n),n-=1,i-=1,t.push(r))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:n,includeScore:i,shouldSort:s,sortFn:a,ignoreFieldNorm:l}=this.options;let u=r(e)?r(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=v.ignoreFieldNorm}){e.forEach((e=>{let n=1;e.matches.forEach((({key:e,norm:i,score:r})=>{const o=e?e.weight:null;n*=Math.pow(0===r&&o?Number.EPSILON:r,(o||1)*(t?1:i))})),e.score=n}))}(u,{ignoreFieldNorm:l}),s&&u.sort(a),o(t)&&t>-1&&(u=u.slice(0,t)),function(e,t,{includeMatches:n=v.includeMatches,includeScore:i=v.includeScore}={}){const r=[];return n&&r.push(U),i&&r.push($),e.map((e=>{const{idx:n}=e,i={item:t[n],refIndex:n};return r.length&&r.forEach((t=>{t(e,i)})),i}))}(u,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(e){const t=R(e,this.options),{records:n}=this._myIndex,i=[];return n.forEach((({v:e,i:n,n:r})=>{if(!a(e))return;const{isMatch:o,score:s,indices:l}=t.searchIn(e);o&&i.push({item:e,idx:n,matches:[{score:s,value:e,norm:r,indices:l}]})})),i}_searchLogical(e){const t=N(e,this.options),n=(e,t,i)=>{if(!e.children){const{keyId:n,searcher:r}=e,o=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:r});return o&&o.length?[{idx:i,item:t,matches:o}]:[]}const r=[];for(let o=0,s=e.children.length;o<s;o+=1){const s=e.children[o],a=n(s,t,i);if(a.length)r.push(...a);else if(e.operator===V)return[]}return r},i=this._myIndex.records,r={},o=[];return i.forEach((({$:e,i})=>{if(a(e)){let s=n(t,e,i);s.length&&(r[i]||(r[i]={idx:i,item:e,matches:[]},o.push(r[i])),s.forEach((({matches:e})=>{r[i].matches.push(...e)})))}})),o}_searchObjectList(e){const t=R(e,this.options),{keys:n,records:i}=this._myIndex,r=[];return i.forEach((({$:e,i})=>{if(!a(e))return;let o=[];n.forEach(((n,i)=>{o.push(...this._findMatches({key:n,value:e[i],searcher:t}))})),o.length&&r.push({idx:i,item:e,matches:o})})),r}_findMatches({key:e,value:t,searcher:n}){if(!a(t))return[];let r=[];if(i(t))t.forEach((({v:t,i,n:o})=>{if(!a(t))return;const{isMatch:s,score:l,indices:u}=n.searchIn(t);s&&r.push({score:l,key:e,value:t,idx:i,norm:o,indices:u})}));else{const{v:i,n:o}=t,{isMatch:s,score:a,indices:l}=n.searchIn(i);s&&r.push({score:a,key:e,value:i,norm:o,indices:l})}return r}}z.version="6.6.2",z.createIndex=w,z.parseIndex=function(e,{getFn:t=v.getFn,fieldNormWeight:n=v.fieldNormWeight}={}){const{keys:i,records:r}=e,o=new b({getFn:t,fieldNormWeight:n});return o.setKeys(i),o.setIndexRecords(r),o},z.config=v,z.parseQuery=N,function(...e){j.push(...e)}(class{constructor(e,{isCaseSensitive:t=v.isCaseSensitive,includeMatches:n=v.includeMatches,minMatchCharLength:i=v.minMatchCharLength,ignoreLocation:r=v.ignoreLocation,findAllMatches:o=v.findAllMatches,location:s=v.location,threshold:a=v.threshold,distance:l=v.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:i,findAllMatches:o,ignoreLocation:r,location:s,threshold:a,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(T).filter((e=>e&&!!e.trim())),i=[];for(let e=0,r=n.length;e<r;e+=1){const r=n[e];let o=!1,s=-1;for(;!o&&++s<A;){const e=P[s];let n=e.isMultiMatch(r);n&&(i.push(new e(n,t)),o=!0)}if(!o)for(s=-1;++s<A;){const e=P[s];let n=e.isSingleMatch(r);if(n){i.push(new e(n,t));break}}}return i}))}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:i}=this.options;e=i?e:e.toLowerCase();let r=0,o=[],s=0;for(let i=0,a=t.length;i<a;i+=1){const a=t[i];o.length=0,r=0;for(let t=0,i=a.length;t<i;t+=1){const i=a[t],{isMatch:l,indices:u,score:c}=i.search(e);if(!l){s=0,r=0,o.length=0;break}if(r+=1,s+=c,n){const e=i.constructor.type;D.has(e)?o=[...o,...u]:o.push(u)}}if(r){let e={isMatch:!0,score:s/r};return n&&(e.indices=o),e}}return{isMatch:!1,score:1}}})},791:(e,t,n)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}n.r(t),n.d(t,{__DO_NOT_USE__ActionTypes:()=>c,applyMiddleware:()=>v,bindActionCreators:()=>m,combineReducers:()=>p,compose:()=>g,createStore:()=>d,legacy_createStore:()=>h});var l="function"==typeof Symbol&&Symbol.observable||"@@observable",u=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function d(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(a(1));return n(d)(e,t)}if("function"!=typeof e)throw new Error(a(2));var r=e,o=t,s=[],u=s,h=!1;function p(){u===s&&(u=s.slice())}function f(){if(h)throw new Error(a(3));return o}function m(e){if("function"!=typeof e)throw new Error(a(4));if(h)throw new Error(a(5));var t=!0;return p(),u.push(e),function(){if(t){if(h)throw new Error(a(6));t=!1,p();var n=u.indexOf(e);u.splice(n,1),s=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(a(7));if(void 0===e.type)throw new Error(a(8));if(h)throw new Error(a(9));try{h=!0,o=r(o,e)}finally{h=!1}for(var t=s=u,n=0;n<t.length;n++)(0,t[n])();return e}return g({type:c.INIT}),(i={dispatch:g,subscribe:m,getState:f,replaceReducer:function(e){if("function"!=typeof e)throw new Error(a(10));r=e,g({type:c.REPLACE})}})[l]=function(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(f())}return n(),{unsubscribe:t(n)}}})[l]=function(){return this},e},i}var h=d;function p(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var r=t[i];"function"==typeof e[r]&&(n[r]=e[r])}var o,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:c.INIT}))throw new Error(a(12));if(void 0===n(void 0,{type:c.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var i=!1,r={},l=0;l<s.length;l++){var u=s[l],c=n[u],d=e[u],h=c(d,t);if(void 0===h)throw t&&t.type,new Error(a(14));r[u]=h,i=i||h!==d}return(i=i||s.length!==Object.keys(e).length)?r:e}}function f(e,t){return function(){return t(e.apply(this,arguments))}}function m(e,t){if("function"==typeof e)return f(e,t);if("object"!=typeof e||null===e)throw new Error(a(16));var n={};for(var i in e){var r=e[i];"function"==typeof r&&(n[i]=f(r,t))}return n}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),i=function(){throw new Error(a(15))},r={getState:n.getState,dispatch:function(){return i.apply(void 0,arguments)}},o=t.map((function(e){return e(r)}));return i=g.apply(void 0,o)(n.dispatch),s(s({},n),{},{dispatch:i})}}}}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{n.d(i,{default:()=>r});var e=n(373),t=n.n(e);n(187),n(883),n(789),n(686);const r=t()})(),i.default})(),e.exports=t()},88407:function(e,t){"use strict";var n=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.render=t.Components=void 0;class i{static component(e,t="components"){return i[t][e]?i[t][e]:i[t].component}static create(e,t,n){return new(i.component(e.type))(e,t,n)}static addDecorator(e,t){i.decorators[t]=e}static addComponent(e,t){if(e)return"function"!=typeof e?i.importComponent(e):(i.components[t]=e,e)}static importComponent(e={}){const t=i.component(e.extends,"decorators");let r=class{};r=n([t(e)],r),i.addComponent(r,e.type)}static setComponents(e){Object.assign(i.components,e)}}t.Components=i,i.components={},i.decorators={},t.render=function(e,t,n={},r={}){return i.create(t,n,r).attach(e)}},13659:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Template=void 0;const s=o(n(22373));class a{static addTemplates(e){var t=a.framework;a.templates=s.merge(a.templates,e),a.framework=t}static addTemplate(e,t){a.templates[e]=s.merge(a.current,t)}static extendTemplate(e,t){a.templates[e]=s.merge(a.templates[e],t)}static setTemplate(e,t){a.addTemplate(e,t)}static set current(e){const t=a.current;a._current=s.merge(t,e)}static get current(){return a._current}static set framework(e){a.templates.hasOwnProperty(e)&&(a._framework=e,a._current=a.templates[e])}static get framework(){return a._framework}static render(e,t,n="html",i=null){return"function"==typeof e?e(t):this.current[e]&&this.current[e][n]?this.current[e][n](t):i?i(t):"Unknown template"}}t.Template=a,a.templates=[],a._current={},a._framework="bootstrap"},76691:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayComponent=void 0;const i=n(88407),r=n(20742),o=n(34309);function s(e={}){return e.type||(e.type="array"),e.model||(e.model=r.NestedArrayModel),function(t){return class extends((0,o.NestedComponent)(e)(t)){}}}t.ArrayComponent=s,i.Components.addDecorator(s,"array"),i.Components.addComponent(s()(),"array")},50595:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;const a=n(88407),l=n(13659),u=n(89145),c=o(n(77919)),d=n(7622),h=n(20742),p=n(91769);function f(e={}){(e=(0,p.merge)({type:"component",template:!1,schema:{persistent:!0,protected:!1}},e)).schema.type=e.type;const t=e.model||h.Model;return function(n){return class extends(t(e)(n)){constructor(){super(...arguments),this.attached=!1,this.refs={},this.template=e.template,this.attachedListeners=[]}get defaultOptions(){return{language:"en",namespace:"formio"}}get defaultTemplate(){return e=>`<span>${e.t("Unknown Component")}</span>`}interpolate(e,t){return u.Evaluator.interpolate(e,t)}renderContext(e={}){return super.renderContext?super.renderContext(e):e}evaluate(e,t={},n="",i=!1){return u.Evaluator.evaluate(e,this.evalContext(t),n,i)}render(e={}){return super.render?super.render(e):this.renderTemplate(this.template||this.component.type,this.renderContext(e))}getRefs(){return super.getRefs?super.getRefs():{}}loadRefs(e){const t=this.getRefs();for(const n in t)"single"===t[n]?this.refs[n]=e.querySelector(`[ref="${n}"]`):this.refs[n]=e.querySelectorAll(`[ref="${n}"]`)}attach(e){const t=Object.create(null,{attach:{get:()=>super.attach}});return s(this,void 0,void 0,(function*(){if(this.element&&!e&&(e=this.element),!e)return this;const n=e.parentNode;if(!n)return this;const i=Array.prototype.indexOf.call(n.children,e);return e.outerHTML=String(this.sanitize(this.render())),e=n.children[i],this.element=e,this.loadRefs(this.element),t.attach&&(yield t.attach.call(this,e)),this.attached=!0,this}))}redraw(){return s(this,void 0,void 0,(function*(){if(this.element)return this.clear(),this.attach()}))}sanitize(e){return(0,d.sanitize)(e,this.options)}get translations(){return this.options.language&&this.options.i18n&&this.options.i18n[this.options.language]?this.options.i18n[this.options.language]:{}}t(e){return this.translations[e]?this.translations[e]:e}evalContext(e={}){return Object.assign({instance:this,component:this.component,options:this.options,row:this.data,data:this.root?this.root.data:this.data,rowIndex:this.rowIndex,value:()=>this.dataValue,t:e=>this.t(e)},e)}renderTemplate(e,t={}){return l.Template.render(e,this.evalContext(t),"html",this.defaultTemplate)}isValueRedacted(){return this.component.protected||!this.component.persistent||"client-only"===this.component.persistent}setValue(e){let t=!1;return super.setValue&&(t=super.setValue(e)),this.updateValue(e)||t}getElement(){return this.element}detach(){this.refs={},this.attached=!1,this.removeAttachedListeners(),super.detach&&super.detach()}clear(){this.detach(),c.empty(this.getElement()),super.clear&&super.clear()}append(e){c.appendTo(e,this.element)}prepend(e){c.prependTo(e,this.element)}removeChild(e){c.removeChildFrom(e,this.element)}addEventListener(e,t,n){if(e)return"addEventListener"in e?e.addEventListener(t,n,!1):"attachEvent"in e&&e.attachEvent(`on${t}`,n),this.attachedListeners.push({obj:e,type:t,func:n}),this}removeAttachedListeners(){this.attachedListeners.forEach((e=>this.removeEventListener(e.obj,e.type,e.func))),this.attachedListeners=[]}removeEventListener(e,t,n){return e&&e.removeEventListener(t,n),this}}}}t.Component=f,a.Components.addDecorator(f,"component"),a.Components.addComponent(f()(),"component")},44212:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataComponent=void 0;const i=n(88407),r=n(20742),o=n(34309);function s(e={}){return e.type||(e.type="data"),e.model||(e.model=r.NestedDataModel),function(t){return class extends((0,o.NestedComponent)(e)(t)){}}}t.DataComponent=s,i.Components.addDecorator(s,"data"),i.Components.addComponent(s()(),"data")},93555:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Template=t.ArrayComponent=t.DataComponent=t.NestedComponent=t.Component=t.render=t.Components=void 0;var o=n(88407);Object.defineProperty(t,"Components",{enumerable:!0,get:function(){return o.Components}}),Object.defineProperty(t,"render",{enumerable:!0,get:function(){return o.render}});var s=n(50595);Object.defineProperty(t,"Component",{enumerable:!0,get:function(){return s.Component}});var a=n(34309);Object.defineProperty(t,"NestedComponent",{enumerable:!0,get:function(){return a.NestedComponent}});var l=n(44212);Object.defineProperty(t,"DataComponent",{enumerable:!0,get:function(){return l.DataComponent}});var u=n(76691);Object.defineProperty(t,"ArrayComponent",{enumerable:!0,get:function(){return u.ArrayComponent}});var c=n(13659);Object.defineProperty(t,"Template",{enumerable:!0,get:function(){return c.Template}}),r(n(20742),t)},34309:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.NestedComponent=void 0;const r=n(88407),o=n(50595),s=n(20742);function a(e={}){return e.type||(e.type="nested"),e.model||(e.model=s.NestedModel),e.factory||(e.factory=r.Components),function(t){return class extends((0,o.Component)(e)(t)){get defaultTemplate(){return e=>`<div ref="nested">${e.instance.renderComponents()}</div>`}attach(e){const t=Object.create(null,{attach:{get:()=>super.attach}});return i(this,void 0,void 0,(function*(){if(yield t.attach.call(this,e),this.element){const e=[],t=this.element.querySelectorAll(`[data-within="${this.id}"]`);Array.prototype.slice.call(t).forEach(((t,n)=>{e.push(this.components[n].attach(t))})),yield Promise.all(e)}return this}))}detach(){super.detach(),this.eachComponent((e=>e.detach()))}renderComponents(){return this.components.reduce(((e,t)=>e+t.render().replace(/(<[^\>]+)/,`$1 data-within="${this.id}"`)),"")}}}}t.NestedComponent=a,r.Components.addDecorator(a,"nested"),r.Components.addComponent(a()(),"nested")},34114:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.DataTableComponent=t.DataTable=void 0;const r=n(93555);class o{constructor(e,t,n){this.component=e,this.options=t,this.data=n}renderClasses(){let e="";return this.component.bordered&&(e+=" table-bordered"),this.component.striped&&(e+=" table-striped"),this.component.hover&&(e+=" table-hover"),this.component.condensed&&(e+=" table-condensed"),e}renderContext(e={}){return Object.assign({classes:this.renderClasses()},e)}}t.DataTable=o;let s=t.DataTableComponent=class extends o{};t.DataTableComponent=s=i([(0,r.ArrayComponent)({type:"datatable",schema:{bordered:!0,striped:!1,hover:!0,condensed:!0},template:"datatable"})],s)},97168:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.DataValueComponent=void 0;const r=n(93555),o=n(96829);let s=t.DataValueComponent=class extends o.HTML{};t.DataValueComponent=s=i([(0,r.Component)({type:"datavalue",schema:{tag:"span",attrs:[],className:""},template:e=>`<${e.tag} ref="val"${e.attrs}>${e.value()}</${e.tag}>`})],s)},96829:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLComponent=t.HTML=t.HTMLProperties=void 0;const r=n(93555);t.HTMLProperties={type:"html",schema:{tag:"span",content:"",attrs:[],className:""},template:e=>`<${e.tag} ref="${e.ref}"${e.attrs}>${e.t(e.content)}</${e.tag}>`};class o{constructor(e,t,n){this.component=e,this.options=t,this.data=n}getAttributes(){let e=!1,t="";for(let n in this.component.attrs)if(this.component.attrs.hasOwnProperty(n)){const i=this.component.attrs[n],r=Number.isNaN(parseInt(n));let o=r?n:i.attr;const s=r?i:i.value;"class"===o&&this.component.className&&(e=!0,o+=` ${this.component.className}`),t+=` ${o}="${this.interpolate(s,this.evalContext())}"`}return!e&&this.component.className&&(t+=` class="${this.interpolate(this.component.className,this.evalContext())}"`),t}renderContext(e={}){return Object.assign({tag:this.component.tag,ref:this.component.type,content:this.component.content?this.interpolate(this.component.content,this.evalContext()):"",attrs:this.getAttributes()},e)}}t.HTML=o;let s=t.HTMLComponent=class extends o{};t.HTMLComponent=s=i([(0,r.Component)(t.HTMLProperties)],s)},83425:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLContainerComponent=t.HTMLContainer=void 0;const r=n(93555),o=n(96829);class s extends o.HTML{renderContext(e={}){return super.renderContext(Object.assign({content:this.renderComponents()},e))}}t.HTMLContainer=s;let a=t.HTMLContainerComponent=class extends s{};t.HTMLContainerComponent=a=i([(0,r.NestedComponent)({type:"htmlcontainer",schema:o.HTMLProperties.schema,template:o.HTMLProperties.template})],a)},24310:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InputComponent=t.Input=t.DataValueComponent=t.DataTableComponent=t.DataTable=t.HTMLContainerComponent=t.HTMLContainer=t.HTMLComponent=t.HTML=void 0;const r=i(n(96607)),o=n(96829),s=n(83425),a=n(34114),l=n(97168),u=n(97996);var c=n(96829);Object.defineProperty(t,"HTML",{enumerable:!0,get:function(){return c.HTML}}),Object.defineProperty(t,"HTMLComponent",{enumerable:!0,get:function(){return c.HTMLComponent}});var d=n(83425);Object.defineProperty(t,"HTMLContainer",{enumerable:!0,get:function(){return d.HTMLContainer}}),Object.defineProperty(t,"HTMLContainerComponent",{enumerable:!0,get:function(){return d.HTMLContainerComponent}});var h=n(34114);Object.defineProperty(t,"DataTable",{enumerable:!0,get:function(){return h.DataTable}}),Object.defineProperty(t,"DataTableComponent",{enumerable:!0,get:function(){return h.DataTableComponent}});var p=n(97168);Object.defineProperty(t,"DataValueComponent",{enumerable:!0,get:function(){return p.DataValueComponent}});var f=n(97996);Object.defineProperty(t,"Input",{enumerable:!0,get:function(){return f.Input}}),Object.defineProperty(t,"InputComponent",{enumerable:!0,get:function(){return f.InputComponent}}),t.default={components:{html:o.HTMLComponent,htmlcontainer:s.HTMLContainerComponent,datatable:a.DataTableComponent,datavalue:l.DataValueComponent,input:u.InputComponent},templates:r.default}},97996:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.InputComponent=t.Input=void 0;const o=n(93555),s=n(96829);class a extends s.HTML{getAttributes(){const e=super.getAttributes(),t=`${this.component.type}-${this.component.key}`.toLowerCase().replace(/[^a-z0-9\-]+/g,"_");return` type="${this.component.inputType}" id="${t}" name="${t}"${e}`}onInput(){this.updateValue(this.element.value)}attach(e){return r(this,void 0,void 0,(function*(){return this.addEventListener(this.element,this.component.changeEvent,this.onInput.bind(this)),this}))}detach(){this.removeEventListener(this.element,this.component.changeEvent,this.onInput.bind(this))}setValue(e){this.element&&(this.element.value=e)}}t.Input=a;let l=t.InputComponent=class extends a{};t.InputComponent=l=i([(0,o.Component)({type:"input",template:s.HTMLProperties.template,schema:Object.assign(Object.assign({},s.HTMLProperties.schema),{tag:"input",ref:"input",changeEvent:"input",inputType:"text"})})],l)},6640:function(e,t){t.Z=function(e){var t,n="";return Array.prototype.join,n+='<table class="table'+(null==(t=e.classes)?"":t)+'">\n <thead>\n <tr>\n ',e.component.components.forEach((function(e){n+="\n <th>"+(null==(t=e.label||e.key)?"":t)+"</th>\n "})),n+="\n </tr>\n </thead>\n <tbody>\n ",e.instance.rows.forEach((function(e){n+="\n <tr>\n ",e.forEach((function(e){n+="\n <td>"+(null==(t=e.dataValue)?"":t)+"</td>\n "})),n+="\n </tr>\n "})),n+="\n </tbody>\n</table>"}},62948:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.html=void 0;const i=n(6640).Z;t.html=i},84104:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.datatable=void 0,t.datatable=o(n(62948))},96607:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const s=o(n(84104));t.default={bootstrap:s}},81855:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=t.use=t.useModule=t.usePlugin=void 0,n(76554);const r=n(4785);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return r.Formio}});const o=n(81343),s=n(36808),a=n(93555);r.Formio.render=a.render,r.Formio.Components=a.Components,r.Formio.Validator=r.Formio.Rules=o.Validator,r.Formio.Evaluator=s.Evaluator,r.Formio.Utils=s.Utils,r.Formio.Templates=a.Template;const l=n(22373);function u(e,t){switch(e){case"options":if(!r.Formio.options)return;r.Formio.options=(0,l.merge)(r.Formio.options,t);break;case"templates":if(!r.Formio.Templates)return;const n=r.Formio.Templates.framework||"bootstrap";for(const e of Object.keys(t))r.Formio.Templates.extendTemplate(e,t[e]);t[n]&&(r.Formio.Templates.current=t[n]);break;case"components":if(!r.Formio.Components)return;r.Formio.Components.setComponents(t);break;case"framework":if(!r.Formio.Templates)return;r.Formio.Templates.framework=t;break;case"fetch":for(const e of Object.keys(t))r.Formio.registerPlugin(t[e],e);break;case"rules":if(!r.Formio.Rules)return;r.Formio.Rules.addRules(t);break;case"evaluator":if(!r.Formio.Evaluator)return;r.Formio.Evaluator.registerEvaluator(t);break;default:console.log("Unknown plugin option",e)}}function c(e){if("object"==typeof e)for(const t of Object.keys(e))u(t,e[t])}function d(...e){e.forEach((e=>{Array.isArray(e)?e.forEach((e=>c(e))):c(e)}))}t.usePlugin=u,t.useModule=c,t.use=d,r.Formio.useModule=c,r.Formio.usePlugin=u,r.Formio.use=d;const h=i(n(24310));r.Formio.use(h.default);const p=i(n(2664));r.Formio.use(p.default)},36051:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(81855),t),r(n(93555),t),r(n(20742),t),r(n(2664),t),r(n(36808),t),r(n(24310),t),r(n(81343),t)},97505:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EventEmitterBase=t.EventEmitter=void 0;const r=i(n(26729));t.EventEmitterBase=r.default,t.EventEmitter=function(e){return e||(e=class{}),class extends e{constructor(){super(...arguments),this.parent=null,this.events=new r.default}bubble(e,...t){return this.parent?this.parent.bubble(e,...t):this.emit(e,...t)}emit(e,...t){return this.events.emit(e,...t)}on(e,t,...n){return this.events.on(e,t,...n)}once(e,t,...n){return this.events.once(e,t,...n)}off(e,...t){return this.events.off(e,...t)}}}},85419:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Model=void 0;const a=o(n(22373)),l=n(97505);t.Model=function(e={}){return e.schema||(e.schema={}),e.schema.key||(e.schema.key=""),function(t){return class n extends((0,l.EventEmitter)(t)){static schema(){return e.schema}constructor(e={},t={},n={}){super(e,t,n),this.component=e,this.options=t,this.data=n,this.root=null,this.validator=null,this.id=`e${Math.random().toString(36).substring(7)}`,this.component=a.merge({},this.defaultSchema,this.component),this.options=Object.assign(Object.assign({},this.defaultOptions),this.options),this.options.noInit||this.init()}get defaultOptions(){return{}}get defaultSchema(){return n.schema()}init(){this.hook("init"),this.options.validator&&(this.validator=this.options.validator.fromComponent(this))}checkComponentValidity(){return s(this,void 0,void 0,(function*(){return!this.validator||this.validator.check()}))}checkValidity(){return s(this,void 0,void 0,(function*(){return this.checkComponentValidity()}))}get errors(){return this.validator.errors}get emptyValue(){return null}isEmpty(e=this.dataValue){const t=!(!a.isArray(e)||1!==e.length)&&a.isEqual(e[0],this.emptyValue);return null==e||0===e.length||a.isEqual(e,this.emptyValue)||t}get dataValue(){return a.get(this.data,this.component.key)}set dataValue(e){this.component.key&&a.set(this.data,this.component.key,e)}hasChanged(e){return String(e)!==String(this.dataValue)}updateValue(e){const t=this.hasChanged(e);return this.dataValue=e,t&&this.bubble("change",e),t}getValue(){return this.dataValue}hook(e,...t){if(this.options&&this.options.hooks&&this.options.hooks[e])return this.options.hooks[e].apply(this,t);{const e="function"==typeof t[t.length-1]?t[t.length-1]:null;return e?e(null,t[1]):t[1]}}}}}},54523:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NestedArrayModel=void 0;const s=o(n(22373)),a=n(90297);t.NestedArrayModel=function(e={}){return function(t){return class extends((0,a.NestedDataModel)(e)(t)){get defaultValue(){return[]}row(e){return e<this.rows.length?this.rows[e]:[]}removeRow(e){this.row(e).forEach((e=>this.removeComponent(e))),this.dataValue.splice(e,1),this.rows.splice(e,1)}addRow(e={},t=0){const n=e;this.dataValue[t]=n,this.createRowComponents(n,t)}setRowData(e,t){var n;this.dataValue[t]=e,null===(n=this.row(t))||void 0===n||n.forEach((t=>t.data=e))}rowChanged(e,t){var n;let i=!1;return null===(n=this.row(t))||void 0===n||n.forEach((t=>{const n=t.hasChanged(s.get(e,t.component.key));i=n||i,n&&t.bubble("change",t)})),i}createComponents(e){this.rows=[];let t=[];return this.eachRowValue(e,((e,n)=>{t=t.concat(this.createRowComponents(e,n))})),t}createRowComponents(e,t=0){const n=super.createComponents(e,(e=>{e.rowIndex=t}));return this.rows[t]=n,n}getIndexes(e){return super.getIndexes?super.getIndexes(e):{min:0,max:e.length-1}}eachRowValue(e,t){if(!e||!e.length)return;const n=this.getIndexes(e);for(let i=n.min;i<=n.max;i++)t(e[i],i)}get emptyValue(){return[]}get dataValue(){return s.get(this.data,this.component.key)}set dataValue(e){if(Array.isArray(e)){const t=this.dataValue;if(this.eachRowValue(e,((e,n)=>{n>=t.length&&this.addRow(e,n),this.setRowData(e,n)})),t.length>e.length)for(let n=e.length;n<t.length;n++)this.removeRow(n)}}hasChanged(e){const t=this.dataValue;if(e.length!==t.length)return this.emit("changed",this),!0;let n=!1;return this.eachRowValue(e,((e,t)=>{n=this.rowChanged(e,t)||n})),n}setValue(e){var t=!1;return this.eachComponentValue(e,((e,n)=>{t=e.setValue(n)||t})),t}}}}},90297:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NestedDataModel=void 0;const s=o(n(22373)),a=n(95665);t.NestedDataModel=function(e={}){return function(t){return class extends((0,a.NestedModel)(e)(t)){get emptyValue(){return{}}get defaultValue(){return{}}componentData(){const e=s.get(this.data,this.component.key,this.defaultValue);return Object.keys(e).length||s.set(this.data,this.component.key,e),e}get dataValue(){return s.get(this.data,this.component.key)}set dataValue(e){this.eachComponentValue(e,((e,t)=>e.dataValue=t))}}}}},95665:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.NestedModel=void 0;const a=o(n(22373)),l=n(85419);t.NestedModel=function(e={}){return e.schema||(e.schema={}),e.schema.components||(e.schema.components=[]),function(t){return class extends((0,l.Model)(e)(t)){init(){super.init(),this.components=[],this.createComponents(this.componentData())}componentData(){return this.data}createComponent(t,n,i){if(!e.factory)return console.log('Cannot create components. No "factory" provided.'),null;const r=e.factory.create(t,Object.assign({noInit:!0},n),i);return r.parent=this,r.root=this.root||this,r.init(),r}createComponents(e,t){const n=[];return(this.component.components||[]).forEach((i=>{const r=this.createComponent(i,this.options,e);r&&(this.components.push(r),n.push(r),t&&t(r))})),n}removeComponent(e){(this.components||[]).forEach(((t,n)=>{t===e&&(t.detach&&t.detach(),this.components.splice(n,1))}))}checkValidity(){return s(this,void 0,void 0,(function*(){return this.components.reduce(((e,t)=>e&&t.checkValidity()),this.checkComponentValidity())}))}get defaultValue(){return{}}get emptyValue(){return{}}get dataValue(){return this.data}eachComponent(e){a.each(this.components,((t,n)=>{if(!1===e(t,n))return!1}))}eachComponentValue(e,t){Object.keys(e).length&&this.eachComponent((n=>{t(n,a.get(e,n.component.key))}))}set dataValue(e){this.eachComponentValue(e,((e,t)=>e.dataValue=t))}setValue(e){var t=!1;return this.eachComponentValue(e,((e,n)=>{t=e.setValue(n)||t})),t}}}}},20742:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NestedArrayModel=t.NestedDataModel=t.NestedModel=t.Model=t.EventEmitter=void 0;var i=n(97505);Object.defineProperty(t,"EventEmitter",{enumerable:!0,get:function(){return i.EventEmitter}});var r=n(85419);Object.defineProperty(t,"Model",{enumerable:!0,get:function(){return r.Model}});var o=n(95665);Object.defineProperty(t,"NestedModel",{enumerable:!0,get:function(){return o.NestedModel}});var s=n(90297);Object.defineProperty(t,"NestedDataModel",{enumerable:!0,get:function(){return s.NestedDataModel}});var a=n(54523);Object.defineProperty(t,"NestedArrayModel",{enumerable:!0,get:function(){return a.NestedArrayModel}})},2664:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(62027));t.default=[r.default]},62027:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JSONLogicEvaluator=void 0;const r=n(36808),o=i(n(76888)),s=n(19460);class a extends r.BaseEvaluator{static evaluate(e,t={},n="",i=!1,o={}){let a=null;if("object"==typeof e)try{a=s.jsonLogic.apply(e,t)}catch(e){a=null,console.warn("An error occured within JSON Logic",e)}else a=r.BaseEvaluator.evaluate(e,t,n,i,o);return a}}t.JSONLogicEvaluator=a,t.default={evaluator:a,rules:o.default,jsonLogic:s.jsonLogic}},19460:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.jsonLogic=void 0;const a=s(n(40962));t.jsonLogic=a.default;const l=o(n(22373)),u=s(n(27484));n(70865).lodashOperators.forEach((e=>{l[e]&&a.default.add_operation(`_${e}`,l[e])})),a.default.add_operation("getDate",(e=>(0,u.default)(e).toISOString())),a.default.add_operation("relativeMinDate",(e=>(0,u.default)().subtract(e,"days").toISOString())),a.default.add_operation("relativeMaxDate",(e=>(0,u.default)().add(e,"days").toISOString()))},70865:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lodashOperators=void 0,t.lodashOperators=["chunk","compact","concat","difference","drop","dropRight","findIndex","findLastIndex","first","flatten","flattenDeep","flattenDepth","fromPairs","head","indexOf","initial","intersection","intersectionBy","intersectionWith","join","last","lastIndexOf","nth","slice","sortedIndex","sortedIndexBy","sortedIndexOf","sortedLastIndex","sortedLastIndexBy","sortedLastIndexOf","sortedUniq","sortedUniqBy","tail","take","takeRight","takeRightWhile","takeWhile","union","unionBy","unionWith","uniq","uniqBy","uniqWith","unzip","unzipWith","without","xor","xorBy","xorWith","zip","zipObject","zipObjectDeep","zipWith","countBy","every","filter","find","findLast","flatMap","flatMapDeep","flatMapDepth","groupBy","includes","invokeMap","keyBy","map","orderBy","partition","reduce","reduceRight","reject","sample","sampleSize","shuffle","size","some","sortBy","now","flip","negate","overArgs","partial","partialRight","rearg","rest","spread","castArray","clone","cloneDeep","cloneDeepWith","cloneDeep","conformsTo","eq","gt","gte","isArguments","isArray","isArrayBuffer","isArrayLike","isArrayLikeObject","isBoolean","isBuffer","isDate","isElement","isEmpty","isEqual","isEqualWith","isError","isFinite","isFunction","isInteger","isLength","isMap","isMatch","isMatchWith","isNaN","isNative","isNil","isNull","isNumber","isObject","isObjectLike","isPlainObject","isRegExp","isSafeInteger","isSet","isString","isSymbol","isTypedArray","isUndefined","isWeakMap","isWeakSet","lt","lte","toArray","toFinite","toInteger","toLength","toNumber","toPlainObject","toSafeInteger","toString","add","ceil","divide","floor","max","maxBy","mean","meanBy","min","minBy","multiply","round","subtract","sum","sumBy","clamp","inRange","random","at","entries","entriesIn","findKey","findLastKey","functions","functionsIn","get","has","hasIn","invert","invertBy","invoke","keys","keysIn","mapKeys","mapValues","omit","omitBy","pick","pickBy","result","toPairs","toPairsIn","transform","values","valuesIn","camelCase","capitalize","deburr","endsWith","escape","escapeRegExp","kebabCase","lowerCase","lowerFirst","pad","padEnd","padStart","parseInt","repeat","replace","snakeCase","split","startCase","startsWith","toLower","toUpper","trim","trimEnd","trimStart","truncate","unescape","upperCase","upperFirst","words","cond","conforms","constant","defaultTo","flow","flowRight","identity","iteratee","matches","matchesProperty","method","methodOf","nthArg","over","overEvery","overSome","property","propertyOf","range","rangeRight","stubArray","stubFalse","stubObject","stubString","stubTrue","times","toPath","uniqueId"]},35216:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.JSONRule=void 0;const r=n(81343);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{error}}"}check(e=this.component.dataValue,t={},n={},r=0){return i(this,void 0,void 0,(function*(){const{json:i}=this.settings;if(!i)return!0;const o=this.component.evaluate(i,{data:t,row:n,rowIndex:r,input:e});return null===o||o}))}}t.JSONRule=o},76888:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(35216);t.default={json:i.JSONRule}},97136:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(22373);class r{static identity(e){return e}static deregisterPlugin(e){const t=r.plugins.length;return r.plugins=r.plugins.filter((t=>t!==e&&t.__name!==e||((t.deregister||i.noop).call(e,r.Formio),!1))),t!==r.plugins.length}static registerPlugin(e,t){r.plugins.push(e),r.plugins.sort(((e,t)=>(t.priority||0)-(e.priority||0))),e.__name=t,(e.init||i.noop).call(e,r.Formio)}static getPlugin(e){for(const t of r.plugins)if(t.__name===e)return t;return null}static pluginWait(e,...t){return Promise.all(r.plugins.map((n=>(n[e]||i.noop).call(n,...t))))}static pluginGet(e,...t){const n=o=>{const s=r.plugins[o];return s?Promise.resolve((s[e]||i.noop).call(s,...t)).then((e=>(0,i.isNil)(e)?n(o+1):e)):Promise.resolve(null)};return n(0)}static pluginAlter(e,t,...n){return r.plugins.reduce(((t,i)=>(i[e]||r.identity)(t,...n)),t)}}r.plugins=[],t.default=r},4785:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=void 0;var i=n(72574);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return i.Formio}})},89145:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Evaluator=t.BaseEvaluator=void 0;const s=o(n(22373));class a{static evaluator(e,...t){return l.noeval?(console.warn("No evaluations allowed for this renderer."),s.noop):"function"==typeof e?e:("object"==typeof t[0]&&(t=s.keys(t[0])),new Function(...t,e))}static interpolateString(e,t,n={}){return e.replace(/({{\s*(.*?)\s*}})/g,((e,i,r)=>{if(-1!==r.indexOf("("))return r.replace(/([^\(]+)\(([^\)]+)\s*\);?/,((e,i,r)=>{i=s.trim(i);const o=s.get(t,i);return o?(r&&(r=r.split(",").map((e=>0===(e=s.trim(e)).indexOf('"')||0===e.indexOf("'")?e.substring(1,e.length-1):s.get(t,e)))),l.evaluate(o,r,"",!1,t,n)):""}));{let e=r;-1!==r.indexOf("?")&&(e=r.replace(/\?\./g,"."));const i=e.split("||").map((e=>e.trim()));let o="",a="";for(let e=0;e<i.length&&(a=i[e],o=s.get(t,a),!o);e++);return n.data&&s.set(n.data,a,o),o}}))}static interpolate(e,t,n={}){if("function"==typeof e)try{return e(t)}catch(e){return console.warn("Error interpolating template",e,t),e.message}return l.interpolateString(String(e),t,n)}static evaluate(e,t={},n="",i=!1,r={},o={}){let u=null;o=s.isObject(o)?o:{noeval:o};const c=t.component?t.component:{key:"unknown"};!t.form&&t.instance&&(t.form=s.get(t.instance,"root._form",{}));const d=c.key;if("string"==typeof e){n&&(e+=`;return ${n}`),i&&(e=a.interpolate(e,t,o));try{e=l.noeval||o.noeval?s.noop:l.evaluator(e,t,r),t=s.values(t)}catch(t){console.warn(`An error occured within the custom function for ${d}`,t),u=null,e=!1}}if("function"==typeof e)try{u=l.execute(e,t,r,o)}catch(e){u=null,console.warn(`An error occured within custom function for ${d}`,e)}else e&&console.warn(`Unknown function type for ${d}`);return u}static execute(e,t,n={},i={}){if(i=s.isObject(i)?i:{noeval:i},!l.noeval&&!i.noeval)return Array.isArray(t)?e.apply(n,t):e.call(n,t);console.warn("No evaluations allowed for this renderer.")}}t.BaseEvaluator=a,a.templateSettings={interpolate:/{{([\s\S]+?)}}/g,evaluate:/\{%([\s\S]+?)%\}/g,escape:/\{\{\{([\s\S]+?)\}\}\}/g},a.noeval=!1;class l extends a{static registerEvaluator(e){Object.keys(e).forEach((t=>{l[t]=e[t]}))}}t.Evaluator=l},16859:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.dayjs=t.getDateSetting=t.formatDate=t.momentDate=t.convertFormatToMoment=t.currentTimezone=void 0;const r=i(n(27484));t.dayjs=r.default;const o=i(n(29387)),s=i(n(70178)),a=n(22373),l=n(89145);function u(){return r.default.tz.guess()}function c(e){return e.replace(/y/g,"Y").replace(/d/g,"D").replace(/E/g,"d").replace(/a/g,"A").replace(/U/g,"X")}r.default.extend(s.default),r.default.extend(o.default),t.currentTimezone=u,t.convertFormatToMoment=c,t.momentDate=function(e,t,n){const i=(0,r.default)(e);return"UTC"===n?r.default.utc():n!==u()||t&&t.match(/\s(z$|z\s)/)?i.tz(n):i},t.formatDate=function(e,t,n){const i=(0,r.default)(e);return"UTC"===n?`${r.default.utc().format(c(t))} UTC`:n?i.tz(n).format(`${c(t)} z`):i.format(c(t))},t.getDateSetting=function(e){if((0,a.isNil)(e)||(0,a.isNaN)(e)||""===e)return null;if(e instanceof Date)return e;if("function"==typeof e.toDate)return e.isValid()?e.toDate():null;let t="string"!=typeof e||-1===e.indexOf("moment(")?(0,r.default)(e):null;if(t&&t.isValid())return t.toDate();t=null;try{const n=l.Evaluator.evaluator(`return ${e};`,"moment")(r.default);"string"==typeof n?t=(0,r.default)(n):"function"==typeof n.toDate?t=(0,r.default)(n.toDate().toUTCString()):n instanceof Date&&(t=(0,r.default)(n))}catch(e){return null}return t&&t.isValid()?t.toDate():null}},77919:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.empty=t.removeChildFrom=t.prependTo=t.appendTo=void 0,t.appendTo=function(e,t){t&&e&&(null==t||t.appendChild(e))},t.prependTo=function(e,t){if(t&&e)if(t.firstChild)try{t.insertBefore(e,t.firstChild)}catch(n){console.warn(n),t.appendChild(e)}else t.appendChild(e)},t.removeChildFrom=function(e,t){if(t&&e&&t.contains(e))try{t.removeChild(e)}catch(e){console.warn(e)}},t.empty=function(e){if(e)for(;e.firstChild;)e.removeChild(e.firstChild)}},37080:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueName=t.guid=t.flattenComponents=t.eachComponent=void 0;const i=n(89145),r=n(22373);function o(e,t,n,i,r){e&&(i=i||"",e.forEach((s=>{if(!s)return;const a=s.columns&&Array.isArray(s.columns),l=s.rows&&Array.isArray(s.rows),u=s.components&&Array.isArray(s.components);let c=!1;const d=s.key?i?`${i}.${s.key}`:s.key:"";r&&(s.parent=Object.assign({},r),delete s.parent.components,delete s.parent.componentMap,delete s.parent.columns,delete s.parent.rows);const h=a||l||u||["htmlelement","content"].indexOf(s.type)>-1;(n||s.tree||!h)&&(c=t(s,d,e));const p=()=>s.key&&!["panel","table","well","columns","fieldset","tabs","form"].includes(s.type)&&(["datagrid","container","editgrid","address","dynamicWizard"].includes(s.type)||s.tree)?d:s.key&&"form"===s.type?`${d}.data`:i;c||(a?s.columns.forEach((e=>o(e.components,t,n,p(),r?s:null))):l?s.rows.forEach((e=>{Array.isArray(e)&&e.forEach((e=>o(e.components,t,n,p(),r?s:null)))})):u&&o(s.components,t,n,p(),r?s:null))})))}function s(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}t.eachComponent=o,t.flattenComponents=function(e,t){const n={};return o(e,((e,t)=>{n[t]=e}),t),n},t.guid=s,t.uniqueName=function(e,t,n){(t=t||"{{fileName}}-{{guid}}").includes("{{guid}}")||(t=`${t}-{{guid}}`);const o=e.split(".");let a=o.slice(0,o.length-1).join(".");const l=o.length>1?`.${(0,r.last)(o)}`:"";return a=a.substr(0,100),n=Object.assign(n||{},{fileName:a,guid:s()}),`${i.Evaluator.interpolate(t,n)}${l}`.replace(/[^0-9a-zA-Z.\-_ ]/g,"-")}},36808:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.dom=t.unwind=t.override=t.sanitize=t.BaseEvaluator=t.Evaluator=t.Utils=void 0,t.Utils=o(n(37080));var a=n(89145);Object.defineProperty(t,"Evaluator",{enumerable:!0,get:function(){return a.Evaluator}}),Object.defineProperty(t,"BaseEvaluator",{enumerable:!0,get:function(){return a.BaseEvaluator}});var l=n(7622);Object.defineProperty(t,"sanitize",{enumerable:!0,get:function(){return l.sanitize}});var u=n(93792);Object.defineProperty(t,"override",{enumerable:!0,get:function(){return u.override}});var c=n(14366);Object.defineProperty(t,"unwind",{enumerable:!0,get:function(){return c.unwind}}),t.dom=o(n(77919)),s(n(63661),t),s(n(16859),t),s(n(96389),t)},98756:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jwtDecode=void 0,t.jwtDecode=function(e,t={}){if("string"!=typeof e)throw new Error("Invalid token specified: must be a string");const n=!0===t.header?0:1,i=e.split(".")[n];if("string"!=typeof i)throw new Error("Invalid token specified: missing part #"+(n+1));let r;try{r=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,(function(e,t){let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return atob(t)}}(i)}catch(e){throw new Error("Invalid token specified: invalid base64 for part #"+(n+1)+" ("+e.message+")")}try{return JSON.parse(r)}catch(e){throw new Error("Invalid token specified: invalid json for part #"+(n+1)+" ("+e.message+")")}}},96389:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchInputMask=t.getInputMask=void 0;const i=n(22373);t.getInputMask=function(e,t){if(e instanceof Array)return e;const n=[];n.numeric=!0;for(let i=0;i<e.length;i++)switch(e[i]){case"9":n.push(/\d/);break;case"A":n.numeric=!1,n.push(/[a-zA-Z]/);break;case"a":n.numeric=!1,n.push(/[a-z]/);break;case"*":n.numeric=!1,n.push(/[a-zA-Z0-9]/);break;case t:n.numeric=!1,n.push(" ");break;default:n.numeric=!1,n.push(e[i])}return n},t.matchInputMask=function(e,t){if(!t)return!0;if(e.length>t.length)return!1;for(let n=0;n<t.length;n++){const r=e[n],o=t[n];if(!((0,i.isRegExp)(o)&&o.test(r)||o===r))return!1}return!0}},93792:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.override=void 0,t.override=function(e,t){for(let n in t)if(t.hasOwnProperty(n)){const i=t[n];if("function"==typeof i)e.prototype[n]=i;else{const t=Object.getOwnPropertyDescriptor(e.prototype,n);for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e](t[e]));Object.defineProperty(e.prototype,n,t)}}}},7622:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=void 0;const r=i(n(27856));let o=null;t.sanitize=function(e,t){const n=o||(window?(o=(0,r.default)(window),o):null);if(!n)return console.log("DOMPurify unable to sanitize the contents."),e;const i={ADD_ATTR:["ref","target","within"],USE_PROFILES:{html:!0}};return t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addAttr)&&t.sanitizeConfig.addAttr.length>0&&t.sanitizeConfig.addAttr.forEach((e=>{i.ADD_ATTR.push(e)})),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addTags)&&t.sanitizeConfig.addTags.length>0&&(i.ADD_TAGS=t.sanitizeConfig.addTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedTags)&&t.sanitizeConfig.allowedTags.length>0&&(i.ALLOWED_TAGS=t.sanitizeConfig.allowedTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedAttrs)&&t.sanitizeConfig.allowedAttrs.length>0&&(i.ALLOWED_ATTR=t.sanitizeConfig.allowedAttrs),t.sanitizeConfig&&t.sanitizeConfig.allowedUriRegex&&(i.ALLOWED_URI_REGEXP=t.sanitizeConfig.allowedUriRegex),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addUriSafeAttr)&&t.sanitizeConfig.addUriSafeAttr.length>0&&(i.ADD_URI_SAFE_ATTR=t.sanitizeConfig.addUriSafeAttr),n.sanitize(e,i)}},14366:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unwind=t.rewind=t.mergeArray=t.mergeObject=void 0;const i=n(22373),r=n(37080);function o(e,t){(0,i.each)(e,(function(e,n){Array.isArray(e)?(t[n]||(t[n]=[]),s(e,t[n])):t[n]=e}))}function s(e,t){e.forEach((function(e){var n={};(0,i.each)(e,(function(e,t){Array.isArray(e)||(n[t]=e)}));var r=(0,i.find)(t,n);r?o(e,r):t.push(e)}))}t.mergeObject=o,t.mergeArray=s,t.rewind=function(e){var t={data:{}};return e&&e.length&&e.forEach((e=>o(e.data,t.data))),t},t.unwind=function(e,t){var n={},o={},s=[(0,i.fastCloneDeep)(t)],a=function(e,t,n,r,u){for(r=r||0,u=u||0;(0,i.has)(o,"["+u+"]."+n);)u+1>=s.length&&s.push((0,i.fastCloneDeep)(s[u])),u++;var c=n.replace(/\.[^\.]+$/,"");!(0,i.has)(s[u].data,c)&&s[u-1]&&(0,i.has)(s[u-1].data,c)&&(0,i.set)(s[u].data,c,(0,i.fastCloneDeep)((0,i.get)(s[u-1].data,c)));var d=[];(0,i.set)(s[u].data,n,d),(0,i.set)(o,"["+u+"]."+n,!0);for(var h=r;h<t.length;h++){if(!(h-r<=e.max)){a(e,t,n,h,u);break}d.push(t[h]),e.paths&&Object.keys(e.paths).length&&l(e.paths,t[h],n+"["+(h-r)+"]",u)}},l=function(e,t,n,i){for(var r in e){var o=e[r];t[r]&&Array.isArray(t[r])&&a(o,t[r],n?n+"."+r:r,0,i)}},u=function(e,t,n,i){var r=t[n=n||0].match(/([^\[]+)\[?([0-9]+)?\]?/);if(r&&3===r.length){var o=r[1],s=parseInt(r[2],10)||0;e[o]?s>e[o].max&&(e[o].max=s):e[o]={max:s,param:o,parent:i||null,paths:{}},n+1<t.length&&u(e[o].paths,t,n+1,e[o])}};return(0,r.eachComponent)(e.components,(function(e,t){var o;if("form"===e.type&&(null===(o=e.components)||void 0===o?void 0:o.length)&&(0,r.eachComponent)(e.components,(e=>{e.isInsideNestedForm=!0})),e.overlay&&(e.overlay.width||e.overlay.height)){var s=e.properties&&e.properties.dataPath,a=e.key;s&&(t=e.properties.dataPath,a=e.properties.dataPath);var l=(0,i.filter)(t.replace(new RegExp(".?"+e.key+"$"),"").split("."));s||!l.length||e.isInsideNestedForm||(a=l.map((function(e){return e+"[0]"})).join(".")+"."+e.key),e.multiple&&l.push(e.key),e.key=a,l&&l.length&&u(n,l)}}),!0),l(n,t.data),s}},63661:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.boolValue=t.escapeRegExCharacters=void 0;const s=o(n(22373));t.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},t.boolValue=function(e){return s.isBoolean(e)?e:s.isString(e)?"true"===e.toLowerCase():!!e}},59202:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Validator=void 0;class i{static addRules(e){i.rules=Object.assign(Object.assign({},i.rules),e)}static fromComponent(e){const t=e.component.validate||{};return e.component.unique&&(t.unique=!0),new this(e,t)}constructor(e,t){this.component=e,this.ruleOptions=t,this.rules={},this.errors=[];for(let e in t)t.hasOwnProperty(e)&&this.addRule(e,t[e])}addRule(e,t){t&&i.rules.hasOwnProperty(e)&&(this.rules[e]=new i.rules[e](this.component,t))}removeRule(e){this.rules.hasOwnProperty(e)&&delete this.rules[e]}check(e=this.component.dataValue,t={}){return n(this,void 0,void 0,(function*(){if(this.errors=[],this.component.isValueRedacted())return!0;for(let n in this.rules)if(this.rules.hasOwnProperty(n)){const i=this.rules[n],r=yield i.check(e,t);if(!0!==r){const{component:e}=this.component;this.errors.push({type:n,settings:i.settings,message:this.component.interpolate(i.defaultMessage,{error:r,settings:i.settings,field:e.label||e.title||e.key})})}}return 0===this.errors.length}))}getErrorInfo(){return this.errors.length?{component:this.component.component,value:this.component.dataValue,errors:this.errors}:null}}t.Validator=i,i.rules={}},81343:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Rule=t.Rules=t.Validator=void 0;const r=i(n(73929));t.Rules=r.default;const o=n(59202);Object.defineProperty(t,"Validator",{enumerable:!0,get:function(){return o.Validator}}),o.Validator.addRules(r.default);var s=n(97709);Object.defineProperty(t,"Rule",{enumerable:!0,get:function(){return s.Rule}})},6672:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomRule=void 0;const r=n(97709);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ error }}"}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){const t=this.settings;if(!t)return!0;const n=this.component.evaluate(t,{valid:!0,input:e},"valid",!0);return null===n||n}))}}t.CustomRule=o},74979:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.DateRule=void 0;const r=n(97709);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} is not a valid date."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){if(!e||e instanceof Date)return!0;if("string"==typeof e){if("invalid date"===e.toLowerCase())return!1;e=new Date(e)}return"Invalid Date"!==e.toString()}))}}t.DateRule=o},67737:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.DayRule=void 0;const r=n(97709);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} is not a valid day."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){if(!e)return!0;if("string"!=typeof e)return!1;const[t,n,i]=this.component.dayFirst?[0,1,2]:[1,0,2],r=e.split("/").map((e=>parseInt(e,10))),o=r[t],s=r[n],a=r[i],l=function(e,t){switch(e){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:return 31;case 4:case 6:case 9:case 11:return 30;case 2:return function(e){return!(e%400&&(!(e%100)||e%4))}(t)?29:28}}(s,a);return!(isNaN(o)||o<0||o>l||isNaN(s)||s<0||s>12||isNaN(a)||a<0||a>9999)}))}}t.DayRule=o},48746:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.EmailRule=void 0;const r=n(97709);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} must be a valid email."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){return!e||/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}))}}t.EmailRule=o},11804:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MaskRule=void 0;const r=n(36808),o=n(97709);class s extends o.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} does not match the mask."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){let t;if(this.component.isMultipleMasksField){const n=e?e.maskName:void 0,i=this.component.getMaskByName(n);i&&(t=(0,r.getInputMask)(i)),e=e?e.value:e}else t=(0,r.getInputMask)(this.settings);return!e||!t||(0,r.matchInputMask)(e,t)}))}}t.MaskRule=s},55680:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MaxRule=void 0;const r=n(97709);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} cannot be greater than {{ settings }}."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){const t=parseFloat(this.settings),n=parseFloat(e);return!(!Number.isNaN(t)&&!Number.isNaN(n))||n<=t}))}}t.MaxRule=o},71713:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MaxDateRule=void 0;const o=n(36808),s=n(22373),a=r(n(27484)),l=n(97709);class u extends l.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} should not contain date after {{ settings }}"}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){if(!e)return!0;if(e===this.settings)return!0;const t=(0,a.default)(e),n=(0,o.getDateSetting)(this.settings);return!!(0,s.isNull)(n)||(n.setHours(0,0,0,0),t.isBefore(n)||t.isSame(n))}))}}t.MaxDateRule=u},23233:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MaxLengthRule=void 0;const r=n(97709);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} must have no more than {{ settings }} characters."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){const t=parseInt(this.settings,10);return!(e&&t&&e.hasOwnProperty("length"))||e.length<=t}))}}t.MaxLengthRule=o},73013:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MaxWordsRule=void 0;const r=n(97709);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} must have no more than {{ settings }} words."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){const t=parseInt(this.settings,10);return!t||"string"!=typeof e||e.trim().split(/\s+/).length<=t}))}}t.MaxWordsRule=o},80254:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MaxYearRule=void 0;const r=n(97709);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} should not contain year greater than {{ settings }}"}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){const t=this.settings;let n=/\d{4}$/.exec(e);return n=n?n[0]:null,!+t||!+n||+n<=+t}))}}t.MaxYearRule=o},23339:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MinRule=void 0;const r=n(97709),o=n(22373);class s extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} cannot be less than {{ settings }}."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){const t=parseFloat(this.settings),n=parseFloat(e);return!(!(0,o.isNaN)(t)&&!(0,o.isNaN)(n))||n>=t}))}}t.MinRule=s},66525:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MinDateRule=void 0;const o=n(36808),s=n(22373),a=r(n(27484)),l=n(97709);class u extends l.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} should not contain date before {{ settings }}"}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){if(!e)return!0;const t=(0,a.default)(e),n=(0,o.getDateSetting)(this.settings);return!!(0,s.isNull)(n)||(n.setHours(0,0,0,0),t.isAfter(n)||t.isSame(n))}))}}t.MinDateRule=u},87:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MinLengthRule=void 0;const r=n(97709);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} must have no more than {{ settings }} characters."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){const t=parseInt(this.settings,10);return!(t&&e&&e.hasOwnProperty("length")&&!this.component.isEmpty(e))||e.length>=t}))}}t.MinLengthRule=o},87564:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MinWordsRule=void 0;const r=n(97709);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} must have at least {{ settings }} words."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){const t=parseInt(this.settings,10);return!t||!e||"string"!=typeof e||e.trim().split(/\s+/).length>=t}))}}t.MinWordsRule=o},76327:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MinYearRule=void 0;const r=n(97709);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} should not contain year less than {{ settings }}"}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){const t=this.settings;let n=/\d{4}$/.exec(e);return n=n?n[0]:null,!(n&&+t&&+n)||+n>=+t}))}}t.MinYearRule=o},98278:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.PatternRule=void 0;const r=n(97709);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} does not match the pattern {{ settings }}"}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){return new RegExp(`^${this.settings}$`).test(e)}))}}t.PatternRule=o},30709:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.RequiredRule=void 0;const r=n(97709);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} is required"}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){return!this.component.isEmpty(e)}))}}t.RequiredRule=o},97709:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Rule=void 0,t.Rule=class{constructor(e,t){this.component=e,this.settings=t}check(e=this.component.dataValue,t={}){return n(this,void 0,void 0,(function*(){return!1}))}}},15799:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectRule=void 0;const o=n(36808),s=n(22373),a=r(n(87559)),{fetch:l,Headers:u,Request:c}=(0,a.default)(),d=n(97709);class h extends d.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} contains an invalid selection"}check(e=this.component.dataValue,t={}){return i(this,void 0,void 0,(function*(){if(!e||(0,s.isEmpty)(e))return!0;if(!this.settings)return!0;const n=this.component.component,i={url:this.settings,method:"GET",qs:{},json:!0,headers:{}};if((0,s.isBoolean)(i.url)){if(i.url=!!i.url,!i.url||"url"!==n.dataSrc||!n.data.url||!n.searchField)return!0;i.url=n.data.url,i.qs[n.searchField]=e,n.filter&&(i.url+=(i.url.includes("?")?"&":"?")+n.filter),n.selectFields&&(i.qs.select=n.selectFields)}if(!i.url)return!0;i.url=o.Evaluator.interpolate(i.url,{data:this.component.data});const r=[];(0,s.each)(i.qs,((e,t)=>{r.push(`${encodeURIComponent(t)}=${encodeURIComponent(e)}`)})),i.url+=(i.url.includes("?")?"&":"?")+r.join("&"),n.data&&n.data.headers&&(0,s.each)(n.data.headers,(e=>{e.key&&(i.headers[e.key]=e.value)})),n.authenticate&&t.token&&(i.headers["x-jwt-token"]=t.token);const a=yield l(new c(i.url,{headers:new u(i.headers)})),d=yield a.json();return d&&d.length}))}}t.SelectRule=h},42277:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TimeRule=void 0;const o=n(97709),s=r(n(27484));class a extends o.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} must contain valid time"}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){return!!this.component.isEmpty(e)||(this.settings?(0,s.default)(e,this.settings).isValid():(0,s.default)(e).isValid())}))}}t.TimeRule=a},60074:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueRule=void 0;const r=n(36808),o=n(22373),s=n(97709);class a extends s.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} must be unique"}check(e=this.component.dataValue,t={}){return i(this,void 0,void 0,(function*(){if(!e||(0,o.isObjectLike)(e)&&(0,o.isEmpty)(e))return!0;const{form:n,submission:i,db:s}=t;if(!s)return!0;const a=`data.${this.component.path}`,l={form:n._id};(0,o.isString)(e)?l[a]={$regex:new RegExp(`^${(0,r.escapeRegExCharacters)(e)}$`),$options:"i"}:(0,o.isPlainObject)(e)&&e.address&&e.address.address_components&&e.address.place_id?l[`${a}.address.place_id`]={$regex:new RegExp(`^${(0,r.escapeRegExCharacters)(e.address.place_id)}$`),$options:"i"}:(0,o.isArray)(e)?l[a]={$all:e}:((0,o.isObject)(e)||(0,o.isNumber)(e))&&(l[a]={$eq:e}),l.deleted={$eq:null};const u=yield s.findOne(l);return i._id&&u._id.toString()===i._id}))}}t.UniqueRule=a},70021:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.UrlRule=void 0;const r=n(97709);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} must be a valid url."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){return!e||/^(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)&&!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}))}}t.UrlRule=o},73929:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6672),r=n(74979),o=n(67737),s=n(48746),a=n(11804),l=n(55680),u=n(71713),c=n(23233),d=n(73013),h=n(23339),p=n(66525),f=n(87),m=n(87564),g=n(98278),v=n(30709),y=n(15799),b=n(60074),w=n(70021),_=n(76327),k=n(80254),C=n(42277);t.default={custom:i.CustomRule,date:r.DateRule,day:o.DayRule,email:s.EmailRule,mask:a.MaskRule,max:l.MaxRule,maxDate:u.MaxDateRule,maxLength:c.MaxLengthRule,maxWords:d.MaxWordsRule,min:h.MinRule,minDate:p.MinDateRule,minLength:f.MinLengthRule,minWords:m.MinWordsRule,pattern:g.PatternRule,required:v.RequiredRule,select:y.SelectRule,unique:b.UniqueRule,url:w.UrlRule,minYear:_.MinYearRule,maxYear:k.MaxYearRule,time:C.TimeRule}},12937:function(e,t,n){"use strict";var i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.intersection=t.map=t.head=t.last=t.filter=t.findEach=t.matches=t.findIndex=t.find=t.each=t.dropRight=t.drop=t.difference=t.concat=t.compact=t.chunk=void 0;var r=n(67739),o=n(91769);function s(e,t){var n=Array.isArray(e);for(var i in e)if(e.hasOwnProperty(i)&&!0===t(e[i],n?Number(i):i))break}function a(e,t,n){if(void 0===n&&(n=!1),e){if(Array.isArray(e)&&"function"==typeof t)return n?e.findIndex(t):e.find(t);var i=void 0,r=0;return u(e,t,(function(e,t){return i=e,r=t,!0})),n?r:i}}function l(e){var t=[],n={};return"string"==typeof e?(t=[e],n[e]=!0):(t=Object.keys(e),n=e),function(e){return(0,r.isEqual)((0,o.pick)(e,t),n)}}function u(e,t,n){s(e,(function(e,i){if(l(t)(e)&&!0===n(e,i))return!0}))}t.chunk=function(e,t){return e.reduce((function(e,n,r){return r%t==0?i(i([],e,!0),[[n]],!1):i(i([],e.slice(0,-1),!0),[i(i([],e.slice(-1)[0],!0),[n],!1)],!1)}),[])},t.compact=function(e){return e.filter(Boolean)},t.concat=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.concat.apply(e,t)},t.difference=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce((function(e,t){return e.filter((function(e){return!t.includes(e)}))}))},t.drop=function(e,t){return void 0===t&&(t=1),t>0?e.slice(t):e},t.dropRight=function(e,t){return void 0===t&&(t=1),t>0?e.slice(0,-t):e},t.each=s,t.find=a,t.findIndex=function(e,t){return a(e,t,!0)},t.matches=l,t.findEach=u,t.filter=function(e,t){if(!e)return[];if(t||(t=function(e){return!!e}),Array.isArray(e)&&"function"==typeof t)return e.filter(t);var n=[];return u(e,t,(function(t,i){n.push(t),Array.isArray(t)?e.splice(i,1):delete e[i]})),n},t.last=function(e){return e[e.length-1]},t.head=function(e){return e[0]},t.map=function(e,t){return e.map(t)},t.intersection=function(e,t){return e.filter((function(e){return t.includes(e)}))}},33254:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0,t.debounce=function(e,t){var n;return void 0===t&&(t=100),function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];n&&clearTimeout(n),n=setTimeout((function(){n=null,e.apply(void 0,i)}),t)}}},22373:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)},a=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.chain=void 0;var l=o(n(12937)),u=function(){function e(e){this.chain=[],this.currentValue=[],this.currentValue=e}return e.prototype.value=function(){return this.chain.reduce((function(e,t){var n;return(n=l)[t.method].apply(n,a([e],t.args,!1))}),this.currentValue)},e}(),c=function(e){l.hasOwnProperty(e)&&(u.prototype[e]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.chain.push({method:e,args:t}),this})};for(var d in l)c(d);function h(e){return new u(e)}t.chain=h,t.default=h,s(n(12937),t),s(n(33254),t),s(n(67739),t),s(n(87592),t),s(n(91769),t),s(n(67150),t)},67739:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isRegExp=t.isBoolean=t.isNumber=t.isPlainObject=t.isObject=t.isObjectLike=t.isArray=t.isNull=t.isNil=t.isNaN=t.isInteger=t.isEmpty=t.isString=t.isEqual=t.noop=void 0;var i=n(12937);function r(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function o(e){return"object"==typeof e&&null!==e}function s(e){var t=typeof e;return null!=e&&("object"===t||"function"===t)}t.noop=function(){},t.isEqual=function e(t,n){var r=!1;return t===n||(t&&n&&(Array.isArray(t)||s(t))&&Object.keys(t).length===Object.keys(n).length&&(r=!0,(0,i.each)(t,(function(t,i){return!Array.isArray(t)&&!s(t)||e(n[i],t)?n[i]!==t?(r=!1,!0):void 0:(r=!1,!0)}))),r)},t.isString=function(e){return"string"==typeof e},t.isEmpty=function(e){return[Object,Array].includes((e||{}).constructor)&&!Object.entries(e||{}).length},t.isInteger=function(e){return Number.isInteger(e)},t.isNaN=function(e){return Number.isNaN(e)},t.isNil=function(e){return null==e},t.isNull=function(e){return null===e},t.isArray=function(e){return Array.isArray(e)},t.isObjectLike=o,t.isObject=s,t.isPlainObject=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},t.isNumber=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)},t.isBoolean=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)},t.isRegExp=function(e){return o(e)&&"[object RegExp]"==r(e)}},87592:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sumBy=t.sum=t.mod=t.subtract=t.round=t.multiply=t.minBy=t.min=t.meanBy=t.mean=t.maxBy=t.max=t.floor=t.divide=t.ceil=t.add=void 0;var i=n(67739),r=n(91769);function o(e,t,n){return void 0===n&&(n=0),n?t(e*(n=Math.pow(10,n)))/n:t(e)}function s(e,t,n){var o=e[0];if(e.length<=1)return o;var s=(0,i.isString)(t);return e.slice(1).reduce((function(e,i){var o=s?(0,r.get)(e,t):t(e),a=s?(0,r.get)(i,t):t(i);return n(o,a)===a?i:e}),o)}function a(e,t){return e+t}function l(e){return e.reduce(a,0)}function u(e,t){return function(e,t,n){var o=e[0];if(e.length<=1)return o;var s=(0,i.isString)(t);return e.slice(1).reduce((function(e,n){return i=e,o=s?(0,r.get)(n,t):t(n),i+o;var i,o}),s?(0,r.get)(o,t):t(o))}(e,t)}t.add=a,t.ceil=function(e,t){return void 0===t&&(t=0),o(e,Math.ceil,t)},t.divide=function(e,t){return e/t},t.floor=function(e,t){return void 0===t&&(t=0),o(e,Math.floor,t)},t.max=function(e){return Math.max.apply(Math,e)},t.maxBy=function(e,t){return s(e,t,Math.max)},t.mean=function(e){return l(e)/e.length},t.meanBy=function(e,t){return u(e,t)/e.length},t.min=function(e){return Math.min.apply(Math,e)},t.minBy=function(e,t){return s(e,t,Math.min)},t.multiply=function(e,t){return e*t},t.round=function(e,t){return void 0===t&&(t=0),o(e,Math.round,t)},t.subtract=function(e,t){return e-t},t.mod=function(e,t){return e%t},t.sum=l,t.sumBy=u},91769:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.pick=t.defaults=t.cloneDeep=t.clone=t.fastCloneDeep=t.merge=t.set=t.has=t.propertyOf=t.property=t.get=t.pathParts=t.values=t.keys=void 0;var o=n(67739),s=n(12937);function a(e){return e?("["===e[0]&&(e=e.replace(/^\[([^\]]+)\]/,"$1")),e.replace(/\[/g,".").replace(/\]/g,"").split(".")):[]}function l(e,t,n){var i=a(t).reduce((function(e,t){return(e||{})[t]}),e);return void 0!==n&&void 0===i?n:i}function u(e,t){try{return t in e}catch(e){return!1}}function c(e,t){return u(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function d(e){return Array.isArray(e)?e.map(d):null===e||"object"!=typeof e?e:Object.fromEntries(Object.entries(e).map((function(e){return[e[0],d(e[1])]})))}t.keys=function(e){return Object.keys(e)},t.values=function(e){return(0,o.isArray)(e)?e:Object.values(e)},t.pathParts=a,t.get=l,t.property=function(e){return function(t){return l(t,e)}},t.propertyOf=function(e){return function(t){return l(e,t)}},t.has=function(e,t){return void 0!==l(e,t,void 0)},t.set=function(e,t,n){var i=a(t);return i.reduce((function(e,t,r){return isNaN(Number(t))||(t=Number(t)),((Array.isArray(e)?t>=e.length:!e.hasOwnProperty(t))||r<i.length-1&&!Array.isArray(e[t])&&!(0,o.isObject)(e[t]))&&(e[t]=isNaN(Number(i[r+1]))?{}:[]),r===i.length-1&&(e[t]=n),e[t]}),e),e},t.merge=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=t.shift();return t.reduce((function(n,i,r){return n&&n!==i?(0,o.isArray)(i)?((0,o.isArray)(n)||(t[r]=n=[]),function(t,n){return n.forEach((function(n,i){t[i]=e(t[i],n)})),t}(n,i)):(0,o.isPlainObject)(i)?function(t,n){for(var i in n)if(n.hasOwnProperty(i)){if(c(t,i))return;u(t,i)?t[i]=e(t[i],n[i]):t[i]=d(n[i])}return t}(n,i):d(i):d(i)}),i)},t.fastCloneDeep=function(e){try{return JSON.parse(JSON.stringify(e))}catch(e){return console.log("Clone Failed: ".concat(e.message)),null}},t.clone=function(e){return Array.isArray(e)?r([],e,!0):i({},e)},t.cloneDeep=d,t.defaults=function(e,t){return(0,s.each)(t,(function(t,n){e.hasOwnProperty(n)||(e[n]=t)})),e},t.pick=function(e,t){return t.reduce((function(t,n){return e&&e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}},67150:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.endsWith=t.trim=void 0,t.trim=function(e,t){return void 0===t&&(t="\\s"),e.replace(new RegExp("^([".concat(t,"]*)(.*?)([").concat(t,"]*)$")),"$2")},String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e}),t.endsWith=function(e,t){return e.endsWith(t)}},43281:function(e){e.exports=function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);Object.defineProperty(t,"createAutoCorrectedDatePipe",{enumerable:!0,get:function(){return i(r).default}});var o=n(2);Object.defineProperty(t,"createNumberMask",{enumerable:!0,get:function(){return i(o).default}});var s=n(3);Object.defineProperty(t,"emailMask",{enumerable:!0,get:function(){return i(s).default}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mm dd yyyy",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.minYear,o=void 0===r?1:r,s=t.maxYear,a=void 0===s?9999:s,l=e.split(/[^dmyHMS]+/).sort((function(e,t){return i.indexOf(e)-i.indexOf(t)}));return function(t){var i=[],r={dd:31,mm:12,yy:99,yyyy:a,HH:23,MM:59,SS:59},s={dd:1,mm:1,yy:0,yyyy:o,HH:0,MM:0,SS:0},u=t.split("");l.forEach((function(t){var n=e.indexOf(t),o=parseInt(r[t].toString().substr(0,1),10);parseInt(u[n],10)>o&&(u[n+1]=u[n],u[n]=0,i.push(n))}));var c=0,d=l.some((function(i){var l=e.indexOf(i),u=i.length,d=t.substr(l,u).replace(/\D/g,""),h=parseInt(d,10);"mm"===i&&(c=h||0);var p="dd"===i?n[c]:r[i];if("yyyy"===i&&(1!==o||9999!==a)){var f=parseInt(r[i].toString().substring(0,d.length),10);return h<parseInt(s[i].toString().substring(0,d.length),10)||h>f}return h>p||d.length===u&&h<s[i]}));return!d&&{value:u.join(""),indexesOfPipedChars:i}}};var n=[31,31,29,31,30,31,30,31,31,30,31,30,31],i=["yyyy","yy","mm","dd","HH","MM","SS"]},function(e,t){"use strict";function n(e){return e.split(o).map((function(e){return h.test(e)?h:e}))}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=e.length;if(e===o||e[0]===m[0]&&1===t)return m.split(o).concat([h]).concat(v.split(o));if(e===x&&C)return m.split(o).concat(["0",x,h]).concat(v.split(o));var r=e[0]===l&&T;r&&(e=e.toString().substr(1));var s=e.lastIndexOf(x),a=-1!==s,f=void 0,g=void 0,y=void 0;if(e.slice(-1*L)===v&&(e=e.slice(0,-1*L)),a&&(C||P)?(f=e.slice(e.slice(0,I)===m?I:0,s),g=n((g=e.slice(s+1,t)).replace(c,o))):f=e.slice(0,I)===m?e.slice(I):e,V&&(void 0===V?"undefined":i(V))===d){var w="."===_?"[.]":""+_,k=(f.match(new RegExp(w,"g"))||[]).length;f=f.slice(0,V+k*F)}return f=f.replace(c,o),j||(f=f.replace(/^0+(0$|[^0])/,"$1")),y=n(f=b?function(e,t){return e.replace(/\B(?=(\d{3})+(?!\d))/g,t)}(f,_):f),(a&&C||!0===P)&&(e[s-1]!==x&&y.push(p),y.push(x,p),g&&((void 0===S?"undefined":i(S))===d&&(g=g.slice(0,S)),y=y.concat(g)),!0===P&&e[s-1]===x&&y.push(h)),I>0&&(y=m.split(o).concat(y)),r&&(y.length===I&&y.push(h),y=[u].concat(y)),v.length>0&&(y=y.concat(v.split(o))),y}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=t.prefix,m=void 0===f?r:f,g=t.suffix,v=void 0===g?o:g,y=t.includeThousandsSeparator,b=void 0===y||y,w=t.thousandsSeparatorSymbol,_=void 0===w?s:w,k=t.allowDecimal,C=void 0!==k&&k,O=t.decimalSymbol,x=void 0===O?a:O,E=t.decimalLimit,S=void 0===E?2:E,M=t.requireDecimal,P=void 0!==M&&M,A=t.allowNegative,T=void 0!==A&&A,D=t.allowLeadingZeroes,j=void 0!==D&&D,R=t.integerLimit,V=void 0===R?null:R,I=m&&m.length||0,L=v&&v.length||0,F=_&&_.length||0;return e.instanceOf="createNumberMask",e};var r="$",o="",s=",",a=".",l="-",u=/-/,c=/\D+/g,d="number",h=/\d/,p="[]"},function(e,t,n){"use strict";function i(e,t,n){var i=[];return e[t]===n?i.push(n):i.push(h,n),i.push(h),i}function r(e,t,n,i){var r=c;return-1!==t&&(r=-1===n?e.slice(t+1,e.length):e.slice(t+1,n)),(r=r.replace(new RegExp("[\\s"+i+"]",f),c))===d?l:r.length<1?p:r[r.length-1]===u?r.slice(0,r.length-1):r}function o(e,t,n,i){var r=c;return-1!==t&&(r=e.slice(t+1,e.length)),0===(r=r.replace(new RegExp("[\\s"+n+".]",f),c)).length?e[t-1]===u&&i!==e.length?l:c:r}function s(e,t){return e.split(c).map((function(e){return e===p?e:t?g:m}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(n(4)),l="*",u=".",c="",d="@",h="[]",p=" ",f="g",m=/[^\s]/,g=/[^.\s]/,v=/\s/g;t.default={mask:function(e,t){e=e.replace(v,c);var n=t.placeholderChar,a=t.currentCaretPosition,l=e.indexOf(d),h=e.lastIndexOf(u),p=h<l?-1:h,f=i(e,l+1,d),m=i(e,p-1,u),g=function(e,t){return-1===t?e:e.slice(0,t)}(e,l),y=r(e,l,p,n),b=o(e,p,n,a);return g=s(g),y=s(y),b=s(b,!0),g.concat(f).concat(y).concat(m).concat(b)},pipe:a.default}},function(e,t){"use strict";function n(e){var t=0;return e.replace(r,(function(){return 1==++t?i:o}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=t.currentCaretPosition,d=t.rawValue,h=t.previousConformedValue,p=t.placeholderChar,f=e,m=(f=n(f)).indexOf(s);if(null===d.match(new RegExp("[^@\\s."+p+"]")))return o;if(-1!==f.indexOf(l)||-1!==m&&r!==m+1||-1===d.indexOf(i)&&h!==o&&-1!==d.indexOf(a))return!1;var g=f.indexOf(i);return(f.slice(g+1,f.length).match(c)||u).length>1&&f.substr(-1)===a&&r!==d.length&&(f=f.slice(0,f.length-1)),f};var i="@",r=/@/g,o="",s="@.",a=".",l="..",u=[],c=/\./g}])},47853:function(e){e.exports=function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=e.inputElement,n=e.afterUpdate,i=(0,s.default)(e),r=function(e){var t=e.target.value;i.update(t),"function"==typeof n&&n(t)};return t.addEventListener("input",r),i.update(t.value),{textMaskInputElement:i,destroy:function(){t.removeEventListener("input",r)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.conformToMask=void 0,t.maskInput=r;var o=n(2);Object.defineProperty(t,"conformToMask",{enumerable:!0,get:function(){return i(o).default}});var s=i(n(5));t.default=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.placeholderChar="_",t.strFunction="function"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,r.isArray)(t)){if((void 0===t?"undefined":i(t))!==o.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");t=t(e,n),t=(0,r.processCaretTraps)(t).maskWithoutCaretTraps}var l=n.guide,u=void 0===l||l,c=n.previousConformedValue,d=void 0===c?a:c,h=n.placeholderChar,p=void 0===h?o.placeholderChar:h,f=n.placeholder,m=void 0===f?(0,r.convertMaskToPlaceholder)(t,p):f,g=n.currentCaretPosition,v=n.keepCharPositions,y=!1===u&&void 0!==d,b=e.length,w=d.length,_=m.length,k=t.length,C=b-w,O=C>0,x=g+(O?-C:0),E=x+Math.abs(C);if(!0===v&&!O){for(var S=a,M=x;M<E;M++)m[M]===p&&(S+=p);e=e.slice(0,x)+S+e.slice(x,b)}for(var P=e.split(a).map((function(e,t){return{char:e,isNew:t>=x&&t<E}})),A=b-1;A>=0;A--){var T=P[A].char;T!==p&&T===m[A>=x&&w===k?A-C:A]&&P.splice(A,1)}var D=a,j=!1;e:for(var R=0;R<_;R++){var V=m[R];if(V===p){if(P.length>0)for(;P.length>0;){var I=P.shift(),L=I.char,F=I.isNew;if(L===p&&!0!==y){D+=p;continue e}if(t[R].test(L)){if(!0===v&&!1!==F&&d!==a&&!1!==u&&O){for(var N=P.length,U=null,$=0;$<N;$++){var z=P[$];if(z.char!==p&&!1===z.isNew)break;if(z.char===p){U=$;break}}null!==U?(D+=L,P.splice(U,1)):R--}else D+=L;continue e}j=!0}!1===y&&(D+=m.substr(R,_));break}D+=V}if(y&&!1===O){for(var B=null,H=0;H<D.length;H++)m[H]===p&&(B=H);D=null!==B?D.substr(0,B+1):a}return{conformedValue:D,meta:{someCharsRejected:j}}};var r=n(3),o=n(1),s=[],a=""},function(e,t,n){"use strict";function i(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}Object.defineProperty(t,"__esModule",{value:!0}),t.convertMaskToPlaceholder=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.placeholderChar;if(!i(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(t))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(t)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map((function(e){return e instanceof RegExp?t:e})).join("")},t.isArray=i,t.isString=function(e){return"string"==typeof e||e instanceof String},t.isNumber=function(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)},t.isNil=function(e){return null==e},t.processCaretTraps=function(e){for(var t=[],n=void 0;-1!==(n=e.indexOf(s));)t.push(n),e.splice(n,1);return{maskWithoutCaretTraps:e,indexes:t}};var r=n(1),o=[],s="[]"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.previousConformedValue,r=void 0===t?i:t,o=e.previousPlaceholder,s=void 0===o?i:o,a=e.currentCaretPosition,l=void 0===a?0:a,u=e.conformedValue,c=e.rawValue,d=e.placeholderChar,h=e.placeholder,p=e.indexesOfPipedChars,f=void 0===p?n:p,m=e.caretTrapIndexes,g=void 0===m?n:m;if(0===l||!c.length)return 0;var v=c.length,y=r.length,b=h.length,w=u.length,_=v-y,k=_>0;if(_>1&&!k&&0!==y)return l;var C=0,O=void 0,x=void 0;if(!k||r!==u&&u!==h){var E=u.toLowerCase(),S=c.toLowerCase().substr(0,l).split(i).filter((function(e){return-1!==E.indexOf(e)}));x=S[S.length-1];var M=s.substr(0,S.length).split(i).filter((function(e){return e!==d})).length,P=h.substr(0,S.length).split(i).filter((function(e){return e!==d})).length,A=P!==M,T=void 0!==s[S.length-1]&&void 0!==h[S.length-2]&&s[S.length-1]!==d&&s[S.length-1]!==h[S.length-1]&&s[S.length-1]===h[S.length-2];!k&&(A||T)&&M>0&&h.indexOf(x)>-1&&void 0!==c[l]&&(O=!0,x=c[l]);for(var D=f.map((function(e){return E[e]})),j=D.filter((function(e){return e===x})).length,R=S.filter((function(e){return e===x})).length,V=h.substr(0,h.indexOf(d)).split(i).filter((function(e,t){return e===x&&c[t]!==e})).length,I=V+R+j+(O?1:0),L=0,F=0;F<w&&(C=F+1,E[F]===x&&L++,!(L>=I));F++);}else C=l-_;if(k){for(var N=C,U=C;U<=b;U++)if(h[U]===d&&(N=U),h[U]===d||-1!==g.indexOf(U)||U===b)return N}else if(O){for(var $=C-1;$>=0;$--)if(u[$]===x||-1!==g.indexOf($)||0===$)return $}else for(var z=C;z>=0;z--)if(h[z-1]===d||-1!==g.indexOf(z)||0===z)return z};var n=[],i=""},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){(n?n.activeElement:document.activeElement)===e&&(f?m((function(){return e.setSelectionRange(t,t,h)}),0):e.setSelectionRange(t,t,h))}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){var t={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:t,update:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,h=i.inputElement,f=i.mask,m=i.guide,g=i.pipe,v=i.placeholderChar,y=void 0===v?c.placeholderChar:v,b=i.keepCharPositions,w=void 0!==b&&b,_=i.showMask,k=void 0!==_&&_;if(void 0===n&&(n=h.value),n!==t.previousConformedValue){(void 0===f?"undefined":s(f))===p&&void 0!==f.pipe&&void 0!==f.mask&&(g=f.pipe,f=f.mask);var C=void 0,O=void 0;if(f instanceof Array&&(C=(0,u.convertMaskToPlaceholder)(f,y)),!1!==f){var x=function(e){if((0,u.isString)(e))return e;if((0,u.isNumber)(e))return String(e);if(null==e)return d;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}(n),E=h.selectionEnd,S=t.previousConformedValue,M=t.previousPlaceholder,P=void 0;if((void 0===f?"undefined":s(f))===c.strFunction){if(!1===(O=f(x,{currentCaretPosition:E,previousConformedValue:S,placeholderChar:y})))return;var A=(0,u.processCaretTraps)(O);O=A.maskWithoutCaretTraps,P=A.indexes,C=(0,u.convertMaskToPlaceholder)(O,y)}else O=f;var T={previousConformedValue:S,guide:m,placeholderChar:y,pipe:g,placeholder:C,currentCaretPosition:E,keepCharPositions:w},D=(0,l.default)(x,O,T).conformedValue,j=(void 0===g?"undefined":s(g))===c.strFunction,R={};j&&(!1===(R=g(D,o({rawValue:x},T)))?R={value:S,rejected:!0}:(0,u.isString)(R)&&(R={value:R}));var V=j?R.value:D,I=(0,a.default)({previousConformedValue:S,previousPlaceholder:M,conformedValue:V,placeholder:C,rawValue:x,currentCaretPosition:E,placeholderChar:y,indexesOfPipedChars:R.indexesOfPipedChars,caretTrapIndexes:P}),L=V===C&&0===I?k?C:d:V;t.previousConformedValue=L,t.previousPlaceholder=C,h.value!==L&&(x.includes("e-")?h.value=x:h.value=L,r(h,I,e.shadowRoot))}}}}};var a=i(n(4)),l=i(n(2)),u=n(3),c=n(1),d="",h="none",p="object",f="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),m="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout}])},75234:function(e,t,n){"use strict";n.r(t),n.d(t,{cancelAnimationFrame:function(){return o},requestAnimationFrame:function(){return r}});var i=["webkit","moz","ms","o"],r=function(){for(var e=0,t=i.length;e<t&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[i[e]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var n=0;window.requestAnimationFrame=function(e){var t=(new Date).getTime(),i=Math.max(0,16-t-n),r=window.setTimeout((function(){return e(t+i)}),i);return n=t+i,r}}return window.requestAnimationFrame.bind(window)}(),o=function(){for(var e=0,t=i.length;e<t&&!window.cancelAnimationFrame;++e)window.cancelAnimationFrame=window[i[e]+"CancelAnimationFrame"]||window[i[e]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){window.clearTimeout(e)}),window.cancelAnimationFrame.bind(window)}()},44622:function(e,t,n){e.exports="function"==typeof Array.from?Array.from:n(64486)},64486:function(e){var t,n,i,r;e.exports=(t=function(e){return"function"==typeof e},n=Math.pow(2,53)-1,i=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),n)},r=function(e){var t=e.next();return!Boolean(t.done)&&t},function(e){"use strict";var n,o,s,a=this,l=arguments.length>1?arguments[1]:void 0;if(void 0!==l){if(!t(l))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(n=arguments[2])}var u=function(e,n){if(null!=e&&null!=n){var i=e[n];if(null==i)return;if(!t(i))throw new TypeError(i+" is not a function");return i}}(e,function(e){if(null!=e){if(["string","number","boolean","symbol"].indexOf(typeof e)>-1)return Symbol.iterator;if("undefined"!=typeof Symbol&&"iterator"in Symbol&&Symbol.iterator in e)return Symbol.iterator;if("@@iterator"in e)return"@@iterator"}}(e));if(void 0!==u){o=t(a)?Object(new a):[];var c,d,h=u.call(e);if(null==h)throw new TypeError("Array.from requires an array-like or iterable object");for(s=0;;){if(!(c=r(h)))return o.length=s,o;d=c.value,o[s]=l?l.call(n,d,s):d,s++}}else{var p=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var f,m=i(p.length);for(o=t(a)?Object(new a(m)):new Array(m),s=0;s<m;)f=p[s],o[s]=l?l.call(n,f,s):f,s++;o.length=m}return o})},77338:function(e){e.exports=function(){"use strict";return function(e){var t=document,n=e.container||t.createElement("div");n.id=n.id||"autocomplete-"+y();var i,r,o=n.style,s=e.debounceWaitMs||0,a=e.preventSubmit||!1,l=e.disableAutoSelect||!1,u=n.parentElement,c=[],d="",h=2,p=e.showOnFocus,f=0,m=!1,g=!1;if(void 0!==e.minLength&&(h=e.minLength),!e.input)throw new Error("input undefined");var v=e.input;function y(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}function b(){r&&window.clearTimeout(r)}function w(){return!!n.parentNode}function _(){var e;f++,c=[],d="",i=void 0,v.setAttribute("aria-activedescendant",""),v.setAttribute("aria-expanded","false"),(e=n.parentNode)&&e.removeChild(n)}function k(){n.innerHTML="",v.setAttribute("aria-activedescendant","");var r=function(e,n,i){var r=t.createElement("div");return r.textContent=e.label||"",r};e.render&&(r=e.render);var s=function(e,n){var i=t.createElement("div");return i.textContent=e,i};e.renderGroup&&(s=e.renderGroup);var a=t.createDocumentFragment(),l=y();if(c.forEach((function(t,o){if(t.group&&t.group!==l){l=t.group;var u=s(t.group,d);u&&(u.className+=" group",a.appendChild(u))}var c=r(t,d,o);c&&(c.id=n.id+"_"+o,c.setAttribute("role","option"),c.addEventListener("click",(function(n){g=!0;try{e.onSelect(t,v)}finally{g=!1}_(),n.preventDefault(),n.stopPropagation()})),t===i&&(c.className+=" selected",c.setAttribute("aria-selected","true"),v.setAttribute("aria-activedescendant",c.id)),a.appendChild(c))})),n.appendChild(a),c.length<1){if(!e.emptyMsg)return void _();var h=t.createElement("div");h.id=n.id+"_"+y(),h.className="empty",h.textContent=e.emptyMsg,n.appendChild(h),v.setAttribute("aria-activedescendant",h.id)}n.parentNode||(u||t.body).appendChild(n),function(){if(w()){v.setAttribute("aria-expanded","true"),o.height="auto",o.width=v.offsetWidth+"px";var i,r=0;s(),s(),e.customize&&i&&e.customize(v,i,n,r)}function s(){var e=t.documentElement,n=e.clientTop||t.body.clientTop||0,s=e.clientLeft||t.body.clientLeft||0,a=window.pageYOffset||e.scrollTop,l=window.pageXOffset||e.scrollLeft,u=(i=v.getBoundingClientRect()).top+v.offsetHeight+a-n,c=i.left+l-s;o.top=u+"px",o.left=c+"px",(r=window.innerHeight-(i.top+v.offsetHeight))<0&&(r=0),o.top=u+"px",o.bottom="",o.left=c+"px",o.maxHeight=r+"px"}}(),function(){var e=n.getElementsByClassName("selected");if(e.length>0){var t=e[0],i=t.previousElementSibling;if(i&&-1!==i.className.indexOf("group")&&!i.previousElementSibling&&(t=i),t.offsetTop<n.scrollTop)n.scrollTop=t.offsetTop;else{var r=t.offsetTop+t.offsetHeight,o=n.scrollTop+n.offsetHeight;r>o&&(n.scrollTop+=r-o)}}}()}function C(){w()&&k()}function O(){C()}function x(e){e.target!==n?C():e.preventDefault()}function E(){g||A(0)}function S(e,t){var n,r=w();if("Escape"===t)_();else{if(!r||c.length<1)return;"ArrowUp"===t?(n=c.indexOf(i),i=-1===n?void 0:c[(n+c.length-1)%c.length]):function(){var e=c.indexOf(i);i=c.length<1?void 0:-1===e?c[0]:c[(e+1)%c.length]}(),k()}e.preventDefault(),r&&e.stopPropagation()}function M(t){var n=t.key;switch(n){case"ArrowUp":case"ArrowDown":case"Escape":S(t,n);break;case"Enter":!function(t){if(i){g=!0;try{e.onSelect(i,v)}finally{g=!1}_()}a&&t.preventDefault()}(t)}}function P(){p&&A(1)}function A(e){v.value.length>=h||1===e?(b(),r=window.setTimeout((function(){return T(v.value,e,v.selectionStart||0)}),0===e||2===e?s:0)):_()}function T(t,n,r){if(!m){var o=++f;e.fetch(t,(function(e){f===o&&e&&(d=t,i=(c=e).length<1||l?void 0:c[0],k())}),n,r)}}function D(t){e.keyup?e.keyup({event:t,fetch:function(){return A(0)}}):w()||"ArrowDown"!==t.key||A(0)}function j(t){e.click&&e.click({event:t,fetch:function(){return A(2)}})}function R(){setTimeout((function(){t.activeElement!==v&&_()}),200)}return n.className="autocomplete "+(e.className||""),n.setAttribute("role","listbox"),v.setAttribute("role","combobox"),v.setAttribute("aria-expanded","false"),v.setAttribute("aria-autocomplete","list"),v.setAttribute("aria-controls",n.id),v.setAttribute("aria-owns",n.id),v.setAttribute("aria-activedescendant",""),v.setAttribute("aria-haspopup","listbox"),o.position="absolute",n.addEventListener("mousedown",(function(e){e.stopPropagation(),e.preventDefault()})),n.addEventListener("focus",(function(){return v.focus()})),v.addEventListener("keyup",D),v.addEventListener("click",j),v.addEventListener("keydown",M),v.addEventListener("input",E),v.addEventListener("blur",R),v.addEventListener("focus",P),window.addEventListener("resize",O),t.addEventListener("scroll",x,!0),{destroy:function(){v.removeEventListener("focus",P),v.removeEventListener("keyup",D),v.removeEventListener("click",j),v.removeEventListener("keydown",M),v.removeEventListener("input",E),v.removeEventListener("blur",R),window.removeEventListener("resize",O),t.removeEventListener("scroll",x,!0),v.removeAttribute("role"),v.removeAttribute("aria-expanded"),v.removeAttribute("aria-autocomplete"),v.removeAttribute("aria-controls"),v.removeAttribute("aria-activedescendant"),v.removeAttribute("aria-owns"),v.removeAttribute("aria-haspopup"),b(),_(),m=!0},fetch:function(){T(v.value,3,v.selectionStart||0)}}}}()},4389:function(e,t){t.defaults={},t.set=function(e,n,i){var r=i||{},o=t.defaults,s=r.expires||o.expires,a=r.domain||o.domain,l=void 0!==r.path?r.path:void 0!==o.path?o.path:"/",u=void 0!==r.secure?r.secure:o.secure,c=void 0!==r.httponly?r.httponly:o.httponly,d=void 0!==r.samesite?r.samesite:o.samesite,h=s?new Date("number"==typeof s?(new Date).getTime()+864e5*s:s):0;document.cookie=e.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+n.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(h&&h.getTime()>=0?";expires="+h.toUTCString():"")+(a?";domain="+a:"")+(l?";path="+l:"")+(u?";secure":"")+(c?";httponly":"")+(d?";samesite="+d:"")},t.get=function(e){for(var t=document.cookie.split(";");t.length;){var n=t.pop(),i=n.indexOf("=");if(i=i<0?n.length:i,decodeURIComponent(n.slice(0,i).replace(/^\s+/,""))===e)return decodeURIComponent(n.slice(i+1))}return null},t.erase=function(e,n){t.set(e,"",{expires:-1,domain:n&&n.domain,path:n&&n.path,secure:0,httponly:0})},t.all=function(){for(var e={},t=document.cookie.split(";");t.length;){var n=t.pop(),i=n.indexOf("=");i=i<0?n.length:i,e[decodeURIComponent(n.slice(0,i).replace(/^\s+/,""))]=decodeURIComponent(n.slice(i+1))}return e}},354:function(e){e.exports=function(){"use strict";var e=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports=function(e){var t=function(e,t){return e+t&4294967295},n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i(e,n,i,r,o,s){return n=t(t(n,e),t(r,s)),t(n<<o|n>>>32-o,i)}function r(e,t,n,r,o,s,a){return i(t&n|~t&r,e,t,o,s,a)}function o(e,t,n,r,o,s,a){return i(t&r|n&~r,e,t,o,s,a)}function s(e,t,n,r,o,s,a){return i(t^n^r,e,t,o,s,a)}function a(e,t,n,r,o,s,a){return i(n^(t|~r),e,t,o,s,a)}function l(e,n){var i=e[0],l=e[1],u=e[2],c=e[3];i=r(i,l,u,c,n[0],7,-680876936),c=r(c,i,l,u,n[1],12,-389564586),u=r(u,c,i,l,n[2],17,606105819),l=r(l,u,c,i,n[3],22,-1044525330),i=r(i,l,u,c,n[4],7,-176418897),c=r(c,i,l,u,n[5],12,1200080426),u=r(u,c,i,l,n[6],17,-1473231341),l=r(l,u,c,i,n[7],22,-45705983),i=r(i,l,u,c,n[8],7,1770035416),c=r(c,i,l,u,n[9],12,-1958414417),u=r(u,c,i,l,n[10],17,-42063),l=r(l,u,c,i,n[11],22,-1990404162),i=r(i,l,u,c,n[12],7,1804603682),c=r(c,i,l,u,n[13],12,-40341101),u=r(u,c,i,l,n[14],17,-1502002290),i=o(i,l=r(l,u,c,i,n[15],22,1236535329),u,c,n[1],5,-165796510),c=o(c,i,l,u,n[6],9,-1069501632),u=o(u,c,i,l,n[11],14,643717713),l=o(l,u,c,i,n[0],20,-373897302),i=o(i,l,u,c,n[5],5,-701558691),c=o(c,i,l,u,n[10],9,38016083),u=o(u,c,i,l,n[15],14,-660478335),l=o(l,u,c,i,n[4],20,-405537848),i=o(i,l,u,c,n[9],5,568446438),c=o(c,i,l,u,n[14],9,-1019803690),u=o(u,c,i,l,n[3],14,-187363961),l=o(l,u,c,i,n[8],20,1163531501),i=o(i,l,u,c,n[13],5,-1444681467),c=o(c,i,l,u,n[2],9,-51403784),u=o(u,c,i,l,n[7],14,1735328473),i=s(i,l=o(l,u,c,i,n[12],20,-1926607734),u,c,n[5],4,-378558),c=s(c,i,l,u,n[8],11,-2022574463),u=s(u,c,i,l,n[11],16,1839030562),l=s(l,u,c,i,n[14],23,-35309556),i=s(i,l,u,c,n[1],4,-1530992060),c=s(c,i,l,u,n[4],11,1272893353),u=s(u,c,i,l,n[7],16,-155497632),l=s(l,u,c,i,n[10],23,-1094730640),i=s(i,l,u,c,n[13],4,681279174),c=s(c,i,l,u,n[0],11,-358537222),u=s(u,c,i,l,n[3],16,-722521979),l=s(l,u,c,i,n[6],23,76029189),i=s(i,l,u,c,n[9],4,-640364487),c=s(c,i,l,u,n[12],11,-421815835),u=s(u,c,i,l,n[15],16,530742520),i=a(i,l=s(l,u,c,i,n[2],23,-995338651),u,c,n[0],6,-198630844),c=a(c,i,l,u,n[7],10,1126891415),u=a(u,c,i,l,n[14],15,-1416354905),l=a(l,u,c,i,n[5],21,-57434055),i=a(i,l,u,c,n[12],6,1700485571),c=a(c,i,l,u,n[3],10,-1894986606),u=a(u,c,i,l,n[10],15,-1051523),l=a(l,u,c,i,n[1],21,-2054922799),i=a(i,l,u,c,n[8],6,1873313359),c=a(c,i,l,u,n[15],10,-30611744),u=a(u,c,i,l,n[6],15,-1560198380),l=a(l,u,c,i,n[13],21,1309151649),i=a(i,l,u,c,n[4],6,-145523070),c=a(c,i,l,u,n[11],10,-1120210379),u=a(u,c,i,l,n[2],15,718787259),l=a(l,u,c,i,n[9],21,-343485551),e[0]=t(i,e[0]),e[1]=t(l,e[1]),e[2]=t(u,e[2]),e[3]=t(c,e[3])}function u(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function c(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function d(e){var t,n,i,r,o,s,a=e.length,c=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=a;t+=64)l(c,u(e.substring(t-64,t)));for(n=(e=e.substring(t-64)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<n;t+=1)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(l(c,i),t=0;t<16;t+=1)i[t]=0;return r=(r=8*a).toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(r[2],16),s=parseInt(r[1],16)||0,i[14]=o,i[15]=s,l(c,i),c}function h(e){var t,n,i,r,o,s,a=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=a;t+=64)l(u,c(e.subarray(t-64,t)));for(n=(e=t-64<a?e.subarray(t-64):new Uint8Array(0)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<n;t+=1)i[t>>2]|=e[t]<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(l(u,i),t=0;t<16;t+=1)i[t]=0;return r=(r=8*a).toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(r[2],16),s=parseInt(r[1],16)||0,i[14]=o,i[15]=s,l(u,i),u}function p(e){var t,i="";for(t=0;t<4;t+=1)i+=n[e>>8*t+4&15]+n[e>>8*t&15];return i}function f(e){var t;for(t=0;t<e.length;t+=1)e[t]=p(e[t]);return e.join("")}function m(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function g(e,t){var n,i=e.length,r=new ArrayBuffer(i),o=new Uint8Array(r);for(n=0;n<i;n+=1)o[n]=e.charCodeAt(n);return t?o:r}function v(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function y(e,t,n){var i=new Uint8Array(e.byteLength+t.byteLength);return i.set(new Uint8Array(e)),i.set(new Uint8Array(t),e.byteLength),n?i:i.buffer}function b(e){var t,n=[],i=e.length;for(t=0;t<i-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function w(){this.reset()}return"5d41402abc4b2a76b9719d911017c592"!==f(d("hello"))&&(t=function(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,i){var r,o,s,a,l=this.byteLength,u=t(n,l),c=l;return i!==e&&(c=t(i,l)),u>c?new ArrayBuffer(0):(r=c-u,o=new ArrayBuffer(r),s=new Uint8Array(o),a=new Uint8Array(this,u,r),s.set(a),o)}}(),w.prototype.append=function(e){return this.appendBinary(m(e)),this},w.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,n=this._buff.length;for(t=64;t<=n;t+=64)l(this._hash,u(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},w.prototype.end=function(e){var t,n,i=this._buff,r=i.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<r;t+=1)o[t>>2]|=i.charCodeAt(t)<<(t%4<<3);return this._finish(o,r),n=f(this._hash),e&&(n=b(n)),this.reset(),n},w.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},w.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},w.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},w.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},w.prototype._finish=function(e,t){var n,i,r,o=t;if(e[o>>2]|=128<<(o%4<<3),o>55)for(l(this._hash,e),o=0;o<16;o+=1)e[o]=0;n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(n[2],16),r=parseInt(n[1],16)||0,e[14]=i,e[15]=r,l(this._hash,e)},w.hash=function(e,t){return w.hashBinary(m(e),t)},w.hashBinary=function(e,t){var n=f(d(e));return t?b(n):n},w.ArrayBuffer=function(){this.reset()},w.ArrayBuffer.prototype.append=function(e){var t,n=y(this._buff.buffer,e,!0),i=n.length;for(this._length+=e.byteLength,t=64;t<=i;t+=64)l(this._hash,c(n.subarray(t-64,t)));return this._buff=t-64<i?new Uint8Array(n.buffer.slice(t-64)):new Uint8Array(0),this},w.ArrayBuffer.prototype.end=function(e){var t,n,i=this._buff,r=i.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<r;t+=1)o[t>>2]|=i[t]<<(t%4<<3);return this._finish(o,r),n=f(this._hash),e&&(n=b(n)),this.reset(),n},w.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},w.ArrayBuffer.prototype.getState=function(){var e=w.prototype.getState.call(this);return e.buff=v(e.buff),e},w.ArrayBuffer.prototype.setState=function(e){return e.buff=g(e.buff,!0),w.prototype.setState.call(this,e)},w.ArrayBuffer.prototype.destroy=w.prototype.destroy,w.ArrayBuffer.prototype._finish=w.prototype._finish,w.ArrayBuffer.hash=function(e,t){var n=f(h(new Uint8Array(e)));return t?b(n):n},w}()}));return class{md5(t,n,i){this.aborted=!1,this.progress=0;let r=0;const o=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,s=2097152,a=Math.ceil(t.size/s),l=new e.ArrayBuffer,u=new FileReader;function c(){const e=r*s,n=e+s>=t.size?t.size:e+s;u.readAsArrayBuffer(o.call(t,e,n))}c(),u.onloadend=e=>{l.append(e.target.result),r++,this.progress=r/a,i&&"function"==typeof i&&i(this.progress),this.aborted?n("aborted"):r<a?c():n(null,l.end())}}abort(){this.aborted=!0}}}()},6445:function(e,t,n){"use strict";n.r(t),n.d(t,{compare:function(){return c},compareVersions:function(){return u},satisfies:function(){return f},validate:function(){return m},validateStrict:function(){return g}});const i=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,r=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(i);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},o=e=>"*"===e||"x"===e||"X"===e,s=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},a=(e,t)=>{if(o(e)||o(t))return 0;const[n,i]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(s(e),s(t));return n>i?1:n<i?-1:0},l=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const i=a(e[n]||"0",t[n]||"0");if(0!==i)return i}return 0},u=(e,t)=>{const n=r(e),i=r(t),o=n.pop(),s=i.pop(),a=l(n,i);return 0!==a?a:o&&s?l(o.split("."),s.split(".")):o||s?o?-1:1:0},c=(e,t,n)=>{p(n);const i=u(e,t);return d[n].includes(i)},d={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},h=Object.keys(d),p=e=>{if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===h.indexOf(e))throw new Error(`Invalid operator, expected one of ${h.join("|")}`)},f=(e,t)=>{if((t=t.replace(/([><=]+)\s+/g,"$1")).includes("||"))return t.split("||").some((t=>f(e,t)));if(t.includes(" - ")){const[n,i]=t.split(" - ",2);return f(e,`>=${n} <=${i}`)}if(t.includes(" "))return t.trim().replace(/\s{2,}/g," ").split(" ").every((t=>f(e,t)));const n=t.match(/^([<>=~^]+)/),i=n?n[1]:"=";if("^"!==i&&"~"!==i)return c(e,t,i);const[o,s,a,,u]=r(e),[d,h,p,,m]=r(t),g=[o,s,a],v=[d,null!=h?h:"x",null!=p?p:"x"];if(m){if(!u)return!1;if(0!==l(g,v))return!1;if(-1===l(u.split("."),m.split(".")))return!1}const y=v.findIndex((e=>"0"!==e))+1,b="~"===i?2:y>1?y:1;return 0===l(g.slice(0,b),v.slice(0,b))&&-1!==l(g.slice(b),v.slice(b))},m=e=>"string"==typeof e&&/^[v\d]/.test(e)&&i.test(e),g=e=>"string"==typeof e&&/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/.test(e)},49233:function(e,t,n){"use strict";var i=n(405);e.exports=i},40454:function(e,t,n){"use strict";n(66992),n(38559);var i=n(40857);e.exports=i.Object.fromEntries},76554:function(e,t,n){"use strict";e.exports=n(57651)},57651:function(e,t,n){"use strict";var i=n(49233);e.exports=i},19662:function(e,t,n){"use strict";var i=n(60614),r=n(66330),o=TypeError;e.exports=function(e){if(i(e))return e;throw o(r(e)+" is not a function")}},96077:function(e,t,n){"use strict";var i=n(60614),r=String,o=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw o("Can't set "+r(e)+" as a prototype")}},51223:function(e,t,n){"use strict";var i=n(5112),r=n(70030),o=n(3070).f,s=i("unscopables"),a=Array.prototype;null==a[s]&&o(a,s,{configurable:!0,value:r(null)}),e.exports=function(e){a[s][e]=!0}},19670:function(e,t,n){"use strict";var i=n(70111),r=String,o=TypeError;e.exports=function(e){if(i(e))return e;throw o(r(e)+" is not an object")}},41318:function(e,t,n){"use strict";var i=n(45656),r=n(51400),o=n(26244),s=function(e){return function(t,n,s){var a,l=i(t),u=o(l),c=r(s,u);if(e&&n!=n){for(;u>c;)if((a=l[c++])!=a)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},84326:function(e,t,n){"use strict";var i=n(1702),r=i({}.toString),o=i("".slice);e.exports=function(e){return o(r(e),8,-1)}},70648:function(e,t,n){"use strict";var i=n(51694),r=n(60614),o=n(84326),s=n(5112)("toStringTag"),a=Object,l="Arguments"==o(function(){return arguments}());e.exports=i?o:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?n:l?o(t):"Object"==(i=o(t))&&r(t.callee)?"Arguments":i}},99920:function(e,t,n){"use strict";var i=n(92597),r=n(53887),o=n(31236),s=n(3070);e.exports=function(e,t,n){for(var a=r(t),l=s.f,u=o.f,c=0;c<a.length;c++){var d=a[c];i(e,d)||n&&i(n,d)||l(e,d,u(t,d))}}},49920:function(e,t,n){"use strict";var i=n(47293);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},76178:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},68880:function(e,t,n){"use strict";var i=n(19781),r=n(3070),o=n(79114);e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},79114:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},86135:function(e,t,n){"use strict";var i=n(34948),r=n(3070),o=n(79114);e.exports=function(e,t,n){var s=i(t);s in e?r.f(e,s,o(0,n)):e[s]=n}},98052:function(e,t,n){"use strict";var i=n(60614),r=n(3070),o=n(56339),s=n(13072);e.exports=function(e,t,n,a){a||(a={});var l=a.enumerable,u=void 0!==a.name?a.name:t;if(i(n)&&o(n,u,a),a.global)l?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},13072:function(e,t,n){"use strict";var i=n(17854),r=Object.defineProperty;e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},19781:function(e,t,n){"use strict";var i=n(47293);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(e){"use strict";var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},80317:function(e,t,n){"use strict";var i=n(17854),r=n(70111),o=i.document,s=r(o)&&r(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},48324:function(e){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},98509:function(e,t,n){"use strict";var i=n(80317)("span").classList,r=i&&i.constructor&&i.constructor.prototype;e.exports=r===Object.prototype?void 0:r},88113:function(e){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(e,t,n){"use strict";var i,r,o=n(17854),s=n(88113),a=o.process,l=o.Deno,u=a&&a.versions||l&&l.version,c=u&&u.v8;c&&(r=(i=c.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&s&&(!(i=s.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/))&&(r=+i[1]),e.exports=r},80748:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},82109:function(e,t,n){"use strict";var i=n(17854),r=n(31236).f,o=n(68880),s=n(98052),a=n(13072),l=n(99920),u=n(54705);e.exports=function(e,t){var n,c,d,h,p,f=e.target,m=e.global,g=e.stat;if(n=m?i:g?i[f]||a(f,{}):(i[f]||{}).prototype)for(c in t){if(h=t[c],d=e.dontCallGetSet?(p=r(n,c))&&p.value:n[c],!u(m?c:f+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&o(h,"sham",!0),s(n,c,h,e)}}},47293:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},49974:function(e,t,n){"use strict";var i=n(21470),r=n(19662),o=n(34374),s=i(i.bind);e.exports=function(e,t){return r(e),void 0===t?e:o?s(e,t):function(){return e.apply(t,arguments)}}},34374:function(e,t,n){"use strict";var i=n(47293);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},46916:function(e,t,n){"use strict";var i=n(34374),r=Function.prototype.call;e.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},76530:function(e,t,n){"use strict";var i=n(19781),r=n(92597),o=Function.prototype,s=i&&Object.getOwnPropertyDescriptor,a=r(o,"name"),l=a&&"something"===function(){}.name,u=a&&(!i||i&&s(o,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:u}},75668:function(e,t,n){"use strict";var i=n(1702),r=n(19662);e.exports=function(e,t,n){try{return i(r(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},21470:function(e,t,n){"use strict";var i=n(84326),r=n(1702);e.exports=function(e){if("Function"===i(e))return r(e)}},1702:function(e,t,n){"use strict";var i=n(34374),r=Function.prototype,o=r.call,s=i&&r.bind.bind(o,o);e.exports=i?s:function(e){return function(){return o.apply(e,arguments)}}},35005:function(e,t,n){"use strict";var i=n(17854),r=n(60614);e.exports=function(e,t){return arguments.length<2?(n=i[e],r(n)?n:void 0):i[e]&&i[e][t];var n}},71246:function(e,t,n){"use strict";var i=n(70648),r=n(58173),o=n(68554),s=n(97497),a=n(5112)("iterator");e.exports=function(e){if(!o(e))return r(e,a)||r(e,"@@iterator")||s[i(e)]}},18554:function(e,t,n){"use strict";var i=n(46916),r=n(19662),o=n(19670),s=n(66330),a=n(71246),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(r(n))return o(i(n,e));throw l(s(e)+" is not iterable")}},58173:function(e,t,n){"use strict";var i=n(19662),r=n(68554);e.exports=function(e,t){var n=e[t];return r(n)?void 0:i(n)}},17854:function(e,t,n){"use strict";var i=function(e){return e&&e.Math==Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},92597:function(e,t,n){"use strict";var i=n(1702),r=n(47908),o=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(r(e),t)}},3501:function(e){"use strict";e.exports={}},60490:function(e,t,n){"use strict";var i=n(35005);e.exports=i("document","documentElement")},64664:function(e,t,n){"use strict";var i=n(19781),r=n(47293),o=n(80317);e.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},68361:function(e,t,n){"use strict";var i=n(1702),r=n(47293),o=n(84326),s=Object,a=i("".split);e.exports=r((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?a(e,""):s(e)}:s},42788:function(e,t,n){"use strict";var i=n(1702),r=n(60614),o=n(5465),s=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),e.exports=o.inspectSource},29909:function(e,t,n){"use strict";var i,r,o,s=n(94811),a=n(17854),l=n(70111),u=n(68880),c=n(92597),d=n(5465),h=n(6200),p=n(3501),f="Object already initialized",m=a.TypeError,g=a.WeakMap;if(s||d.state){var v=d.state||(d.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,i=function(e,t){if(v.has(e))throw m(f);return t.facade=e,v.set(e,t),t},r=function(e){return v.get(e)||{}},o=function(e){return v.has(e)}}else{var y=h("state");p[y]=!0,i=function(e,t){if(c(e,y))throw m(f);return t.facade=e,u(e,y,t),t},r=function(e){return c(e,y)?e[y]:{}},o=function(e){return c(e,y)}}e.exports={set:i,get:r,has:o,enforce:function(e){return o(e)?r(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}}}},97659:function(e,t,n){"use strict";var i=n(5112),r=n(97497),o=i("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||s[o]===e)}},60614:function(e,t,n){"use strict";var i=n(4154),r=i.all;e.exports=i.IS_HTMLDDA?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},54705:function(e,t,n){"use strict";var i=n(47293),r=n(60614),o=/#|\.prototype\./,s=function(e,t){var n=l[a(e)];return n==c||n!=u&&(r(t)?i(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=s.data={},u=s.NATIVE="N",c=s.POLYFILL="P";e.exports=s},68554:function(e){"use strict";e.exports=function(e){return null==e}},70111:function(e,t,n){"use strict";var i=n(60614),r=n(4154),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:i(e)||e===o}:function(e){return"object"==typeof e?null!==e:i(e)}},31913:function(e){"use strict";e.exports=!1},52190:function(e,t,n){"use strict";var i=n(35005),r=n(60614),o=n(47976),s=n(43307),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return r(t)&&o(t.prototype,a(e))}},20408:function(e,t,n){"use strict";var i=n(49974),r=n(46916),o=n(19670),s=n(66330),a=n(97659),l=n(26244),u=n(47976),c=n(18554),d=n(71246),h=n(99212),p=TypeError,f=function(e,t){this.stopped=e,this.result=t},m=f.prototype;e.exports=function(e,t,n){var g,v,y,b,w,_,k,C=n&&n.that,O=!(!n||!n.AS_ENTRIES),x=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),S=!(!n||!n.INTERRUPTED),M=i(t,C),P=function(e){return g&&h(g,"normal",e),new f(!0,e)},A=function(e){return O?(o(e),S?M(e[0],e[1],P):M(e[0],e[1])):S?M(e,P):M(e)};if(x)g=e.iterator;else if(E)g=e;else{if(!(v=d(e)))throw p(s(e)+" is not iterable");if(a(v)){for(y=0,b=l(e);b>y;y++)if((w=A(e[y]))&&u(m,w))return w;return new f(!1)}g=c(e,v)}for(_=x?e.next:g.next;!(k=r(_,g)).done;){try{w=A(k.value)}catch(e){h(g,"throw",e)}if("object"==typeof w&&w&&u(m,w))return w}return new f(!1)}},99212:function(e,t,n){"use strict";var i=n(46916),r=n(19670),o=n(58173);e.exports=function(e,t,n){var s,a;r(e);try{if(!(s=o(e,"return"))){if("throw"===t)throw n;return n}s=i(s,e)}catch(e){a=!0,s=e}if("throw"===t)throw n;if(a)throw s;return r(s),n}},63061:function(e,t,n){"use strict";var i=n(13383).IteratorPrototype,r=n(70030),o=n(79114),s=n(58003),a=n(97497),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=r(i,{next:o(+!u,n)}),s(e,c,!1,!0),a[c]=l,e}},51656:function(e,t,n){"use strict";var i=n(82109),r=n(46916),o=n(31913),s=n(76530),a=n(60614),l=n(63061),u=n(79518),c=n(27674),d=n(58003),h=n(68880),p=n(98052),f=n(5112),m=n(97497),g=n(13383),v=s.PROPER,y=s.CONFIGURABLE,b=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,_=f("iterator"),k="keys",C="values",O="entries",x=function(){return this};e.exports=function(e,t,n,s,f,g,E){l(n,t,s);var S,M,P,A=function(e){if(e===f&&V)return V;if(!w&&e in j)return j[e];switch(e){case k:case C:case O:return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",D=!1,j=e.prototype,R=j[_]||j["@@iterator"]||f&&j[f],V=!w&&R||A(f),I="Array"==t&&j.entries||R;if(I&&(S=u(I.call(new e)))!==Object.prototype&&S.next&&(o||u(S)===b||(c?c(S,b):a(S[_])||p(S,_,x)),d(S,T,!0,!0),o&&(m[T]=x)),v&&f==C&&R&&R.name!==C&&(!o&&y?h(j,"name",C):(D=!0,V=function(){return r(R,this)})),f)if(M={values:A(C),keys:g?V:A(k),entries:A(O)},E)for(P in M)(w||D||!(P in j))&&p(j,P,M[P]);else i({target:t,proto:!0,forced:w||D},M);return o&&!E||j[_]===V||p(j,_,V,{name:f}),m[t]=V,M}},13383:function(e,t,n){"use strict";var i,r,o,s=n(47293),a=n(60614),l=n(70111),u=n(70030),c=n(79518),d=n(98052),h=n(5112),p=n(31913),f=h("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(r=c(c(o)))!==Object.prototype&&(i=r):m=!0),!l(i)||s((function(){var e={};return i[f].call(e)!==e}))?i={}:p&&(i=u(i)),a(i[f])||d(i,f,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:m}},97497:function(e){"use strict";e.exports={}},26244:function(e,t,n){"use strict";var i=n(17466);e.exports=function(e){return i(e.length)}},56339:function(e,t,n){"use strict";var i=n(1702),r=n(47293),o=n(60614),s=n(92597),a=n(19781),l=n(76530).CONFIGURABLE,u=n(42788),c=n(29909),d=c.enforce,h=c.get,p=String,f=Object.defineProperty,m=i("".slice),g=i("".replace),v=i([].join),y=a&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||l&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&s(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=d(e);return s(i,"source")||(i.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return o(this)&&h(this).source||u(this)}),"toString")},74758:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?n:t)(i)}},70030:function(e,t,n){"use strict";var i,r=n(19670),o=n(36048),s=n(80748),a=n(3501),l=n(60490),u=n(80317),c=n(6200),d="prototype",h="script",p=c("IE_PROTO"),f=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;v="undefined"!=typeof document?document.domain&&i?g(i):(t=u("iframe"),n="java"+h+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(i);for(var r=s.length;r--;)delete v[d][s[r]];return v()};a[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[d]=r(e),n=new f,f[d]=null,n[p]=e):n=v(),void 0===t?n:o.f(n,t)}},36048:function(e,t,n){"use strict";var i=n(19781),r=n(3353),o=n(3070),s=n(19670),a=n(45656),l=n(81956);t.f=i&&!r?Object.defineProperties:function(e,t){s(e);for(var n,i=a(t),r=l(t),u=r.length,c=0;u>c;)o.f(e,n=r[c++],i[n]);return e}},3070:function(e,t,n){"use strict";var i=n(19781),r=n(64664),o=n(3353),s=n(19670),a=n(34948),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";t.f=i?o?function(e,t,n){if(s(e),t=a(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var i=c(e,t);i&&i[p]&&(e[t]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:d in n?n[d]:i[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(s(e),t=a(t),s(n),r)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},31236:function(e,t,n){"use strict";var i=n(19781),r=n(46916),o=n(55296),s=n(79114),a=n(45656),l=n(34948),u=n(92597),c=n(64664),d=Object.getOwnPropertyDescriptor;t.f=i?d:function(e,t){if(e=a(e),t=l(t),c)try{return d(e,t)}catch(e){}if(u(e,t))return s(!r(o.f,e,t),e[t])}},8006:function(e,t,n){"use strict";var i=n(16324),r=n(80748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},25181:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},79518:function(e,t,n){"use strict";var i=n(92597),r=n(60614),o=n(47908),s=n(6200),a=n(49920),l=s("IE_PROTO"),u=Object,c=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=o(e);if(i(t,l))return t[l];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},47976:function(e,t,n){"use strict";var i=n(1702);e.exports=i({}.isPrototypeOf)},16324:function(e,t,n){"use strict";var i=n(1702),r=n(92597),o=n(45656),s=n(41318).indexOf,a=n(3501),l=i([].push);e.exports=function(e,t){var n,i=o(e),u=0,c=[];for(n in i)!r(a,n)&&r(i,n)&&l(c,n);for(;t.length>u;)r(i,n=t[u++])&&(~s(c,n)||l(c,n));return c}},81956:function(e,t,n){"use strict";var i=n(16324),r=n(80748);e.exports=Object.keys||function(e){return i(e,r)}},55296:function(e,t){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);t.f=r?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},27674:function(e,t,n){"use strict";var i=n(75668),r=n(19670),o=n(96077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=i(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),o(i),t?e(n,i):n.__proto__=i,n}}():void 0)},92140:function(e,t,n){"use strict";var i=n(46916),r=n(60614),o=n(70111),s=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&r(n=e.toString)&&!o(a=i(n,e)))return a;if(r(n=e.valueOf)&&!o(a=i(n,e)))return a;if("string"!==t&&r(n=e.toString)&&!o(a=i(n,e)))return a;throw s("Can't convert object to primitive value")}},53887:function(e,t,n){"use strict";var i=n(35005),r=n(1702),o=n(8006),s=n(25181),a=n(19670),l=r([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=s.f;return n?l(t,n(e)):t}},40857:function(e,t,n){"use strict";var i=n(17854);e.exports=i},84488:function(e,t,n){"use strict";var i=n(68554),r=TypeError;e.exports=function(e){if(i(e))throw r("Can't call method on "+e);return e}},58003:function(e,t,n){"use strict";var i=n(3070).f,r=n(92597),o=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,o)&&i(e,o,{configurable:!0,value:t})}},6200:function(e,t,n){"use strict";var i=n(72309),r=n(69711),o=i("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},5465:function(e,t,n){"use strict";var i=n(17854),r=n(13072),o="__core-js_shared__",s=i[o]||r(o,{});e.exports=s},72309:function(e,t,n){"use strict";var i=n(31913),r=n(5465);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.0",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE",source:"https://github.com/zloirock/core-js"})},36293:function(e,t,n){"use strict";var i=n(7392),r=n(47293),o=n(17854).String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},51400:function(e,t,n){"use strict";var i=n(19303),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},45656:function(e,t,n){"use strict";var i=n(68361),r=n(84488);e.exports=function(e){return i(r(e))}},19303:function(e,t,n){"use strict";var i=n(74758);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},17466:function(e,t,n){"use strict";var i=n(19303),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},47908:function(e,t,n){"use strict";var i=n(84488),r=Object;e.exports=function(e){return r(i(e))}},57593:function(e,t,n){"use strict";var i=n(46916),r=n(70111),o=n(52190),s=n(58173),a=n(92140),l=n(5112),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!r(e)||o(e))return e;var n,l=s(e,c);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!r(n)||o(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},34948:function(e,t,n){"use strict";var i=n(57593),r=n(52190);e.exports=function(e){var t=i(e,"string");return r(t)?t:t+""}},51694:function(e,t,n){"use strict";var i={};i[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(i)},66330:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},69711:function(e,t,n){"use strict";var i=n(1702),r=0,o=Math.random(),s=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++r+o,36)}},43307:function(e,t,n){"use strict";var i=n(36293);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){"use strict";var i=n(19781),r=n(47293);e.exports=i&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},94811:function(e,t,n){"use strict";var i=n(17854),r=n(60614),o=i.WeakMap;e.exports=r(o)&&/native code/.test(String(o))},5112:function(e,t,n){"use strict";var i=n(17854),r=n(72309),o=n(92597),s=n(69711),a=n(36293),l=n(43307),u=i.Symbol,c=r("wks"),d=l?u.for||u:u&&u.withoutSetter||s;e.exports=function(e){return o(c,e)||(c[e]=a&&o(u,e)?u[e]:d("Symbol."+e)),c[e]}},66992:function(e,t,n){"use strict";var i=n(45656),r=n(51223),o=n(97497),s=n(29909),a=n(3070).f,l=n(51656),u=n(76178),c=n(31913),d=n(19781),h="Array Iterator",p=s.set,f=s.getterFor(h);e.exports=l(Array,"Array",(function(e,t){p(this,{type:h,target:i(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,u(void 0,!0)):u("keys"==n?i:"values"==n?t[i]:[i,t[i]],!1)}),"values");var m=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!c&&d&&"values"!==m.name)try{a(m,"name",{value:"values"})}catch(e){}},38559:function(e,t,n){"use strict";var i=n(82109),r=n(20408),o=n(86135);i({target:"Object",stat:!0},{fromEntries:function(e){var t={};return r(e,(function(e,n){o(t,e,n)}),{AS_ENTRIES:!0}),t}})},33948:function(e,t,n){"use strict";var i=n(17854),r=n(48324),o=n(98509),s=n(66992),a=n(68880),l=n(5112),u=l("iterator"),c=l("toStringTag"),d=s.values,h=function(e,t){if(e){if(e[u]!==d)try{a(e,u,d)}catch(t){e[u]=d}if(e[c]||a(e,c,t),r[t])for(var n in s)if(e[n]!==s[n])try{a(e,n,s[n])}catch(t){e[n]=s[n]}}};for(var p in r)h(i[p]&&i[p].prototype,p);h(o,"DOMTokenList")},405:function(e,t,n){"use strict";var i=n(40454);n(33948),e.exports=i},6367:function(e,t,n){"use strict";var i=n(15893);e.exports=function(e,t){t=t||{};var n=i.boolean(t.allowUpdate,!0);return function(t){if(t=t||window.event,e.target=t.target||t.srcElement||t.originalTarget,e.element=this,e.type=t.type,n(t)){if(t.targetTouches)e.x=t.targetTouches[0].clientX,e.y=t.targetTouches[0].clientY,e.pageX=t.targetTouches[0].pageX,e.pageY=t.targetTouches[0].pageY,e.screenX=t.targetTouches[0].screenX,e.screenY=t.targetTouches[0].screenY;else{if(null===t.pageX&&null!==t.clientX){var i=t.target&&t.target.ownerDocument||document,r=i.documentElement,o=i.body;e.pageX=t.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)}else e.pageX=t.pageX,e.pageY=t.pageY;e.x=t.clientX,e.y=t.clientY,e.screenX=t.screenX,e.screenY=t.screenY}e.clientX=e.x,e.clientY=e.y}}}},27484:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",i="second",r="minute",o="hour",s="day",a="week",l="month",u="quarter",c="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},v={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+g(i,2,"0")+":"+g(r,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(i,l),o=n-r<0,s=t.clone().add(i+(o?-1:1),l);return+(-(i+(n-r)/(o?r-s:s-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:c,w:a,d:s,D:d,h:o,m:r,s:i,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",b={};b[y]=m;var w=function(e){return e instanceof O},_=function e(t,n,i){var r;if(!t)return y;if("string"==typeof t){var o=t.toLowerCase();b[o]&&(r=o),n&&(b[o]=n,r=o);var s=t.split("-");if(!r&&s.length>1)return e(s[0])}else{var a=t.name;b[a]=t,r=a}return!i&&r&&(y=r),r||!i&&y},k=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new O(n)},C=v;C.l=_,C.i=w,C.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var O=function(){function m(e){this.$L=_(e.locale,null,!0),this.parse(e)}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(p);if(i){var r=i[2]-1||0,o=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return C},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return k(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<k(e)},g.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,u=!!C.u(t)||t,h=C.p(e),p=function(e,t){var i=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return u?i:i.endOf(s)},f=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case c:return u?p(1,0):p(31,11);case l:return u?p(1,g):p(0,g+1);case a:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return p(u?v-w:v+(6-w),g);case s:case d:return f(y+"Hours",0);case o:return f(y+"Minutes",1);case r:return f(y+"Seconds",2);case i:return f(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var a,u=C.p(e),h="set"+(this.$u?"UTC":""),p=(a={},a[s]=h+"Date",a[d]=h+"Date",a[l]=h+"Month",a[c]=h+"FullYear",a[o]=h+"Hours",a[r]=h+"Minutes",a[i]=h+"Seconds",a[n]=h+"Milliseconds",a)[u],f=u===s?this.$D+(t-this.$W):t;if(u===l||u===c){var m=this.clone().set(d,1);m.$d[p](f),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[C.p(e)]()},g.add=function(n,u){var d,h=this;n=Number(n);var p=C.p(u),f=function(e){var t=k(h);return C.w(t.date(t.date()+Math.round(e*n)),h)};if(p===l)return this.set(l,this.$M+n);if(p===c)return this.set(c,this.$y+n);if(p===s)return f(1);if(p===a)return f(7);var m=(d={},d[r]=e,d[o]=t,d[i]=1e3,d)[p]||1,g=this.$d.getTime()+n*m;return C.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var i=e||"YYYY-MM-DDTHH:mm:ssZ",r=C.z(this),o=this.$H,s=this.$m,a=this.$M,l=n.weekdays,u=n.months,c=n.meridiem,d=function(e,n,r,o){return e&&(e[n]||e(t,i))||r[n].slice(0,o)},p=function(e){return C.s(o%12||12,e,"0")},m=c||function(e,t,n){var i=e<12?"AM":"PM";return n?i.toLowerCase():i};return i.replace(f,(function(e,i){return i||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return a+1;case"MM":return C.s(a+1,2,"0");case"MMM":return d(n.monthsShort,a,u,3);case"MMMM":return d(u,a);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return C.s(o,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return m(o,s,!0);case"A":return m(o,s,!1);case"m":return String(s);case"mm":return C.s(s,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,d,h){var p,f=this,m=C.p(d),g=k(n),v=(g.utcOffset()-this.utcOffset())*e,y=this-g,b=function(){return C.m(f,g)};switch(m){case c:p=b()/12;break;case l:p=b();break;case u:p=b()/3;break;case a:p=(y-v)/6048e5;break;case s:p=(y-v)/864e5;break;case o:p=y/t;break;case r:p=y/e;break;case i:p=y/1e3;break;default:p=y}return h?p:C.a(p)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return b[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),i=_(e,t,!0);return i&&(n.$L=i),n},g.clone=function(){return C.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),x=O.prototype;return k.prototype=x,[["$ms",n],["$s",i],["$m",r],["$H",o],["$W",s],["$M",l],["$y",c],["$D",d]].forEach((function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),k.extend=function(e,t){return e.$i||(e(t,O,k),e.$i=!0),k},k.locale=_,k.isDayjs=w,k.unix=function(e){return k(1e3*e)},k.en=b[y],k.Ls=b,k.p={},k}()},29387:function(e){e.exports=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,i,r){var o,s=function(e,n,i){void 0===i&&(i={});var r=new Date(e),o=function(e,n){void 0===n&&(n={});var i=n.timeZoneName||"short",r=e+"|"+i,o=t[r];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),t[r]=o),o}(n,i);return o.formatToParts(r)},a=function(t,n){for(var i=s(t,n),o=[],a=0;a<i.length;a+=1){var l=i[a],u=l.type,c=l.value,d=e[u];d>=0&&(o[d]=parseInt(c,10))}var h=o[3],p=24===h?0:h,f=o[0]+"-"+o[1]+"-"+o[2]+" "+p+":"+o[4]+":"+o[5]+":000",m=+t;return(r.utc(f).valueOf()-(m-=m%1e3))/6e4},l=i.prototype;l.tz=function(e,t){void 0===e&&(e=o);var n=this.utcOffset(),i=this.toDate(),s=i.toLocaleString("en-US",{timeZone:e}),a=Math.round((i-new Date(s))/1e3/60),l=r(s).$set("millisecond",this.$ms).utcOffset(15*-Math.round(i.getTimezoneOffset()/15)-a,!0);if(t){var u=l.utcOffset();l=l.add(n-u,"minute")}return l.$x.$timezone=e,l},l.offsetName=function(e){var t=this.$x.$timezone||r.tz.guess(),n=s(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var u=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return u.call(this,e,t);var n=r(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return u.call(n,e,t).tz(this.$x.$timezone,!0)},r.tz=function(e,t,n){var i=n&&t,s=n||t||o,l=a(+r(),s);if("string"!=typeof e)return r(e).tz(s);var u=function(e,t,n){var i=e-60*t*1e3,r=a(i,n);if(t===r)return[i,t];var o=a(i-=60*(r-t)*1e3,n);return r===o?[i,r]:[e-60*Math.min(r,o)*1e3,Math.max(r,o)]}(r.utc(e,i).valueOf(),l,s),c=u[0],d=u[1],h=r(c).utcOffset(d);return h.$x.$timezone=s,h},r.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},r.tz.setDefault=function(e){o=e}}}()},70178:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(i,r,o){var s=r.prototype;o.utc=function(e){return new r({date:e,utc:!0,args:arguments})},s.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var l=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=s.utcOffset;s.utcOffset=function(i,r){var o=this.$utils().u;if(o(i))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof i&&(i=function(e){void 0===e&&(e="");var i=e.match(t);if(!i)return null;var r=(""+i[0]).match(n)||["-",0,0],o=r[0],s=60*+r[1]+ +r[2];return 0===s?0:"+"===o?s:-s}(i),null===i))return this;var s=Math.abs(i)<=16?60*i:i,a=this;if(r)return a.$offset=s,a.$u=0===i,a;if(0!==i){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(s+l,e)).$offset=s,a.$x.$localOffset=l}else a=this.utc();return a};var c=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var d=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var h=s.diff;s.diff=function(e,t,n){if(e&&this.$u===e.$u)return h.call(this,e,t,n);var i=this.local(),r=o(e).local();return h.call(i,r,t,n)}}}()},2201:function(e,t,n){"use strict";var i,r=n(15893),o=n(75234),s=n(21209),a=n(22415),l=(i=n(64825))&&"object"==typeof i&&"default"in i?i.default:i;function u(e,t){void 0===t&&(t={});var n=this,i=4,u=!1;this.margin=t.margin||-1,this.scrollWhenOutside=t.scrollWhenOutside||!1;var d={},h=a.createPointCB(d),p=l(),f=!1;window.addEventListener("mousemove",h,!1),window.addEventListener("touchmove",h,!1),isNaN(t.maxSpeed)||(i=t.maxSpeed),this.autoScroll=r.boolean(t.autoScroll),this.syncMove=r.boolean(t.syncMove,!1),this.destroy=function(t){window.removeEventListener("mousemove",h,!1),window.removeEventListener("touchmove",h,!1),window.removeEventListener("mousedown",_,!1),window.removeEventListener("touchstart",_,!1),window.removeEventListener("mouseup",k,!1),window.removeEventListener("touchend",k,!1),window.removeEventListener("pointerup",k,!1),window.removeEventListener("mouseleave",O,!1),window.removeEventListener("mousemove",E,!1),window.removeEventListener("touchmove",E,!1),window.removeEventListener("scroll",w,!0),e=[],t&&C()},this.add=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return s.addElements.apply(void 0,[e].concat(t)),this},this.remove=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return s.removeElements.apply(void 0,[e].concat(t))};var m,g,v=null;"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),g=e,e=[],g.forEach((function(e){e===window?v=window:n.add(e)})),Object.defineProperties(this,{down:{get:function(){return f}},maxSpeed:{get:function(){return i}},point:{get:function(){return d}},scrolling:{get:function(){return u}}});var y,b=null;function w(t){for(var n=0;n<e.length;n++)if(e[n]===t.target){u=!0;break}u&&o.requestAnimationFrame((function(){return u=!1}))}function _(){f=!0}function k(){f=!1,C()}function C(){o.cancelAnimationFrame(y),o.cancelAnimationFrame(m)}function O(){f=!1}function x(){for(var t=null,n=0;n<e.length;n++)c(d,e[n])&&(t=e[n]);return t}function E(t){if(n.autoScroll()&&!t.dispatched){var i=t.target,r=document.body;b&&!c(d,b)&&(n.scrollWhenOutside||(b=null)),i&&i.parentNode===r?i=x():(i=function(t){if(!t)return null;if(b===t)return t;if(s.hasElement(e,t))return t;for(;t=t.parentNode;)if(s.hasElement(e,t))return t;return null}(i))||(i=x()),i&&i!==b&&(b=i),v&&(o.cancelAnimationFrame(m),m=o.requestAnimationFrame(S)),b&&(o.cancelAnimationFrame(y),y=o.requestAnimationFrame(M))}}function S(){P(v),o.cancelAnimationFrame(m),m=o.requestAnimationFrame(S)}function M(){b&&(P(b),o.cancelAnimationFrame(y),y=o.requestAnimationFrame(M))}function P(e){var t,i,r=a.getClientRect(e);t=d.x<r.left+n.margin?Math.floor(Math.max(-1,(d.x-r.left)/n.margin-1)*n.maxSpeed):d.x>r.right-n.margin?Math.ceil(Math.min(1,(d.x-r.right)/n.margin+1)*n.maxSpeed):0,i=d.y<r.top+n.margin?Math.floor(Math.max(-1,(d.y-r.top)/n.margin-1)*n.maxSpeed):d.y>r.bottom-n.margin?Math.ceil(Math.min(1,(d.y-r.bottom)/n.margin+1)*n.maxSpeed):0,n.syncMove()&&p.dispatch(e,{pageX:d.pageX+t,pageY:d.pageY+i,clientX:d.x+t,clientY:d.y+i}),setTimeout((function(){i&&function(e,t){e===window?window.scrollTo(e.pageXOffset,e.pageYOffset+t):e.scrollTop+=t}(e,i),t&&function(e,t){e===window?window.scrollTo(e.pageXOffset+t,e.pageYOffset):e.scrollLeft+=t}(e,t)}))}window.addEventListener("mousedown",_,!1),window.addEventListener("touchstart",_,!1),window.addEventListener("mouseup",k,!1),window.addEventListener("touchend",k,!1),window.addEventListener("pointerup",k,!1),window.addEventListener("mousemove",E,!1),window.addEventListener("touchmove",E,!1),window.addEventListener("mouseleave",O,!1),window.addEventListener("scroll",w,!0)}function c(e,t,n){return n?e.y>n.top&&e.y<n.bottom&&e.x>n.left&&e.x<n.right:a.pointInside(e,t)}e.exports=function(e,t){return new u(e,t)}},64825:function(e){"use strict";var t,n=void 0;"function"!=typeof Object.create?(t=function(){},n=function(e,n){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");t.prototype=e||{};var i=new t;return t.prototype=null,void 0!==n&&Object.defineProperties(i,n),null===e&&(i.__proto__=null),i}):n=Object.create;var i=n,r=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function o(e,t){t=t||{};for(var n=i(e),o=0;o<r.length;o++)void 0!==t[r[o]]&&(n[r[o]]=t[r[o]]);return n}function s(e,t){console.log("data ",t),e.data=t||{},e.dispatched="mousemove"}e.exports=function(e){var t={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null};function n(e){for(var n=0;n<r.length;n++)t[r[n]]=e[r[n]]}return void 0!==e&&e.addEventListener("mousemove",n),{destroy:function(){e&&e.removeEventListener("mousemove",n,!1),t=null},dispatch:MouseEvent?function(e,n,i){var r=new MouseEvent("mousemove",o(t,n));return s(r,i),e.dispatchEvent(r)}:"function"==typeof document.createEvent?function(e,n,i){var r=o(t,n),a=document.createEvent("MouseEvents");return a.initMouseEvent("mousemove",!0,!0,window,0,r.screenX,r.screenY,r.clientX,r.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.button,r.relatedTarget),s(a,i),e.dispatchEvent(a)}:"function"==typeof document.createEventObject?function(e,n,i){var r=document.createEventObject(),a=o(t,n);for(var l in a)r[l]=a[l];return s(r,i),e.dispatchEvent(r)}:void 0}}},22415:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=(i=n(6367))&&"object"==typeof i&&"default"in i?i.default:i;function o(e){if(e===window)return function(){var e={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},e);var t={};return Object.defineProperties(t,e),t}();try{var t=e.getBoundingClientRect();return void 0===t.x&&(t.x=t.left,t.y=t.top),t}catch(t){throw new TypeError("Can't call getBoundingClientRect on "+e)}}t.createPointCB=r,t.getClientRect=o,t.pointInside=function(e,t){var n=o(t);return e.y>n.top&&e.y<n.bottom&&e.x>n.left&&e.x<n.right}},21209:function(e,t,n){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(44622)),o=i(n(10448)),s=i(n(63847)),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},l=function(e){return null!=e&&"object"===(void 0===e?"undefined":a(e))&&1===e.nodeType&&"object"===a(e.style)&&"object"===a(e.ownerDocument)};function u(e){if("string"==typeof e)try{return document.querySelector(e)}catch(e){throw e}else if(s(e))return e}function c(e,t){if(t=p(t,!0),!l(t))return-1;for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function d(e,t){return-1!==c(e,t)}function h(e){if(!e)return[];try{return"string"==typeof e?r(document.querySelectorAll(e)):o(e)?e.map(p):void 0===e.length?[p(e)]:r(e,p)}catch(e){throw new Error(e)}}function p(e,t){if("string"==typeof e)try{return document.querySelector(e)}catch(e){throw e}if(!l(e)&&!t)throw new TypeError(e+" is not a DOM element.");return e}t.indexOfElement=c,t.hasElement=d,t.domListOf=h,t.concatElementLists=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.reduce((function(e,t){return t.length?e:e.concat(h(t))}),[])},t.addElements=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return function(e,t){for(var n=0;n<t.length;n++)d(e,t[n])||e.push(t[n]);return t}(e,t=t.map(p))},t.removeElements=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return t.map(p).reduce((function(t,n){var i=c(e,n);return-1!==i?t.concat(e.splice(i,1)):t}),[])},t.resolveElement=p,t.select=u,t.selectAll=function(e){return"string"==typeof e?Array.prototype.slice.apply(document.querySelectorAll(e)):o(e)?e.map(u):"length"in e?r(e).map(u):void 0}},27856:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:i,getOwnPropertyDescriptor:r}=Object;let{freeze:o,seal:s,create:a}=Object,{apply:l,construct:u}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e,t,n){return e.apply(t,n)}),o||(o=function(e){return e}),s||(s=function(e){return e}),u||(u=function(e,t){return new e(...t)});const c=k(Array.prototype.forEach),d=k(Array.prototype.pop),h=k(Array.prototype.push),p=k(String.prototype.toLowerCase),f=k(String.prototype.toString),m=k(String.prototype.match),g=k(String.prototype.replace),v=k(String.prototype.indexOf),y=k(String.prototype.trim),b=k(RegExp.prototype.test),w=(_=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u(_,t)});var _;function k(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return l(e,t,i)}}function C(e,i,r){var o;r=null!==(o=r)&&void 0!==o?o:p,t&&t(e,null);let s=i.length;for(;s--;){let t=i[s];if("string"==typeof t){const e=r(t);e!==t&&(n(i)||(i[s]=e),t=e)}e[t]=!0}return e}function O(t){const n=a(null);for(const[i,r]of e(t))n[i]=r;return n}function x(e,t){for(;null!==e;){const n=r(e,t);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}e=i(e)}return function(e){return console.warn("fallback value for",e),null}}const E=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),S=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),P=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),A=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),T=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),D=o(["#text"]),j=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),R=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),V=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),I=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),F=s(/<%[\w\W]*|[\w\W]*%>/gm),N=s(/\${[\w\W]*}/gm),U=s(/^data-[\-\w.\u00B7-\uFFFF]/),$=s(/^aria-[\-\w]+$/),z=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),B=s(/^(?:\w+script|data):/i),H=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q=s(/^html$/i);var W=Object.freeze({__proto__:null,MUSTACHE_EXPR:L,ERB_EXPR:F,TMPLIT_EXPR:N,DATA_ATTR:U,ARIA_ATTR:$,IS_ALLOWED_URI:z,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:H,DOCTYPE_NAME:q});const Y=()=>"undefined"==typeof window?null:window;return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y();const i=e=>t(e);if(i.version="3.0.5",i.removed=[],!n||!n.document||9!==n.document.nodeType)return i.isSupported=!1,i;const r=n.document,s=r.currentScript;let{document:a}=n;const{DocumentFragment:l,HTMLTemplateElement:u,Node:_,Element:k,NodeFilter:L,NamedNodeMap:F=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:N,DOMParser:U,trustedTypes:$}=n,B=k.prototype,H=x(B,"cloneNode"),K=x(B,"nextSibling"),G=x(B,"childNodes"),J=x(B,"parentNode");if("function"==typeof u){const e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let Z,X="";const{implementation:Q,createNodeIterator:ee,createDocumentFragment:te,getElementsByTagName:ne}=a,{importNode:ie}=r;let re={};i.isSupported="function"==typeof e&&"function"==typeof J&&Q&&void 0!==Q.createHTMLDocument;const{MUSTACHE_EXPR:oe,ERB_EXPR:se,TMPLIT_EXPR:ae,DATA_ATTR:le,ARIA_ATTR:ue,IS_SCRIPT_OR_DATA:ce,ATTR_WHITESPACE:de}=W;let{IS_ALLOWED_URI:he}=W,pe=null;const fe=C({},[...E,...S,...M,...A,...D]);let me=null;const ge=C({},[...j,...R,...V,...I]);let ve=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ye=null,be=null,we=!0,_e=!0,ke=!1,Ce=!0,Oe=!1,xe=!1,Ee=!1,Se=!1,Me=!1,Pe=!1,Ae=!1,Te=!0,De=!1,je=!0,Re=!1,Ve={},Ie=null;const Le=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Fe=null;const Ne=C({},["audio","video","img","source","image","track"]);let Ue=null;const $e=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ze="http://www.w3.org/1998/Math/MathML",Be="http://www.w3.org/2000/svg",He="http://www.w3.org/1999/xhtml";let qe=He,We=!1,Ye=null;const Ke=C({},[ze,Be,He],f);let Ge;const Je=["application/xhtml+xml","text/html"];let Ze,Xe=null;const Qe=a.createElement("form"),et=function(e){return e instanceof RegExp||e instanceof Function},tt=function(e){if(!Xe||Xe!==e){if(e&&"object"==typeof e||(e={}),e=O(e),Ge=Ge=-1===Je.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ze="application/xhtml+xml"===Ge?f:p,pe="ALLOWED_TAGS"in e?C({},e.ALLOWED_TAGS,Ze):fe,me="ALLOWED_ATTR"in e?C({},e.ALLOWED_ATTR,Ze):ge,Ye="ALLOWED_NAMESPACES"in e?C({},e.ALLOWED_NAMESPACES,f):Ke,Ue="ADD_URI_SAFE_ATTR"in e?C(O($e),e.ADD_URI_SAFE_ATTR,Ze):$e,Fe="ADD_DATA_URI_TAGS"in e?C(O(Ne),e.ADD_DATA_URI_TAGS,Ze):Ne,Ie="FORBID_CONTENTS"in e?C({},e.FORBID_CONTENTS,Ze):Le,ye="FORBID_TAGS"in e?C({},e.FORBID_TAGS,Ze):{},be="FORBID_ATTR"in e?C({},e.FORBID_ATTR,Ze):{},Ve="USE_PROFILES"in e&&e.USE_PROFILES,we=!1!==e.ALLOW_ARIA_ATTR,_e=!1!==e.ALLOW_DATA_ATTR,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Oe=e.SAFE_FOR_TEMPLATES||!1,xe=e.WHOLE_DOCUMENT||!1,Me=e.RETURN_DOM||!1,Pe=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_TRUSTED_TYPE||!1,Se=e.FORCE_BODY||!1,Te=!1!==e.SANITIZE_DOM,De=e.SANITIZE_NAMED_PROPS||!1,je=!1!==e.KEEP_CONTENT,Re=e.IN_PLACE||!1,he=e.ALLOWED_URI_REGEXP||z,qe=e.NAMESPACE||He,ve=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ve.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ve.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ve.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Oe&&(_e=!1),Pe&&(Me=!0),Ve&&(pe=C({},[...D]),me=[],!0===Ve.html&&(C(pe,E),C(me,j)),!0===Ve.svg&&(C(pe,S),C(me,R),C(me,I)),!0===Ve.svgFilters&&(C(pe,M),C(me,R),C(me,I)),!0===Ve.mathMl&&(C(pe,A),C(me,V),C(me,I))),e.ADD_TAGS&&(pe===fe&&(pe=O(pe)),C(pe,e.ADD_TAGS,Ze)),e.ADD_ATTR&&(me===ge&&(me=O(me)),C(me,e.ADD_ATTR,Ze)),e.ADD_URI_SAFE_ATTR&&C(Ue,e.ADD_URI_SAFE_ATTR,Ze),e.FORBID_CONTENTS&&(Ie===Le&&(Ie=O(Ie)),C(Ie,e.FORBID_CONTENTS,Ze)),je&&(pe["#text"]=!0),xe&&C(pe,["html","head","body"]),pe.table&&(C(pe,["tbody"]),delete ye.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Z=e.TRUSTED_TYPES_POLICY,X=Z.createHTML("")}else void 0===Z&&(Z=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}($,s)),null!==Z&&"string"==typeof X&&(X=Z.createHTML(""));o&&o(e),Xe=e}},nt=C({},["mi","mo","mn","ms","mtext"]),it=C({},["foreignobject","desc","title","annotation-xml"]),rt=C({},["title","style","font","a","script"]),ot=C({},S);C(ot,M),C(ot,P);const st=C({},A);C(st,T);const at=function(e){h(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},lt=function(e,t){try{h(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){h(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!me[e])if(Me||Pe)try{at(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ut=function(e){let t,n;if(Se)e="<remove></remove>"+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ge&&qe===He&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=Z?Z.createHTML(e):e;if(qe===He)try{t=(new U).parseFromString(i,Ge)}catch(e){}if(!t||!t.documentElement){t=Q.createDocument(qe,"template",null);try{t.documentElement.innerHTML=We?X:i}catch(e){}}const r=t.body||t.documentElement;return e&&n&&r.insertBefore(a.createTextNode(n),r.childNodes[0]||null),qe===He?ne.call(t,xe?"html":"body")[0]:xe?t.documentElement:r},ct=function(e){return ee.call(e.ownerDocument||e,e,L.SHOW_ELEMENT|L.SHOW_COMMENT|L.SHOW_TEXT,null,!1)},dt=function(e){return"object"==typeof _?e instanceof _:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},ht=function(e,t,n){re[e]&&c(re[e],(e=>{e.call(i,t,n,Xe)}))},pt=function(e){let t;if(ht("beforeSanitizeElements",e,null),(n=e)instanceof N&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof F)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return at(e),!0;var n;const r=Ze(e.nodeName);if(ht("uponSanitizeElement",e,{tagName:r,allowedTags:pe}),e.hasChildNodes()&&!dt(e.firstElementChild)&&(!dt(e.content)||!dt(e.content.firstElementChild))&&b(/<[/\w]/g,e.innerHTML)&&b(/<[/\w]/g,e.textContent))return at(e),!0;if(!pe[r]||ye[r]){if(!ye[r]&&mt(r)){if(ve.tagNameCheck instanceof RegExp&&b(ve.tagNameCheck,r))return!1;if(ve.tagNameCheck instanceof Function&&ve.tagNameCheck(r))return!1}if(je&&!Ie[r]){const t=J(e)||e.parentNode,n=G(e)||e.childNodes;if(n&&t)for(let i=n.length-1;i>=0;--i)t.insertBefore(H(n[i],!0),K(e))}return at(e),!0}return e instanceof k&&!function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:qe,tagName:"template"});const n=p(e.tagName),i=p(t.tagName);return!!Ye[e.namespaceURI]&&(e.namespaceURI===Be?t.namespaceURI===He?"svg"===n:t.namespaceURI===ze?"svg"===n&&("annotation-xml"===i||nt[i]):Boolean(ot[n]):e.namespaceURI===ze?t.namespaceURI===He?"math"===n:t.namespaceURI===Be?"math"===n&&it[i]:Boolean(st[n]):e.namespaceURI===He?!(t.namespaceURI===Be&&!it[i])&&!(t.namespaceURI===ze&&!nt[i])&&!st[n]&&(rt[n]||!ot[n]):!("application/xhtml+xml"!==Ge||!Ye[e.namespaceURI]))}(e)?(at(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!b(/<\/no(script|embed|frames)/i,e.innerHTML)?(Oe&&3===e.nodeType&&(t=e.textContent,t=g(t,oe," "),t=g(t,se," "),t=g(t,ae," "),e.textContent!==t&&(h(i.removed,{element:e.cloneNode()}),e.textContent=t)),ht("afterSanitizeElements",e,null),!1):(at(e),!0)},ft=function(e,t,n){if(Te&&("id"===t||"name"===t)&&(n in a||n in Qe))return!1;if(_e&&!be[t]&&b(le,t));else if(we&&b(ue,t));else if(!me[t]||be[t]){if(!(mt(e)&&(ve.tagNameCheck instanceof RegExp&&b(ve.tagNameCheck,e)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(e))&&(ve.attributeNameCheck instanceof RegExp&&b(ve.attributeNameCheck,t)||ve.attributeNameCheck instanceof Function&&ve.attributeNameCheck(t))||"is"===t&&ve.allowCustomizedBuiltInElements&&(ve.tagNameCheck instanceof RegExp&&b(ve.tagNameCheck,n)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(n))))return!1}else if(Ue[t]);else if(b(he,g(n,de,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!Fe[e])if(ke&&!b(ce,g(n,de,"")));else if(n)return!1;return!0},mt=function(e){return e.indexOf("-")>0},gt=function(e){let t,n,r,o;ht("beforeSanitizeAttributes",e,null);const{attributes:s}=e;if(!s)return;const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:me};for(o=s.length;o--;){t=s[o];const{name:l,namespaceURI:u}=t;if(n="value"===l?t.value:y(t.value),r=Ze(l),a.attrName=r,a.attrValue=n,a.keepAttr=!0,a.forceKeepAttr=void 0,ht("uponSanitizeAttribute",e,a),n=a.attrValue,a.forceKeepAttr)continue;if(lt(l,e),!a.keepAttr)continue;if(!Ce&&b(/\/>/i,n)){lt(l,e);continue}Oe&&(n=g(n,oe," "),n=g(n,se," "),n=g(n,ae," "));const c=Ze(e.nodeName);if(ft(c,r,n)){if(!De||"id"!==r&&"name"!==r||(lt(l,e),n="user-content-"+n),Z&&"object"==typeof $&&"function"==typeof $.getAttributeType)if(u);else switch($.getAttributeType(c,r)){case"TrustedHTML":n=Z.createHTML(n);break;case"TrustedScriptURL":n=Z.createScriptURL(n)}try{u?e.setAttributeNS(u,l,n):e.setAttribute(l,n),d(i.removed)}catch(e){}}}ht("afterSanitizeAttributes",e,null)},vt=function e(t){let n;const i=ct(t);for(ht("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)ht("uponSanitizeShadowNode",n,null),pt(n)||(n.content instanceof l&&e(n.content),gt(n));ht("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(e){let t,n,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(We=!e,We&&(e="\x3c!--\x3e"),"string"!=typeof e&&!dt(e)){if("function"!=typeof e.toString)throw w("toString is not a function");if("string"!=typeof(e=e.toString()))throw w("dirty is not a string, aborting")}if(!i.isSupported)return e;if(Ee||tt(a),i.removed=[],"string"==typeof e&&(Re=!1),Re){if(e.nodeName){const t=Ze(e.nodeName);if(!pe[t]||ye[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof _)t=ut("\x3c!----\x3e"),n=t.ownerDocument.importNode(e,!0),1===n.nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?t=n:t.appendChild(n);else{if(!Me&&!Oe&&!xe&&-1===e.indexOf("<"))return Z&&Ae?Z.createHTML(e):e;if(t=ut(e),!t)return Me?null:Ae?X:""}t&&Se&&at(t.firstChild);const u=ct(Re?e:t);for(;o=u.nextNode();)pt(o)||(o.content instanceof l&&vt(o.content),gt(o));if(Re)return e;if(Me){if(Pe)for(s=te.call(t.ownerDocument);t.firstChild;)s.appendChild(t.firstChild);else s=t;return(me.shadowroot||me.shadowrootmode)&&(s=ie.call(r,s,!0)),s}let c=xe?t.outerHTML:t.innerHTML;return xe&&pe["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&b(q,t.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+c),Oe&&(c=g(c,oe," "),c=g(c,se," "),c=g(c,ae," ")),Z&&Ae?Z.createHTML(c):c},i.setConfig=function(e){tt(e),Ee=!0},i.clearConfig=function(){Xe=null,Ee=!1},i.isValidAttribute=function(e,t,n){Xe||tt({});const i=Ze(e),r=Ze(t);return ft(i,r,n)},i.addHook=function(e,t){"function"==typeof t&&(re[e]=re[e]||[],h(re[e],t))},i.removeHook=function(e){if(re[e])return d(re[e])},i.removeHooks=function(e){re[e]&&(re[e]=[])},i.removeAllHooks=function(){re={}},i}()}()},33729:function(e,t){var n,i;void 0===(i="function"==typeof(n=function(){return function e(t,n,i){var r,o,s=window,a="application/octet-stream",l=i||a,u=t,c=!n&&!i&&u,d=document.createElement("a"),h=function(e){return String(e)},p=s.Blob||s.MozBlob||s.WebKitBlob||h,f=n||"download";if(p=p.call?p.bind(s):Blob,"true"===String(this)&&(l=(u=[u,l])[0],u=u[1]),c&&c.length<2048&&(f=c.split("/").pop().split("?")[0],d.href=c,-1!==d.href.indexOf(c))){var m=new XMLHttpRequest;return m.open("GET",c,!0),m.responseType="blob",m.onload=function(t){e(t.target.response,f,a)},setTimeout((function(){m.send()}),0),m}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u)){if(!(u.length>2096103.424&&p!==h))return navigator.msSaveBlob?navigator.msSaveBlob(b(u),f):w(u);l=(u=b(u)).type||a}else if(/([\x80-\xff])/.test(u)){for(var g=0,v=new Uint8Array(u.length),y=v.length;g<y;++g)v[g]=u.charCodeAt(g);u=new p([v],{type:l})}function b(e){for(var t=e.split(/[:;,]/),n=t[1],i=("base64"==t[2]?atob:decodeURIComponent)(t.pop()),r=i.length,o=0,s=new Uint8Array(r);o<r;++o)s[o]=i.charCodeAt(o);return new p([s],{type:n})}function w(e,t){if("download"in d)return d.href=e,d.setAttribute("download",f),d.className="download-js-link",d.innerHTML="downloading...",d.style.display="none",document.body.appendChild(d),setTimeout((function(){d.click(),document.body.removeChild(d),!0===t&&setTimeout((function(){s.URL.revokeObjectURL(d.href)}),250)}),66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,a)),window.open(e)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=e),!0;var n=document.createElement("iframe");document.body.appendChild(n),!t&&/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,a)),n.src=e,setTimeout((function(){document.body.removeChild(n)}),333)}if(r=u instanceof p?u:new p([u],{type:l}),navigator.msSaveBlob)return navigator.msSaveBlob(r,f);if(s.URL)w(s.URL.createObjectURL(r),!0);else{if("string"==typeof r||r.constructor===h)try{return w("data:"+l+";base64,"+s.btoa(r))}catch(e){return w("data:"+l+","+encodeURIComponent(r))}(o=new FileReader).onload=function(e){w(this.result)},o.readAsDataURL(r)}return!0}})?n.apply(t,[]):n)||(e.exports=i)},1143:function(e,t,n){e.exports=function e(t,i,r){function o(a,l){if(!i[a]){if(!t[a]){var u=void 0;if(!l&&u)return undefined(a,!0);if(s)return s(a,!0);throw(u=new Error("Cannot find module '"+a+"'")).code="MODULE_NOT_FOUND",n(33769)}u=i[a]={exports:{}},t[a][0].call(u.exports,(function(e){return o(t[a][1][e]||e)}),u,u.exports,e,t,i,r)}return i[a].exports}for(var s=void 0,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){"use strict";var i={};function r(e){var t=i[e];return t?t.lastIndex=0:i[e]=t=new RegExp("(?:^|\\s)"+e+"(?:\\s|$)","g"),t}t.exports={add:function(e,t){var n=e.className;n.length?r(t).test(n)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(r(t)," ").trim()}}},{}],2:[function(e,t,i){(function(n){"use strict";var i=e("contra/emitter"),r=e("crossvent"),o=e("./classes"),s=document,a=s.documentElement;function l(e,t,i,o){n.navigator.pointerEnabled?r[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[i],o):n.navigator.msPointerEnabled?r[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[i],o):(r[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[i],o),r[t](e,i,o))}function u(e){return void 0!==e.touches?e.touches.length:void 0!==e.which&&0!==e.which?e.which:void 0!==e.buttons?e.buttons:void 0!==(e=e.button)?1&e?1:2&e?3:4&e?2:0:void 0}function c(e,t){return void 0!==n[t]?n[t]:(a.clientHeight?a:s.body)[e]}function d(e,t,n){var i=(e=e||{}).className||"";return e.className+=" gu-hide",n=s.elementFromPoint(t,n),e.className=i,n}function h(){return!1}function p(){return!0}function f(e){return e.width||e.right-e.left}function m(e){return e.height||e.bottom-e.top}function g(e){return e.parentNode===s?null:e.parentNode}function v(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||function e(t){return!!t&&"false"!==t.contentEditable&&("true"===t.contentEditable||e(g(t)))}(e)}function y(e){return e.nextElementSibling||function(){for(var t=e;(t=t.nextSibling)&&1!==t.nodeType;);return t}()}function b(e,t){t=(n=t).targetTouches&&n.targetTouches.length?n.targetTouches[0]:n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n;var n={pageX:"clientX",pageY:"clientY"};return e in n&&!(e in t)&&n[e]in t&&(e=n[e]),t[e]}t.exports=function(e,t){var n,w,_,k,C,O,x,E,S,M,P;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var A,T=null,D=t||{};void 0===D.moves&&(D.moves=p),void 0===D.accepts&&(D.accepts=p),void 0===D.invalid&&(D.invalid=function(){return!1}),void 0===D.containers&&(D.containers=e||[]),void 0===D.isContainer&&(D.isContainer=h),void 0===D.copy&&(D.copy=!1),void 0===D.copySortSource&&(D.copySortSource=!1),void 0===D.revertOnSpill&&(D.revertOnSpill=!1),void 0===D.removeOnSpill&&(D.removeOnSpill=!1),void 0===D.direction&&(D.direction="vertical"),void 0===D.ignoreInputTextSelection&&(D.ignoreInputTextSelection=!0),void 0===D.mirrorContainer&&(D.mirrorContainer=s.body);var j=i({containers:D.containers,start:function(e){(e=$(e))&&z(e)},end:B,cancel:K,remove:Y,destroy:function(){V(!0),q({})},canMove:function(e){return!!$(e)},dragging:!1});return!0===D.removeOnSpill&&j.on("over",(function(e){o.rm(e,"gu-hide")})).on("out",(function(e){j.dragging&&o.add(e,"gu-hide")})),V(),j;function R(e){return-1!==j.containers.indexOf(e)||D.isContainer(e)}function V(e){l(a,e=e?"remove":"add","mousedown",N),l(a,e,"mouseup",q)}function I(e){l(a,e?"remove":"add","mousemove",U)}function L(e){r[e=e?"remove":"add"](a,"selectstart",F),r[e](a,"click",F)}function F(e){A&&e.preventDefault()}function N(e){var t,n;O=e.clientX,x=e.clientY,1!==u(e)||e.metaKey||e.ctrlKey||(n=$(t=e.target))&&(A=n,I(),"mousedown"===e.type&&(v(t)?t.focus():e.preventDefault()))}function U(e){if(A)if(0!==u(e)){if(!(void 0!==e.clientX&&Math.abs(e.clientX-O)<=(D.slideFactorX||0)&&void 0!==e.clientY&&Math.abs(e.clientY-x)<=(D.slideFactorY||0))){if(D.ignoreInputTextSelection){var t=b("clientX",e)||0,i=b("clientY",e)||0;if(v(s.elementFromPoint(t,i)))return}i=A,I(!0),L(),B(),z(i),i=function(e){return{left:(e=e.getBoundingClientRect()).left+c("scrollLeft","pageXOffset"),top:e.top+c("scrollTop","pageYOffset")}}(_),k=b("pageX",e)-i.left,C=b("pageY",e)-i.top,o.add(M||_,"gu-transit"),function(){if(!n){var e=_.getBoundingClientRect();(n=_.cloneNode(!0)).style.width=f(e)+"px",n.style.height=m(e)+"px",o.rm(n,"gu-transit"),o.add(n,"gu-mirror"),D.mirrorContainer.appendChild(n),l(a,"add","mousemove",X),o.add(D.mirrorContainer,"gu-unselectable"),j.emit("cloned",n,_,"mirror")}}(),X(e)}}else q({})}function $(e){if(!(j.dragging&&n||R(e))){for(var t=e;g(e)&&!1===R(g(e));){if(D.invalid(e,t))return;if(!(e=g(e)))return}var i=g(e);if(i&&!D.invalid(e,t)&&D.moves(e,i,t,y(e)))return{item:e,source:i}}}function z(e){var t,n;t=e.item,n=e.source,("boolean"==typeof D.copy?D.copy:D.copy(t,n))&&(M=e.item.cloneNode(!0),j.emit("cloned",M,e.item,"copy")),w=e.source,_=e.item,E=S=y(e.item),j.dragging=!0,j.emit("drag",_,w)}function B(){var e;j.dragging&&W(e=M||_,g(e))}function H(){I(!(A=!1)),L(!0)}function q(e){var t,i;H(),j.dragging&&(t=M||_,i=b("clientX",e)||0,e=b("clientY",e)||0,(e=Z(d(n,i,e),i,e))&&(M&&D.copySortSource||!M||e!==w)?W(t,e):(D.removeOnSpill?Y:K)())}function W(e,t){var n=g(e);M&&D.copySortSource&&t===w&&n.removeChild(_),J(t)?j.emit("cancel",e,w,w):j.emit("drop",e,t,w,S),G()}function Y(){var e,t;j.dragging&&((t=g(e=M||_))&&t.removeChild(e),j.emit(M?"cancel":"remove",e,t,w),G())}function K(e){var t,n,i;j.dragging&&(t=0<arguments.length?e:D.revertOnSpill,!1===(e=J(i=g(n=M||_)))&&t&&(M?i&&i.removeChild(M):w.insertBefore(n,E)),e||t?j.emit("cancel",n,w,w):j.emit("drop",n,i,w,S),G())}function G(){var e=M||_;H(),n&&(o.rm(D.mirrorContainer,"gu-unselectable"),l(a,"remove","mousemove",X),g(n).removeChild(n),n=null),e&&o.rm(e,"gu-transit"),P&&clearTimeout(P),j.dragging=!1,T&&j.emit("out",e,T,w),j.emit("dragend",e),w=_=M=E=S=P=T=null}function J(e,t){return t=void 0!==t?t:n?S:y(M||_),e===w&&t===E}function Z(e,t,n){for(var i=e;i&&!function(){if(!1===R(i))return!1;var r=Q(i,e);return r=ee(i,r,t,n),!!J(i,r)||D.accepts(_,i,w,r)}();)i=g(i);return i}function X(e){if(n){e.preventDefault();var t=b("clientX",e)||0,i=b("clientY",e)||0,r=t-k,o=i-C;n.style.left=r+"px",n.style.top=o+"px";var s=M||_,a=null!==(r=Z(e=d(n,t,i),t,i))&&r!==T;if(!a&&null!==r||(T&&u("out"),T=r,a&&u("over")),o=g(s),r!==w||!M||D.copySortSource){var l;if(null!==(e=Q(r,e)))l=ee(r,e,t,i);else{if(!0!==D.revertOnSpill||M)return void(M&&o&&o.removeChild(s));l=E,r=w}(null===l&&a||l!==s&&l!==y(s))&&(S=l,r.insertBefore(s,l),j.emit("shadow",s,r,w))}else o&&o.removeChild(s)}function u(e){j.emit(e,s,T,w)}}function Q(e,t){for(var n=t;n!==e&&g(n)!==e;)n=g(n);return n===a?null:n}function ee(e,t,n,i){var r="horizontal"===D.direction;return(t!==e?function(){var e=t.getBoundingClientRect();return function(e){return e?y(t):t}(r?n>e.left+f(e)/2:i>e.top+m(e)/2)}:function(){var t,o,s,a=e.children.length;for(t=0;t<a;t++){if(s=(o=e.children[t]).getBoundingClientRect(),r&&s.left+s.width/2>n)return o;if(!r&&s.top+s.height/2>i)return o}return null})()}}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":1,"contra/emitter":5,crossvent:6}],3:[function(e,t,n){t.exports=function(e,t){return Array.prototype.slice.call(e,t)}},{}],4:[function(e,t,n){"use strict";var i=e("ticky");t.exports=function(e,t,n){e&&i((function(){e.apply(n||null,t||[])}))}},{ticky:10}],5:[function(e,t,n){"use strict";var i=e("atoa"),r=e("./debounce");t.exports=function(e,t){var n=t||{},o={};return void 0===e&&(e={}),e.on=function(t,n){return o[t]?o[t].push(n):o[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var i=arguments.length;if(1===i)delete o[t];else if(0===i)o={};else{if(!(t=o[t]))return e;t.splice(t.indexOf(n),1)}return e},e.emit=function(){var t=i(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var s=(o[t]||[]).slice(0);return function(){var o=i(arguments),a=this||e;if("error"===t&&!1!==n.throws&&!s.length)throw 1===o.length?o[0]:o;return s.forEach((function(i){n.async?r(i,o,a):i.apply(a,o),i._once&&e.off(t,i)})),e}},e}},{"./debounce":4,atoa:3}],6:[function(e,t,i){(function(n){"use strict";var i=e("custom-event"),r=e("./eventmap"),o=n.document,s=function(e,t,n,i){return e.addEventListener(t,n,i)},a=function(e,t,n,i){return e.removeEventListener(t,n,i)},l=[];function u(e,t,n){if(t=function(e,t,n){var i,r;for(i=0;i<l.length;i++)if((r=l[i]).element===e&&r.type===t&&r.fn===n)return i}(e,t,n),t)return n=l[t].wrapper,l.splice(t,1),n}n.addEventListener||(s=function(e,t,i){return e.attachEvent("on"+t,function(e,t,i){var r=u(e,t,i)||function(e,t){return function(i){var r=i||n.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},r.which=r.which||r.keyCode,t.call(e,r)}}(e,i);return l.push({wrapper:r,element:e,type:t,fn:i}),r}(e,t,i))},a=function(e,t,n){if(n=u(e,t,n))return e.detachEvent("on"+t,n)}),t.exports={add:s,remove:a,fabricate:function(e,t,n){var s=-1===r.indexOf(t)?new i(t,{detail:n}):function(){var e;return o.createEvent?(e=o.createEvent("Event")).initEvent(t,!0,!0):o.createEventObject&&(e=o.createEventObject()),e}();e.dispatchEvent?e.dispatchEvent(s):e.fireEvent("on"+t,s)}}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./eventmap":7,"custom-event":8}],7:[function(e,t,i){(function(e){"use strict";var n=[],i="",r=/^on/;for(i in e)r.test(i)&&n.push(i.slice(2));t.exports=n}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,t,i){(function(e){var n=e.CustomEvent;t.exports=function(){try{var e=new n("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}}()?n:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(e,t,n){var i,r;function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}t=t.exports={},function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var l,u=[],c=!1,d=-1;function h(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&p())}function p(){if(!c){var e=a(h);c=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}t.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new f(e,t)),1!==u.length||c||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=m,t.addListener=m,t.once=m,t.off=m,t.removeListener=m,t.removeAllListeners=m,t.emit=m,t.prependListener=m,t.prependOnceListener=m,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},{}],10:[function(e,t,n){(function(e){var n="function"==typeof e?function(t){e(t)}:function(e){setTimeout(e,0)};t.exports=n}).call(this,e("timers").setImmediate)},{timers:11}],11:[function(e,t,n){(function(t,i){var r=e("process/browser.js").nextTick,o=Function.prototype.apply,s=Array.prototype.slice,a={},l=0;function u(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new u(o.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new u(o.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"==typeof t?t:function(e){var t=l++,i=!(arguments.length<2)&&s.call(arguments,1);return a[t]=!0,r((function(){a[t]&&(i?e.apply(null,i):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"==typeof i?i:function(e){delete a[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":9,timers:11}]},{},[2])(2)},33769:function(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=function(){return[]},t.resolve=t,t.id=33769,e.exports=t},26729:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function i(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,i,o,s){if("function"!=typeof i)throw new TypeError("The listener must be a function");var a=new r(i,o||e,s),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,i,r=[];if(0===this._eventsCount)return r;for(i in e=this._events)t.call(e,i)&&r.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e){var t=n?n+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,o=i.length,s=new Array(o);r<o;r++)s[r]=i[r].fn;return s},a.prototype.listenerCount=function(e){var t=n?n+e:e,i=this._events[t];return i?i.fn?1:i.length:0},a.prototype.emit=function(e,t,i,r,o,s){var a=n?n+e:e;if(!this._events[a])return!1;var l,u,c=this._events[a],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,i),!0;case 4:return c.fn.call(c.context,t,i,r),!0;case 5:return c.fn.call(c.context,t,i,r,o),!0;case 6:return c.fn.call(c.context,t,i,r,o,s),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var h,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,i);break;case 4:c[u].fn.call(c[u].context,t,i,r);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].context,l)}}return!0},a.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},a.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},a.prototype.removeListener=function(e,t,i,r){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||r&&!a.once||i&&a.context!==i||s(this,o);else{for(var l=0,u=[],c=a.length;l<c;l++)(a[l].fn!==t||r&&!a[l].once||i&&a[l].context!==i)&&u.push(a[l]);u.length?this._events[o]=1===u.length?u[0]:u:s(this,o)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a},87559:function(e,t,n){var i;!function(r){"use strict";function o(e){var n=e&&e.Promise||r.Promise,i=e&&e.XMLHttpRequest||r.XMLHttpRequest;return function(){var e=Object.create(r,{fetch:{value:void 0,writable:!0}});return function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r&&r,o="URLSearchParams"in r,s="Symbol"in r&&"iterator"in Symbol,a="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),l="FormData"in r,u="ArrayBuffer"in r;if(u)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function h(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return s&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function g(e){if(e.bodyUsed)return n.reject(new TypeError("Already read"));e.bodyUsed=!0}function v(e){return new n((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function y(e){var t=new FileReader,n=v(t);return t.readAsArrayBuffer(e),n}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:l&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():u&&a&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||d(e))?this._bodyArrayBuffer=b(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=g(this);if(e)return e;if(this._bodyBlob)return n.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?g(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?n.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):n.resolve(this._bodyArrayBuffer)):this.blob().then(y)}),this.text=function(){var e,t,i,r=g(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,i=v(t),t.readAsText(e),i;if(this._bodyArrayBuffer)return n.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i<t.length;i++)n[i]=String.fromCharCode(t[i]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return n.resolve(this._bodyText)},l&&(this.formData=function(){return this.text().then(C)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=h(e),t=p(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},m.prototype.delete=function(e){delete this.map[h(e)]},m.prototype.get=function(e){return e=h(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(h(e))},m.prototype.set=function(e,t){this.map[h(e)]=p(t)},m.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},m.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),f(e)},m.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},m.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),f(e)},s&&(m.prototype[Symbol.iterator]=m.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function k(e,t){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,i,r=(t=t||{}).body;if(e instanceof k){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new m(t.headers)),this.method=(n=t.method||this.method||"GET",i=n.toUpperCase(),_.indexOf(i)>-1?i:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function C(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}})),t}function O(e,t){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})},w.call(k.prototype),w.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},O.error=function(){var e=new O(null,{status:0,statusText:""});return e.type="error",e};var x=[301,302,303,307,308];O.redirect=function(e,t){if(-1===x.indexOf(t))throw new RangeError("Invalid status code");return new O(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,o){return new n((function(n,s){var l=new k(e,o);if(l.signal&&l.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var c=new i;function d(){c.abort()}c.onload=function(){var e,t,i={status:c.status,statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();t.append(i,r)}})),t)};i.url="responseURL"in c?c.responseURL:i.headers.get("X-Request-URL");var r="response"in c?c.response:c.responseText;setTimeout((function(){n(new O(r,i))}),0)},c.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},c.onabort=function(){setTimeout((function(){s(new t.DOMException("Aborted","AbortError"))}),0)},c.open(l.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(a?c.responseType="blob":u&&l.headers.get("Content-Type")&&-1!==l.headers.get("Content-Type").indexOf("application/octet-stream")&&(c.responseType="arraybuffer")),!o||"object"!=typeof o.headers||o.headers instanceof m?l.headers.forEach((function(e,t){c.setRequestHeader(t,e)})):Object.getOwnPropertyNames(o.headers).forEach((function(e){c.setRequestHeader(e,p(o.headers[e]))})),l.signal&&(l.signal.addEventListener("abort",d),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",d)}),c.send(void 0===l._bodyInit?null:l._bodyInit)}))}E.polyfill=!0,r.fetch||(r.fetch=E,r.Headers=m,r.Request=k,r.Response=O),t.Headers=m,t.Request=k,t.Response=O,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}(t),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response,DOMException:e.DOMException}}()}void 0===(i=function(){return o}.call(t,n,t,e))||(e.exports=i)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:this)},10448:function(e){var t=Array.isArray,n=Object.prototype.toString;e.exports=t||function(e){return!!e&&"[object Array]"==n.call(e)}},63847:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function r(e){return null!=e&&"object"===(void 0===e?"undefined":i(e))&&1===e.nodeType&&"object"===i(e.style)&&"object"===i(e.ownerDocument)}},90891:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return b}});var i=/iPhone/i,r=/iPod/i,o=/iPad/i,s=/\biOS-universal(?:.+)Mac\b/i,a=/\bAndroid(?:.+)Mobile\b/i,l=/Android/i,u=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,c=/Silk/i,d=/Windows Phone/i,h=/\bWindows(?:.+)ARM\b/i,p=/BlackBerry/i,f=/BB10/i,m=/Opera Mini/i,g=/\b(CriOS|Chrome)(?:.+)Mobile/i,v=/Mobile(?:.+)Firefox\b/i,y=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream};function b(e){var t={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var n=t.userAgent,b=n.split("[FBAN");void 0!==b[1]&&(n=b[0]),void 0!==(b=n.split("Twitter"))[1]&&(n=b[0]);var w=function(e){return function(t){return t.test(e)}}(n),_={apple:{phone:w(i)&&!w(d),ipod:w(r),tablet:!w(i)&&(w(o)||y(t))&&!w(d),universal:w(s),device:(w(i)||w(r)||w(o)||w(s)||y(t))&&!w(d)},amazon:{phone:w(u),tablet:!w(u)&&w(c),device:w(u)||w(c)},android:{phone:!w(d)&&w(u)||!w(d)&&w(a),tablet:!w(d)&&!w(u)&&!w(a)&&(w(c)||w(l)),device:!w(d)&&(w(u)||w(c)||w(a)||w(l))||w(/\bokhttp\b/i)},windows:{phone:w(d),tablet:w(h),device:w(d)||w(h)},other:{blackberry:w(p),blackberry10:w(f),opera:w(m),firefox:w(v),chrome:w(g),device:w(p)||w(f)||w(m)||w(v)||w(g)},any:!1,phone:!1,tablet:!1};return _.any=_.apple.device||_.android.device||_.windows.device||_.other.device,_.phone=_.apple.phone||_.android.phone||_.windows.phone,_.tablet=_.apple.tablet||_.android.tablet||_.windows.tablet,_}},40962:function(e,t,n){var i,r;i=function(){"use strict";Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,n){return void 0===n?e<t:e<t&&t<n},"<=":function(e,t,n){return void 0===n?e<=t:e<=t&&t<=n},"!!":function(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,n){if(n<0){var i=String(e).substr(t);return i.substr(0,i.length+n)}return String(e).substr(t,n)},"+":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)+parseFloat(t,10)}),0)},"*":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)*parseFloat(t,10)}))},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,(function(e,t){return e.concat(t)}),[])},var:function(e,t){var n=void 0===t?null:t,i=this;if(void 0===e||""===e||null===e)return i;for(var r=String(e).split("."),o=0;o<r.length;o++){if(null==i)return n;if(void 0===(i=i[r[o]]))return n}return i},missing:function(){for(var t=[],n=Array.isArray(arguments[0])?arguments[0]:arguments,i=0;i<n.length;i++){var r=n[i],o=e.apply({var:r},this);null!==o&&""!==o||t.push(r)}return t},missing_some:function(t,n){var i=e.apply({missing:n},this);return n.length-i.length>=t?[]:i}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(n,i){if(Array.isArray(n))return n.map((function(t){return e.apply(t,i)}));if(!e.is_logic(n))return n;var r,o,s,a,l,u=e.get_operator(n),c=n[u];if(Array.isArray(c)||(c=[c]),"if"===u||"?:"==u){for(r=0;r<c.length-1;r+=2)if(e.truthy(e.apply(c[r],i)))return e.apply(c[r+1],i);return c.length===r+1?e.apply(c[r],i):null}if("and"===u){for(r=0;r<c.length;r+=1)if(o=e.apply(c[r],i),!e.truthy(o))return o;return o}if("or"===u){for(r=0;r<c.length;r+=1)if(o=e.apply(c[r],i),e.truthy(o))return o;return o}if("filter"===u)return a=e.apply(c[0],i),s=c[1],Array.isArray(a)?a.filter((function(t){return e.truthy(e.apply(s,t))})):[];if("map"===u)return a=e.apply(c[0],i),s=c[1],Array.isArray(a)?a.map((function(t){return e.apply(s,t)})):[];if("reduce"===u)return a=e.apply(c[0],i),s=c[1],l=void 0!==c[2]?c[2]:null,Array.isArray(a)?a.reduce((function(t,n){return e.apply(s,{current:n,accumulator:t})}),l):l;if("all"===u){if(a=e.apply(c[0],i),s=c[1],!Array.isArray(a)||!a.length)return!1;for(r=0;r<a.length;r+=1)if(!e.truthy(e.apply(s,a[r])))return!1;return!0}if("none"===u){if(a=e.apply(c[0],i),s=c[1],!Array.isArray(a)||!a.length)return!0;for(r=0;r<a.length;r+=1)if(e.truthy(e.apply(s,a[r])))return!1;return!0}if("some"===u){if(a=e.apply(c[0],i),s=c[1],!Array.isArray(a)||!a.length)return!1;for(r=0;r<a.length;r+=1)if(e.truthy(e.apply(s,a[r])))return!0;return!1}if(c=c.map((function(t){return e.apply(t,i)})),t.hasOwnProperty(u)&&"function"==typeof t[u])return t[u].apply(i,c);if(u.indexOf(".")>0){var d=String(u).split("."),h=t;for(r=0;r<d.length;r++){if(!h.hasOwnProperty(d[r]))throw new Error("Unrecognized operation "+u+" (failed at "+d.slice(0,r+1).join(".")+")");h=h[d[r]]}return h.apply(i,c)}throw new Error("Unrecognized operation "+u)},e.uses_data=function(t){var n=[];if(e.is_logic(t)){var i=e.get_operator(t),r=t[i];Array.isArray(r)||(r=[r]),"var"===i?n.push(r[0]):r.forEach((function(t){n.push.apply(n,e.uses_data(t))}))}return function(e){for(var t=[],n=0,i=e.length;n<i;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n)},e.add_operation=function(e,n){t[e]=n},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,n){if(n===t)return!0;if("@"===n)return!0;if("number"===n)return"number"==typeof t;if("string"===n)return"string"==typeof t;if("array"===n)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(n)){if(e.is_logic(t)){var i=e.get_operator(n),r=e.get_operator(t);if("@"===i||i===r)return e.rule_like(e.get_values(t,!1),e.get_values(n,!1))}return!1}if(Array.isArray(n)){if(Array.isArray(t)){if(n.length!==t.length)return!1;for(var o=0;o<n.length;o+=1)if(!e.rule_like(t[o],n[o]))return!1;return!0}return!1}return!1},e},void 0===(r=i.call(t,n,t,e))||(e.exports=r)},55586:function(e,t,n){var i,r;(r=function(){"use strict";var e={DAY:864e5,HOUR:36e5,MINUTE:6e4,SECOND:1e3,BASELINE_YEAR:2014,MAX_SCORE:864e6,AMBIGUITIES:{"America/Denver":["America/Mazatlan"],"America/Chicago":["America/Mexico_City"],"America/Asuncion":["America/Campo_Grande","America/Santiago"],"America/Montevideo":["America/Sao_Paulo","America/Santiago"],"Asia/Beirut":["Asia/Amman","Asia/Jerusalem","Europe/Helsinki","Asia/Damascus","Africa/Cairo","Asia/Gaza","Europe/Minsk","Africa/Windhoek"],"Pacific/Auckland":["Pacific/Fiji"],"America/Los_Angeles":["America/Santa_Isabel"],"America/New_York":["America/Havana"],"America/Halifax":["America/Goose_Bay"],"America/Godthab":["America/Miquelon"],"Asia/Dubai":["Asia/Yerevan"],"Asia/Jakarta":["Asia/Krasnoyarsk"],"Asia/Shanghai":["Asia/Irkutsk","Australia/Perth"],"Australia/Sydney":["Australia/Lord_Howe"],"Asia/Tokyo":["Asia/Yakutsk"],"Asia/Dhaka":["Asia/Omsk"],"Asia/Baku":["Asia/Yerevan"],"Australia/Brisbane":["Asia/Vladivostok"],"Pacific/Noumea":["Asia/Vladivostok"],"Pacific/Majuro":["Asia/Kamchatka","Pacific/Fiji"],"Pacific/Tongatapu":["Pacific/Apia"],"Asia/Baghdad":["Europe/Minsk","Europe/Moscow"],"Asia/Karachi":["Asia/Yekaterinburg"],"Africa/Johannesburg":["Asia/Gaza","Africa/Cairo"]}},t=function(e){var t=-e.getTimezoneOffset();return null!==t?t:0},n=function(){for(var n=[],i=0;i<=11;i++)for(var r=1;r<=28;r++){var o=t(new Date(e.BASELINE_YEAR,i,r));n?n&&n[n.length-1]!==o&&n.push(o):n.push()}return n},i=function(e){for(var t=new Date(e,0,1,0,0,1,0).getTime(),n=new Date(e,12,31,23,59,59).getTime(),i=t,r=new Date(i).getTimezoneOffset(),s=null,a=null;i<n-864e5;){var l=new Date(i),u=l.getTimezoneOffset();u!==r&&(u<r&&(s=l),u>r&&(a=l),r=u),i+=864e5}return!(!s||!a)&&{s:o(s).getTime(),e:o(a).getTime()}},o=function t(n,i,r){void 0===i&&(i=e.DAY,r=e.HOUR);for(var o=new Date(n.getTime()-i).getTime(),s=n.getTime()+i,a=new Date(o).getTimezoneOffset(),l=o,u=null;l<s-r;){var c=new Date(l);if(c.getTimezoneOffset()!==a){u=c;break}l+=r}return i===e.DAY?t(u,e.HOUR,e.MINUTE):i===e.HOUR?t(u,e.MINUTE,e.SECOND):u},s=function(t){var n=function(){for(var e=[],t=0;t<r.olson.dst_rules.years.length;t++){var n=i(r.olson.dst_rules.years[t]);e.push(n)}return e}(),o=function(e){for(var t=0;t<e.length;t++)if(!1!==e[t])return!0;return!1}(n);return o?function(t,n){for(var i=function(i){for(var r=0,o=0;o<t.length;o++)if(i.rules[o]&&t[o]){if(!(t[o].s>=i.rules[o].s&&t[o].e<=i.rules[o].e)){r="N/A";break}if(r=0,r+=Math.abs(t[o].s-i.rules[o].s),(r+=Math.abs(i.rules[o].e-t[o].e))>e.MAX_SCORE){r="N/A";break}}return function(e,t,n,i){if("N/A"!==n)return n;if("Asia/Beirut"===t){if("Africa/Cairo"===i.name&&13983768e5===e[6].s&&14116788e5===e[6].e)return 0;if("Asia/Jerusalem"===i.name&&13959648e5===e[6].s&&14118588e5===e[6].e)return 0}else if("America/Santiago"===t){if("America/Asuncion"===i.name&&14124816e5===e[6].s&&1397358e6===e[6].e)return 0;if("America/Campo_Grande"===i.name&&14136912e5===e[6].s&&13925196e5===e[6].e)return 0}else if("America/Montevideo"===t){if("America/Sao_Paulo"===i.name&&14136876e5===e[6].s&&1392516e6===e[6].e)return 0}else if("Pacific/Auckland"===t&&"Pacific/Fiji"===i.name&&14142456e5===e[6].s&&13961016e5===e[6].e)return 0;return n}(t,n,r,i)},o={},s=r.olson.dst_rules.zones,a=s.length,l=e.AMBIGUITIES[n],u=0;u<a;u++){var c=s[u],d=i(s[u]);"N/A"!==d&&(o[c.name]=d)}for(var h in o)if(o.hasOwnProperty(h))for(var p=0;p<l.length;p++)if(l[p]===h)return h;return n}(n,t):t};return{determine:function(t){var i=!1,o=function(){var e=0,t=n();return t.length>1&&(e=t[0]-t[1]),t.length>3?t[0]+",1,weird":e<0?t[0]+",1":e>0?t[1]+",1,s":t[0]+",0"}();return(t||void 0===t)&&(i=function(){var e,t;if(Intl&&"undefined"!=typeof Intl&&void 0!==Intl.DateTimeFormat&&void 0!==(e=Intl.DateTimeFormat())&&void 0!==e.resolvedOptions)return(t=e.resolvedOptions().timeZone)&&(t.indexOf("/")>-1||"UTC"===t)?t:void 0}()),i||(i=r.olson.timezones[o],void 0!==e.AMBIGUITIES[i]&&(i=s(i))),{name:function(){return i},using_intl:t||void 0===t,needle:o,offsets:n()}}}}()).olson=r.olson||{},r.olson.timezones={"-720,0":"Etc/GMT+12","-660,0":"Pacific/Pago_Pago","-660,1,s":"Pacific/Apia","-600,1":"America/Adak","-600,0":"Pacific/Honolulu","-570,0":"Pacific/Marquesas","-540,0":"Pacific/Gambier","-540,1":"America/Anchorage","-480,1":"America/Los_Angeles","-480,0":"Pacific/Pitcairn","-420,0":"America/Phoenix","-420,1":"America/Denver","-360,0":"America/Guatemala","-360,1":"America/Chicago","-360,1,s":"Pacific/Easter","-300,0":"America/Bogota","-300,1":"America/New_York","-270,0":"America/Caracas","-240,1":"America/Halifax","-240,0":"America/Santo_Domingo","-240,1,s":"America/Asuncion","-210,1":"America/St_Johns","-180,1":"America/Godthab","-180,0":"America/Buenos_Aires","-180,1,s":"America/Montevideo","-120,0":"America/Noronha","-120,1":"America/Noronha","-60,1":"Atlantic/Azores","-60,0":"Atlantic/Cape_Verde","0,0":"UTC","0,1":"Europe/London","0,1,weird":"Africa/Casablanca","60,1":"Europe/Berlin","60,0":"Africa/Lagos","60,1,weird":"Africa/Casablanca","120,1":"Asia/Beirut","120,1,weird":"Africa/Cairo","120,0":"Africa/Johannesburg","180,0":"Asia/Baghdad","180,1":"Europe/Moscow","210,1":"Asia/Tehran","240,0":"Asia/Dubai","240,1":"Asia/Baku","270,0":"Asia/Kabul","300,1":"Asia/Yekaterinburg","300,0":"Asia/Karachi","330,0":"Asia/Calcutta","345,0":"Asia/Katmandu","360,0":"Asia/Dhaka","360,1":"Asia/Omsk","390,0":"Asia/Rangoon","420,1":"Asia/Krasnoyarsk","420,0":"Asia/Jakarta","480,0":"Asia/Shanghai","480,1":"Asia/Irkutsk","525,0":"Australia/Eucla","525,1,s":"Australia/Eucla","540,1":"Asia/Yakutsk","540,0":"Asia/Tokyo","570,0":"Australia/Darwin","570,1,s":"Australia/Adelaide","600,0":"Australia/Brisbane","600,1":"Asia/Vladivostok","600,1,s":"Australia/Sydney","630,1,s":"Australia/Lord_Howe","660,1":"Asia/Kamchatka","660,0":"Pacific/Noumea","690,0":"Pacific/Norfolk","720,1,s":"Pacific/Auckland","720,0":"Pacific/Majuro","765,1,s":"Pacific/Chatham","780,0":"Pacific/Tongatapu","780,1,s":"Pacific/Apia","840,0":"Pacific/Kiritimati"},r.olson.dst_rules={years:[2008,2009,2010,2011,2012,2013,2014],zones:[{name:"Africa/Cairo",rules:[{e:12199572e5,s:12090744e5},{e:1250802e6,s:1240524e6},{e:12858804e5,s:12840696e5},!1,!1,!1,{e:14116788e5,s:1406844e6}]},{name:"America/Asuncion",rules:[{e:12050316e5,s:12243888e5},{e:12364812e5,s:12558384e5},{e:12709548e5,s:12860784e5},{e:13024044e5,s:1317528e6},{e:1333854e6,s:13495824e5},{e:1364094e6,s:1381032e6},{e:13955436e5,s:14124816e5}]},{name:"America/Campo_Grande",rules:[{e:12032172e5,s:12243888e5},{e:12346668e5,s:12558384e5},{e:12667212e5,s:1287288e6},{e:12981708e5,s:13187376e5},{e:13302252e5,s:1350792e6},{e:136107e7,s:13822416e5},{e:13925196e5,s:14136912e5}]},{name:"America/Goose_Bay",rules:[{e:122559486e4,s:120503526e4},{e:125704446e4,s:123648486e4},{e:128909886e4,s:126853926e4},{e:13205556e5,s:129998886e4},{e:13520052e5,s:13314456e5},{e:13834548e5,s:13628952e5},{e:14149044e5,s:13943448e5}]},{name:"America/Havana",rules:[{e:12249972e5,s:12056436e5},{e:12564468e5,s:12364884e5},{e:12885012e5,s:12685428e5},{e:13211604e5,s:13005972e5},{e:13520052e5,s:13332564e5},{e:13834548e5,s:13628916e5},{e:14149044e5,s:13943412e5}]},{name:"America/Mazatlan",rules:[{e:1225008e6,s:12074724e5},{e:12564576e5,s:1238922e6},{e:1288512e6,s:12703716e5},{e:13199616e5,s:13018212e5},{e:13514112e5,s:13332708e5},{e:13828608e5,s:13653252e5},{e:14143104e5,s:13967748e5}]},{name:"America/Mexico_City",rules:[{e:12250044e5,s:12074688e5},{e:1256454e6,s:12389184e5},{e:12885084e5,s:1270368e6},{e:1319958e6,s:13018176e5},{e:13514076e5,s:13332672e5},{e:13828572e5,s:13653216e5},{e:14143068e5,s:13967712e5}]},{name:"America/Miquelon",rules:[{e:12255984e5,s:12050388e5},{e:1257048e6,s:12364884e5},{e:12891024e5,s:12685428e5},{e:1320552e6,s:12999924e5},{e:13520016e5,s:1331442e6},{e:13834512e5,s:13628916e5},{e:14149008e5,s:13943412e5}]},{name:"America/Santa_Isabel",rules:[{e:12250116e5,s:1207476e6},{e:12564612e5,s:12389256e5},{e:12891204e5,s:12685608e5},{e:132057e7,s:13000104e5},{e:13520196e5,s:133146e7},{e:13834692e5,s:13629096e5},{e:14149188e5,s:13943592e5}]},{name:"America/Santiago",rules:[{e:1206846e6,s:1223784e6},{e:1237086e6,s:12552336e5},{e:127035e7,s:12866832e5},{e:13048236e5,s:13138992e5},{e:13356684e5,s:13465584e5},{e:1367118e6,s:13786128e5},{e:13985676e5,s:14100624e5}]},{name:"America/Sao_Paulo",rules:[{e:12032136e5,s:12243852e5},{e:12346632e5,s:12558348e5},{e:12667176e5,s:12872844e5},{e:12981672e5,s:1318734e6},{e:13302216e5,s:13507884e5},{e:13610664e5,s:1382238e6},{e:1392516e6,s:14136876e5}]},{name:"Asia/Amman",rules:[{e:1225404e6,s:12066552e5},{e:12568536e5,s:12381048e5},{e:12883032e5,s:12695544e5},{e:13197528e5,s:13016088e5},!1,!1,{e:14147064e5,s:13959576e5}]},{name:"Asia/Damascus",rules:[{e:12254868e5,s:120726e7},{e:125685e7,s:12381048e5},{e:12882996e5,s:12701592e5},{e:13197492e5,s:13016088e5},{e:13511988e5,s:13330584e5},{e:13826484e5,s:1364508e6},{e:14147028e5,s:13959576e5}]},{name:"Asia/Dubai",rules:[!1,!1,!1,!1,!1,!1,!1]},{name:"Asia/Gaza",rules:[{e:12199572e5,s:12066552e5},{e:12520152e5,s:12381048e5},{e:1281474e6,s:126964086e4},{e:1312146e6,s:130160886e4},{e:13481784e5,s:13330584e5},{e:13802292e5,s:1364508e6},{e:1414098e6,s:13959576e5}]},{name:"Asia/Irkutsk",rules:[{e:12249576e5,s:12068136e5},{e:12564072e5,s:12382632e5},{e:12884616e5,s:12697128e5},!1,!1,!1,!1]},{name:"Asia/Jerusalem",rules:[{e:12231612e5,s:12066624e5},{e:1254006e6,s:1238112e6},{e:1284246e6,s:12695616e5},{e:131751e7,s:1301616e6},{e:13483548e5,s:13330656e5},{e:13828284e5,s:13645152e5},{e:1414278e6,s:13959648e5}]},{name:"Asia/Kamchatka",rules:[{e:12249432e5,s:12067992e5},{e:12563928e5,s:12382488e5},{e:12884508e5,s:12696984e5},!1,!1,!1,!1]},{name:"Asia/Krasnoyarsk",rules:[{e:12249612e5,s:12068172e5},{e:12564108e5,s:12382668e5},{e:12884652e5,s:12697164e5},!1,!1,!1,!1]},{name:"Asia/Omsk",rules:[{e:12249648e5,s:12068208e5},{e:12564144e5,s:12382704e5},{e:12884688e5,s:126972e7},!1,!1,!1,!1]},{name:"Asia/Vladivostok",rules:[{e:12249504e5,s:12068064e5},{e:12564e8,s:1238256e6},{e:12884544e5,s:12697056e5},!1,!1,!1,!1]},{name:"Asia/Yakutsk",rules:[{e:1224954e6,s:120681e7},{e:12564036e5,s:12382596e5},{e:1288458e6,s:12697092e5},!1,!1,!1,!1]},{name:"Asia/Yekaterinburg",rules:[{e:12249684e5,s:12068244e5},{e:1256418e6,s:1238274e6},{e:12884724e5,s:12697236e5},!1,!1,!1,!1]},{name:"Asia/Yerevan",rules:[{e:1224972e6,s:1206828e6},{e:12564216e5,s:12382776e5},{e:1288476e6,s:12697272e5},{e:13199256e5,s:13011768e5},!1,!1,!1]},{name:"Australia/Lord_Howe",rules:[{e:12074076e5,s:12231342e5},{e:12388572e5,s:12545838e5},{e:12703068e5,s:12860334e5},{e:13017564e5,s:1317483e6},{e:1333206e6,s:13495374e5},{e:13652604e5,s:1380987e6},{e:139671e7,s:14124366e5}]},{name:"Australia/Perth",rules:[{e:12068136e5,s:12249576e5},!1,!1,!1,!1,!1,!1]},{name:"Europe/Helsinki",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Europe/Minsk",rules:[{e:12249792e5,s:12068352e5},{e:12564288e5,s:12382848e5},{e:12884832e5,s:12697344e5},!1,!1,!1,!1]},{name:"Europe/Moscow",rules:[{e:12249756e5,s:12068316e5},{e:12564252e5,s:12382812e5},{e:12884796e5,s:12697308e5},!1,!1,!1,!1]},{name:"Pacific/Apia",rules:[!1,!1,!1,{e:13017528e5,s:13168728e5},{e:13332024e5,s:13489272e5},{e:13652568e5,s:13803768e5},{e:13967064e5,s:14118264e5}]},{name:"Pacific/Fiji",rules:[!1,!1,{e:12696984e5,s:12878424e5},{e:13271544e5,s:1319292e6},{e:1358604e6,s:13507416e5},{e:139005e7,s:1382796e6},{e:14215032e5,s:14148504e5}]},{name:"Europe/London",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Africa/Windhoek",rules:[{e:12207492e5,s:120744e7},{e:12521988e5,s:12388896e5},{e:12836484e5,s:12703392e5},{e:1315098e6,s:13017888e5},{e:13465476e5,s:13332384e5},{e:13779972e5,s:13652928e5},{e:14100516e5,s:13967424e5}]}]},void 0!==e.exports?e.exports=r:null!==n.amdD&&null!=n.amdO?void 0===(i=function(){return r}.apply(t,[]))||(e.exports=i):window.jstz=r},18552:function(e,t,n){var i=n(10852)(n(55639),"DataView");e.exports=i},1989:function(e,t,n){var i=n(51789),r=n(80401),o=n(57667),s=n(21327),a=n(81866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},38407:function(e,t,n){var i=n(27040),r=n(14125),o=n(82117),s=n(67518),a=n(13399);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},57071:function(e,t,n){var i=n(10852)(n(55639),"Map");e.exports=i},83369:function(e,t,n){var i=n(24785),r=n(11285),o=n(96e3),s=n(49916),a=n(95265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},53818:function(e,t,n){var i=n(10852)(n(55639),"Promise");e.exports=i},58525:function(e,t,n){var i=n(10852)(n(55639),"Set");e.exports=i},88668:function(e,t,n){var i=n(83369),r=n(90619),o=n(72385);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=r,s.prototype.has=o,e.exports=s},46384:function(e,t,n){var i=n(38407),r=n(37465),o=n(63779),s=n(67599),a=n(44758),l=n(58786);function u(e){var t=this.__data__=new i(e);this.size=t.size}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=s,u.prototype.has=a,u.prototype.set=l,e.exports=u},62705:function(e,t,n){var i=n(55639).Symbol;e.exports=i},11149:function(e,t,n){var i=n(55639).Uint8Array;e.exports=i},70577:function(e,t,n){var i=n(10852)(n(55639),"WeakMap");e.exports=i},96874:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},77412:function(e){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}},34963:function(e){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}},47443:function(e,t,n){var i=n(42118);e.exports=function(e,t){return!(null==e||!e.length)&&i(e,t,0)>-1}},1196:function(e){e.exports=function(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}},14636:function(e,t,n){var i=n(22545),r=n(35694),o=n(1469),s=n(44144),a=n(65776),l=n(36719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&r(e),d=!n&&!c&&s(e),h=!n&&!c&&!d&&l(e),p=n||c||d||h,f=p?i(e.length,String):[],m=f.length;for(var g in e)!t&&!u.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m))||f.push(g);return f}},29932:function(e){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}},62488:function(e){e.exports=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}},82908:function(e){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}},48983:function(e,t,n){var i=n(40371)("length");e.exports=i},44286:function(e){e.exports=function(e){return e.split("")}},34865:function(e,t,n){var i=n(89465),r=n(77813),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];o.call(e,t)&&r(s,n)&&(void 0!==n||t in e)||i(e,t,n)}},18470:function(e,t,n){var i=n(77813);e.exports=function(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}},44037:function(e,t,n){var i=n(98363),r=n(3674);e.exports=function(e,t){return e&&i(t,r(t),e)}},63886:function(e,t,n){var i=n(98363),r=n(81704);e.exports=function(e,t){return e&&i(t,r(t),e)}},89465:function(e,t,n){var i=n(38777);e.exports=function(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},85990:function(e,t,n){var i=n(46384),r=n(77412),o=n(34865),s=n(44037),a=n(63886),l=n(64626),u=n(278),c=n(18805),d=n(1911),h=n(58234),p=n(46904),f=n(64160),m=n(43824),g=n(29148),v=n(38517),y=n(1469),b=n(44144),w=n(56688),_=n(13218),k=n(72928),C=n(3674),O=n(81704),x="[object Arguments]",E="[object Function]",S="[object Object]",M={};M[x]=M["[object Array]"]=M["[object ArrayBuffer]"]=M["[object DataView]"]=M["[object Boolean]"]=M["[object Date]"]=M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Map]"]=M["[object Number]"]=M[S]=M["[object RegExp]"]=M["[object Set]"]=M["[object String]"]=M["[object Symbol]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M["[object Error]"]=M[E]=M["[object WeakMap]"]=!1,e.exports=function e(t,n,P,A,T,D){var j,R=1&n,V=2&n,I=4&n;if(P&&(j=T?P(t,A,T,D):P(t)),void 0!==j)return j;if(!_(t))return t;var L=y(t);if(L){if(j=m(t),!R)return u(t,j)}else{var F=f(t),N=F==E||"[object GeneratorFunction]"==F;if(b(t))return l(t,R);if(F==S||F==x||N&&!T){if(j=V||N?{}:v(t),!R)return V?d(t,a(j,t)):c(t,s(j,t))}else{if(!M[F])return T?t:{};j=g(t,F,R)}}D||(D=new i);var U=D.get(t);if(U)return U;D.set(t,j),k(t)?t.forEach((function(i){j.add(e(i,n,P,i,t,D))})):w(t)&&t.forEach((function(i,r){j.set(r,e(i,n,P,r,t,D))}));var $=L?void 0:(I?V?p:h:V?O:C)(t);return r($||t,(function(i,r){$&&(i=t[r=i]),o(j,r,e(i,n,P,r,t,D))})),j}},3118:function(e,t,n){var i=n(13218),r=Object.create,o=function(){function e(){}return function(t){if(!i(t))return{};if(r)return r(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},20731:function(e,t,n){var i=n(88668),r=n(47443),o=n(1196),s=n(29932),a=n(7518),l=n(74757);e.exports=function(e,t,n,u){var c=-1,d=r,h=!0,p=e.length,f=[],m=t.length;if(!p)return f;n&&(t=s(t,a(n))),u?(d=o,h=!1):t.length>=200&&(d=l,h=!1,t=new i(t));e:for(;++c<p;){var g=e[c],v=null==n?g:n(g);if(g=u||0!==g?g:0,h&&v==v){for(var y=m;y--;)if(t[y]===v)continue e;f.push(g)}else d(t,v,u)||f.push(g)}return f}},41848:function(e){e.exports=function(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}},21078:function(e,t,n){var i=n(62488),r=n(37285);e.exports=function e(t,n,o,s,a){var l=-1,u=t.length;for(o||(o=r),a||(a=[]);++l<u;){var c=t[l];n>0&&o(c)?n>1?e(c,n-1,o,s,a):i(a,c):s||(a[a.length]=c)}return a}},28483:function(e,t,n){var i=n(25063)();e.exports=i},47816:function(e,t,n){var i=n(28483),r=n(3674);e.exports=function(e,t){return e&&i(e,t,r)}},97786:function(e,t,n){var i=n(71811),r=n(40327);e.exports=function(e,t){for(var n=0,o=(t=i(t,e)).length;null!=e&&n<o;)e=e[r(t[n++])];return n&&n==o?e:void 0}},68866:function(e,t,n){var i=n(62488),r=n(1469);e.exports=function(e,t,n){var o=t(e);return r(e)?o:i(o,n(e))}},44239:function(e,t,n){var i=n(62705),r=n(89607),o=n(2333),s=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?r(e):o(e)}},78565:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},42118:function(e,t,n){var i=n(41848),r=n(62722),o=n(42351);e.exports=function(e,t,n){return t==t?o(e,t,n):i(e,r,n)}},9454:function(e,t,n){var i=n(44239),r=n(37005);e.exports=function(e){return r(e)&&"[object Arguments]"==i(e)}},90939:function(e,t,n){var i=n(2492),r=n(37005);e.exports=function e(t,n,o,s,a){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:i(t,n,o,s,e,a))}},2492:function(e,t,n){var i=n(46384),r=n(67114),o=n(18351),s=n(16096),a=n(64160),l=n(1469),u=n(44144),c=n(36719),d="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),b=l(t),w=y?h:a(e),_=b?h:a(t),k=(w=w==d?p:w)==p,C=(_=_==d?p:_)==p,O=w==_;if(O&&u(e)){if(!u(t))return!1;y=!0,k=!1}if(O&&!k)return v||(v=new i),y||c(e)?r(e,t,n,m,g,v):o(e,t,w,n,m,g,v);if(!(1&n)){var x=k&&f.call(e,"__wrapped__"),E=C&&f.call(t,"__wrapped__");if(x||E){var S=x?e.value():e,M=E?t.value():t;return v||(v=new i),g(S,M,n,m,v)}}return!!O&&(v||(v=new i),s(e,t,n,m,g,v))}},25588:function(e,t,n){var i=n(64160),r=n(37005);e.exports=function(e){return r(e)&&"[object Map]"==i(e)}},62722:function(e){e.exports=function(e){return e!=e}},28458:function(e,t,n){var i=n(23560),r=n(15346),o=n(13218),s=n(80346),a=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,h=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||r(e))&&(i(e)?h:a).test(s(e))}},29221:function(e,t,n){var i=n(64160),r=n(37005);e.exports=function(e){return r(e)&&"[object Set]"==i(e)}},38749:function(e,t,n){var i=n(44239),r=n(41780),o=n(37005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&r(e.length)&&!!s[i(e)]}},280:function(e,t,n){var i=n(25726),r=n(86916),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},10313:function(e,t,n){var i=n(13218),r=n(25726),o=n(33498),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return o(e);var t=r(e),n=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&n.push(a);return n}},40371:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},18190:function(e){var t=Math.floor;e.exports=function(e,n){var i="";if(!e||n<1||n>9007199254740991)return i;do{n%2&&(i+=e),(n=t(n/2))&&(e+=e)}while(n);return i}},5976:function(e,t,n){var i=n(6557),r=n(45357),o=n(30061);e.exports=function(e,t){return o(r(e,t,i),e+"")}},10611:function(e,t,n){var i=n(34865),r=n(71811),o=n(65776),s=n(13218),a=n(40327);e.exports=function(e,t,n,l){if(!s(e))return e;for(var u=-1,c=(t=r(t,e)).length,d=c-1,h=e;null!=h&&++u<c;){var p=a(t[u]),f=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=d){var m=h[p];void 0===(f=l?l(m,p,h):void 0)&&(f=s(m)?m:o(t[u+1])?[]:{})}i(h,p,f),h=h[p]}return e}},56560:function(e,t,n){var i=n(75703),r=n(38777),o=n(6557),s=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:o;e.exports=s},14259:function(e){e.exports=function(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(r);++i<r;)o[i]=e[i+t];return o}},22545:function(e){e.exports=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}},80531:function(e,t,n){var i=n(62705),r=n(29932),o=n(1469),s=n(33448),a=i?i.prototype:void 0,l=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return r(t,e)+"";if(s(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},27561:function(e,t,n){var i=n(67990),r=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(r,""):e}},7518:function(e){e.exports=function(e){return function(t){return e(t)}}},57406:function(e,t,n){var i=n(71811),r=n(10928),o=n(40292),s=n(40327);e.exports=function(e,t){return t=i(t,e),null==(e=o(e,t))||delete e[s(r(t))]}},74757:function(e){e.exports=function(e,t){return e.has(t)}},54290:function(e,t,n){var i=n(6557);e.exports=function(e){return"function"==typeof e?e:i}},71811:function(e,t,n){var i=n(1469),r=n(15403),o=n(55514),s=n(79833);e.exports=function(e,t){return i(e)?e:r(e,t)?[e]:o(s(e))}},40180:function(e,t,n){var i=n(14259);e.exports=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:i(e,t,n)}},5512:function(e,t,n){var i=n(42118);e.exports=function(e,t){for(var n=e.length;n--&&i(t,e[n],0)>-1;);return n}},89817:function(e,t,n){var i=n(42118);e.exports=function(e,t){for(var n=-1,r=e.length;++n<r&&i(t,e[n],0)>-1;);return n}},74318:function(e,t,n){var i=n(11149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},64626:function(e,t,n){e=n.nmd(e);var i=n(55639),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,s=o&&o.exports===r?i.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=a?a(n):new e.constructor(n);return e.copy(i),i}},57157:function(e,t,n){var i=n(74318);e.exports=function(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},93147:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},40419:function(e,t,n){var i=n(62705),r=i?i.prototype:void 0,o=r?r.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},77133:function(e,t,n){var i=n(74318);e.exports=function(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},278:function(e){e.exports=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}},98363:function(e,t,n){var i=n(34865),r=n(89465);e.exports=function(e,t,n,o){var s=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var u=t[a],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),s?r(n,u,c):i(n,u,c)}return n}},18805:function(e,t,n){var i=n(98363),r=n(99551);e.exports=function(e,t){return i(e,r(e),t)}},1911:function(e,t,n){var i=n(98363),r=n(51442);e.exports=function(e,t){return i(e,r(e),t)}},14429:function(e,t,n){var i=n(55639)["__core-js_shared__"];e.exports=i},25063:function(e){e.exports=function(e){return function(t,n,i){for(var r=-1,o=Object(t),s=i(t),a=s.length;a--;){var l=s[e?a:++r];if(!1===n(o[l],l,o))break}return t}}},78302:function(e,t,n){var i=n(18190),r=n(80531),o=n(40180),s=n(62689),a=n(88016),l=n(83140),u=Math.ceil;e.exports=function(e,t){var n=(t=void 0===t?" ":r(t)).length;if(n<2)return n?i(t,e):t;var c=i(t,u(e/a(t)));return s(t)?o(l(c),0,e).join(""):c.slice(0,e)}},89179:function(e,t,n){var i=n(55639),r=n(40554),o=n(14841),s=n(79833),a=i.isFinite,l=Math.min;e.exports=function(e){var t=Math[e];return function(e,n){if(e=o(e),(n=null==n?0:l(r(n),292))&&a(e)){var i=(s(e)+"e").split("e"),u=t(i[0]+"e"+(+i[1]+n));return+((i=(s(u)+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}},60696:function(e,t,n){var i=n(68630);e.exports=function(e){return i(e)?void 0:e}},38777:function(e,t,n){var i=n(10852),r=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},67114:function(e,t,n){var i=n(88668),r=n(82908),o=n(74757);e.exports=function(e,t,n,s,a,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var f=-1,m=!0,g=2&n?new i:void 0;for(l.set(e,t),l.set(t,e);++f<c;){var v=e[f],y=t[f];if(s)var b=u?s(y,v,f,t,e,l):s(v,y,f,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!r(t,(function(e,t){if(!o(g,t)&&(v===e||a(v,e,n,s,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!a(v,y,n,s,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},18351:function(e,t,n){var i=n(62705),r=n(11149),o=n(77813),s=n(67114),a=n(68776),l=n(21814),u=i?i.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,i,u,d,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=a;case"[object Set]":var f=1&i;if(p||(p=l),e.size!=t.size&&!f)return!1;var m=h.get(e);if(m)return m==t;i|=2,h.set(e,t);var g=s(p(e),p(t),i,u,d,h);return h.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},16096:function(e,t,n){var i=n(58234),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,s,a){var l=1&n,u=i(e),c=u.length;if(c!=i(t).length&&!l)return!1;for(var d=c;d--;){var h=u[d];if(!(l?h in t:r.call(t,h)))return!1}var p=a.get(e),f=a.get(t);if(p&&f)return p==t&&f==e;var m=!0;a.set(e,t),a.set(t,e);for(var g=l;++d<c;){var v=e[h=u[d]],y=t[h];if(o)var b=l?o(y,v,h,t,e,a):o(v,y,h,e,t,a);if(!(void 0===b?v===y||s(v,y,n,o,a):b)){m=!1;break}g||(g="constructor"==h)}if(m&&!g){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(m=!1)}return a.delete(e),a.delete(t),m}},99021:function(e,t,n){var i=n(85564),r=n(45357),o=n(30061);e.exports=function(e){return o(r(e,void 0,i),e+"")}},31957:function(e,t,n){var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},58234:function(e,t,n){var i=n(68866),r=n(99551),o=n(3674);e.exports=function(e){return i(e,o,r)}},46904:function(e,t,n){var i=n(68866),r=n(51442),o=n(81704);e.exports=function(e){return i(e,o,r)}},45050:function(e,t,n){var i=n(37019);e.exports=function(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}},10852:function(e,t,n){var i=n(28458),r=n(47801);e.exports=function(e,t){var n=r(e,t);return i(n)?n:void 0}},85924:function(e,t,n){var i=n(5569)(Object.getPrototypeOf,Object);e.exports=i},89607:function(e,t,n){var i=n(62705),r=Object.prototype,o=r.hasOwnProperty,s=r.toString,a=i?i.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var i=!0}catch(e){}var r=s.call(e);return i&&(t?e[a]=n:delete e[a]),r}},99551:function(e,t,n){var i=n(34963),r=n(70479),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),i(s(e),(function(t){return o.call(e,t)})))}:r;e.exports=a},51442:function(e,t,n){var i=n(62488),r=n(85924),o=n(99551),s=n(70479),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)i(t,o(e)),e=r(e);return t}:s;e.exports=a},64160:function(e,t,n){var i=n(18552),r=n(57071),o=n(53818),s=n(58525),a=n(70577),l=n(44239),u=n(80346),c="[object Map]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",f="[object DataView]",m=u(i),g=u(r),v=u(o),y=u(s),b=u(a),w=l;(i&&w(new i(new ArrayBuffer(1)))!=f||r&&w(new r)!=c||o&&w(o.resolve())!=d||s&&w(new s)!=h||a&&w(new a)!=p)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,i=n?u(n):"";if(i)switch(i){case m:return f;case g:return c;case v:return d;case y:return h;case b:return p}return t}),e.exports=w},47801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},222:function(e,t,n){var i=n(71811),r=n(35694),o=n(1469),s=n(65776),a=n(41780),l=n(40327);e.exports=function(e,t,n){for(var u=-1,c=(t=i(t,e)).length,d=!1;++u<c;){var h=l(t[u]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&a(c)&&s(h,c)&&(o(e)||r(e))}},62689:function(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},51789:function(e,t,n){var i=n(94536);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},80401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},57667:function(e,t,n){var i=n(94536),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0}},21327:function(e,t,n){var i=n(94536),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:r.call(t,e)}},81866:function(e,t,n){var i=n(94536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},43824:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,i=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(i.index=e.index,i.input=e.input),i}},29148:function(e,t,n){var i=n(74318),r=n(57157),o=n(93147),s=n(40419),a=n(77133);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return i(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return r(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return s(e)}}},38517:function(e,t,n){var i=n(3118),r=n(85924),o=n(25726);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:i(r(e))}},37285:function(e,t,n){var i=n(62705),r=n(35694),o=n(1469),s=i?i.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||r(e)||!!(s&&e&&e[s])}},65776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<n}},16612:function(e,t,n){var i=n(77813),r=n(98612),o=n(65776),s=n(13218);e.exports=function(e,t,n){if(!s(n))return!1;var a=typeof t;return!!("number"==a?r(n)&&o(t,n.length):"string"==a&&t in n)&&i(n[t],e)}},15403:function(e,t,n){var i=n(1469),r=n(33448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(i(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!r(e))||s.test(e)||!o.test(e)||null!=t&&e in Object(t)}},37019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},15346:function(e,t,n){var i,r=n(14429),o=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!o&&o in e}},25726:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},27040:function(e){e.exports=function(){this.__data__=[],this.size=0}},14125:function(e,t,n){var i=n(18470),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=i(t,e);return!(n<0||(n==t.length-1?t.pop():r.call(t,n,1),--this.size,0))}},82117:function(e,t,n){var i=n(18470);e.exports=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}},67518:function(e,t,n){var i=n(18470);e.exports=function(e){return i(this.__data__,e)>-1}},13399:function(e,t,n){var i=n(18470);e.exports=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},24785:function(e,t,n){var i=n(1989),r=n(38407),o=n(57071);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||r),string:new i}}},11285:function(e,t,n){var i=n(45050);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,n){var i=n(45050);e.exports=function(e){return i(this,e).get(e)}},49916:function(e,t,n){var i=n(45050);e.exports=function(e){return i(this,e).has(e)}},95265:function(e,t,n){var i=n(45050);e.exports=function(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},68776:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}},24523:function(e,t,n){var i=n(88306);e.exports=function(e){var t=i(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},94536:function(e,t,n){var i=n(10852)(Object,"create");e.exports=i},86916:function(e,t,n){var i=n(5569)(Object.keys,Object);e.exports=i},33498:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},31167:function(e,t,n){e=n.nmd(e);var i=n(31957),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,s=o&&o.exports===r&&i.process,a=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},45357:function(e,t,n){var i=n(96874),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=r(o.length-t,0),l=Array(a);++s<a;)l[s]=o[t+s];s=-1;for(var u=Array(t+1);++s<t;)u[s]=o[s];return u[t]=n(l),i(e,this,u)}}},40292:function(e,t,n){var i=n(97786),r=n(14259);e.exports=function(e,t){return t.length<2?e:i(e,r(t,0,-1))}},55639:function(e,t,n){var i=n(31957),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();e.exports=o},90619:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},72385:function(e){e.exports=function(e){return this.__data__.has(e)}},21814:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},30061:function(e,t,n){var i=n(56560),r=n(21275)(i);e.exports=r},21275:function(e){var t=Date.now;e.exports=function(e){var n=0,i=0;return function(){var r=t(),o=16-(r-i);if(i=r,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},37465:function(e,t,n){var i=n(38407);e.exports=function(){this.__data__=new i,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},58786:function(e,t,n){var i=n(38407),r=n(57071),o=n(83369);e.exports=function(e,t){var n=this.__data__;if(n instanceof i){var s=n.__data__;if(!r||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}},42351:function(e){e.exports=function(e,t,n){for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return-1}},88016:function(e,t,n){var i=n(48983),r=n(62689),o=n(21903);e.exports=function(e){return r(e)?o(e):i(e)}},83140:function(e,t,n){var i=n(44286),r=n(62689),o=n(676);e.exports=function(e){return r(e)?o(e):i(e)}},55514:function(e,t,n){var i=n(24523),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=i((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,n,i,r){t.push(i?r.replace(o,"$1"):n||e)})),t}));e.exports=s},40327:function(e,t,n){var i=n(33448);e.exports=function(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},21903:function(e){var t="\\ud800-\\udfff",n="["+t+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+i+"|"+r+")?",u="[\\ufe0e\\ufe0f]?",c=u+l+"(?:\\u200d(?:"+[o,s,a].join("|")+")"+u+l+")*",d="(?:"+[o+i+"?",i,s,a,n].join("|")+")",h=RegExp(r+"(?="+r+")|"+d+c,"g");e.exports=function(e){for(var t=h.lastIndex=0;h.test(e);)++t;return t}},676:function(e){var t="\\ud800-\\udfff",n="["+t+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+i+"|"+r+")?",u="[\\ufe0e\\ufe0f]?",c=u+l+"(?:\\u200d(?:"+[o,s,a].join("|")+")"+u+l+")*",d="(?:"+[o+i+"?",i,s,a,n].join("|")+")",h=RegExp(r+"(?="+r+")|"+d+c,"g");e.exports=function(e){return e.match(h)||[]}},8400:function(e,t,n){var i=n(14259),r=n(16612),o=n(40554),s=Math.ceil,a=Math.max;e.exports=function(e,t,n){t=(n?r(e,t,n):void 0===t)?1:a(o(t),0);var l=null==e?0:e.length;if(!l||t<1)return[];for(var u=0,c=0,d=Array(s(l/t));u<l;)d[c++]=i(e,u,u+=t);return d}},66678:function(e,t,n){var i=n(85990);e.exports=function(e){return i(e,4)}},75703:function(e){e.exports=function(e){return function(){return e}}},23279:function(e,t,n){var i=n(13218),r=n(7771),o=n(14841),s=Math.max,a=Math.min;e.exports=function(e,t,n){var l,u,c,d,h,p,f=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,i=u;return l=u=void 0,f=t,d=e.apply(i,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-f>=c}function w(){var e=r();if(b(e))return _(e);h=setTimeout(w,function(e){var n=t-(e-p);return g?a(n,c-(e-f)):n}(e))}function _(e){return h=void 0,v&&l?y(e):(l=u=void 0,d)}function k(){var e=r(),n=b(e);if(l=arguments,u=this,p=e,n){if(void 0===h)return function(e){return f=e,h=setTimeout(w,t),m?y(e):d}(p);if(g)return clearTimeout(h),h=setTimeout(w,t),y(p)}return void 0===h&&(h=setTimeout(w,t)),d}return t=o(t)||0,i(n)&&(m=!!n.leading,c=(g="maxWait"in n)?s(o(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=u=h=void 0},k.flush=function(){return void 0===h?d:_(r())},k}},91966:function(e,t,n){var i=n(20731),r=n(21078),o=n(5976),s=n(29246),a=o((function(e,t){return s(e)?i(e,r(t,1,s,!0)):[]}));e.exports=a},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},85564:function(e,t,n){var i=n(21078);e.exports=function(e){return null!=e&&e.length?i(e,1):[]}},2525:function(e,t,n){var i=n(47816),r=n(54290);e.exports=function(e,t){return e&&i(e,r(t))}},27361:function(e,t,n){var i=n(97786);e.exports=function(e,t,n){var r=null==e?void 0:i(e,t);return void 0===r?n:r}},18721:function(e,t,n){var i=n(78565),r=n(222);e.exports=function(e,t){return null!=e&&r(e,t,i)}},6557:function(e){e.exports=function(e){return e}},35694:function(e,t,n){var i=n(9454),r=n(37005),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return r(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},1469:function(e){var t=Array.isArray;e.exports=t},98612:function(e,t,n){var i=n(23560),r=n(41780);e.exports=function(e){return null!=e&&r(e.length)&&!i(e)}},29246:function(e,t,n){var i=n(98612),r=n(37005);e.exports=function(e){return r(e)&&i(e)}},44144:function(e,t,n){e=n.nmd(e);var i=n(55639),r=n(95062),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,a=s&&s.exports===o?i.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;e.exports=l},18446:function(e,t,n){var i=n(90939);e.exports=function(e,t){return i(e,t)}},23560:function(e,t,n){var i=n(44239),r=n(13218);e.exports=function(e){if(!r(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},56688:function(e,t,n){var i=n(25588),r=n(7518),o=n(31167),s=o&&o.isMap,a=s?r(s):i;e.exports=a},7654:function(e,t,n){var i=n(81763);e.exports=function(e){return i(e)&&e!=+e}},14293:function(e){e.exports=function(e){return null==e}},81763:function(e,t,n){var i=n(44239),r=n(37005);e.exports=function(e){return"number"==typeof e||r(e)&&"[object Number]"==i(e)}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},68630:function(e,t,n){var i=n(44239),r=n(85924),o=n(37005),s=Function.prototype,a=Object.prototype,l=s.toString,u=a.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=i(e))return!1;var t=r(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},72928:function(e,t,n){var i=n(29221),r=n(7518),o=n(31167),s=o&&o.isSet,a=s?r(s):i;e.exports=a},47037:function(e,t,n){var i=n(44239),r=n(1469),o=n(37005);e.exports=function(e){return"string"==typeof e||!r(e)&&o(e)&&"[object String]"==i(e)}},33448:function(e,t,n){var i=n(44239),r=n(37005);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==i(e)}},36719:function(e,t,n){var i=n(38749),r=n(7518),o=n(31167),s=o&&o.isTypedArray,a=s?r(s):i;e.exports=a},3674:function(e,t,n){var i=n(14636),r=n(280),o=n(98612);e.exports=function(e){return o(e)?i(e):r(e)}},81704:function(e,t,n){var i=n(14636),r=n(10313),o=n(98612);e.exports=function(e){return o(e)?i(e,!0):r(e)}},10928:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},96486:function(e,t,n){var i;e=n.nmd(e),function(){var r,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=32,u=128,c=1/0,d=9007199254740991,h=NaN,p=4294967295,f=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",w="[object Function]",_="[object GeneratorFunction]",k="[object Map]",C="[object Number]",O="[object Object]",x="[object Promise]",E="[object RegExp]",S="[object Set]",M="[object String]",P="[object Symbol]",A="[object WeakMap]",T="[object ArrayBuffer]",D="[object DataView]",j="[object Float32Array]",R="[object Float64Array]",V="[object Int8Array]",I="[object Int16Array]",L="[object Int32Array]",F="[object Uint8Array]",N="[object Uint8ClampedArray]",U="[object Uint16Array]",$="[object Uint32Array]",z=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,Y=RegExp(q.source),K=RegExp(W.source),G=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),ie=/^\s+/,re=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",Oe="a-z\\xdf-\\xf6\\xf8-\\xff",xe="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",Se="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Me="["+_e+"]",Pe="["+Se+"]",Ae="["+ke+"]",Te="\\d+",De="["+Ce+"]",je="["+Oe+"]",Re="[^"+_e+Se+Te+Ce+Oe+xe+"]",Ve="\\ud83c[\\udffb-\\udfff]",Ie="[^"+_e+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="["+xe+"]",Ue="\\u200d",$e="(?:"+je+"|"+Re+")",ze="(?:"+Ne+"|"+Re+")",Be="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Ae+"|"+Ve+")?",We="["+Ee+"]?",Ye=We+qe+"(?:"+Ue+"(?:"+[Ie,Le,Fe].join("|")+")"+We+qe+")*",Ke="(?:"+[De,Le,Fe].join("|")+")"+Ye,Ge="(?:"+[Ie+Ae+"?",Ae,Le,Fe,Me].join("|")+")",Je=RegExp("['’]","g"),Ze=RegExp(Ae,"g"),Xe=RegExp(Ve+"(?="+Ve+")|"+Ge+Ye,"g"),Qe=RegExp([Ne+"?"+je+"+"+Be+"(?="+[Pe,Ne,"$"].join("|")+")",ze+"+"+He+"(?="+[Pe,Ne+$e,"$"].join("|")+")",Ne+"?"+$e+"+"+Be,Ne+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Te,Ke].join("|"),"g"),et=RegExp("["+Ue+_e+ke+Ee+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,rt={};rt[j]=rt[R]=rt[V]=rt[I]=rt[L]=rt[F]=rt[N]=rt[U]=rt[$]=!0,rt[m]=rt[g]=rt[T]=rt[v]=rt[D]=rt[y]=rt[b]=rt[w]=rt[k]=rt[C]=rt[O]=rt[E]=rt[S]=rt[M]=rt[A]=!1;var ot={};ot[m]=ot[g]=ot[T]=ot[D]=ot[v]=ot[y]=ot[j]=ot[R]=ot[V]=ot[I]=ot[L]=ot[k]=ot[C]=ot[O]=ot[E]=ot[S]=ot[M]=ot[P]=ot[F]=ot[N]=ot[U]=ot[$]=!0,ot[b]=ot[w]=ot[A]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,lt=parseInt,ut="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ct="object"==typeof self&&self&&self.Object===Object&&self,dt=ut||ct||Function("return this")(),ht=t&&!t.nodeType&&t,pt=ht&&e&&!e.nodeType&&e,ft=pt&&pt.exports===ht,mt=ft&&ut.process,gt=function(){try{return pt&&pt.require&&pt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=gt&&gt.isArrayBuffer,yt=gt&&gt.isDate,bt=gt&&gt.isMap,wt=gt&&gt.isRegExp,_t=gt&&gt.isSet,kt=gt&&gt.isTypedArray;function Ct(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ot(e,t,n,i){for(var r=-1,o=null==e?0:e.length;++r<o;){var s=e[r];t(i,s,n(s),e)}return i}function xt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function Et(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function St(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function Mt(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}function Pt(e,t){return!(null==e||!e.length)&&Nt(e,t,0)>-1}function At(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function Tt(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function Dt(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function jt(e,t,n,i){var r=-1,o=null==e?0:e.length;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}function Rt(e,t,n,i){var r=null==e?0:e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function Vt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var It=Bt("length");function Lt(e,t,n){var i;return n(e,(function(e,n,r){if(t(e,n,r))return i=n,!1})),i}function Ft(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function Nt(e,t,n){return t==t?function(e,t,n){for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):Ft(e,$t,n)}function Ut(e,t,n,i){for(var r=n-1,o=e.length;++r<o;)if(i(e[r],t))return r;return-1}function $t(e){return e!=e}function zt(e,t){var n=null==e?0:e.length;return n?Wt(e,t)/n:h}function Bt(e){return function(t){return null==t?r:t[e]}}function Ht(e){return function(t){return null==e?r:e[t]}}function qt(e,t,n,i,r){return r(e,(function(e,r,o){n=i?(i=!1,e):t(n,e,r,o)})),n}function Wt(e,t){for(var n,i=-1,o=e.length;++i<o;){var s=t(e[i]);s!==r&&(n=n===r?s:n+s)}return n}function Yt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Kt(e){return e?e.slice(0,hn(e)+1).replace(ie,""):e}function Gt(e){return function(t){return e(t)}}function Jt(e,t){return Tt(t,(function(t){return e[t]}))}function Zt(e,t){return e.has(t)}function Xt(e,t){for(var n=-1,i=e.length;++n<i&&Nt(t,e[n],0)>-1;);return n}function Qt(e,t){for(var n=e.length;n--&&Nt(t,e[n],0)>-1;);return n}var en=Ht({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=Ht({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(e){return"\\"+st[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function an(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[r++]=n)}return o}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function cn(e){return rn(e)?function(e){for(var t=Xe.lastIndex=0;Xe.test(e);)++t;return t}(e):It(e)}function dn(e){return rn(e)?function(e){return e.match(Xe)||[]}(e):function(e){return e.split("")}(e)}function hn(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t}var pn=Ht({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),fn=function e(t){var n,i=(t=null==t?dt:fn.defaults(dt.Object(),t,fn.pick(dt,nt))).Array,re=t.Date,_e=t.Error,ke=t.Function,Ce=t.Math,Oe=t.Object,xe=t.RegExp,Ee=t.String,Se=t.TypeError,Me=i.prototype,Pe=ke.prototype,Ae=Oe.prototype,Te=t["__core-js_shared__"],De=Pe.toString,je=Ae.hasOwnProperty,Re=0,Ve=(n=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ie=Ae.toString,Le=De.call(Oe),Fe=dt._,Ne=xe("^"+De.call(je).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=ft?t.Buffer:r,$e=t.Symbol,ze=t.Uint8Array,Be=Ue?Ue.allocUnsafe:r,He=sn(Oe.getPrototypeOf,Oe),qe=Oe.create,We=Ae.propertyIsEnumerable,Ye=Me.splice,Ke=$e?$e.isConcatSpreadable:r,Ge=$e?$e.iterator:r,Xe=$e?$e.toStringTag:r,et=function(){try{var e=lo(Oe,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ut=re&&re.now!==dt.Date.now&&re.now,ct=t.setTimeout!==dt.setTimeout&&t.setTimeout,ht=Ce.ceil,pt=Ce.floor,mt=Oe.getOwnPropertySymbols,gt=Ue?Ue.isBuffer:r,It=t.isFinite,Ht=Me.join,mn=sn(Oe.keys,Oe),gn=Ce.max,vn=Ce.min,yn=re.now,bn=t.parseInt,wn=Ce.random,_n=Me.reverse,kn=lo(t,"DataView"),Cn=lo(t,"Map"),On=lo(t,"Promise"),xn=lo(t,"Set"),En=lo(t,"WeakMap"),Sn=lo(Oe,"create"),Mn=En&&new En,Pn={},An=Lo(kn),Tn=Lo(Cn),Dn=Lo(On),jn=Lo(xn),Rn=Lo(En),Vn=$e?$e.prototype:r,In=Vn?Vn.valueOf:r,Ln=Vn?Vn.toString:r;function Fn(e){if(ea(e)&&!Bs(e)&&!(e instanceof zn)){if(e instanceof $n)return e;if(je.call(e,"__wrapped__"))return Fo(e)}return new $n(e)}var Nn=function(){function e(){}return function(t){if(!Qs(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Un(){}function $n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function zn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Bn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new Hn(e);this.size=t.size}function Kn(e,t){var n=Bs(e),i=!n&&zs(e),r=!n&&!i&&Ys(e),o=!n&&!i&&!r&&la(e),s=n||i||r||o,a=s?Yt(e.length,Ee):[],l=a.length;for(var u in e)!t&&!je.call(e,u)||s&&("length"==u||r&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||go(u,l))||a.push(u);return a}function Gn(e){var t=e.length;return t?e[qi(0,t-1)]:r}function Jn(e,t){return Do(Er(e),oi(t,0,e.length))}function Zn(e){return Do(Er(e))}function Xn(e,t,n){(n!==r&&!Ns(e[t],n)||n===r&&!(t in e))&&ii(e,t,n)}function Qn(e,t,n){var i=e[t];je.call(e,t)&&Ns(i,n)&&(n!==r||t in e)||ii(e,t,n)}function ei(e,t){for(var n=e.length;n--;)if(Ns(e[n][0],t))return n;return-1}function ti(e,t,n,i){return ci(e,(function(e,r,o){t(i,e,n(e),o)})),i}function ni(e,t){return e&&Sr(t,Aa(t),e)}function ii(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ri(e,t){for(var n=-1,o=t.length,s=i(o),a=null==e;++n<o;)s[n]=a?r:xa(e,t[n]);return s}function oi(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function si(e,t,n,i,o,s){var a,l=1&t,u=2&t,c=4&t;if(n&&(a=o?n(e,i,o,s):n(e)),a!==r)return a;if(!Qs(e))return e;var d=Bs(e);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&je.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Er(e,a)}else{var h=ho(e),p=h==w||h==_;if(Ys(e))return wr(e,l);if(h==O||h==m||p&&!o){if(a=u||p?{}:fo(e),!l)return u?function(e,t){return Sr(e,co(e),t)}(e,function(e,t){return e&&Sr(t,Ta(t),e)}(a,e)):function(e,t){return Sr(e,uo(e),t)}(e,ni(a,e))}else{if(!ot[h])return o?e:{};a=function(e,t,n){var i,r=e.constructor;switch(t){case T:return _r(e);case v:case y:return new r(+e);case D:return function(e,t){var n=t?_r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case j:case R:case V:case I:case L:case F:case N:case U:case $:return kr(e,n);case k:return new r;case C:case M:return new r(e);case E:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case S:return new r;case P:return i=e,In?Oe(In.call(i)):{}}}(e,h,l)}}s||(s=new Yn);var f=s.get(e);if(f)return f;s.set(e,a),oa(e)?e.forEach((function(i){a.add(si(i,t,n,i,e,s))})):ta(e)&&e.forEach((function(i,r){a.set(r,si(i,t,n,r,e,s))}));var g=d?r:(c?u?to:eo:u?Ta:Aa)(e);return xt(g||e,(function(i,r){g&&(i=e[r=i]),Qn(a,r,si(i,t,n,r,e,s))})),a}function ai(e,t,n){var i=n.length;if(null==e)return!i;for(e=Oe(e);i--;){var o=n[i],s=t[o],a=e[o];if(a===r&&!(o in e)||!s(a))return!1}return!0}function li(e,t,n){if("function"!=typeof e)throw new Se(o);return Mo((function(){e.apply(r,n)}),t)}function ui(e,t,n,i){var r=-1,o=Pt,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=Tt(t,Gt(n))),i?(o=At,s=!1):t.length>=200&&(o=Zt,s=!1,t=new Wn(t));e:for(;++r<a;){var c=e[r],d=null==n?c:n(c);if(c=i||0!==c?c:0,s&&d==d){for(var h=u;h--;)if(t[h]===d)continue e;l.push(c)}else o(t,d,i)||l.push(c)}return l}Fn.templateSettings={escape:G,evaluate:J,interpolate:Z,variable:"",imports:{_:Fn}},Fn.prototype=Un.prototype,Fn.prototype.constructor=Fn,$n.prototype=Nn(Un.prototype),$n.prototype.constructor=$n,zn.prototype=Nn(Un.prototype),zn.prototype.constructor=zn,Bn.prototype.clear=function(){this.__data__=Sn?Sn(null):{},this.size=0},Bn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Bn.prototype.get=function(e){var t=this.__data__;if(Sn){var n=t[e];return n===s?r:n}return je.call(t,e)?t[e]:r},Bn.prototype.has=function(e){var t=this.__data__;return Sn?t[e]!==r:je.call(t,e)},Bn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Sn&&t===r?s:t,this},Hn.prototype.clear=function(){this.__data__=[],this.size=0},Hn.prototype.delete=function(e){var t=this.__data__,n=ei(t,e);return!(n<0||(n==t.length-1?t.pop():Ye.call(t,n,1),--this.size,0))},Hn.prototype.get=function(e){var t=this.__data__,n=ei(t,e);return n<0?r:t[n][1]},Hn.prototype.has=function(e){return ei(this.__data__,e)>-1},Hn.prototype.set=function(e,t){var n=this.__data__,i=ei(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Bn,map:new(Cn||Hn),string:new Bn}},qn.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return so(this,e).get(e)},qn.prototype.has=function(e){return so(this,e).has(e)},qn.prototype.set=function(e,t){var n=so(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Wn.prototype.add=Wn.prototype.push=function(e){return this.__data__.set(e,s),this},Wn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new Hn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Hn){var i=n.__data__;if(!Cn||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(i)}return n.set(e,t),this.size=n.size,this};var ci=Ar(yi),di=Ar(bi,!0);function hi(e,t){var n=!0;return ci(e,(function(e,i,r){return n=!!t(e,i,r)})),n}function pi(e,t,n){for(var i=-1,o=e.length;++i<o;){var s=e[i],a=t(s);if(null!=a&&(l===r?a==a&&!aa(a):n(a,l)))var l=a,u=s}return u}function fi(e,t){var n=[];return ci(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function mi(e,t,n,i,r){var o=-1,s=e.length;for(n||(n=mo),r||(r=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?mi(a,t-1,n,i,r):Dt(r,a):i||(r[r.length]=a)}return r}var gi=Tr(),vi=Tr(!0);function yi(e,t){return e&&gi(e,t,Aa)}function bi(e,t){return e&&vi(e,t,Aa)}function wi(e,t){return Mt(t,(function(t){return Js(e[t])}))}function _i(e,t){for(var n=0,i=(t=gr(t,e)).length;null!=e&&n<i;)e=e[Io(t[n++])];return n&&n==i?e:r}function ki(e,t,n){var i=t(e);return Bs(e)?i:Dt(i,n(e))}function Ci(e){return null==e?e===r?"[object Undefined]":"[object Null]":Xe&&Xe in Oe(e)?function(e){var t=je.call(e,Xe),n=e[Xe];try{e[Xe]=r;var i=!0}catch(e){}var o=Ie.call(e);return i&&(t?e[Xe]=n:delete e[Xe]),o}(e):function(e){return Ie.call(e)}(e)}function Oi(e,t){return e>t}function xi(e,t){return null!=e&&je.call(e,t)}function Ei(e,t){return null!=e&&t in Oe(e)}function Si(e,t,n){for(var o=n?At:Pt,s=e[0].length,a=e.length,l=a,u=i(a),c=1/0,d=[];l--;){var h=e[l];l&&t&&(h=Tt(h,Gt(t))),c=vn(h.length,c),u[l]=!n&&(t||s>=120&&h.length>=120)?new Wn(l&&h):r}h=e[0];var p=-1,f=u[0];e:for(;++p<s&&d.length<c;){var m=h[p],g=t?t(m):m;if(m=n||0!==m?m:0,!(f?Zt(f,g):o(d,g,n))){for(l=a;--l;){var v=u[l];if(!(v?Zt(v,g):o(e[l],g,n)))continue e}f&&f.push(g),d.push(m)}}return d}function Mi(e,t,n){var i=null==(e=xo(e,t=gr(t,e)))?e:e[Io(Go(t))];return null==i?r:Ct(i,e,n)}function Pi(e){return ea(e)&&Ci(e)==m}function Ai(e,t,n,i,o){return e===t||(null==e||null==t||!ea(e)&&!ea(t)?e!=e&&t!=t:function(e,t,n,i,o,s){var a=Bs(e),l=Bs(t),u=a?g:ho(e),c=l?g:ho(t),d=(u=u==m?O:u)==O,h=(c=c==m?O:c)==O,p=u==c;if(p&&Ys(e)){if(!Ys(t))return!1;a=!0,d=!1}if(p&&!d)return s||(s=new Yn),a||la(e)?Xr(e,t,n,i,o,s):function(e,t,n,i,r,o,s){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!o(new ze(e),new ze(t)));case v:case y:case C:return Ns(+e,+t);case b:return e.name==t.name&&e.message==t.message;case E:case M:return e==t+"";case k:var a=on;case S:var l=1&i;if(a||(a=ln),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;i|=2,s.set(e,t);var c=Xr(a(e),a(t),i,r,o,s);return s.delete(e),c;case P:if(In)return In.call(e)==In.call(t)}return!1}(e,t,u,n,i,o,s);if(!(1&n)){var f=d&&je.call(e,"__wrapped__"),w=h&&je.call(t,"__wrapped__");if(f||w){var _=f?e.value():e,x=w?t.value():t;return s||(s=new Yn),o(_,x,n,i,s)}}return!!p&&(s||(s=new Yn),function(e,t,n,i,o,s){var a=1&n,l=eo(e),u=l.length;if(u!=eo(t).length&&!a)return!1;for(var c=u;c--;){var d=l[c];if(!(a?d in t:je.call(t,d)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var f=!0;s.set(e,t),s.set(t,e);for(var m=a;++c<u;){var g=e[d=l[c]],v=t[d];if(i)var y=a?i(v,g,d,t,e,s):i(g,v,d,e,t,s);if(!(y===r?g===v||o(g,v,n,i,s):y)){f=!1;break}m||(m="constructor"==d)}if(f&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(f=!1)}return s.delete(e),s.delete(t),f}(e,t,n,i,o,s))}(e,t,n,i,Ai,o))}function Ti(e,t,n,i){var o=n.length,s=o,a=!i;if(null==e)return!s;for(e=Oe(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var u=(l=n[o])[0],c=e[u],d=l[1];if(a&&l[2]){if(c===r&&!(u in e))return!1}else{var h=new Yn;if(i)var p=i(c,d,u,e,t,h);if(!(p===r?Ai(d,c,3,i,h):p))return!1}}return!0}function Di(e){return!(!Qs(e)||(t=e,Ve&&Ve in t))&&(Js(e)?Ne:me).test(Lo(e));var t}function ji(e){return"function"==typeof e?e:null==e?nl:"object"==typeof e?Bs(e)?Fi(e[0],e[1]):Li(e):dl(e)}function Ri(e){if(!_o(e))return mn(e);var t=[];for(var n in Oe(e))je.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Vi(e,t){return e<t}function Ii(e,t){var n=-1,r=qs(e)?i(e.length):[];return ci(e,(function(e,i,o){r[++n]=t(e,i,o)})),r}function Li(e){var t=ao(e);return 1==t.length&&t[0][2]?Co(t[0][0],t[0][1]):function(n){return n===e||Ti(n,e,t)}}function Fi(e,t){return yo(e)&&ko(t)?Co(Io(e),t):function(n){var i=xa(n,e);return i===r&&i===t?Ea(n,e):Ai(t,i,3)}}function Ni(e,t,n,i,o){e!==t&&gi(t,(function(s,a){if(o||(o=new Yn),Qs(s))!function(e,t,n,i,o,s,a){var l=Eo(e,n),u=Eo(t,n),c=a.get(u);if(c)Xn(e,n,c);else{var d=s?s(l,u,n+"",e,t,a):r,h=d===r;if(h){var p=Bs(u),f=!p&&Ys(u),m=!p&&!f&&la(u);d=u,p||f||m?Bs(l)?d=l:Ws(l)?d=Er(l):f?(h=!1,d=wr(u,!0)):m?(h=!1,d=kr(u,!0)):d=[]:ia(u)||zs(u)?(d=l,zs(l)?d=ga(l):Qs(l)&&!Js(l)||(d=fo(u))):h=!1}h&&(a.set(u,d),o(d,u,i,s,a),a.delete(u)),Xn(e,n,d)}}(e,t,a,n,Ni,i,o);else{var l=i?i(Eo(e,a),s,a+"",e,t,o):r;l===r&&(l=s),Xn(e,a,l)}}),Ta)}function Ui(e,t){var n=e.length;if(n)return go(t+=t<0?n:0,n)?e[t]:r}function $i(e,t,n){t=t.length?Tt(t,(function(e){return Bs(e)?function(t){return _i(t,1===e.length?e[0]:e)}:e})):[nl];var i=-1;t=Tt(t,Gt(oo()));var r=Ii(e,(function(e,n,r){var o=Tt(t,(function(t){return t(e)}));return{criteria:o,index:++i,value:e}}));return function(e,t){var i=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var i=-1,r=e.criteria,o=t.criteria,s=r.length,a=n.length;++i<s;){var l=Cr(r[i],o[i]);if(l)return i>=a?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}));i--;)e[i]=e[i].value;return e}(r)}function zi(e,t,n){for(var i=-1,r=t.length,o={};++i<r;){var s=t[i],a=_i(e,s);n(a,s)&&Ji(o,gr(s,e),a)}return o}function Bi(e,t,n,i){var r=i?Ut:Nt,o=-1,s=t.length,a=e;for(e===t&&(t=Er(t)),n&&(a=Tt(e,Gt(n)));++o<s;)for(var l=0,u=t[o],c=n?n(u):u;(l=r(a,c,l,i))>-1;)a!==e&&Ye.call(a,l,1),Ye.call(e,l,1);return e}function Hi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==o){var o=r;go(r)?Ye.call(e,r,1):lr(e,r)}}return e}function qi(e,t){return e+pt(wn()*(t-e+1))}function Wi(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function Yi(e,t){return Po(Oo(e,t,nl),e+"")}function Ki(e){return Gn(Na(e))}function Gi(e,t){var n=Na(e);return Do(n,oi(t,0,n.length))}function Ji(e,t,n,i){if(!Qs(e))return e;for(var o=-1,s=(t=gr(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var u=Io(t[o]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(o!=a){var d=l[u];(c=i?i(d,u,l):r)===r&&(c=Qs(d)?d:go(t[o+1])?[]:{})}Qn(l,u,c),l=l[u]}return e}var Zi=Mn?function(e,t){return Mn.set(e,t),e}:nl,Xi=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Qa(t),writable:!0})}:nl;function Qi(e){return Do(Na(e))}function er(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var s=i(o);++r<o;)s[r]=e[r+t];return s}function tr(e,t){var n;return ci(e,(function(e,i,r){return!(n=t(e,i,r))})),!!n}function nr(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;i<r;){var o=i+r>>>1,s=e[o];null!==s&&!aa(s)&&(n?s<=t:s<t)?i=o+1:r=o}return r}return ir(e,t,nl,n)}function ir(e,t,n,i){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=n(t))!=t,l=null===t,u=aa(t),c=t===r;o<s;){var d=pt((o+s)/2),h=n(e[d]),p=h!==r,f=null===h,m=h==h,g=aa(h);if(a)var v=i||m;else v=c?m&&(i||p):l?m&&p&&(i||!f):u?m&&p&&!f&&(i||!g):!f&&!g&&(i?h<=t:h<t);v?o=d+1:s=d}return vn(s,4294967294)}function rr(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var s=e[n],a=t?t(s):s;if(!n||!Ns(a,l)){var l=a;o[r++]=0===s?0:s}}return o}function or(e){return"number"==typeof e?e:aa(e)?h:+e}function sr(e){if("string"==typeof e)return e;if(Bs(e))return Tt(e,sr)+"";if(aa(e))return Ln?Ln.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ar(e,t,n){var i=-1,r=Pt,o=e.length,s=!0,a=[],l=a;if(n)s=!1,r=At;else if(o>=200){var u=t?null:Wr(e);if(u)return ln(u);s=!1,r=Zt,l=new Wn}else l=t?[]:a;e:for(;++i<o;){var c=e[i],d=t?t(c):c;if(c=n||0!==c?c:0,s&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),a.push(c)}else r(l,d,n)||(l!==a&&l.push(d),a.push(c))}return a}function lr(e,t){return null==(e=xo(e,t=gr(t,e)))||delete e[Io(Go(t))]}function ur(e,t,n,i){return Ji(e,t,n(_i(e,t)),i)}function cr(e,t,n,i){for(var r=e.length,o=i?r:-1;(i?o--:++o<r)&&t(e[o],o,e););return n?er(e,i?0:o,i?o+1:r):er(e,i?o+1:0,i?r:o)}function dr(e,t){var n=e;return n instanceof zn&&(n=n.value()),jt(t,(function(e,t){return t.func.apply(t.thisArg,Dt([e],t.args))}),n)}function hr(e,t,n){var r=e.length;if(r<2)return r?ar(e[0]):[];for(var o=-1,s=i(r);++o<r;)for(var a=e[o],l=-1;++l<r;)l!=o&&(s[o]=ui(s[o]||a,e[l],t,n));return ar(mi(s,1),t,n)}function pr(e,t,n){for(var i=-1,o=e.length,s=t.length,a={};++i<o;){var l=i<s?t[i]:r;n(a,e[i],l)}return a}function fr(e){return Ws(e)?e:[]}function mr(e){return"function"==typeof e?e:nl}function gr(e,t){return Bs(e)?e:yo(e,t)?[e]:Vo(va(e))}var vr=Yi;function yr(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:er(e,t,n)}var br=st||function(e){return dt.clearTimeout(e)};function wr(e,t){if(t)return e.slice();var n=e.length,i=Be?Be(n):new e.constructor(n);return e.copy(i),i}function _r(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function kr(e,t){var n=t?_r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Cr(e,t){if(e!==t){var n=e!==r,i=null===e,o=e==e,s=aa(e),a=t!==r,l=null===t,u=t==t,c=aa(t);if(!l&&!c&&!s&&e>t||s&&a&&u&&!l&&!c||i&&a&&u||!n&&u||!o)return 1;if(!i&&!s&&!c&&e<t||c&&n&&o&&!i&&!s||l&&n&&o||!a&&o||!u)return-1}return 0}function Or(e,t,n,r){for(var o=-1,s=e.length,a=n.length,l=-1,u=t.length,c=gn(s-a,0),d=i(u+c),h=!r;++l<u;)d[l]=t[l];for(;++o<a;)(h||o<s)&&(d[n[o]]=e[o]);for(;c--;)d[l++]=e[o++];return d}function xr(e,t,n,r){for(var o=-1,s=e.length,a=-1,l=n.length,u=-1,c=t.length,d=gn(s-l,0),h=i(d+c),p=!r;++o<d;)h[o]=e[o];for(var f=o;++u<c;)h[f+u]=t[u];for(;++a<l;)(p||o<s)&&(h[f+n[a]]=e[o++]);return h}function Er(e,t){var n=-1,r=e.length;for(t||(t=i(r));++n<r;)t[n]=e[n];return t}function Sr(e,t,n,i){var o=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var l=t[s],u=i?i(n[l],e[l],l,n,e):r;u===r&&(u=e[l]),o?ii(n,l,u):Qn(n,l,u)}return n}function Mr(e,t){return function(n,i){var r=Bs(n)?Ot:ti,o=t?t():{};return r(n,e,oo(i,2),o)}}function Pr(e){return Yi((function(t,n){var i=-1,o=n.length,s=o>1?n[o-1]:r,a=o>2?n[2]:r;for(s=e.length>3&&"function"==typeof s?(o--,s):r,a&&vo(n[0],n[1],a)&&(s=o<3?r:s,o=1),t=Oe(t);++i<o;){var l=n[i];l&&e(t,l,i,s)}return t}))}function Ar(e,t){return function(n,i){if(null==n)return n;if(!qs(n))return e(n,i);for(var r=n.length,o=t?r:-1,s=Oe(n);(t?o--:++o<r)&&!1!==i(s[o],o,s););return n}}function Tr(e){return function(t,n,i){for(var r=-1,o=Oe(t),s=i(t),a=s.length;a--;){var l=s[e?a:++r];if(!1===n(o[l],l,o))break}return t}}function Dr(e){return function(t){var n=rn(t=va(t))?dn(t):r,i=n?n[0]:t.charAt(0),o=n?yr(n,1).join(""):t.slice(1);return i[e]()+o}}function jr(e){return function(t){return jt(Ja(za(t).replace(Je,"")),e,"")}}function Rr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Nn(e.prototype),i=e.apply(n,t);return Qs(i)?i:n}}function Vr(e){return function(t,n,i){var o=Oe(t);if(!qs(t)){var s=oo(n,3);t=Aa(t),n=function(e){return s(o[e],e,o)}}var a=e(t,n,i);return a>-1?o[s?t[a]:a]:r}}function Ir(e){return Qr((function(t){var n=t.length,i=n,s=$n.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new Se(o);if(s&&!l&&"wrapper"==io(a))var l=new $n([],!0)}for(i=l?i:n;++i<n;){var u=io(a=t[i]),c="wrapper"==u?no(a):r;l=c&&bo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[io(c[0])].apply(l,c[3]):1==a.length&&bo(a)?l[u]():l.thru(a)}return function(){var e=arguments,i=e[0];if(l&&1==e.length&&Bs(i))return l.plant(i).value();for(var r=0,o=n?t[r].apply(this,e):i;++r<n;)o=t[r].call(this,o);return o}}))}function Lr(e,t,n,o,s,a,l,c,d,h){var p=t&u,f=1&t,m=2&t,g=24&t,v=512&t,y=m?r:Rr(e);return function u(){for(var b=arguments.length,w=i(b),_=b;_--;)w[_]=arguments[_];if(g)var k=ro(u),C=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(w,k);if(o&&(w=Or(w,o,s,g)),a&&(w=xr(w,a,l,g)),b-=C,g&&b<h){var O=an(w,k);return Hr(e,t,Lr,u.placeholder,n,w,O,c,d,h-b)}var x=f?n:this,E=m?x[e]:e;return b=w.length,c?w=function(e,t){for(var n=e.length,i=vn(t.length,n),o=Er(e);i--;){var s=t[i];e[i]=go(s,n)?o[s]:r}return e}(w,c):v&&b>1&&w.reverse(),p&&d<b&&(w.length=d),this&&this!==dt&&this instanceof u&&(E=y||Rr(E)),E.apply(x,w)}}function Fr(e,t){return function(n,i){return function(e,t,n,i){return yi(e,(function(e,r,o){t(i,n(e),r,o)})),i}(n,e,t(i),{})}}function Nr(e,t){return function(n,i){var o;if(n===r&&i===r)return t;if(n!==r&&(o=n),i!==r){if(o===r)return i;"string"==typeof n||"string"==typeof i?(n=sr(n),i=sr(i)):(n=or(n),i=or(i)),o=e(n,i)}return o}}function Ur(e){return Qr((function(t){return t=Tt(t,Gt(oo())),Yi((function(n){var i=this;return e(t,(function(e){return Ct(e,i,n)}))}))}))}function $r(e,t){var n=(t=t===r?" ":sr(t)).length;if(n<2)return n?Wi(t,e):t;var i=Wi(t,ht(e/cn(t)));return rn(t)?yr(dn(i),0,e).join(""):i.slice(0,e)}function zr(e){return function(t,n,o){return o&&"number"!=typeof o&&vo(t,n,o)&&(n=o=r),t=ha(t),n===r?(n=t,t=0):n=ha(n),function(e,t,n,r){for(var o=-1,s=gn(ht((t-e)/(n||1)),0),a=i(s);s--;)a[r?s:++o]=e,e+=n;return a}(t,n,o=o===r?t<n?1:-1:ha(o),e)}}function Br(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ma(t),n=ma(n)),e(t,n)}}function Hr(e,t,n,i,o,s,a,u,c,d){var h=8&t;t|=h?l:64,4&(t&=~(h?64:l))||(t&=-4);var p=[e,t,o,h?s:r,h?a:r,h?r:s,h?r:a,u,c,d],f=n.apply(r,p);return bo(e)&&So(f,p),f.placeholder=i,Ao(f,e,t)}function qr(e){var t=Ce[e];return function(e,n){if(e=ma(e),(n=null==n?0:vn(pa(n),292))&&It(e)){var i=(va(e)+"e").split("e");return+((i=(va(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Wr=xn&&1/ln(new xn([,-0]))[1]==c?function(e){return new xn(e)}:al;function Yr(e){return function(t){var n=ho(t);return n==k?on(t):n==S?un(t):function(e,t){return Tt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Kr(e,t,n,s,c,d,h,p){var f=2&t;if(!f&&"function"!=typeof e)throw new Se(o);var m=s?s.length:0;if(m||(t&=-97,s=c=r),h=h===r?h:gn(pa(h),0),p=p===r?p:pa(p),m-=c?c.length:0,64&t){var g=s,v=c;s=c=r}var y=f?r:no(e),b=[e,t,n,s,c,g,v,d,h,p];if(y&&function(e,t){var n=e[1],i=t[1],r=n|i,o=r<131,s=i==u&&8==n||i==u&&256==n&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&i&&(e[2]=t[2],r|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Or(c,l,t[4]):l,e[4]=c?an(e[3],a):t[4]}(l=t[5])&&(c=e[5],e[5]=c?xr(c,l,t[6]):l,e[6]=c?an(e[5],a):t[6]),(l=t[7])&&(e[7]=l),i&u&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=r}(b,y),e=b[0],t=b[1],n=b[2],s=b[3],c=b[4],!(p=b[9]=b[9]===r?f?0:e.length:gn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var o=Rr(e);return function s(){for(var a=arguments.length,l=i(a),u=a,c=ro(s);u--;)l[u]=arguments[u];var d=a<3&&l[0]!==c&&l[a-1]!==c?[]:an(l,c);return(a-=d.length)<n?Hr(e,t,Lr,s.placeholder,r,l,d,r,r,n-a):Ct(this&&this!==dt&&this instanceof s?o:e,this,l)}}(e,t,p):t!=l&&33!=t||c.length?Lr.apply(r,b):function(e,t,n,r){var o=1&t,s=Rr(e);return function t(){for(var a=-1,l=arguments.length,u=-1,c=r.length,d=i(c+l),h=this&&this!==dt&&this instanceof t?s:e;++u<c;)d[u]=r[u];for(;l--;)d[u++]=arguments[++a];return Ct(h,o?n:this,d)}}(e,t,n,s);else var w=function(e,t,n){var i=1&t,r=Rr(e);return function t(){return(this&&this!==dt&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,n);return Ao((y?Zi:So)(w,b),e,t)}function Gr(e,t,n,i){return e===r||Ns(e,Ae[n])&&!je.call(i,n)?t:e}function Jr(e,t,n,i,o,s){return Qs(e)&&Qs(t)&&(s.set(t,e),Ni(e,t,r,Jr,s),s.delete(t)),e}function Zr(e){return ia(e)?r:e}function Xr(e,t,n,i,o,s){var a=1&n,l=e.length,u=t.length;if(l!=u&&!(a&&u>l))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var h=-1,p=!0,f=2&n?new Wn:r;for(s.set(e,t),s.set(t,e);++h<l;){var m=e[h],g=t[h];if(i)var v=a?i(g,m,h,t,e,s):i(m,g,h,e,t,s);if(v!==r){if(v)continue;p=!1;break}if(f){if(!Vt(t,(function(e,t){if(!Zt(f,t)&&(m===e||o(m,e,n,i,s)))return f.push(t)}))){p=!1;break}}else if(m!==g&&!o(m,g,n,i,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function Qr(e){return Po(Oo(e,r,Ho),e+"")}function eo(e){return ki(e,Aa,uo)}function to(e){return ki(e,Ta,co)}var no=Mn?function(e){return Mn.get(e)}:al;function io(e){for(var t=e.name+"",n=Pn[t],i=je.call(Pn,t)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==e)return r.name}return t}function ro(e){return(je.call(Fn,"placeholder")?Fn:e).placeholder}function oo(){var e=Fn.iteratee||il;return e=e===il?ji:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function ao(e){for(var t=Aa(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,ko(r)]}return t}function lo(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return Di(n)?n:r}var uo=mt?function(e){return null==e?[]:(e=Oe(e),Mt(mt(e),(function(t){return We.call(e,t)})))}:fl,co=mt?function(e){for(var t=[];e;)Dt(t,uo(e)),e=He(e);return t}:fl,ho=Ci;function po(e,t,n){for(var i=-1,r=(t=gr(t,e)).length,o=!1;++i<r;){var s=Io(t[i]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++i!=r?o:!!(r=null==e?0:e.length)&&Xs(r)&&go(s,r)&&(Bs(e)||zs(e))}function fo(e){return"function"!=typeof e.constructor||_o(e)?{}:Nn(He(e))}function mo(e){return Bs(e)||zs(e)||!!(Ke&&e&&e[Ke])}function go(e,t){var n=typeof e;return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function vo(e,t,n){if(!Qs(n))return!1;var i=typeof t;return!!("number"==i?qs(n)&&go(t,n.length):"string"==i&&t in n)&&Ns(n[t],e)}function yo(e,t){if(Bs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!aa(e))||Q.test(e)||!X.test(e)||null!=t&&e in Oe(t)}function bo(e){var t=io(e),n=Fn[t];if("function"!=typeof n||!(t in zn.prototype))return!1;if(e===n)return!0;var i=no(n);return!!i&&e===i[0]}(kn&&ho(new kn(new ArrayBuffer(1)))!=D||Cn&&ho(new Cn)!=k||On&&ho(On.resolve())!=x||xn&&ho(new xn)!=S||En&&ho(new En)!=A)&&(ho=function(e){var t=Ci(e),n=t==O?e.constructor:r,i=n?Lo(n):"";if(i)switch(i){case An:return D;case Tn:return k;case Dn:return x;case jn:return S;case Rn:return A}return t});var wo=Te?Js:ml;function _o(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ae)}function ko(e){return e==e&&!Qs(e)}function Co(e,t){return function(n){return null!=n&&n[e]===t&&(t!==r||e in Oe(n))}}function Oo(e,t,n){return t=gn(t===r?e.length-1:t,0),function(){for(var r=arguments,o=-1,s=gn(r.length-t,0),a=i(s);++o<s;)a[o]=r[t+o];o=-1;for(var l=i(t+1);++o<t;)l[o]=r[o];return l[t]=n(a),Ct(e,this,l)}}function xo(e,t){return t.length<2?e:_i(e,er(t,0,-1))}function Eo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var So=To(Zi),Mo=ct||function(e,t){return dt.setTimeout(e,t)},Po=To(Xi);function Ao(e,t,n){var i=t+"";return Po(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return xt(f,(function(n){var i="_."+n[0];t&n[1]&&!Pt(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(i),n)))}function To(e){var t=0,n=0;return function(){var i=yn(),o=16-(i-n);if(n=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Do(e,t){var n=-1,i=e.length,o=i-1;for(t=t===r?i:t;++n<t;){var s=qi(n,o),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var jo,Ro,Vo=(jo=js((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,i,r){t.push(i?r.replace(ce,"$1"):n||e)})),t}),(function(e){return 500===Ro.size&&Ro.clear(),e})),Ro=jo.cache,jo);function Io(e){if("string"==typeof e||aa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Lo(e){if(null!=e){try{return De.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fo(e){if(e instanceof zn)return e.clone();var t=new $n(e.__wrapped__,e.__chain__);return t.__actions__=Er(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var No=Yi((function(e,t){return Ws(e)?ui(e,mi(t,1,Ws,!0)):[]})),Uo=Yi((function(e,t){var n=Go(t);return Ws(n)&&(n=r),Ws(e)?ui(e,mi(t,1,Ws,!0),oo(n,2)):[]})),$o=Yi((function(e,t){var n=Go(t);return Ws(n)&&(n=r),Ws(e)?ui(e,mi(t,1,Ws,!0),r,n):[]}));function zo(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:pa(n);return r<0&&(r=gn(i+r,0)),Ft(e,oo(t,3),r)}function Bo(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return n!==r&&(o=pa(n),o=n<0?gn(i+o,0):vn(o,i-1)),Ft(e,oo(t,3),o,!0)}function Ho(e){return null!=e&&e.length?mi(e,1):[]}function qo(e){return e&&e.length?e[0]:r}var Wo=Yi((function(e){var t=Tt(e,fr);return t.length&&t[0]===e[0]?Si(t):[]})),Yo=Yi((function(e){var t=Go(e),n=Tt(e,fr);return t===Go(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Si(n,oo(t,2)):[]})),Ko=Yi((function(e){var t=Go(e),n=Tt(e,fr);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?Si(n,r,t):[]}));function Go(e){var t=null==e?0:e.length;return t?e[t-1]:r}var Jo=Yi(Zo);function Zo(e,t){return e&&e.length&&t&&t.length?Bi(e,t):e}var Xo=Qr((function(e,t){var n=null==e?0:e.length,i=ri(e,t);return Hi(e,Tt(t,(function(e){return go(e,n)?+e:e})).sort(Cr)),i}));function Qo(e){return null==e?e:_n.call(e)}var es=Yi((function(e){return ar(mi(e,1,Ws,!0))})),ts=Yi((function(e){var t=Go(e);return Ws(t)&&(t=r),ar(mi(e,1,Ws,!0),oo(t,2))})),ns=Yi((function(e){var t=Go(e);return t="function"==typeof t?t:r,ar(mi(e,1,Ws,!0),r,t)}));function is(e){if(!e||!e.length)return[];var t=0;return e=Mt(e,(function(e){if(Ws(e))return t=gn(e.length,t),!0})),Yt(t,(function(t){return Tt(e,Bt(t))}))}function rs(e,t){if(!e||!e.length)return[];var n=is(e);return null==t?n:Tt(n,(function(e){return Ct(t,r,e)}))}var os=Yi((function(e,t){return Ws(e)?ui(e,t):[]})),ss=Yi((function(e){return hr(Mt(e,Ws))})),as=Yi((function(e){var t=Go(e);return Ws(t)&&(t=r),hr(Mt(e,Ws),oo(t,2))})),ls=Yi((function(e){var t=Go(e);return t="function"==typeof t?t:r,hr(Mt(e,Ws),r,t)})),us=Yi(is),cs=Yi((function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,rs(e,n)}));function ds(e){var t=Fn(e);return t.__chain__=!0,t}function hs(e,t){return t(e)}var ps=Qr((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return ri(t,e)};return!(t>1||this.__actions__.length)&&i instanceof zn&&go(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:hs,args:[o],thisArg:r}),new $n(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(o)})),fs=Mr((function(e,t,n){je.call(e,n)?++e[n]:ii(e,n,1)})),ms=Vr(zo),gs=Vr(Bo);function vs(e,t){return(Bs(e)?xt:ci)(e,oo(t,3))}function ys(e,t){return(Bs(e)?Et:di)(e,oo(t,3))}var bs=Mr((function(e,t,n){je.call(e,n)?e[n].push(t):ii(e,n,[t])})),ws=Yi((function(e,t,n){var r=-1,o="function"==typeof t,s=qs(e)?i(e.length):[];return ci(e,(function(e){s[++r]=o?Ct(t,e,n):Mi(e,t,n)})),s})),_s=Mr((function(e,t,n){ii(e,n,t)}));function ks(e,t){return(Bs(e)?Tt:Ii)(e,oo(t,3))}var Cs=Mr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Os=Yi((function(e,t){if(null==e)return[];var n=t.length;return n>1&&vo(e,t[0],t[1])?t=[]:n>2&&vo(t[0],t[1],t[2])&&(t=[t[0]]),$i(e,mi(t,1),[])})),xs=ut||function(){return dt.Date.now()};function Es(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Kr(e,u,r,r,r,r,t)}function Ss(e,t){var n;if("function"!=typeof t)throw new Se(o);return e=pa(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Ms=Yi((function(e,t,n){var i=1;if(n.length){var r=an(n,ro(Ms));i|=l}return Kr(e,i,t,n,r)})),Ps=Yi((function(e,t,n){var i=3;if(n.length){var r=an(n,ro(Ps));i|=l}return Kr(t,i,e,n,r)}));function As(e,t,n){var i,s,a,l,u,c,d=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new Se(o);function m(t){var n=i,o=s;return i=s=r,d=t,l=e.apply(o,n)}function g(e){var n=e-c;return c===r||n>=t||n<0||p&&e-d>=a}function v(){var e=xs();if(g(e))return y(e);u=Mo(v,function(e){var n=t-(e-c);return p?vn(n,a-(e-d)):n}(e))}function y(e){return u=r,f&&i?m(e):(i=s=r,l)}function b(){var e=xs(),n=g(e);if(i=arguments,s=this,c=e,n){if(u===r)return function(e){return d=e,u=Mo(v,t),h?m(e):l}(c);if(p)return br(u),u=Mo(v,t),m(c)}return u===r&&(u=Mo(v,t)),l}return t=ma(t)||0,Qs(n)&&(h=!!n.leading,a=(p="maxWait"in n)?gn(ma(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),b.cancel=function(){u!==r&&br(u),d=0,i=c=s=u=r},b.flush=function(){return u===r?l:y(xs())},b}var Ts=Yi((function(e,t){return li(e,1,t)})),Ds=Yi((function(e,t,n){return li(e,ma(t)||0,n)}));function js(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Se(o);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=e.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(js.Cache||qn),n}function Rs(e){if("function"!=typeof e)throw new Se(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}js.Cache=qn;var Vs=vr((function(e,t){var n=(t=1==t.length&&Bs(t[0])?Tt(t[0],Gt(oo())):Tt(mi(t,1),Gt(oo()))).length;return Yi((function(i){for(var r=-1,o=vn(i.length,n);++r<o;)i[r]=t[r].call(this,i[r]);return Ct(e,this,i)}))})),Is=Yi((function(e,t){var n=an(t,ro(Is));return Kr(e,l,r,t,n)})),Ls=Yi((function(e,t){var n=an(t,ro(Ls));return Kr(e,64,r,t,n)})),Fs=Qr((function(e,t){return Kr(e,256,r,r,r,t)}));function Ns(e,t){return e===t||e!=e&&t!=t}var Us=Br(Oi),$s=Br((function(e,t){return e>=t})),zs=Pi(function(){return arguments}())?Pi:function(e){return ea(e)&&je.call(e,"callee")&&!We.call(e,"callee")},Bs=i.isArray,Hs=vt?Gt(vt):function(e){return ea(e)&&Ci(e)==T};function qs(e){return null!=e&&Xs(e.length)&&!Js(e)}function Ws(e){return ea(e)&&qs(e)}var Ys=gt||ml,Ks=yt?Gt(yt):function(e){return ea(e)&&Ci(e)==y};function Gs(e){if(!ea(e))return!1;var t=Ci(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ia(e)}function Js(e){if(!Qs(e))return!1;var t=Ci(e);return t==w||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Zs(e){return"number"==typeof e&&e==pa(e)}function Xs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Qs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ea(e){return null!=e&&"object"==typeof e}var ta=bt?Gt(bt):function(e){return ea(e)&&ho(e)==k};function na(e){return"number"==typeof e||ea(e)&&Ci(e)==C}function ia(e){if(!ea(e)||Ci(e)!=O)return!1;var t=He(e);if(null===t)return!0;var n=je.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Le}var ra=wt?Gt(wt):function(e){return ea(e)&&Ci(e)==E},oa=_t?Gt(_t):function(e){return ea(e)&&ho(e)==S};function sa(e){return"string"==typeof e||!Bs(e)&&ea(e)&&Ci(e)==M}function aa(e){return"symbol"==typeof e||ea(e)&&Ci(e)==P}var la=kt?Gt(kt):function(e){return ea(e)&&Xs(e.length)&&!!rt[Ci(e)]},ua=Br(Vi),ca=Br((function(e,t){return e<=t}));function da(e){if(!e)return[];if(qs(e))return sa(e)?dn(e):Er(e);if(Ge&&e[Ge])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ge]());var t=ho(e);return(t==k?on:t==S?ln:Na)(e)}function ha(e){return e?(e=ma(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function pa(e){var t=ha(e),n=t%1;return t==t?n?t-n:t:0}function fa(e){return e?oi(pa(e),0,p):0}function ma(e){if("number"==typeof e)return e;if(aa(e))return h;if(Qs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=fe.test(e);return n||ge.test(e)?lt(e.slice(2),n?2:8):pe.test(e)?h:+e}function ga(e){return Sr(e,Ta(e))}function va(e){return null==e?"":sr(e)}var ya=Pr((function(e,t){if(_o(t)||qs(t))Sr(t,Aa(t),e);else for(var n in t)je.call(t,n)&&Qn(e,n,t[n])})),ba=Pr((function(e,t){Sr(t,Ta(t),e)})),wa=Pr((function(e,t,n,i){Sr(t,Ta(t),e,i)})),_a=Pr((function(e,t,n,i){Sr(t,Aa(t),e,i)})),ka=Qr(ri),Ca=Yi((function(e,t){e=Oe(e);var n=-1,i=t.length,o=i>2?t[2]:r;for(o&&vo(t[0],t[1],o)&&(i=1);++n<i;)for(var s=t[n],a=Ta(s),l=-1,u=a.length;++l<u;){var c=a[l],d=e[c];(d===r||Ns(d,Ae[c])&&!je.call(e,c))&&(e[c]=s[c])}return e})),Oa=Yi((function(e){return e.push(r,Jr),Ct(ja,r,e)}));function xa(e,t,n){var i=null==e?r:_i(e,t);return i===r?n:i}function Ea(e,t){return null!=e&&po(e,t,Ei)}var Sa=Fr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ie.call(t)),e[t]=n}),Qa(nl)),Ma=Fr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ie.call(t)),je.call(e,t)?e[t].push(n):e[t]=[n]}),oo),Pa=Yi(Mi);function Aa(e){return qs(e)?Kn(e):Ri(e)}function Ta(e){return qs(e)?Kn(e,!0):function(e){if(!Qs(e))return function(e){var t=[];if(null!=e)for(var n in Oe(e))t.push(n);return t}(e);var t=_o(e),n=[];for(var i in e)("constructor"!=i||!t&&je.call(e,i))&&n.push(i);return n}(e)}var Da=Pr((function(e,t,n){Ni(e,t,n)})),ja=Pr((function(e,t,n,i){Ni(e,t,n,i)})),Ra=Qr((function(e,t){var n={};if(null==e)return n;var i=!1;t=Tt(t,(function(t){return t=gr(t,e),i||(i=t.length>1),t})),Sr(e,to(e),n),i&&(n=si(n,7,Zr));for(var r=t.length;r--;)lr(n,t[r]);return n})),Va=Qr((function(e,t){return null==e?{}:function(e,t){return zi(e,t,(function(t,n){return Ea(e,n)}))}(e,t)}));function Ia(e,t){if(null==e)return{};var n=Tt(to(e),(function(e){return[e]}));return t=oo(t),zi(e,n,(function(e,n){return t(e,n[0])}))}var La=Yr(Aa),Fa=Yr(Ta);function Na(e){return null==e?[]:Jt(e,Aa(e))}var Ua=jr((function(e,t,n){return t=t.toLowerCase(),e+(n?$a(t):t)}));function $a(e){return Ga(va(e).toLowerCase())}function za(e){return(e=va(e))&&e.replace(ye,en).replace(Ze,"")}var Ba=jr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ha=jr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),qa=Dr("toLowerCase"),Wa=jr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ya=jr((function(e,t,n){return e+(n?" ":"")+Ga(t)})),Ka=jr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ga=Dr("toUpperCase");function Ja(e,t,n){return e=va(e),(t=n?r:t)===r?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Za=Yi((function(e,t){try{return Ct(e,r,t)}catch(e){return Gs(e)?e:new _e(e)}})),Xa=Qr((function(e,t){return xt(t,(function(t){t=Io(t),ii(e,t,Ms(e[t],e))})),e}));function Qa(e){return function(){return e}}var el=Ir(),tl=Ir(!0);function nl(e){return e}function il(e){return ji("function"==typeof e?e:si(e,1))}var rl=Yi((function(e,t){return function(n){return Mi(n,e,t)}})),ol=Yi((function(e,t){return function(n){return Mi(e,n,t)}}));function sl(e,t,n){var i=Aa(t),r=wi(t,i);null!=n||Qs(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=wi(t,Aa(t)));var o=!(Qs(n)&&"chain"in n&&!n.chain),s=Js(e);return xt(r,(function(n){var i=t[n];e[n]=i,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Er(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Dt([this.value()],arguments))})})),e}function al(){}var ll=Ur(Tt),ul=Ur(St),cl=Ur(Vt);function dl(e){return yo(e)?Bt(Io(e)):function(e){return function(t){return _i(t,e)}}(e)}var hl=zr(),pl=zr(!0);function fl(){return[]}function ml(){return!1}var gl,vl=Nr((function(e,t){return e+t}),0),yl=qr("ceil"),bl=Nr((function(e,t){return e/t}),1),wl=qr("floor"),_l=Nr((function(e,t){return e*t}),1),kl=qr("round"),Cl=Nr((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Se(o);return e=pa(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=Es,Fn.assign=ya,Fn.assignIn=ba,Fn.assignInWith=wa,Fn.assignWith=_a,Fn.at=ka,Fn.before=Ss,Fn.bind=Ms,Fn.bindAll=Xa,Fn.bindKey=Ps,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Bs(e)?e:[e]},Fn.chain=ds,Fn.chunk=function(e,t,n){t=(n?vo(e,t,n):t===r)?1:gn(pa(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,a=0,l=i(ht(o/t));s<o;)l[a++]=er(e,s,s+=t);return l},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var o=e[t];o&&(r[i++]=o)}return r},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=i(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Dt(Bs(n)?Er(n):[n],mi(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=oo();return e=t?Tt(e,(function(e){if("function"!=typeof e[1])throw new Se(o);return[n(e[0]),e[1]]})):[],Yi((function(n){for(var i=-1;++i<t;){var r=e[i];if(Ct(r[0],this,n))return Ct(r[1],this,n)}}))},Fn.conforms=function(e){return function(e){var t=Aa(e);return function(n){return ai(n,e,t)}}(si(e,1))},Fn.constant=Qa,Fn.countBy=fs,Fn.create=function(e,t){var n=Nn(e);return null==t?n:ni(n,t)},Fn.curry=function e(t,n,i){var o=Kr(t,8,r,r,r,r,r,n=i?r:n);return o.placeholder=e.placeholder,o},Fn.curryRight=function e(t,n,i){var o=Kr(t,16,r,r,r,r,r,n=i?r:n);return o.placeholder=e.placeholder,o},Fn.debounce=As,Fn.defaults=Ca,Fn.defaultsDeep=Oa,Fn.defer=Ts,Fn.delay=Ds,Fn.difference=No,Fn.differenceBy=Uo,Fn.differenceWith=$o,Fn.drop=function(e,t,n){var i=null==e?0:e.length;return i?er(e,(t=n||t===r?1:pa(t))<0?0:t,i):[]},Fn.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?er(e,0,(t=i-(t=n||t===r?1:pa(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?cr(e,oo(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?cr(e,oo(t,3),!0):[]},Fn.fill=function(e,t,n,i){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&vo(e,t,n)&&(n=0,i=o),function(e,t,n,i){var o=e.length;for((n=pa(n))<0&&(n=-n>o?0:o+n),(i=i===r||i>o?o:pa(i))<0&&(i+=o),i=n>i?0:fa(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},Fn.filter=function(e,t){return(Bs(e)?Mt:fi)(e,oo(t,3))},Fn.flatMap=function(e,t){return mi(ks(e,t),1)},Fn.flatMapDeep=function(e,t){return mi(ks(e,t),c)},Fn.flatMapDepth=function(e,t,n){return n=n===r?1:pa(n),mi(ks(e,t),n)},Fn.flatten=Ho,Fn.flattenDeep=function(e){return null!=e&&e.length?mi(e,c):[]},Fn.flattenDepth=function(e,t){return null!=e&&e.length?mi(e,t=t===r?1:pa(t)):[]},Fn.flip=function(e){return Kr(e,512)},Fn.flow=el,Fn.flowRight=tl,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},Fn.functions=function(e){return null==e?[]:wi(e,Aa(e))},Fn.functionsIn=function(e){return null==e?[]:wi(e,Ta(e))},Fn.groupBy=bs,Fn.initial=function(e){return null!=e&&e.length?er(e,0,-1):[]},Fn.intersection=Wo,Fn.intersectionBy=Yo,Fn.intersectionWith=Ko,Fn.invert=Sa,Fn.invertBy=Ma,Fn.invokeMap=ws,Fn.iteratee=il,Fn.keyBy=_s,Fn.keys=Aa,Fn.keysIn=Ta,Fn.map=ks,Fn.mapKeys=function(e,t){var n={};return t=oo(t,3),yi(e,(function(e,i,r){ii(n,t(e,i,r),e)})),n},Fn.mapValues=function(e,t){var n={};return t=oo(t,3),yi(e,(function(e,i,r){ii(n,i,t(e,i,r))})),n},Fn.matches=function(e){return Li(si(e,1))},Fn.matchesProperty=function(e,t){return Fi(e,si(t,1))},Fn.memoize=js,Fn.merge=Da,Fn.mergeWith=ja,Fn.method=rl,Fn.methodOf=ol,Fn.mixin=sl,Fn.negate=Rs,Fn.nthArg=function(e){return e=pa(e),Yi((function(t){return Ui(t,e)}))},Fn.omit=Ra,Fn.omitBy=function(e,t){return Ia(e,Rs(oo(t)))},Fn.once=function(e){return Ss(2,e)},Fn.orderBy=function(e,t,n,i){return null==e?[]:(Bs(t)||(t=null==t?[]:[t]),Bs(n=i?r:n)||(n=null==n?[]:[n]),$i(e,t,n))},Fn.over=ll,Fn.overArgs=Vs,Fn.overEvery=ul,Fn.overSome=cl,Fn.partial=Is,Fn.partialRight=Ls,Fn.partition=Cs,Fn.pick=Va,Fn.pickBy=Ia,Fn.property=dl,Fn.propertyOf=function(e){return function(t){return null==e?r:_i(e,t)}},Fn.pull=Jo,Fn.pullAll=Zo,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Bi(e,t,oo(n,2)):e},Fn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Bi(e,t,r,n):e},Fn.pullAt=Xo,Fn.range=hl,Fn.rangeRight=pl,Fn.rearg=Fs,Fn.reject=function(e,t){return(Bs(e)?Mt:fi)(e,Rs(oo(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],o=e.length;for(t=oo(t,3);++i<o;){var s=e[i];t(s,i,e)&&(n.push(s),r.push(i))}return Hi(e,r),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new Se(o);return Yi(e,t=t===r?t:pa(t))},Fn.reverse=Qo,Fn.sampleSize=function(e,t,n){return t=(n?vo(e,t,n):t===r)?1:pa(t),(Bs(e)?Jn:Gi)(e,t)},Fn.set=function(e,t,n){return null==e?e:Ji(e,t,n)},Fn.setWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:Ji(e,t,n,i)},Fn.shuffle=function(e){return(Bs(e)?Zn:Qi)(e)},Fn.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&vo(e,t,n)?(t=0,n=i):(t=null==t?0:pa(t),n=n===r?i:pa(n)),er(e,t,n)):[]},Fn.sortBy=Os,Fn.sortedUniq=function(e){return e&&e.length?rr(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?rr(e,oo(t,2)):[]},Fn.split=function(e,t,n){return n&&"number"!=typeof n&&vo(e,t,n)&&(t=n=r),(n=n===r?p:n>>>0)?(e=va(e))&&("string"==typeof t||null!=t&&!ra(t))&&!(t=sr(t))&&rn(e)?yr(dn(e),0,n):e.split(t,n):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new Se(o);return t=null==t?0:gn(pa(t),0),Yi((function(n){var i=n[t],r=yr(n,0,t);return i&&Dt(r,i),Ct(e,this,r)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?er(e,1,t):[]},Fn.take=function(e,t,n){return e&&e.length?er(e,0,(t=n||t===r?1:pa(t))<0?0:t):[]},Fn.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?er(e,(t=i-(t=n||t===r?1:pa(t)))<0?0:t,i):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?cr(e,oo(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?cr(e,oo(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new Se(o);return Qs(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),As(e,t,{leading:i,maxWait:t,trailing:r})},Fn.thru=hs,Fn.toArray=da,Fn.toPairs=La,Fn.toPairsIn=Fa,Fn.toPath=function(e){return Bs(e)?Tt(e,Io):aa(e)?[e]:Er(Vo(va(e)))},Fn.toPlainObject=ga,Fn.transform=function(e,t,n){var i=Bs(e),r=i||Ys(e)||la(e);if(t=oo(t,4),null==n){var o=e&&e.constructor;n=r?i?new o:[]:Qs(e)&&Js(o)?Nn(He(e)):{}}return(r?xt:yi)(e,(function(e,i,r){return t(n,e,i,r)})),n},Fn.unary=function(e){return Es(e,1)},Fn.union=es,Fn.unionBy=ts,Fn.unionWith=ns,Fn.uniq=function(e){return e&&e.length?ar(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?ar(e,oo(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?ar(e,r,t):[]},Fn.unset=function(e,t){return null==e||lr(e,t)},Fn.unzip=is,Fn.unzipWith=rs,Fn.update=function(e,t,n){return null==e?e:ur(e,t,mr(n))},Fn.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:ur(e,t,mr(n),i)},Fn.values=Na,Fn.valuesIn=function(e){return null==e?[]:Jt(e,Ta(e))},Fn.without=os,Fn.words=Ja,Fn.wrap=function(e,t){return Is(mr(t),e)},Fn.xor=ss,Fn.xorBy=as,Fn.xorWith=ls,Fn.zip=us,Fn.zipObject=function(e,t){return pr(e||[],t||[],Qn)},Fn.zipObjectDeep=function(e,t){return pr(e||[],t||[],Ji)},Fn.zipWith=cs,Fn.entries=La,Fn.entriesIn=Fa,Fn.extend=ba,Fn.extendWith=wa,sl(Fn,Fn),Fn.add=vl,Fn.attempt=Za,Fn.camelCase=Ua,Fn.capitalize=$a,Fn.ceil=yl,Fn.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=ma(n))==n?n:0),t!==r&&(t=(t=ma(t))==t?t:0),oi(ma(e),t,n)},Fn.clone=function(e){return si(e,4)},Fn.cloneDeep=function(e){return si(e,5)},Fn.cloneDeepWith=function(e,t){return si(e,5,t="function"==typeof t?t:r)},Fn.cloneWith=function(e,t){return si(e,4,t="function"==typeof t?t:r)},Fn.conformsTo=function(e,t){return null==t||ai(e,t,Aa(t))},Fn.deburr=za,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=bl,Fn.endsWith=function(e,t,n){e=va(e),t=sr(t);var i=e.length,o=n=n===r?i:oi(pa(n),0,i);return(n-=t.length)>=0&&e.slice(n,o)==t},Fn.eq=Ns,Fn.escape=function(e){return(e=va(e))&&K.test(e)?e.replace(W,tn):e},Fn.escapeRegExp=function(e){return(e=va(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Fn.every=function(e,t,n){var i=Bs(e)?St:hi;return n&&vo(e,t,n)&&(t=r),i(e,oo(t,3))},Fn.find=ms,Fn.findIndex=zo,Fn.findKey=function(e,t){return Lt(e,oo(t,3),yi)},Fn.findLast=gs,Fn.findLastIndex=Bo,Fn.findLastKey=function(e,t){return Lt(e,oo(t,3),bi)},Fn.floor=wl,Fn.forEach=vs,Fn.forEachRight=ys,Fn.forIn=function(e,t){return null==e?e:gi(e,oo(t,3),Ta)},Fn.forInRight=function(e,t){return null==e?e:vi(e,oo(t,3),Ta)},Fn.forOwn=function(e,t){return e&&yi(e,oo(t,3))},Fn.forOwnRight=function(e,t){return e&&bi(e,oo(t,3))},Fn.get=xa,Fn.gt=Us,Fn.gte=$s,Fn.has=function(e,t){return null!=e&&po(e,t,xi)},Fn.hasIn=Ea,Fn.head=qo,Fn.identity=nl,Fn.includes=function(e,t,n,i){e=qs(e)?e:Na(e),n=n&&!i?pa(n):0;var r=e.length;return n<0&&(n=gn(r+n,0)),sa(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&Nt(e,t,n)>-1},Fn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:pa(n);return r<0&&(r=gn(i+r,0)),Nt(e,t,r)},Fn.inRange=function(e,t,n){return t=ha(t),n===r?(n=t,t=0):n=ha(n),function(e,t,n){return e>=vn(t,n)&&e<gn(t,n)}(e=ma(e),t,n)},Fn.invoke=Pa,Fn.isArguments=zs,Fn.isArray=Bs,Fn.isArrayBuffer=Hs,Fn.isArrayLike=qs,Fn.isArrayLikeObject=Ws,Fn.isBoolean=function(e){return!0===e||!1===e||ea(e)&&Ci(e)==v},Fn.isBuffer=Ys,Fn.isDate=Ks,Fn.isElement=function(e){return ea(e)&&1===e.nodeType&&!ia(e)},Fn.isEmpty=function(e){if(null==e)return!0;if(qs(e)&&(Bs(e)||"string"==typeof e||"function"==typeof e.splice||Ys(e)||la(e)||zs(e)))return!e.length;var t=ho(e);if(t==k||t==S)return!e.size;if(_o(e))return!Ri(e).length;for(var n in e)if(je.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Ai(e,t)},Fn.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:r)?n(e,t):r;return i===r?Ai(e,t,r,n):!!i},Fn.isError=Gs,Fn.isFinite=function(e){return"number"==typeof e&&It(e)},Fn.isFunction=Js,Fn.isInteger=Zs,Fn.isLength=Xs,Fn.isMap=ta,Fn.isMatch=function(e,t){return e===t||Ti(e,t,ao(t))},Fn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,Ti(e,t,ao(t),n)},Fn.isNaN=function(e){return na(e)&&e!=+e},Fn.isNative=function(e){if(wo(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Di(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=na,Fn.isObject=Qs,Fn.isObjectLike=ea,Fn.isPlainObject=ia,Fn.isRegExp=ra,Fn.isSafeInteger=function(e){return Zs(e)&&e>=-9007199254740991&&e<=d},Fn.isSet=oa,Fn.isString=sa,Fn.isSymbol=aa,Fn.isTypedArray=la,Fn.isUndefined=function(e){return e===r},Fn.isWeakMap=function(e){return ea(e)&&ho(e)==A},Fn.isWeakSet=function(e){return ea(e)&&"[object WeakSet]"==Ci(e)},Fn.join=function(e,t){return null==e?"":Ht.call(e,t)},Fn.kebabCase=Ba,Fn.last=Go,Fn.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=pa(n))<0?gn(i+o,0):vn(o,i-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,o):Ft(e,$t,o,!0)},Fn.lowerCase=Ha,Fn.lowerFirst=qa,Fn.lt=ua,Fn.lte=ca,Fn.max=function(e){return e&&e.length?pi(e,nl,Oi):r},Fn.maxBy=function(e,t){return e&&e.length?pi(e,oo(t,2),Oi):r},Fn.mean=function(e){return zt(e,nl)},Fn.meanBy=function(e,t){return zt(e,oo(t,2))},Fn.min=function(e){return e&&e.length?pi(e,nl,Vi):r},Fn.minBy=function(e,t){return e&&e.length?pi(e,oo(t,2),Vi):r},Fn.stubArray=fl,Fn.stubFalse=ml,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=_l,Fn.nth=function(e,t){return e&&e.length?Ui(e,pa(t)):r},Fn.noConflict=function(){return dt._===this&&(dt._=Fe),this},Fn.noop=al,Fn.now=xs,Fn.pad=function(e,t,n){e=va(e);var i=(t=pa(t))?cn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return $r(pt(r),n)+e+$r(ht(r),n)},Fn.padEnd=function(e,t,n){e=va(e);var i=(t=pa(t))?cn(e):0;return t&&i<t?e+$r(t-i,n):e},Fn.padStart=function(e,t,n){e=va(e);var i=(t=pa(t))?cn(e):0;return t&&i<t?$r(t-i,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(va(e).replace(ie,""),t||0)},Fn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&vo(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=ha(e),t===r?(t=e,e=0):t=ha(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var o=wn();return vn(e+o*(t-e+at("1e-"+((o+"").length-1))),t)}return qi(e,t)},Fn.reduce=function(e,t,n){var i=Bs(e)?jt:qt,r=arguments.length<3;return i(e,oo(t,4),n,r,ci)},Fn.reduceRight=function(e,t,n){var i=Bs(e)?Rt:qt,r=arguments.length<3;return i(e,oo(t,4),n,r,di)},Fn.repeat=function(e,t,n){return t=(n?vo(e,t,n):t===r)?1:pa(t),Wi(va(e),t)},Fn.replace=function(){var e=arguments,t=va(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,n){var i=-1,o=(t=gr(t,e)).length;for(o||(o=1,e=r);++i<o;){var s=null==e?r:e[Io(t[i])];s===r&&(i=o,s=n),e=Js(s)?s.call(e):s}return e},Fn.round=kl,Fn.runInContext=e,Fn.sample=function(e){return(Bs(e)?Gn:Ki)(e)},Fn.size=function(e){if(null==e)return 0;if(qs(e))return sa(e)?cn(e):e.length;var t=ho(e);return t==k||t==S?e.size:Ri(e).length},Fn.snakeCase=Wa,Fn.some=function(e,t,n){var i=Bs(e)?Vt:tr;return n&&vo(e,t,n)&&(t=r),i(e,oo(t,3))},Fn.sortedIndex=function(e,t){return nr(e,t)},Fn.sortedIndexBy=function(e,t,n){return ir(e,t,oo(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=nr(e,t);if(i<n&&Ns(e[i],t))return i}return-1},Fn.sortedLastIndex=function(e,t){return nr(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return ir(e,t,oo(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=nr(e,t,!0)-1;if(Ns(e[n],t))return n}return-1},Fn.startCase=Ya,Fn.startsWith=function(e,t,n){return e=va(e),n=null==n?0:oi(pa(n),0,e.length),t=sr(t),e.slice(n,n+t.length)==t},Fn.subtract=Cl,Fn.sum=function(e){return e&&e.length?Wt(e,nl):0},Fn.sumBy=function(e,t){return e&&e.length?Wt(e,oo(t,2)):0},Fn.template=function(e,t,n){var i=Fn.templateSettings;n&&vo(e,t,n)&&(t=r),e=va(e),t=wa({},t,i,Gr);var o,s,a=wa({},t.imports,i.imports,Gr),l=Aa(a),u=Jt(a,l),c=0,d=t.interpolate||be,h="__p += '",p=xe((t.escape||be).source+"|"+d.source+"|"+(d===Z?de:be).source+"|"+(t.evaluate||be).source+"|$","g"),f="//# sourceURL="+(je.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(p,(function(t,n,i,r,a,l){return i||(i=r),h+=e.slice(c,l).replace(we,nn),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),h+="';\n";var m=je.call(t,"variable")&&t.variable;if(m){if(ue.test(m))throw new _e("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(z,""):h).replace(B,"$1").replace(H,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Za((function(){return ke(l,f+"return "+h).apply(r,u)}));if(g.source=h,Gs(g))throw g;return g},Fn.times=function(e,t){if((e=pa(e))<1||e>d)return[];var n=p,i=vn(e,p);t=oo(t),e-=p;for(var r=Yt(i,t);++n<e;)t(n);return r},Fn.toFinite=ha,Fn.toInteger=pa,Fn.toLength=fa,Fn.toLower=function(e){return va(e).toLowerCase()},Fn.toNumber=ma,Fn.toSafeInteger=function(e){return e?oi(pa(e),-9007199254740991,d):0===e?e:0},Fn.toString=va,Fn.toUpper=function(e){return va(e).toUpperCase()},Fn.trim=function(e,t,n){if((e=va(e))&&(n||t===r))return Kt(e);if(!e||!(t=sr(t)))return e;var i=dn(e),o=dn(t);return yr(i,Xt(i,o),Qt(i,o)+1).join("")},Fn.trimEnd=function(e,t,n){if((e=va(e))&&(n||t===r))return e.slice(0,hn(e)+1);if(!e||!(t=sr(t)))return e;var i=dn(e);return yr(i,0,Qt(i,dn(t))+1).join("")},Fn.trimStart=function(e,t,n){if((e=va(e))&&(n||t===r))return e.replace(ie,"");if(!e||!(t=sr(t)))return e;var i=dn(e);return yr(i,Xt(i,dn(t))).join("")},Fn.truncate=function(e,t){var n=30,i="...";if(Qs(t)){var o="separator"in t?t.separator:o;n="length"in t?pa(t.length):n,i="omission"in t?sr(t.omission):i}var s=(e=va(e)).length;if(rn(e)){var a=dn(e);s=a.length}if(n>=s)return e;var l=n-cn(i);if(l<1)return i;var u=a?yr(a,0,l).join(""):e.slice(0,l);if(o===r)return u+i;if(a&&(l+=u.length-l),ra(o)){if(e.slice(l).search(o)){var c,d=u;for(o.global||(o=xe(o.source,va(he.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var h=c.index;u=u.slice(0,h===r?l:h)}}else if(e.indexOf(sr(o),l)!=l){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+i},Fn.unescape=function(e){return(e=va(e))&&Y.test(e)?e.replace(q,pn):e},Fn.uniqueId=function(e){var t=++Re;return va(e)+t},Fn.upperCase=Ka,Fn.upperFirst=Ga,Fn.each=vs,Fn.eachRight=ys,Fn.first=qo,sl(Fn,(gl={},yi(Fn,(function(e,t){je.call(Fn.prototype,t)||(gl[t]=e)})),gl),{chain:!1}),Fn.VERSION="4.17.21",xt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),xt(["drop","take"],(function(e,t){zn.prototype[e]=function(n){n=n===r?1:gn(pa(n),0);var i=this.__filtered__&&!t?new zn(this):this.clone();return i.__filtered__?i.__takeCount__=vn(n,i.__takeCount__):i.__views__.push({size:vn(n,p),type:e+(i.__dir__<0?"Right":"")}),i},zn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),xt(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;zn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),xt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");zn.prototype[e]=function(){return this[n](1).value()[0]}})),xt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");zn.prototype[e]=function(){return this.__filtered__?new zn(this):this[n](1)}})),zn.prototype.compact=function(){return this.filter(nl)},zn.prototype.find=function(e){return this.filter(e).head()},zn.prototype.findLast=function(e){return this.reverse().find(e)},zn.prototype.invokeMap=Yi((function(e,t){return"function"==typeof e?new zn(this):this.map((function(n){return Mi(n,e,t)}))})),zn.prototype.reject=function(e){return this.filter(Rs(oo(e)))},zn.prototype.slice=function(e,t){e=pa(e);var n=this;return n.__filtered__&&(e>0||t<0)?new zn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=pa(t))<0?n.dropRight(-t):n.take(t-e)),n)},zn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},zn.prototype.toArray=function(){return this.take(p)},yi(zn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=Fn[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);o&&(Fn.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,l=t instanceof zn,u=a[0],c=l||Bs(t),d=function(e){var t=o.apply(Fn,Dt([e],a));return i&&h?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var h=this.__chain__,p=!!this.__actions__.length,f=s&&!h,m=l&&!p;if(!s&&c){t=m?t:new zn(this);var g=e.apply(t,a);return g.__actions__.push({func:hs,args:[d],thisArg:r}),new $n(g,h)}return f&&m?e.apply(this,a):(g=this.thru(d),f?i?g.value()[0]:g.value():g)})})),xt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Me[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(Bs(r)?r:[],e)}return this[n]((function(n){return t.apply(Bs(n)?n:[],e)}))}})),yi(zn.prototype,(function(e,t){var n=Fn[t];if(n){var i=n.name+"";je.call(Pn,i)||(Pn[i]=[]),Pn[i].push({name:t,func:n})}})),Pn[Lr(r,2).name]=[{name:"wrapper",func:r}],zn.prototype.clone=function(){var e=new zn(this.__wrapped__);return e.__actions__=Er(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Er(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Er(this.__views__),e},zn.prototype.reverse=function(){if(this.__filtered__){var e=new zn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},zn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Bs(e),i=t<0,r=n?e.length:0,o=function(e,t,n){for(var i=-1,r=n.length;++i<r;){var o=n[i],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=vn(t,e+s);break;case"takeRight":e=gn(e,t-s)}}return{start:e,end:t}}(0,r,this.__views__),s=o.start,a=o.end,l=a-s,u=i?a:s-1,c=this.__iteratees__,d=c.length,h=0,p=vn(l,this.__takeCount__);if(!n||!i&&r==l&&p==l)return dr(e,this.__actions__);var f=[];e:for(;l--&&h<p;){for(var m=-1,g=e[u+=t];++m<d;){var v=c[m],y=v.iteratee,b=v.type,w=y(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}f[h++]=g}return f},Fn.prototype.at=ps,Fn.prototype.chain=function(){return ds(this)},Fn.prototype.commit=function(){return new $n(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===r&&(this.__values__=da(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,n=this;n instanceof Un;){var i=Fo(n);i.__index__=0,i.__values__=r,t?o.__wrapped__=i:t=i;var o=i;n=n.__wrapped__}return o.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof zn){var t=e;return this.__actions__.length&&(t=new zn(this)),(t=t.reverse()).__actions__.push({func:hs,args:[Qo],thisArg:r}),new $n(t,this.__chain__)}return this.thru(Qo)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return dr(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,Ge&&(Fn.prototype[Ge]=function(){return this}),Fn}();dt._=fn,(i=function(){return fn}.call(t,n,t,e))===r||(e.exports=i)}.call(this)},88306:function(e,t,n){var i=n(83369);function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=e.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(r.Cache||i),n}r.Cache=i,e.exports=r},7771:function(e,t,n){var i=n(55639);e.exports=function(){return i.Date.now()}},57557:function(e,t,n){var i=n(29932),r=n(85990),o=n(57406),s=n(71811),a=n(98363),l=n(60696),u=n(99021),c=n(46904),d=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=i(t,(function(t){return t=s(t,e),u||(u=t.length>1),t})),a(e,c(e),n),u&&(n=r(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n}));e.exports=d},45245:function(e,t,n){var i=n(78302),r=n(88016),o=n(40554),s=n(79833),a=Math.ceil,l=Math.floor;e.exports=function(e,t,n){e=s(e);var u=(t=o(t))?r(e):0;if(!t||u>=t)return e;var c=(t-u)/2;return i(l(c),n)+e+i(a(c),n)}},59854:function(e,t,n){var i=n(89179)("round");e.exports=i},36968:function(e,t,n){var i=n(10611);e.exports=function(e,t,n){return null==e?e:i(e,t,n)}},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},18601:function(e,t,n){var i=n(14841);e.exports=function(e){return e?Infinity===(e=i(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},40554:function(e,t,n){var i=n(18601);e.exports=function(e){var t=i(e),n=t%1;return t==t?n?t-n:t:0}},14841:function(e,t,n){var i=n(27561),r=n(13218),o=n(33448),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=a.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):s.test(e)?NaN:+e}},79833:function(e,t,n){var i=n(80531);e.exports=function(e){return null==e?"":i(e)}},92742:function(e,t,n){var i=n(80531),r=n(27561),o=n(40180),s=n(5512),a=n(89817),l=n(83140),u=n(79833);e.exports=function(e,t,n){if((e=u(e))&&(n||void 0===t))return r(e);if(!e||!(t=i(t)))return e;var c=l(e),d=l(t),h=a(c,d),p=s(c,d)+1;return o(c,h,p).join("")}},85177:function(e,t,n){var i,r,o;!function(s,a){"use strict";e.exports?e.exports=a(n(30381)):(r=[n(30381)],void 0===(o="function"==typeof(i=a)?i.apply(t,r):i)||(e.exports=o))}(0,(function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n={},i={},r={},o={},s={};e&&"string"==typeof e.version||M("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var a=e.version.split("."),l=+a[0],u=+a[1];function c(e){return e>96?e-87:e>64?e-29:e-48}function d(e){var t=0,n=e.split("."),i=n[0],r=n[1]||"",o=1,s=0,a=1;for(45===e.charCodeAt(0)&&(t=1,a=-1);t<i.length;t++)s=60*s+c(i.charCodeAt(t));for(t=0;t<r.length;t++)o/=60,s+=c(r.charCodeAt(t))*o;return s*a}function h(e){for(var t=0;t<e.length;t++)e[t]=d(e[t])}function p(e,t){var n,i=[];for(n=0;n<t.length;n++)i[n]=e[t[n]];return i}function f(e){var t=e.split("|"),n=t[2].split(" "),i=t[3].split(""),r=t[4].split(" ");return h(n),h(i),h(r),function(e,t){for(var n=0;n<t;n++)e[n]=Math.round((e[n-1]||0)+6e4*e[n]);e[t-1]=1/0}(r,i.length),{name:t[0],abbrs:p(t[1].split(" "),i),offsets:p(n,i),untils:r,population:0|t[5]}}function m(e){e&&this._set(f(e))}function g(e,t){this.name=e,this.zones=t}function v(e){var t=e.toTimeString(),n=t.match(/\([a-z ]+\)/i);"GMT"===(n=n&&n[0]?(n=n[0].match(/[A-Z]/g))?n.join(""):void 0:(n=t.match(/[A-Z]{3,5}/g))?n[0]:void 0)&&(n=void 0),this.at=+e,this.abbr=n,this.offset=e.getTimezoneOffset()}function y(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function b(e,t){for(var n,i;i=6e4*((t.at-e.at)/12e4|0);)(n=new v(new Date(e.at+i))).offset===e.offset?e=n:t=n;return e}function w(e,t){return e.offsetScore!==t.offsetScore?e.offsetScore-t.offsetScore:e.abbrScore!==t.abbrScore?e.abbrScore-t.abbrScore:e.zone.population!==t.zone.population?t.zone.population-e.zone.population:t.zone.name.localeCompare(e.zone.name)}function _(e,t){var n,i;for(h(t),n=0;n<t.length;n++)i=t[n],s[i]=s[i]||{},s[i][e]=!0}function k(e){var t,n,i,r=e.length,a={},l=[];for(t=0;t<r;t++)for(n in i=s[e[t].offset]||{})i.hasOwnProperty(n)&&(a[n]=!0);for(t in a)a.hasOwnProperty(t)&&l.push(o[t]);return l}function C(e){return(e||"").toLowerCase().replace(/\//g,"_")}function O(e){var t,i,r,s;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)s=C(i=(r=e[t].split("|"))[0]),n[s]=e[t],o[s]=i,_(s,r[2].split(" "))}function x(e,t){e=C(e);var r,s=n[e];return s instanceof m?s:"string"==typeof s?(s=new m(s),n[e]=s,s):i[e]&&t!==x&&(r=x(i[e],x))?((s=n[e]=new m)._set(r),s.name=o[e],s):null}function E(e){var t,n,r,s;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)r=C((n=e[t].split("|"))[0]),s=C(n[1]),i[r]=s,o[r]=n[0],i[s]=r,o[s]=n[1]}function S(e){var t="X"===e._f||"x"===e._f;return!(!e._a||void 0!==e._tzm||t)}function M(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}function P(t){var n=Array.prototype.slice.call(arguments,0,-1),i=arguments[arguments.length-1],r=x(i),o=e.utc.apply(null,n);return r&&!e.isMoment(t)&&S(o)&&o.add(r.parse(o),"minutes"),o.tz(i),o}(l<2||2===l&&u<6)&&M("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),m.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t,n=+e,i=this.untils;for(t=0;t<i.length;t++)if(n<i[t])return t},countries:function(){var e=this.name;return Object.keys(r).filter((function(t){return-1!==r[t].zones.indexOf(e)}))},parse:function(e){var t,n,i,r,o=+e,s=this.offsets,a=this.untils,l=a.length-1;for(r=0;r<l;r++)if(t=s[r],n=s[r+1],i=s[r?r-1:r],t<n&&P.moveAmbiguousForward?t=n:t>i&&P.moveInvalidForward&&(t=i),o<a[r]-6e4*t)return s[r];return s[l]},abbr:function(e){return this.abbrs[this._index(e)]},offset:function(e){return M("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(e)]},utcOffset:function(e){return this.offsets[this._index(e)]}},y.prototype.scoreOffsetAt=function(e){this.offsetScore+=Math.abs(this.zone.utcOffset(e.at)-e.offset),this.zone.abbr(e.at).replace(/[^A-Z]/g,"")!==e.abbr&&this.abbrScore++},P.version="0.5.43",P.dataVersion="",P._zones=n,P._links=i,P._names=o,P._countries=r,P.add=O,P.link=E,P.load=function(e){O(e.zones),E(e.links),function(e){var t,n,i,o;if(e&&e.length)for(t=0;t<e.length;t++)n=(o=e[t].split("|"))[0].toUpperCase(),i=o[1].split(" "),r[n]=new g(n,i)}(e.countries),P.dataVersion=e.version},P.zone=x,P.zoneExists=function e(t){return e.didShowError||(e.didShowError=!0,M("moment.tz.zoneExists('"+t+"') has been deprecated in favor of !moment.tz.zone('"+t+"')")),!!x(t)},P.guess=function(e){return t&&!e||(t=function(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&e.length>3){var t=o[C(e)];if(t)return t;M("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var n,i,r,s=function(){var e,t,n,i=(new Date).getFullYear()-2,r=new v(new Date(i,0,1)),o=[r];for(n=1;n<48;n++)(t=new v(new Date(i,n,1))).offset!==r.offset&&(e=b(r,t),o.push(e),o.push(new v(new Date(e.at+6e4)))),r=t;for(n=0;n<4;n++)o.push(new v(new Date(i+n,0,1))),o.push(new v(new Date(i+n,6,1)));return o}(),a=s.length,l=k(s),u=[];for(i=0;i<l.length;i++){for(n=new y(x(l[i]),a),r=0;r<a;r++)n.scoreOffsetAt(s[r]);u.push(n)}return u.sort(w),u.length>0?u[0].zone.name:void 0}()),t},P.names=function(){var e,t=[];for(e in o)o.hasOwnProperty(e)&&(n[e]||n[i[e]])&&o[e]&&t.push(o[e]);return t.sort()},P.Zone=m,P.unpack=f,P.unpackBase60=d,P.needsOffset=S,P.moveInvalidForward=!0,P.moveAmbiguousForward=!1,P.countries=function(){return Object.keys(r)},P.zonesForCountry=function(e,t){var n;if(n=(n=e).toUpperCase(),!(e=r[n]||null))return null;var i=e.zones.sort();return t?i.map((function(e){return{name:e,offset:x(e).utcOffset(new Date)}})):i};var A,T=e.fn;function D(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function j(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=P,e.defaultZone=null,e.updateOffset=function(t,n){var i,r=e.defaultZone;if(void 0===t._z&&(r&&S(t)&&!t._isUTC&&(t._d=e.utc(t._a)._d,t.utc().add(r.parse(t),"minutes")),t._z=r),t._z)if(i=t._z.utcOffset(t),Math.abs(i)<16&&(i/=60),void 0!==t.utcOffset){var o=t._z;t.utcOffset(-i,n),t._z=o}else t.zone(i,n)},T.tz=function(t,n){if(t){if("string"!=typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=x(t),this._z?e.updateOffset(this,n):M("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},T.zoneName=D(T.zoneName),T.zoneAbbr=D(T.zoneAbbr),T.utc=j(T.utc),T.local=j(T.local),T.utcOffset=(A=T.utcOffset,function(){return arguments.length>0&&(this._z=null),A.apply(this,arguments)}),e.tz.setDefault=function(t){return(l<2||2===l&&u<9)&&M("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?x(t):null,e};var R=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(R)?(R.push("_z"),R.push("_a")):R&&(R._z=null),e}))},30381:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,n;function i(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function l(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,i=[],r=e.length;for(n=0;n<r;++n)i.push(t(e[n],n));return i}function h(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,i){return jt(e,t,n,i,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=f(e),i=n.call(t.parsedDateParts,(function(e){return null!=e})),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function g(e){var t=p(NaN);return null!=e?h(f(t),e):f(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),i=n.length>>>0;for(t=0;t<i;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=i.momentProperties=[],y=!1;function b(e,t){var n,i,r,o=v.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=f(t)),l(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)l(r=t[i=v[n]])||(e[i]=r);return e}function w(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,i.updateOffset(this),y=!1)}function _(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function k(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,t){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var r,o,a,l=[],u=arguments.length;for(o=0;o<u;o++){if(r="","object"==typeof arguments[o]){for(a in r+="\n["+o+"] ",arguments[0])s(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[o];l.push(r)}k(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var O,x={};function E(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),x[e]||(k(t),x[e]=!0)}function S(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function M(e,t){var n,i=h({},e);for(n in t)s(t,n)&&(o(e[n])&&o(t[n])?(i[n]={},h(i[n],e[n]),h(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)s(e,n)&&!s(t,n)&&o(e[n])&&(i[n]=h({},i[n]));return i}function P(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,O=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};function A(e,t,n){var i=""+Math.abs(e),r=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var T=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,D=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},R={};function V(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(R[e]=r),t&&(R[t[0]]=function(){return A(r.apply(this,arguments),t[1],t[2])}),n&&(R[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function I(e,t){return e.isValid()?(t=L(t,e.localeData()),j[t]=j[t]||function(e){var t,n,i,r=e.match(T);for(t=0,n=r.length;t<n;t++)R[r[t]]?r[t]=R[r[t]]:r[t]=(i=r[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,o="";for(i=0;i<n;i++)o+=S(r[i])?r[i].call(t,e):r[i];return o}}(t),j[t](e)):e.localeData().invalidDate()}function L(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(D.lastIndex=0;n>=0&&D.test(e);)e=e.replace(D,i),D.lastIndex=0,n-=1;return e}var F={};function N(e,t){var n=e.toLowerCase();F[n]=F[n+"s"]=F[t]=e}function U(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function $(e){var t,n,i={};for(n in e)s(e,n)&&(t=U(n))&&(i[t]=e[n]);return i}var z={};function B(e,t){z[e]=t}function H(e){return e%4==0&&e%100!=0||e%400==0}function q(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function W(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=q(t)),n}function Y(e,t){return function(n){return null!=n?(G(this,e,n),i.updateOffset(this,t),this):K(this,e)}}function K(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function G(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&H(e.year())&&1===e.month()&&29===e.date()?(n=W(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ae(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var J,Z=/\d/,X=/\d\d/,Q=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,ie=/\d\d\d\d?/,re=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,se=/\d{1,4}/,ae=/[+-]?\d{1,6}/,le=/\d+/,ue=/[+-]?\d+/,ce=/Z|[+-]\d\d:?\d\d/gi,de=/Z|[+-]\d\d(?::?\d\d)?/gi,he=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function pe(e,t,n){J[e]=S(t)?t:function(e,i){return e&&n?n:t}}function fe(e,t){return s(J,e)?J[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,r){return t||n||i||r}))))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}J={};var ge={};function ve(e,t){var n,i,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=W(e)}),i=e.length,n=0;n<i;n++)ge[e[n]]=r}function ye(e,t){ve(e,(function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)}))}function be(e,t,n){null!=t&&s(ge,e)&&ge[e](t,n._a,n,e)}var we,_e=0,ke=1,Ce=2,Oe=3,xe=4,Ee=5,Se=6,Me=7,Pe=8;function Ae(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,i=(t%(n=12)+n)%n;return e+=(t-i)/12,1===i?H(e)?29:28:31-i%7%2}we=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},V("M",["MM",2],"Mo",(function(){return this.month()+1})),V("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),V("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),N("month","M"),B("month",8),pe("M",ne),pe("MM",ne,X),pe("MMM",(function(e,t){return t.monthsShortRegex(e)})),pe("MMMM",(function(e,t){return t.monthsRegex(e)})),ve(["M","MM"],(function(e,t){t[ke]=W(e)-1})),ve(["MMM","MMMM"],(function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[ke]=r:f(n).invalidMonth=e}));var Te="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),De="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),je=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Re=he,Ve=he;function Ie(e,t,n){var i,r,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=we.call(this._shortMonthsParse,s))?r:null:-1!==(r=we.call(this._longMonthsParse,s))?r:null:"MMM"===t?-1!==(r=we.call(this._shortMonthsParse,s))||-1!==(r=we.call(this._longMonthsParse,s))?r:null:-1!==(r=we.call(this._longMonthsParse,s))||-1!==(r=we.call(this._shortMonthsParse,s))?r:null}function Le(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=W(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ae(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Fe(e){return null!=e?(Le(this,e),i.updateOffset(this,!0),this):K(this,"Month")}function Ne(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],o=[];for(t=0;t<12;t++)n=p([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),o.sort(e),t=0;t<12;t++)i[t]=me(i[t]),r[t]=me(r[t]);for(t=0;t<24;t++)o[t]=me(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ue(e){return H(e)?366:365}V("Y",0,0,(function(){var e=this.year();return e<=9999?A(e,4):"+"+e})),V(0,["YY",2],0,(function(){return this.year()%100})),V(0,["YYYY",4],0,"year"),V(0,["YYYYY",5],0,"year"),V(0,["YYYYYY",6,!0],0,"year"),N("year","y"),B("year",1),pe("Y",ue),pe("YY",ne,X),pe("YYYY",se,ee),pe("YYYYY",ae,te),pe("YYYYYY",ae,te),ve(["YYYYY","YYYYYY"],_e),ve("YYYY",(function(e,t){t[_e]=2===e.length?i.parseTwoDigitYear(e):W(e)})),ve("YY",(function(e,t){t[_e]=i.parseTwoDigitYear(e)})),ve("Y",(function(e,t){t[_e]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return W(e)+(W(e)>68?1900:2e3)};var $e=Y("FullYear",!0);function ze(e,t,n,i,r,o,s){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,i,r,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,i,r,o,s),a}function Be(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function He(e,t,n){var i=7+t-n;return-(7+Be(e,0,i).getUTCDay()-t)%7+i-1}function qe(e,t,n,i,r){var o,s,a=1+7*(t-1)+(7+n-i)%7+He(e,i,r);return a<=0?s=Ue(o=e-1)+a:a>Ue(e)?(o=e+1,s=a-Ue(e)):(o=e,s=a),{year:o,dayOfYear:s}}function We(e,t,n){var i,r,o=He(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?i=s+Ye(r=e.year()-1,t,n):s>Ye(e.year(),t,n)?(i=s-Ye(e.year(),t,n),r=e.year()+1):(r=e.year(),i=s),{week:i,year:r}}function Ye(e,t,n){var i=He(e,t,n),r=He(e+1,t,n);return(Ue(e)-i+r)/7}V("w",["ww",2],"wo","week"),V("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),B("week",5),B("isoWeek",5),pe("w",ne),pe("ww",ne,X),pe("W",ne),pe("WW",ne,X),ye(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=W(e)}));function Ke(e,t){return e.slice(t,7).concat(e.slice(0,t))}V("d",0,"do","day"),V("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),V("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),V("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),V("e",0,0,"weekday"),V("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),pe("d",ne),pe("e",ne),pe("E",ne),pe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),pe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),pe("dddd",(function(e,t){return t.weekdaysRegex(e)})),ye(["dd","ddd","dddd"],(function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:f(n).invalidWeekday=e})),ye(["d","e","E"],(function(e,t,n,i){t[i]=W(e)}));var Ge="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xe=he,Qe=he,et=he;function tt(e,t,n){var i,r,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=we.call(this._weekdaysParse,s))?r:null:"ddd"===t?-1!==(r=we.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=we.call(this._minWeekdaysParse,s))?r:null:"dddd"===t?-1!==(r=we.call(this._weekdaysParse,s))||-1!==(r=we.call(this._shortWeekdaysParse,s))||-1!==(r=we.call(this._minWeekdaysParse,s))?r:null:"ddd"===t?-1!==(r=we.call(this._shortWeekdaysParse,s))||-1!==(r=we.call(this._weekdaysParse,s))||-1!==(r=we.call(this._minWeekdaysParse,s))?r:null:-1!==(r=we.call(this._minWeekdaysParse,s))||-1!==(r=we.call(this._weekdaysParse,s))||-1!==(r=we.call(this._shortWeekdaysParse,s))?r:null}function nt(){function e(e,t){return t.length-e.length}var t,n,i,r,o,s=[],a=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),i=me(this.weekdaysMin(n,"")),r=me(this.weekdaysShort(n,"")),o=me(this.weekdays(n,"")),s.push(i),a.push(r),l.push(o),u.push(i),u.push(r),u.push(o);s.sort(e),a.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function it(){return this.hours()%12||12}function rt(e,t){V(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function ot(e,t){return t._meridiemParse}V("H",["HH",2],0,"hour"),V("h",["hh",2],0,it),V("k",["kk",2],0,(function(){return this.hours()||24})),V("hmm",0,0,(function(){return""+it.apply(this)+A(this.minutes(),2)})),V("hmmss",0,0,(function(){return""+it.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)})),V("Hmm",0,0,(function(){return""+this.hours()+A(this.minutes(),2)})),V("Hmmss",0,0,(function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)})),rt("a",!0),rt("A",!1),N("hour","h"),B("hour",13),pe("a",ot),pe("A",ot),pe("H",ne),pe("h",ne),pe("k",ne),pe("HH",ne,X),pe("hh",ne,X),pe("kk",ne,X),pe("hmm",ie),pe("hmmss",re),pe("Hmm",ie),pe("Hmmss",re),ve(["H","HH"],Oe),ve(["k","kk"],(function(e,t,n){var i=W(e);t[Oe]=24===i?0:i})),ve(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ve(["h","hh"],(function(e,t,n){t[Oe]=W(e),f(n).bigHour=!0})),ve("hmm",(function(e,t,n){var i=e.length-2;t[Oe]=W(e.substr(0,i)),t[xe]=W(e.substr(i)),f(n).bigHour=!0})),ve("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[Oe]=W(e.substr(0,i)),t[xe]=W(e.substr(i,2)),t[Ee]=W(e.substr(r)),f(n).bigHour=!0})),ve("Hmm",(function(e,t,n){var i=e.length-2;t[Oe]=W(e.substr(0,i)),t[xe]=W(e.substr(i))})),ve("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[Oe]=W(e.substr(0,i)),t[xe]=W(e.substr(i,2)),t[Ee]=W(e.substr(r))}));var st=Y("Hours",!0);var at,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Te,monthsShort:De,week:{dow:0,doy:6},weekdays:Ge,weekdaysMin:Ze,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},ut={},ct={};function dt(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function ht(e){return e?e.toLowerCase().replace("_","-"):e}function pt(t){var n=null;if(void 0===ut[t]&&e&&e.exports&&function(e){return null!=e.match("^[^/\\\\]*$")}(t))try{n=at._abbr,Object(function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}()),ft(n)}catch(e){ut[t]=null}return ut[t]}function ft(e,t){var n;return e&&((n=l(t)?gt(e):mt(e,t))?at=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function mt(e,t){if(null!==t){var n,i=lt;if(t.abbr=e,null!=ut[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=ut[e]._config;else if(null!=t.parentLocale)if(null!=ut[t.parentLocale])i=ut[t.parentLocale]._config;else{if(null==(n=pt(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;i=n._config}return ut[e]=new P(M(i,t)),ct[e]&&ct[e].forEach((function(e){mt(e.name,e.config)})),ft(e),ut[e]}return delete ut[e],null}function gt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return at;if(!r(e)){if(t=pt(e))return t;e=[e]}return function(e){for(var t,n,i,r,o=0;o<e.length;){for(t=(r=ht(e[o]).split("-")).length,n=(n=ht(e[o+1]))?n.split("-"):null;t>0;){if(i=pt(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&dt(r,n)>=t-1)break;t--}o++}return at}(e)}function vt(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[ke]<0||n[ke]>11?ke:n[Ce]<1||n[Ce]>Ae(n[_e],n[ke])?Ce:n[Oe]<0||n[Oe]>24||24===n[Oe]&&(0!==n[xe]||0!==n[Ee]||0!==n[Se])?Oe:n[xe]<0||n[xe]>59?xe:n[Ee]<0||n[Ee]>59?Ee:n[Se]<0||n[Se]>999?Se:-1,f(e)._overflowDayOfYear&&(t<_e||t>Ce)&&(t=Ce),f(e)._overflowWeeks&&-1===t&&(t=Me),f(e)._overflowWeekday&&-1===t&&(t=Pe),f(e).overflow=t),e}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wt=/Z|[+-]\d\d(?::?\d\d)?/,_t=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],kt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ct=/^\/?Date\((-?\d+)/i,Ot=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Et(e){var t,n,i,r,o,s,a=e._i,l=yt.exec(a)||bt.exec(a),u=_t.length,c=kt.length;if(l){for(f(e).iso=!0,t=0,n=u;t<n;t++)if(_t[t][1].exec(l[1])){r=_t[t][0],i=!1!==_t[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(kt[t][1].exec(l[3])){o=(l[2]||" ")+kt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!i&&null!=o)return void(e._isValid=!1);if(l[4]){if(!wt.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=r+(o||"")+(s||""),Tt(e)}else e._isValid=!1}function St(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Mt(e){var t,n,i,r,o,s,a,l,u=Ot.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(n=u[4],i=u[3],r=u[2],o=u[5],s=u[6],a=u[7],l=[St(n),De.indexOf(i),parseInt(r,10),parseInt(o,10),parseInt(s,10)],a&&l.push(parseInt(a,10)),t=l,!function(e,t,n){return!e||Je.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(f(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return xt[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(u[8],u[9],u[10]),e._d=Be.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function Pt(e,t,n){return null!=e?e:null!=t?t:n}function At(e){var t,n,r,o,s,a=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[Ce]&&null==e._a[ke]&&function(e){var t,n,i,r,o,s,a,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,s=4,n=Pt(t.GG,e._a[_e],We(Rt(),1,4).year),i=Pt(t.W,1),((r=Pt(t.E,1))<1||r>7)&&(l=!0)):(o=e._locale._week.dow,s=e._locale._week.doy,u=We(Rt(),o,s),n=Pt(t.gg,e._a[_e],u.year),i=Pt(t.w,u.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(l=!0)):r=o),i<1||i>Ye(n,o,s)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(a=qe(n,i,r,o,s),e._a[_e]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(s=Pt(e._a[_e],r[_e]),(e._dayOfYear>Ue(s)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=Be(s,0,e._dayOfYear),e._a[ke]=n.getUTCMonth(),e._a[Ce]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Oe]&&0===e._a[xe]&&0===e._a[Ee]&&0===e._a[Se]&&(e._nextDay=!0,e._a[Oe]=0),e._d=(e._useUTC?Be:ze).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Oe]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(f(e).weekdayMismatch=!0)}}function Tt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],f(e).empty=!0;var t,n,r,o,s,a,l,u=""+e._i,c=u.length,d=0;for(l=(r=L(e._f,e._locale).match(T)||[]).length,t=0;t<l;t++)o=r[t],(n=(u.match(fe(o,e))||[])[0])&&((s=u.substr(0,u.indexOf(n))).length>0&&f(e).unusedInput.push(s),u=u.slice(u.indexOf(n)+n.length),d+=n.length),R[o]?(n?f(e).empty=!1:f(e).unusedTokens.push(o),be(o,n,e)):e._strict&&!n&&f(e).unusedTokens.push(o);f(e).charsLeftOver=c-d,u.length>0&&f(e).unusedInput.push(u),e._a[Oe]<=12&&!0===f(e).bigHour&&e._a[Oe]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[Oe]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[Oe],e._meridiem),null!==(a=f(e).era)&&(e._a[_e]=e._locale.erasConvertYear(a,e._a[_e])),At(e),vt(e)}else Mt(e);else Et(e)}function Dt(e){var t=e._i,n=e._f;return e._locale=e._locale||gt(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),_(t)?new w(vt(t)):(c(t)?e._d=t:r(n)?function(e){var t,n,i,r,o,s,a=!1,l=e._f.length;if(0===l)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<l;r++)o=0,s=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Tt(t),m(t)&&(s=!0),o+=f(t).charsLeftOver,o+=10*f(t).unusedTokens.length,f(t).score=o,a?o<i&&(i=o,n=t):(null==i||o<i||s)&&(i=o,n=t,s&&(a=!0));h(e,n||t)}(e):n?Tt(e):function(e){var t=e._i;l(t)?e._d=new Date(i.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=Ct.exec(e._i);null===t?(Et(e),!1===e._isValid&&(delete e._isValid,Mt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):r(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),At(e)):o(t)?function(e){if(!e._d){var t=$(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),At(e)}}(e):u(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function jt(e,t,n,i,s){var l,u={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(o(e)&&a(e)||r(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=n,u._i=e,u._f=t,u._strict=i,(l=new w(vt(Dt(u))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function Rt(e,t,n,i){return jt(e,t,n,i,!1)}i.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Vt=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Rt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),It=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Rt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function Lt(e,t){var n,i;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Rt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var Ft=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Nt(e){var t=$(e),n=t.year||0,i=t.quarter||0,r=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,l=t.hour||0,u=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,i=!1,r=Ft.length;for(t in e)if(s(e,t)&&(-1===we.call(Ft,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<r;++n)if(e[Ft[n]]){if(i)return!1;parseFloat(e[Ft[n]])!==W(e[Ft[n]])&&(i=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*u+1e3*l*60*60,this._days=+a+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=gt(),this._bubble()}function Ut(e){return e instanceof Nt}function $t(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function zt(e,t){V(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+A(~~(e/60),2)+t+A(~~e%60,2)}))}zt("Z",":"),zt("ZZ",""),pe("Z",de),pe("ZZ",de),ve(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Ht(de,e)}));var Bt=/([\+\-]|\d\d)/gi;function Ht(e,t){var n,i,r=(t||"").match(e);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(Bt)||["-",0,0])[1]+W(n[2]))?0:"+"===n[0]?i:-i}function qt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(_(e)||c(e)?e.valueOf():Rt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Rt(e).local()}function Wt(e){return-Math.round(e._d.getTimezoneOffset())}function Yt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Kt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Gt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Jt(e,t){var n,i,r,o,a,l,c=e,d=null;return Ut(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(d=Kt.exec(e))?(n="-"===d[1]?-1:1,c={y:0,d:W(d[Ce])*n,h:W(d[Oe])*n,m:W(d[xe])*n,s:W(d[Ee])*n,ms:W($t(1e3*d[Se]))*n}):(d=Gt.exec(e))?(n="-"===d[1]?-1:1,c={y:Zt(d[2],n),M:Zt(d[3],n),w:Zt(d[4],n),d:Zt(d[5],n),h:Zt(d[6],n),m:Zt(d[7],n),s:Zt(d[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(o=Rt(c.from),a=Rt(c.to),r=o.isValid()&&a.isValid()?(a=qt(a,o),o.isBefore(a)?l=Xt(o,a):((l=Xt(a,o)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(c={}).ms=r.milliseconds,c.M=r.months),i=new Nt(c),Ut(e)&&s(e,"_locale")&&(i._locale=e._locale),Ut(e)&&s(e,"_isValid")&&(i._isValid=e._isValid),i}function Zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Xt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Qt(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),en(this,Jt(n,i),e),this}}function en(e,t,n,r){var o=t._milliseconds,s=$t(t._days),a=$t(t._months);e.isValid()&&(r=null==r||r,a&&Le(e,K(e,"Month")+a*n),s&&G(e,"Date",K(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,s||a))}Jt.fn=Nt.prototype,Jt.invalid=function(){return Jt(NaN)};var tn=Qt(1,"add"),nn=Qt(-1,"subtract");function rn(e){return"string"==typeof e||e instanceof String}function on(e){return _(e)||c(e)||rn(e)||u(e)||function(e){var t=r(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&rn(e)})).length),t&&n}(e)||function(e){var t,n,i=o(e)&&!a(e),r=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=l.length;for(t=0;t<u;t+=1)n=l[t],r=r||s(e,n);return i&&r}(e)||null==e}function sn(e,t){if(e.date()<t.date())return-sn(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function an(e){var t;return void 0===e?this._locale._abbr:(null!=(t=gt(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ln=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function un(){return this._locale}var cn=1e3,dn=6e4,hn=36e5,pn=126227808e5;function fn(e,t){return(e%t+t)%t}function mn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-pn:new Date(e,t,n).valueOf()}function gn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-pn:Date.UTC(e,t,n)}function vn(e,t){return t.erasAbbrRegex(e)}function yn(){var e,t,n=[],i=[],r=[],o=[],s=this.eras();for(e=0,t=s.length;e<t;++e)i.push(me(s[e].name)),n.push(me(s[e].abbr)),r.push(me(s[e].narrow)),o.push(me(s[e].name)),o.push(me(s[e].abbr)),o.push(me(s[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function bn(e,t){V(0,[e,e.length],0,t)}function wn(e,t,n,i,r){var o;return null==e?We(this,i,r).year:(t>(o=Ye(e,i,r))&&(t=o),_n.call(this,e,t,n,i,r))}function _n(e,t,n,i,r){var o=qe(e,t,n,i,r),s=Be(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}V("N",0,0,"eraAbbr"),V("NN",0,0,"eraAbbr"),V("NNN",0,0,"eraAbbr"),V("NNNN",0,0,"eraName"),V("NNNNN",0,0,"eraNarrow"),V("y",["y",1],"yo","eraYear"),V("y",["yy",2],0,"eraYear"),V("y",["yyy",3],0,"eraYear"),V("y",["yyyy",4],0,"eraYear"),pe("N",vn),pe("NN",vn),pe("NNN",vn),pe("NNNN",(function(e,t){return t.erasNameRegex(e)})),pe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ve(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){var r=n._locale.erasParse(e,i,n._strict);r?f(n).era=r:f(n).invalidEra=e})),pe("y",le),pe("yy",le),pe("yyy",le),pe("yyyy",le),pe("yo",(function(e,t){return t._eraYearOrdinalRegex||le})),ve(["y","yy","yyy","yyyy"],_e),ve(["yo"],(function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[_e]=n._locale.eraYearOrdinalParse(e,r):t[_e]=parseInt(e,10)})),V(0,["gg",2],0,(function(){return this.weekYear()%100})),V(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),bn("gggg","weekYear"),bn("ggggg","weekYear"),bn("GGGG","isoWeekYear"),bn("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),pe("G",ue),pe("g",ue),pe("GG",ne,X),pe("gg",ne,X),pe("GGGG",se,ee),pe("gggg",se,ee),pe("GGGGG",ae,te),pe("ggggg",ae,te),ye(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=W(e)})),ye(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),V("Q",0,"Qo","quarter"),N("quarter","Q"),B("quarter",7),pe("Q",Z),ve("Q",(function(e,t){t[ke]=3*(W(e)-1)})),V("D",["DD",2],"Do","date"),N("date","D"),B("date",9),pe("D",ne),pe("DD",ne,X),pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ve(["D","DD"],Ce),ve("Do",(function(e,t){t[Ce]=W(e.match(ne)[0])}));var kn=Y("Date",!0);V("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),B("dayOfYear",4),pe("DDD",oe),pe("DDDD",Q),ve(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=W(e)})),V("m",["mm",2],0,"minute"),N("minute","m"),B("minute",14),pe("m",ne),pe("mm",ne,X),ve(["m","mm"],xe);var Cn=Y("Minutes",!1);V("s",["ss",2],0,"second"),N("second","s"),B("second",15),pe("s",ne),pe("ss",ne,X),ve(["s","ss"],Ee);var On,xn,En=Y("Seconds",!1);for(V("S",0,0,(function(){return~~(this.millisecond()/100)})),V(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),V(0,["SSS",3],0,"millisecond"),V(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),V(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),V(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),V(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),V(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),V(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),N("millisecond","ms"),B("millisecond",16),pe("S",oe,Z),pe("SS",oe,X),pe("SSS",oe,Q),On="SSSS";On.length<=9;On+="S")pe(On,le);function Sn(e,t){t[Se]=W(1e3*("0."+e))}for(On="S";On.length<=9;On+="S")ve(On,Sn);xn=Y("Milliseconds",!1),V("z",0,0,"zoneAbbr"),V("zz",0,0,"zoneName");var Mn=w.prototype;function Pn(e){return e}Mn.add=tn,Mn.calendar=function(e,t){1===arguments.length&&(arguments[0]?on(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=o(e)&&!a(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<r.length;t+=1)i=i||s(e,r[t]);return n&&i}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Rt(),r=qt(n,this).startOf("day"),l=i.calendarFormat(this,r)||"sameElse",u=t&&(S(t[l])?t[l].call(this,n):t[l]);return this.format(u||this.localeData().calendar(l,this,Rt(n)))},Mn.clone=function(){return new w(this)},Mn.diff=function(e,t,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=qt(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=U(t)){case"year":o=sn(this,i)/12;break;case"month":o=sn(this,i);break;case"quarter":o=sn(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:q(o)},Mn.endOf=function(e){var t,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gn:mn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hn-fn(t+(this._isUTC?0:this.utcOffset()*dn),hn)-1;break;case"minute":t=this._d.valueOf(),t+=dn-fn(t,dn)-1;break;case"second":t=this._d.valueOf(),t+=cn-fn(t,cn)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},Mn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=I(this,e);return this.localeData().postformat(t)},Mn.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Rt(e).isValid())?Jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Mn.fromNow=function(e){return this.from(Rt(),e)},Mn.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Rt(e).isValid())?Jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Mn.toNow=function(e){return this.to(Rt(),e)},Mn.get=function(e){return S(this[e=U(e)])?this[e]():this},Mn.invalidAt=function(){return f(this).overflow},Mn.isAfter=function(e,t){var n=_(e)?e:Rt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},Mn.isBefore=function(e,t){var n=_(e)?e:Rt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},Mn.isBetween=function(e,t,n,i){var r=_(e)?e:Rt(e),o=_(t)?t:Rt(t);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(o,n):!this.isAfter(o,n))},Mn.isSame=function(e,t){var n,i=_(e)?e:Rt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},Mn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Mn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Mn.isValid=function(){return m(this)},Mn.lang=ln,Mn.locale=an,Mn.localeData=un,Mn.max=It,Mn.min=Vt,Mn.parsingFlags=function(){return h({},f(this))},Mn.set=function(e,t){if("object"==typeof e){var n,i=function(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:z[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=$(e)),r=i.length;for(n=0;n<r;n++)this[i[n].unit](e[i[n].unit])}else if(S(this[e=U(e)]))return this[e](t);return this},Mn.startOf=function(e){var t,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gn:mn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fn(t+(this._isUTC?0:this.utcOffset()*dn),hn);break;case"minute":t=this._d.valueOf(),t-=fn(t,dn);break;case"second":t=this._d.valueOf(),t-=fn(t,cn)}return this._d.setTime(t),i.updateOffset(this,!0),this},Mn.subtract=nn,Mn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Mn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},Mn.toDate=function(){return new Date(this.valueOf())},Mn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?I(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",I(n,"Z")):I(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Mn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",n=r+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Mn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Mn.toJSON=function(){return this.isValid()?this.toISOString():null},Mn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Mn.unix=function(){return Math.floor(this.valueOf()/1e3)},Mn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Mn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Mn.eraName=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].name;if(i[e].until<=n&&n<=i[e].since)return i[e].name}return""},Mn.eraNarrow=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].narrow;if(i[e].until<=n&&n<=i[e].since)return i[e].narrow}return""},Mn.eraAbbr=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].abbr;if(i[e].until<=n&&n<=i[e].since)return i[e].abbr}return""},Mn.eraYear=function(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-i(o[e].since).year())*n+o[e].offset;return this.year()},Mn.year=$e,Mn.isLeapYear=function(){return H(this.year())},Mn.weekYear=function(e){return wn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Mn.isoWeekYear=function(e){return wn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Mn.quarter=Mn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Mn.month=Fe,Mn.daysInMonth=function(){return Ae(this.year(),this.month())},Mn.week=Mn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Mn.isoWeek=Mn.isoWeeks=function(e){var t=We(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Mn.weeksInYear=function(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)},Mn.weeksInWeekYear=function(){var e=this.localeData()._week;return Ye(this.weekYear(),e.dow,e.doy)},Mn.isoWeeksInYear=function(){return Ye(this.year(),1,4)},Mn.isoWeeksInISOWeekYear=function(){return Ye(this.isoWeekYear(),1,4)},Mn.date=kn,Mn.day=Mn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},Mn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Mn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Mn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Mn.hour=Mn.hours=st,Mn.minute=Mn.minutes=Cn,Mn.second=Mn.seconds=En,Mn.millisecond=Mn.milliseconds=xn,Mn.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ht(de,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Wt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?en(this,Jt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Wt(this)},Mn.utc=function(e){return this.utcOffset(0,e)},Mn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Wt(this),"m")),this},Mn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ht(ce,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},Mn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Rt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Mn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Mn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Mn.isUtc=Yt,Mn.isUTC=Yt,Mn.zoneAbbr=function(){return this._isUTC?"UTC":""},Mn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Mn.dates=C("dates accessor is deprecated. Use date instead.",kn),Mn.months=C("months accessor is deprecated. Use month instead",Fe),Mn.years=C("years accessor is deprecated. Use year instead",$e),Mn.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),Mn.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Dt(t))._a?(e=t._isUTC?p(t._a):Rt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&W(e[i])!==W(t[i]))&&s++;return s+o}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var An=P.prototype;function Tn(e,t,n,i){var r=gt(),o=p().set(i,t);return r[n](o,e)}function Dn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Tn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Tn(e,i,n,"month");return r}function jn(e,t,n,i){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var r,o=gt(),s=e?o._week.dow:0,a=[];if(null!=n)return Tn(t,(n+s)%7,i,"day");for(r=0;r<7;r++)a[r]=Tn(t,(r+s)%7,i,"day");return a}An.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return S(i)?i.call(t,n):i},An.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(T).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},An.invalidDate=function(){return this._invalidDate},An.ordinal=function(e){return this._ordinal.replace("%d",e)},An.preparse=Pn,An.postformat=Pn,An.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return S(r)?r(e,t,n,i):r.replace(/%d/i,e)},An.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)},An.set=function(e){var t,n;for(n in e)s(e,n)&&(S(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},An.eras=function(e,t){var n,r,o,s=this._eras||gt("en")._eras;for(n=0,r=s.length;n<r;++n)switch("string"==typeof s[n].since&&(o=i(s[n].since).startOf("day"),s[n].since=o.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":o=i(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf()}return s},An.erasParse=function(e,t,n){var i,r,o,s,a,l=this.eras();for(e=e.toUpperCase(),i=0,r=l.length;i<r;++i)if(o=l[i].name.toUpperCase(),s=l[i].abbr.toUpperCase(),a=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[i];break;case"NNNN":if(o===e)return l[i];break;case"NNNNN":if(a===e)return l[i]}else if([o,s,a].indexOf(e)>=0)return l[i]},An.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n},An.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||yn.call(this),e?this._erasAbbrRegex:this._erasRegex},An.erasNameRegex=function(e){return s(this,"_erasNameRegex")||yn.call(this),e?this._erasNameRegex:this._erasRegex},An.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||yn.call(this),e?this._erasNarrowRegex:this._erasRegex},An.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||je).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},An.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[je.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},An.monthsParse=function(e,t,n){var i,r,o;if(this._monthsParseExact)return Ie.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},An.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ne.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ve),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},An.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ne.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Re),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},An.week=function(e){return We(e,this._week.dow,this._week.doy).week},An.firstDayOfYear=function(){return this._week.doy},An.firstDayOfWeek=function(){return this._week.dow},An.weekdays=function(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ke(n,this._week.dow):e?n[e.day()]:n},An.weekdaysMin=function(e){return!0===e?Ke(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},An.weekdaysShort=function(e){return!0===e?Ke(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},An.weekdaysParse=function(e,t,n){var i,r,o;if(this._weekdaysParseExact)return tt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},An.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},An.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},An.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=et),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},An.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},An.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ft("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===W(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=C("moment.lang is deprecated. Use moment.locale instead.",ft),i.langData=C("moment.langData is deprecated. Use moment.localeData instead.",gt);var Rn=Math.abs;function Vn(e,t,n,i){var r=Jt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function In(e){return e<0?Math.floor(e):Math.ceil(e)}function Ln(e){return 4800*e/146097}function Fn(e){return 146097*e/4800}function Nn(e){return function(){return this.as(e)}}var Un=Nn("ms"),$n=Nn("s"),zn=Nn("m"),Bn=Nn("h"),Hn=Nn("d"),qn=Nn("w"),Wn=Nn("M"),Yn=Nn("Q"),Kn=Nn("y");function Gn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Jn=Gn("milliseconds"),Zn=Gn("seconds"),Xn=Gn("minutes"),Qn=Gn("hours"),ei=Gn("days"),ti=Gn("months"),ni=Gn("years");var ii=Math.round,ri={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function oi(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}var si=Math.abs;function ai(e){return(e>0)-(e<0)||+e}function li(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,o,s,a,l=si(this._milliseconds)/1e3,u=si(this._days),c=si(this._months),d=this.asSeconds();return d?(e=q(l/60),t=q(e/60),l%=60,e%=60,n=q(c/12),c%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",o=ai(this._months)!==ai(d)?"-":"",s=ai(this._days)!==ai(d)?"-":"",a=ai(this._milliseconds)!==ai(d)?"-":"",r+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+i+"S":"")):"P0D"}var ui=Nt.prototype;return ui.isValid=function(){return this._isValid},ui.abs=function(){var e=this._data;return this._milliseconds=Rn(this._milliseconds),this._days=Rn(this._days),this._months=Rn(this._months),e.milliseconds=Rn(e.milliseconds),e.seconds=Rn(e.seconds),e.minutes=Rn(e.minutes),e.hours=Rn(e.hours),e.months=Rn(e.months),e.years=Rn(e.years),this},ui.add=function(e,t){return Vn(this,e,t,1)},ui.subtract=function(e,t){return Vn(this,e,t,-1)},ui.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=U(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Ln(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Fn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},ui.asMilliseconds=Un,ui.asSeconds=$n,ui.asMinutes=zn,ui.asHours=Bn,ui.asDays=Hn,ui.asWeeks=qn,ui.asMonths=Wn,ui.asQuarters=Yn,ui.asYears=Kn,ui.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*W(this._months/12):NaN},ui._bubble=function(){var e,t,n,i,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*In(Fn(a)+s),s=0,a=0),l.milliseconds=o%1e3,e=q(o/1e3),l.seconds=e%60,t=q(e/60),l.minutes=t%60,n=q(t/60),l.hours=n%24,s+=q(n/24),a+=r=q(Ln(s)),s-=In(Fn(r)),i=q(a/12),a%=12,l.days=s,l.months=a,l.years=i,this},ui.clone=function(){return Jt(this)},ui.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():NaN},ui.milliseconds=Jn,ui.seconds=Zn,ui.minutes=Xn,ui.hours=Qn,ui.days=ei,ui.weeks=function(){return q(this.days()/7)},ui.months=ti,ui.years=ni,ui.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,o=ri;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(o=Object.assign({},ri,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),i=function(e,t,n,i){var r=Jt(e).abs(),o=ii(r.as("s")),s=ii(r.as("m")),a=ii(r.as("h")),l=ii(r.as("d")),u=ii(r.as("M")),c=ii(r.as("w")),d=ii(r.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||c<=1&&["w"]||c<n.w&&["ww",c]),(h=h||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=i,oi.apply(null,h)}(this,!r,o,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},ui.toISOString=li,ui.toString=li,ui.toJSON=li,ui.locale=an,ui.localeData=un,ui.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",li),ui.lang=ln,V("X",0,0,"unix"),V("x",0,0,"valueOf"),pe("x",ue),pe("X",/[+-]?\d+(\.\d{1,3})?/),ve("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ve("x",(function(e,t,n){n._d=new Date(W(e))})),i.version="2.29.4",t=Rt,i.fn=Mn,i.min=function(){return Lt("isBefore",[].slice.call(arguments,0))},i.max=function(){return Lt("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=p,i.unix=function(e){return Rt(1e3*e)},i.months=function(e,t){return Dn(e,t,"months")},i.isDate=c,i.locale=ft,i.invalid=g,i.duration=Jt,i.isMoment=_,i.weekdays=function(e,t,n){return jn(e,t,n,"weekdays")},i.parseZone=function(){return Rt.apply(null,arguments).parseZone()},i.localeData=gt,i.isDuration=Ut,i.monthsShort=function(e,t){return Dn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return jn(e,t,n,"weekdaysMin")},i.defineLocale=mt,i.updateLocale=function(e,t){if(null!=t){var n,i,r=lt;null!=ut[e]&&null!=ut[e].parentLocale?ut[e].set(M(ut[e]._config,t)):(null!=(i=pt(e))&&(r=i._config),t=M(r,t),null==i&&(t.abbr=e),(n=new P(t)).parentLocale=ut[e],ut[e]=n),ft(e)}else null!=ut[e]&&(null!=ut[e].parentLocale?(ut[e]=ut[e].parentLocale,e===ft()&&ft(e)):null!=ut[e]&&delete ut[e]);return ut[e]},i.locales=function(){return O(ut)},i.weekdaysShort=function(e,t,n){return jn(e,t,n,"weekdaysShort")},i.normalizeUnits=U,i.relativeTimeRounding=function(e){return void 0===e?ii:"function"==typeof e&&(ii=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==ri[e]&&(void 0===t?ri[e]:(ri[e]=t,"s"===e&&(ri.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=Mn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},17672:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});class i{constructor(e,t,n,i){if(isNaN(e)||isNaN(t))throw new Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=n||0,this.time=i||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class r{constructor(e,t,n,i,r,o){this.startPoint=e,this.control2=t,this.control1=n,this.endPoint=i,this.startWidth=r,this.endWidth=o}static fromPoints(e,t){const n=this.calculateControlPoints(e[0],e[1],e[2]).c2,i=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new r(e[1],n,i,e[2],t.start,t.end)}static calculateControlPoints(e,t,n){const r=e.x-t.x,o=e.y-t.y,s=t.x-n.x,a=t.y-n.y,l=(e.x+t.x)/2,u=(e.y+t.y)/2,c=(t.x+n.x)/2,d=(t.y+n.y)/2,h=Math.sqrt(r*r+o*o),p=Math.sqrt(s*s+a*a),f=p/(h+p),m=c+(l-c)*f,g=d+(u-d)*f,v=t.x-m,y=t.y-g;return{c1:new i(l+v,u+y),c2:new i(c+v,d+y)}}length(){let e,t,n=0;for(let i=0;i<=10;i+=1){const r=i/10,o=this.point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this.point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){const i=o-e,r=s-t;n+=Math.sqrt(i*i+r*r)}e=o,t=s}return n}point(e,t,n,i,r){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*i*(1-e)*e*e+r*e*e*e}}class o{constructor(){try{this._et=new EventTarget}catch(e){this._et=document}}addEventListener(e,t,n){this._et.addEventListener(e,t,n)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,n){this._et.removeEventListener(e,t,n)}}class s extends o{constructor(e,t={}){super(),this.canvas=e,this._drawningStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=e=>{1===e.buttons&&(this._drawningStroke=!0,this._strokeBegin(e))},this._handleMouseMove=e=>{this._drawningStroke&&this._strokeMoveUpdate(e)},this._handleMouseUp=e=>{1===e.buttons&&this._drawningStroke&&(this._drawningStroke=!1,this._strokeEnd(e))},this._handleTouchStart=e=>{if(e.cancelable&&e.preventDefault(),1===e.targetTouches.length){const t=e.changedTouches[0];this._strokeBegin(t)}},this._handleTouchMove=e=>{e.cancelable&&e.preventDefault();const t=e.targetTouches[0];this._strokeMoveUpdate(t)},this._handleTouchEnd=e=>{if(e.target===this.canvas){e.cancelable&&e.preventDefault();const t=e.changedTouches[0];this._strokeEnd(t)}},this._handlePointerStart=e=>{this._drawningStroke=!0,e.preventDefault(),this._strokeBegin(e)},this._handlePointerMove=e=>{this._drawningStroke&&(e.preventDefault(),this._strokeMoveUpdate(e))},this._handlePointerEnd=e=>{this._drawningStroke&&(e.preventDefault(),this._drawningStroke=!1,this._strokeEnd(e))},this.velocityFilterWeight=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle="throttle"in t?t.throttle:16,this.minDistance="minDistance"in t?t.minDistance:5,this.dotSize=t.dotSize||0,this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=t.compositeOperation||"source-over",this._strokeMoveUpdate=this.throttle?function(e,t=250){let n,i,r,o=0,s=null;const a=()=>{o=Date.now(),s=null,n=e.apply(i,r),s||(i=null,r=[])};return function(...l){const u=Date.now(),c=t-(u-o);return i=this,r=l,c<=0||c>t?(s&&(clearTimeout(s),s=null),o=u,n=e.apply(i,r),s||(i=null,r=[])):s||(s=window.setTimeout(a,c)),n}}(s.prototype._strokeUpdate,this.throttle):s.prototype._strokeUpdate,this._ctx=e.getContext("2d"),this.clear(),this.on()}clear(){const{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(e,t={}){return new Promise(((n,i)=>{const r=new Image,o=t.ratio||window.devicePixelRatio||1,s=t.width||this.canvas.width/o,a=t.height||this.canvas.height/o,l=t.xOffset||0,u=t.yOffset||0;this._reset(this._getPointGroupOptions()),r.onload=()=>{this._ctx.drawImage(r,l,u,s,a),n()},r.onerror=e=>{i(e)},r.crossOrigin="anonymous",r.src=e,this._isEmpty=!1}))}toDataURL(e="image/png",t){return"image/svg+xml"===e?("object"!=typeof t&&(t=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(t))}`):("number"!=typeof t&&(t=void 0),this.canvas.toDataURL(e,t))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const e=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!e?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e,{clear:t=!0}={}){t&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(e)}toData(){return this._data}_getPointGroupOptions(e){return{penColor:e&&"penColor"in e?e.penColor:this.penColor,dotSize:e&&"dotSize"in e?e.dotSize:this.dotSize,minWidth:e&&"minWidth"in e?e.minWidth:this.minWidth,maxWidth:e&&"maxWidth"in e?e.maxWidth:this.maxWidth,velocityFilterWeight:e&&"velocityFilterWeight"in e?e.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:e&&"compositeOperation"in e?e.compositeOperation:this.compositeOperation}}_strokeBegin(e){this.dispatchEvent(new CustomEvent("beginStroke",{detail:e}));const t=this._getPointGroupOptions(),n=Object.assign(Object.assign({},t),{points:[]});this._data.push(n),this._reset(t),this._strokeUpdate(e)}_strokeUpdate(e){if(0===this._data.length)return void this._strokeBegin(e);this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:e}));const t=e.clientX,n=e.clientY,i=void 0!==e.pressure?e.pressure:void 0!==e.force?e.force:0,r=this._createPoint(t,n,i),o=this._data[this._data.length-1],s=o.points,a=s.length>0&&s[s.length-1],l=!!a&&r.distanceTo(a)<=this.minDistance,u=this._getPointGroupOptions(o);if(!a||!a||!l){const e=this._addPoint(r,u);a?e&&this._drawCurve(e,u):this._drawDot(r,u),s.push({time:r.time,x:r.x,y:r.y,pressure:r.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:e}))}_strokeEnd(e){this._strokeUpdate(e),this.dispatchEvent(new CustomEvent("endStroke",{detail:e}))}_handlePointerEvents(){this._drawningStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawningStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(e){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(e.minWidth+e.maxWidth)/2,this._ctx.fillStyle=e.penColor,this._ctx.globalCompositeOperation=e.compositeOperation}_createPoint(e,t,n){const r=this.canvas.getBoundingClientRect();return new i(e-r.left,t-r.top,n,(new Date).getTime())}_addPoint(e,t){const{_lastPoints:n}=this;if(n.push(e),n.length>2){3===n.length&&n.unshift(n[0]);const e=this._calculateCurveWidths(n[1],n[2],t),i=r.fromPoints(n,e);return n.shift(),i}return null}_calculateCurveWidths(e,t,n){const i=n.velocityFilterWeight*t.velocityFrom(e)+(1-n.velocityFilterWeight)*this._lastVelocity,r=this._strokeWidth(i,n),o={end:r,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=r,o}_strokeWidth(e,t){return Math.max(t.maxWidth/(e+1),t.minWidth)}_drawCurveSegment(e,t,n){const i=this._ctx;i.moveTo(e,t),i.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(e,t){const n=this._ctx,i=e.endWidth-e.startWidth,r=2*Math.ceil(e.length());n.beginPath(),n.fillStyle=t.penColor;for(let n=0;n<r;n+=1){const o=n/r,s=o*o,a=s*o,l=1-o,u=l*l,c=u*l;let d=c*e.startPoint.x;d+=3*u*o*e.control1.x,d+=3*l*s*e.control2.x,d+=a*e.endPoint.x;let h=c*e.startPoint.y;h+=3*u*o*e.control1.y,h+=3*l*s*e.control2.y,h+=a*e.endPoint.y;const p=Math.min(e.startWidth+a*i,t.maxWidth);this._drawCurveSegment(d,h,p)}n.closePath(),n.fill()}_drawDot(e,t){const n=this._ctx,i=t.dotSize>0?t.dotSize:(t.minWidth+t.maxWidth)/2;n.beginPath(),this._drawCurveSegment(e.x,e.y,i),n.closePath(),n.fillStyle=t.penColor,n.fill()}_fromData(e,t,n){for(const r of e){const{points:e}=r,o=this._getPointGroupOptions(r);if(e.length>1)for(let n=0;n<e.length;n+=1){const r=e[n],s=new i(r.x,r.y,r.pressure,r.time);0===n&&this._reset(o);const a=this._addPoint(s,o);a&&t(a,o)}else this._reset(o),n(e[0],o)}}toSVG({includeBackgroundColor:e=!1}={}){const t=this._data,n=Math.max(window.devicePixelRatio||1,1),i=this.canvas.width/n,r=this.canvas.height/n,o=document.createElementNS("http://www.w3.org/2000/svg","svg");if(o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),o.setAttribute("viewBox",`0 0 ${i} ${r}`),o.setAttribute("width",i.toString()),o.setAttribute("height",r.toString()),e&&this.backgroundColor){const e=document.createElement("rect");e.setAttribute("width","100%"),e.setAttribute("height","100%"),e.setAttribute("fill",this.backgroundColor),o.appendChild(e)}return this._fromData(t,((e,{penColor:t})=>{const n=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){const i=`M ${e.startPoint.x.toFixed(3)},${e.startPoint.y.toFixed(3)} C ${e.control1.x.toFixed(3)},${e.control1.y.toFixed(3)} ${e.control2.x.toFixed(3)},${e.control2.y.toFixed(3)} ${e.endPoint.x.toFixed(3)},${e.endPoint.y.toFixed(3)}`;n.setAttribute("d",i),n.setAttribute("stroke-width",(2.25*e.endWidth).toFixed(3)),n.setAttribute("stroke",t),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),o.appendChild(n)}}),((e,{penColor:t,dotSize:n,minWidth:i,maxWidth:r})=>{const s=document.createElement("circle"),a=n>0?n:(i+r)/2;s.setAttribute("r",a.toString()),s.setAttribute("cx",e.x.toString()),s.setAttribute("cy",e.y.toString()),s.setAttribute("fill",t),o.appendChild(s)})),o.outerHTML}}},69887:function(e){"use strict";e.exports=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}},72574:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=t.FormioPathType=void 0;const r=i(n(87559)),o=n(22373),s=n(37080),a=n(98756),l=i(n(26729)),u=i(n(4389)),{fetch:c,Headers:d}=(0,r.default)(),h=i(n(97136));var p;!function(e){e.Subdirectories="Subdirectories",e.Subdomains="Subdomains"}(p||(t.FormioPathType=p={}));class f{constructor(e,t={}){if(this.path=e,this.options=t,this.base="",this.projectsUrl="",this.projectUrl="",this.projectId="",this.roleUrl="",this.rolesUrl="",this.roleId="",this.formUrl="",this.formsUrl="",this.formId="",this.submissionsUrl="",this.submissionUrl="",this.submissionId="",this.actionsUrl="",this.actionId="",this.actionUrl="",this.vsUrl="",this.vId="",this.vUrl="",this.query="",this.noProject=!1,!(this instanceof f))return new f(e);if(t.useSessionToken&&f.useSessionToken(t),t.hasOwnProperty("base")&&t.base?this.base=t.base:f.baseUrl?this.base=f.baseUrl:window&&window.location&&(this.base=window.location.href.match(/http[s]?:\/\/api./)[0]),!e)return this.projectUrl=f.projectUrl||`${this.base}/project`,this.projectsUrl=`${this.base}/project`,this.projectId="",void(this.query="");t.hasOwnProperty("project")&&t.project&&(this.projectUrl=t.project);const n=this.projectUrl||f.projectUrl,i=/(^|\/)(project)($|\/[^/]+)/,r=-1!==e.search(i);n&&this.base===n&&!r&&(this.noProject=!0,this.projectUrl=this.base),0!==e.indexOf("http")&&0!==e.indexOf("//")&&(e=this.base+e);const o=this.getUrlParts(e);let s="",a=[];if(o){s=o[1]+o[2];const t=(e=o.length>3?o[3]:"").split("?");t.length>1&&(e=t[0],this.query=`?${t[1]}`)}const l=(t,n)=>{this[`${t}sUrl`]=`${n}/${t}`;const i=new RegExp(`/${t}/([^/]+)`);return e&&-1!==e.search(i)&&(a=e.match(i),this[`${t}Url`]=a?n+a[0]:"",this[`${t}Id`]=a.length>1?a[1]:"",n+=a[0]),n},u=(e,t,n)=>{for(const i in e)if(e.hasOwnProperty(i)){const r=e[i];if(Array.isArray(r))u(r,t,!0);else{const e=l(r,t);t=n?t:e}}};if(!this.projectUrl||this.projectUrl===this.base)if(this.projectUrl||r||"Subdirectories"!==f.pathType)this.projectUrl=s;else{const e=`^${s.replace(/\//g,"\\/")}.[^/]+`,t=n.match(new RegExp(e));this.projectUrl=t?t[0]:s}let c=!1;if(f.pathType&&(c="Subdomains"!==f.pathType),!this.noProject){if(r)u(["project"],s),e=e.replace(i,"");else if(s===this.base){if(o&&o.length>3&&e.split("/").length>1){const t=e.match(/.json/),n=e.split("/");if(t)this.projectUrl=s;else{n.shift();const t=n.shift();t&&(this.projectId=t,e=`/${n.join("/")}`,this.projectUrl=`${s}/${this.projectId}`)}}}else o&&o.length>2&&(o[2].split(".").length>2||s.includes("localhost"))&&!c&&(this.projectUrl=s,this.projectId=o[2].split(".")[0]);this.projectsUrl=this.projectsUrl||`${this.base}/project`}if(u(["role"],this.projectUrl),/(^|\/)(form)($|\/)/.test(e))u(["form",["submission","action","v"]],this.projectUrl);else{const t=new RegExp("/(submission|action|v)($|/.*)"),n=e.match(t);n&&n.length>1&&(this.pathType=n[1]),e=(e=e.replace(t,"")).replace(/\/$/,""),this.formsUrl=`${this.projectUrl}/form`,this.formUrl=e?this.projectUrl+e:"",this.formId=e.replace(/^\/+|\/+$/g,"");const i=["submission","action","v"];for(const t in i)if(i.hasOwnProperty(t)){const r=i[t];this[`${r}sUrl`]=`${this.projectUrl+e}/${r}`,this.pathType===r&&n&&n.length>2&&n[2]&&(this[`${r}Id`]=n[2].replace(/^\/+|\/+$/g,""),this[`${r}Url`]=this.projectUrl+e+n[0])}}f.projectUrlSet||(f.projectUrl=this.projectUrl)}delete(e,t){const n=`${e}Url`;return this[`${e}Id`]?(f.cache={},this.makeRequest(e,this[n],"delete",null,t)):Promise.reject("Nothing to delete")}index(e,t,n){const i=`${e}Url`;return(t=t||"")&&(0,o.isObject)(t)&&(t=`?${f.serialize(t.params)}`),this.makeRequest(e,this[i]+t,"get",null,n)}save(e,t,n){const i=`${e}Id`,r=`${e}Url`,o=this[i]||t._id?"put":"post";let s=this[i]?this[r]:this[`${e}sUrl`];return this[i]||!t._id||"put"!==o||s.includes(t._id)||(s+=`/${t._id}`),f.cache={},this.makeRequest(e,s+this.query,o,t,n)}load(e,t,n){const i=`${e}Id`,r=`${e}Url`;if(t&&(0,o.isObject)(t)&&(t=f.serialize(t.params)),t=t?this.query?`${this.query}&${t}`:`?${t}`:this.query,!this[i])return Promise.reject(`Missing ${i}`);let s=this[r]+t;return"form"!==e||isNaN(parseInt(this.vId))||(s+=-1===s.indexOf("?")?"?":"&",s+=`formRevision=${this.vId}`),this.makeRequest(e,s,"get",null,n)}makeRequest(e,t,n,i,r){return f.makeRequest(this,e,t,n,i,r)}loadProject(e,t){return this.load("project",e,t)}saveProject(e,t){return this.save("project",e,t)}deleteProject(e){return this.delete("project",e)}static loadProjects(e,t){return e=e||"",(0,o.isObject)(e)&&(e=`?${f.serialize(e.params)}`),f.makeStaticRequest(`${f.baseUrl}/project${e}`,"GET",null,t)}loadRole(e){return this.load("role",null,e)}saveRole(e,t){return this.save("role",e,t)}deleteRole(e){return this.delete("role",e)}loadRoles(e){return this.index("roles",null,e)}loadForm(e,t){return this.load("form",e,t).then((n=>!n.revisions||isNaN(parseInt(this.vId))||"current"===n.revisions&&this.submissionId||n._vid==this.vId||n.revisionId===this.vId?n:(e&&(0,o.isObject)(e)&&(e=f.serialize(e.params)),e=e?this.query?`${this.query}&${e}`:`?${e}`:this.query,this.makeRequest("form",this.vUrl+e,"get",null,t).then((e=>(n._vid=e._vid,n.components=e.components,n.settings=e.settings,n.revisionId=e.revisionId,Object.assign({},n)))).catch((()=>Object.assign({},n))))))}saveForm(e,t){return this.save("form",e,t)}deleteForm(e){return this.delete("form",e)}loadForms(e,t){return this.index("forms",e,t)}loadSubmission(e,t){return this.load("submission",e,t).then((e=>(this.vId=e._frid||e._fvid,this.vUrl=`${this.formUrl}/v/${this.vId}`,e)))}saveSubmission(e,t){return isNaN(parseInt(this.vId))||e._fvid||(e._fvid=this.vId),this.save("submission",e,t)}deleteSubmission(e){return this.delete("submission",e)}loadSubmissions(e,t){return this.index("submissions",e,t)}loadAction(e,t){return this.load("action",e,t)}saveAction(e,t){return this.save("action",e,t)}deleteAction(e){return this.delete("action",e)}loadActions(e,t){return this.index("actions",e,t)}availableActions(){return this.makeRequest("availableActions",`${this.formUrl}/actions`)}actionInfo(e){return this.makeRequest("actionInfo",`${this.formUrl}/actions/${e}`)}isObjectId(e){return new RegExp("^[0-9a-fA-F]{24}$").test(e)}getProjectId(){return this.projectId?this.isObjectId(this.projectId)?Promise.resolve(this.projectId):this.loadProject().then((e=>e._id)):Promise.resolve("")}getFormId(){return this.formId?this.isObjectId(this.formId)?Promise.resolve(this.formId):this.loadForm().then((e=>e._id)):Promise.resolve("")}currentUser(e){return f.currentUser(this,e)}accessInfo(){return f.accessInfo(this)}oauthLogoutURI(e,t){return f.oauthLogoutURI(e,Object.assign({formio:this},this.options,t))}getToken(e){return f.getToken(Object.assign({formio:this},this.options,e))}setToken(e,t){return f.setToken(e,Object.assign({formio:this},this.options,t))}getTempToken(e,t,n){if(!f.getToken(n))return Promise.reject("You must be authenticated to generate a temporary auth token.");const i=f.authUrl||this.projectUrl;return this.makeRequest("tempToken",`${i}/token`,"GET",null,{ignoreCache:!0,header:new d({"x-expire":e,"x-allow":t})})}getDownloadUrl(e){if(!this.submissionId)return Promise.resolve("");if(!e)return this.loadForm().then((e=>e?this.getDownloadUrl(e):""));let t=`/project/${e.project}`;t+=`/form/${e._id}`,t+=`/submission/${this.submissionId}`;const n=e.submissionRevisions&&e.settings.changeLog?"/download/changelog":"/download";t+=n;let i=this.base+t;return new Promise(((e,n)=>{this.getTempToken(3600,`GET:${t}`).then((t=>{i+=`?token=${t.key}`,e(i)}),(()=>{e(i)})).catch(n)}))}userPermissions(e,t,n){return Promise.all([void 0!==t?Promise.resolve(t):this.loadForm(),void 0!==e?Promise.resolve(e):this.currentUser(),void 0===n&&this.submissionId?this.loadSubmission():Promise.resolve(n),this.accessInfo()]).then((e=>{const t=e.shift(),n=e.shift()||{_id:!1,roles:[]},i=e.shift(),r=e.shift(),a={create:"create",read:"read",update:"edit",delete:"delete"},l={user:n,form:t,access:r,create:!1,read:!1,edit:!1,delete:!1};for(const e in r.roles)if(r.roles.hasOwnProperty(e)){const t=r.roles[e];if(t.default&&!1===n._id)n.roles.push(t._id);else if(t.admin&&-1!==n.roles.indexOf(t._id))return l.create=!0,l.read=!0,l.delete=!0,l.edit=!0,l}if(t&&t.submissionAccess)for(let e=0;e<t.submissionAccess.length;e++){const r=t.submissionAccess[e],[s,u]=r.type.split("_");["create","read","update","delete"].includes(s)&&(0,o.intersection)(r.roles,n.roles).length&&(l[a[s]]="all"===u||!i||n._id===i.owner)}return i&&(0,s.eachComponent)(t.components,((e,t)=>{if(e&&e.defaultPermission){const r=(0,o.get)(i.data,t);(Array.isArray(r)?r:[r]).forEach((t=>{t&&t._id&&n.roles.indexOf(t._id)>-1&&("read"===e.defaultPermission&&(l[a.read]=!0),"create"===e.defaultPermission&&(l[a.create]=!0,l[a.read]=!0),"write"===e.defaultPermission&&(l[a.create]=!0,l[a.read]=!0,l[a.update]=!0),"admin"===e.defaultPermission&&(l[a.create]=!0,l[a.read]=!0,l[a.update]=!0,l[a.delete]=!0))}))}})),l}))}canSubmit(){return this.userPermissions().then((e=>!e.create&&f.getUser()?this.userPermissions(null).then((e=>!!e.create&&(f.setUser(null),!0))):e.create))}getUrlParts(e){return f.getUrlParts(e,this)}static getUrlParts(e,t){const n=t&&t.base?t.base:f.baseUrl;let i="^(http[s]?:\\/\\/)";return n&&0===e.indexOf(n)?i+=`(${n.replace(/^http[s]?:\/\//,"")})`:i+="([^/]+)",i+="($|\\/.*)",e.match(new RegExp(i))}static serialize(e,t){const n=[];for(const r in e)e.hasOwnProperty(r)&&n.push(`${encodeURIComponent(r)}=${encodeURIComponent((i=e[r],t?t(i):i))}`);var i;return n.join("&")}static getRequestArgs(e,t,n,i,r,s){i=(i||"GET").toUpperCase(),s&&(0,o.isObject)(s)||(s={});const a={url:n,method:i,data:r||null,opts:s};return t&&(a.type=t),e&&(a.formio=e),a}static makeStaticRequest(e,t,n,i){const r=f.getRequestArgs(null,"",e,t,n,i),s=h.default.pluginWait("preRequest",r).then((()=>h.default.pluginGet("staticRequest",r).then((e=>(0,o.isNil)(e)?f.request(r.url,r.method,r.data,r.opts.header,r.opts):e))));return h.default.pluginAlter("wrapStaticRequestPromise",s,r)}static makeRequest(e,t,n,i,r,s){if(!e)return f.makeStaticRequest(n,i,r,s);const a=f.getRequestArgs(e,t,n,i,r,s);a.opts=a.opts||{},a.opts.formio=e,a.opts.headers||(a.opts.headers={}),a.opts.headers=(0,o.defaults)(a.opts.headers,{Accept:"application/json","Content-type":"application/json"});const l=h.default.pluginWait("preRequest",a).then((()=>h.default.pluginGet("request",a).then((e=>(0,o.isNil)(e)?f.request(a.url,a.method,a.data,a.opts.header,a.opts):e))));return h.default.pluginAlter("wrapRequestPromise",l,a)}static request(e,t,n,i,r){if(!e)return Promise.reject("No url provided");t=(t||"GET").toUpperCase(),(0,o.isBoolean)(r)&&(r={ignoreCache:r}),r&&(0,o.isObject)(r)||(r={});const s=btoa(encodeURI(e));if(!r.ignoreCache&&"GET"===t&&f.cache.hasOwnProperty(s))return Promise.resolve(f.cloneResponse(f.cache[s]));"/"===e[0]&&(e=f.baseUrl+e);const a=i||new d(r.headers||{Accept:"application/json","Content-type":"application/json"}),l=f.getToken(r);l&&!r.noToken&&a.append("x-jwt-token",l);const u={};a.forEach((function(e,t){u[t]=e}));let c={method:t,headers:u,mode:"cors"};n&&(c.body=JSON.stringify(n)),c=h.default.pluginAlter("requestOptions",c,e),(c.namespace||f.namespace)&&(r.namespace=c.namespace||f.namespace);const p=c.headers["x-jwt-token"],m=h.default.pluginAlter("wrapFetchRequestPromise",f.fetch(e,c),{url:e,method:t,data:n,opts:r}).then((i=>{if(!(i=h.default.pluginAlter("requestResponse",i,f,n)).ok){if(440===i.status)f.setToken(null,r),f.events.emit("formio.sessionExpired",i.body);else if(401===i.status)f.events.emit("formio.unauthorized",i.body);else if(416===i.status)f.events.emit("formio.rangeIsNotSatisfiable",i.body);else if(504===i.status)return Promise.reject(new Error("Network request failed"));return(i.headers.get("content-type").includes("application/json")?i.json():i.text()).then((e=>Promise.reject(e)))}const s=i.headers.get("x-jwt-token");let a=!1;return"GET"!==t||p||!s||r.external||e.includes("token=")||e.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),a=!0),i.status>=200&&i.status<300&&s&&""!==s&&!a&&f.setToken(s,r),204===i.status?{}:(i.headers.get("content-type").includes("application/json")?i.json():i.text()).then((e=>{let t=i.headers.get("content-range");if(t&&(0,o.isObject)(e)){if(t=t.split("/"),"*"!==t[0]){const n=t[0].split("-");e.skip=Number(n[0]),e.limit=n[1]-n[0]+1}e.serverCount="*"===t[1]?t[1]:Number(t[1])}if(!r.getHeaders)return e;const n={};return i.headers.forEach(((e,t)=>{n[t]=e})),{result:e,headers:n}}))})).then((e=>r.getHeaders?e:("GET"===t&&(f.cache[s]=e),f.cloneResponse(e)))).catch((n=>("Bad Token"===n&&!1!==r.noToken&&(f.setToken(null,r),f.events.emit("formio.badToken",n)),n.message&&((n=new Error(`Could not connect to API server (${n.message}): ${e}`)).networkError=!0),"GET"===t&&delete f.cache[s],Promise.reject(n))));return m}static get token(){return f.tokens.formioToken||""}static set token(e){f.tokens.formioToken=e||""}static useSessionToken(e){let t=e;"object"==typeof e&&(e=e.namespace);const n=`${t||f.namespace||"formio"}Token`,i=localStorage.getItem(n);i&&(localStorage.removeItem(n),sessionStorage.setItem(n,i));const r=`${t||f.namespace||"formio"}User`,o=localStorage.getItem(r);o&&(localStorage.removeItem(r),sessionStorage.setItem(r,o)),localStorage.setItem("useSessionToken","true")}static setToken(e="",t={}){e=e||"";const n=`${(t="string"==typeof t?{namespace:t}:t||{}).namespace||f.namespace||"formio"}Token`;f.tokens||(f.tokens={});const i=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){t.fromUser||(t.fromToken=!0,f.setUser(null,t));try{i.removeItem(n)}catch(e){u.default.erase(n,{path:"/"})}return f.tokens[n]=e,Promise.resolve(null)}if(f.tokens[n]!==e){f.tokens[n]=e;try{i.setItem(n,e)}catch(t){u.default.set(n,e,{path:"/"})}}return f.currentUser(t.formio,t)}static getToken(e){const t=`${(e="string"==typeof e?{namespace:e}:e||{}).namespace||f.namespace||"formio"}Token`,n=e.decode?`${t}Decoded`:t;if(f.tokens||(f.tokens={}),f.tokens[n])return f.tokens[n];try{const i=localStorage.getItem("useSessionToken")?sessionStorage.getItem(t):localStorage.getItem(t);return f.tokens[t]=i||"",e.decode?(f.tokens[n]=f.tokens[t]?(0,a.jwtDecode)(f.tokens[t]):{},f.tokens[n]):f.tokens[t]}catch(e){return f.tokens[t]=u.default.get(t),""}}static setUser(e,t={}){const n=`${t.namespace||f.namespace||"formio"}User`,i=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){t.fromToken||(t.fromUser=!0,f.setToken(null,t)),f.events.emit("formio.user",null);try{return i.removeItem(n)}catch(e){return u.default.erase(n,{path:"/"})}}try{i.setItem(n,JSON.stringify(e))}catch(t){u.default.set(n,JSON.stringify(e),{path:"/"})}f.events.emit("formio.user",e)}static getUser(e){const t=`${(e=e||{}).namespace||f.namespace||"formio"}User`;try{return JSON.parse((localStorage.getItem("useSessionToken")?sessionStorage:localStorage).getItem(t)||"")}catch(e){return JSON.parse(u.default.get(t))}}static setBaseUrl(e){f.baseUrl=e,f.projectUrlSet||(f.projectUrl=e)}static getBaseUrl(){return f.baseUrl}static setApiUrl(e){return f.setBaseUrl(e)}static getApiUrl(){return f.getBaseUrl()}static setAppUrl(e){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),f.projectUrl=e,f.projectUrlSet=!0}static setProjectUrl(e){f.projectUrl=e,f.projectUrlSet=!0}static setAuthUrl(e){f.authUrl=e}static getAppUrl(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),f.projectUrl}static getProjectUrl(){return f.projectUrl}static clearCache(){f.cache={}}static accessInfo(e){const t=e?e.projectUrl:f.projectUrl;return f.makeRequest(e,"accessInfo",`${t}/access`)}static projectRoles(e){const t=e?e.projectUrl:f.projectUrl;return f.makeRequest(e,"projectRoles",`${t}/role`)}static currentUser(e,t={}){let n=f.authUrl;if(n||(n=e?e.projectUrl:f.projectUrl||f.baseUrl),n+="/current",!t.ignoreCache||t.fromCurrent){const e=f.getUser(t);if(e)return h.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(e),{url:n,method:"GET",options:t})}const i=f.getToken(t);return t&&t.external||i?(t.fromCurrent=!0,f.makeRequest(e,"currentUser",n,"GET",null,t).then((e=>(f.setUser(e,t),e)))):h.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(null),{url:n,method:"GET",options:t})}static logout(e,t={}){t.formio=e;const n=f.authUrl?f.authUrl:e?e.projectUrl:f.baseUrl,i=()=>{f.setToken(null,t),f.setUser(null,t),f.clearCache(),localStorage.removeItem("useSessionToken")};return f.makeRequest(e,"logout",`${n}/logout`).then((function(e){return i(),e.shouldRedirect&&e.url&&(window.location.href=e.url),e})).catch((function(e){throw i(),e}))}static pageQuery(){const e={paths:[]},t=location.hash.substr(1).replace(/\?/g,"&").split("&");let n=[];return location.search.substr(1).split("&").forEach((function(t){n=t.split("="),n.length>1&&(e[n[0]]=n[1]&&decodeURIComponent(n[1]))})),t.forEach((function(t){n=t.split("="),n.length>1?e[n[0]]=n[1]&&decodeURIComponent(n[1]):0===t.indexOf("/")&&(e.paths=t.substr(1).split("/"))})),e}static oAuthCurrentUser(e,t){return f.currentUser(e,{external:!0,headers:{Authorization:`Bearer ${t}`}})}static oauthLogoutURI(e,t){const n=`${(t="string"==typeof t?{namespace:t}:t||{}).namespace||f.namespace||"formio"}LogoutAuthUrl`;return f.tokens[n],localStorage.setItem(n,e),f.tokens[n]}static samlInit(e={}){const t=f.pageQuery();if(t.saml){f.setUser(null);const e=f.setToken(t.saml);let n=window.location.toString();return n=n.substring(0,n.indexOf("?")),window.location.hash&&(n+=window.location.hash),window.history.replaceState({},document.title,n),e}e.relay||(e.relay=window.location.href);const n=f.authUrl||f.projectUrl;return window.location.href=`${n}/saml/sso?relay=${encodeURI(e.relay)}`,!1}static oktaInit(e={}){if(void 0!==typeof OktaAuth&&(e.OktaAuth=OktaAuth),void 0===typeof e.OktaAuth){const e="Cannot find OktaAuth. Please include the Okta JavaScript SDK within your application. See https://developer.okta.com/code/javascript/okta_auth_sdk for an example.";return console.warn(e),Promise.reject(e)}return new Promise(((t,n)=>{const i=e.OktaAuth;delete e.OktaAuth;const r=new i(e);r.tokenManager.get("accessToken").then((i=>{i?t(f.oAuthCurrentUser(e.formio,i.accessToken)):location.hash?r.token.parseFromUrl().then((n=>{r.tokenManager.add("accessToken",n),t(f.oAuthCurrentUser(e.formio,n.accessToken))})).catch((e=>{console.warn(e),n(e)})):(r.token.getWithRedirect({responseType:"token",scopes:e.scopes}),t(!1))})).catch((e=>{n(e)}))}))}static ssoInit(e,t={}){switch(e){case"saml":return f.samlInit(t);case"okta":return f.oktaInit(t);default:return console.warn("Unknown SSO type"),Promise.reject("Unknown SSO type")}}static requireLibrary(e,t,n,i=!1,r){if(!f.libraries.hasOwnProperty(e)){f.libraries[e]={},f.libraries[e].ready=new Promise(((t,n)=>{f.libraries[e].resolve=t,f.libraries[e].reject=n}));const s=`${e}Callback`;i||window[s]||(window[s]=()=>f.libraries[e].resolve());const a=(0,o.get)(window,t);if(a)f.libraries[e].resolve(a);else if((n=Array.isArray(n)?n:[n]).forEach((t=>{let n={},i="";switch("string"==typeof t&&(t={type:"script",src:t}),t.type){case"script":i="script",n={src:t.src,type:"text/javascript",defer:!0,async:!0,referrerpolicy:"origin"};break;case"styles":i="link",n={href:t.src,rel:"stylesheet"}}const o=document.createElement(i);if(o.setAttribute)for(const e in n)o.setAttribute(e,n[e]);r&&o.addEventListener("load",(()=>{f.libraries[e].loaded=!0,r(f.libraries[e].ready)}));const{head:s}=document;s&&s.appendChild(o)})),i){const n=setInterval((()=>{const i=(0,o.get)(window,t);i&&(clearInterval(n),f.libraries[e].resolve(i))}),200)}}const s=f.libraries[e];return r&&s.loaded?r(s.ready):s.ready}static libraryReady(e){return f.libraries.hasOwnProperty(e)&&f.libraries[e].ready?f.libraries[e].ready:Promise.reject(`${e} library was not required.`)}static cloneResponse(e){const t=(0,o.fastCloneDeep)(e);return Array.isArray(e)&&(t.skip=e.skip,t.limit=e.limit,t.serverCount=e.serverCount),t}static setPathType(e){"string"==typeof e&&(f.pathType=e)}static getPathType(){return f.pathType}}t.Formio=f,f.baseUrl="https://api.form.io",f.projectUrl="",f.authUrl="",f.projectUrlSet=!1,f.cache={},f.namespace="",f.events=new l.default,f.libraries={},f.fetch=c,f.Headers=d,f.tokens={},f.version="---VERSION---",f.plugins=h.default.plugins,f.deregisterPlugin=h.default.deregisterPlugin,f.registerPlugin=h.default.registerPlugin,f.getPlugin=h.default.getPlugin,f.pluginWait=h.default.pluginWait,f.pluginGet=h.default.pluginGet,f.pluginAlter=h.default.pluginAlter,h.default.Formio=f},31051:function(e,t,n){"use strict";function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function r(e){return e instanceof i(e).Element||e instanceof Element}function o(e){return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof i(e).ShadowRoot||e instanceof ShadowRoot)}n.r(t),n.d(t,{animateFill:function(){return ct},createSingleton:function(){return at},default:function(){return yt},delegate:function(){return ut},followCursor:function(){return ft},hideAll:function(){return ot},inlinePositioning:function(){return mt},roundArrow:function(){return he},sticky:function(){return gt}});var a=Math.max,l=Math.min,u=Math.round;function c(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function d(){return!/^((?!chrome|android).)*safari/i.test(c())}function h(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var s=e.getBoundingClientRect(),a=1,l=1;t&&o(e)&&(a=e.offsetWidth>0&&u(s.width)/e.offsetWidth||1,l=e.offsetHeight>0&&u(s.height)/e.offsetHeight||1);var c=(r(e)?i(e):window).visualViewport,h=!d()&&n,p=(s.left+(h&&c?c.offsetLeft:0))/a,f=(s.top+(h&&c?c.offsetTop:0))/l,m=s.width/a,g=s.height/l;return{width:m,height:g,top:f,right:p+m,bottom:f+g,left:p,x:p,y:f}}function p(e){var t=i(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function f(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((r(e)?e.ownerDocument:e.document)||window.document).documentElement}function g(e){return h(m(e)).left+p(e).scrollLeft}function v(e){return i(e).getComputedStyle(e)}function y(e){var t=v(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function b(e,t,n){void 0===n&&(n=!1);var r,s,a=o(t),l=o(t)&&function(e){var t=e.getBoundingClientRect(),n=u(t.width)/e.offsetWidth||1,i=u(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),c=m(t),d=h(e,l,n),v={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(a||!a&&!n)&&(("body"!==f(t)||y(c))&&(v=(r=t)!==i(r)&&o(r)?{scrollLeft:(s=r).scrollLeft,scrollTop:s.scrollTop}:p(r)),o(t)?((b=h(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):c&&(b.x=g(c))),{x:d.left+v.scrollLeft-b.x,y:d.top+v.scrollTop-b.y,width:d.width,height:d.height}}function w(e){var t=h(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function _(e){return"html"===f(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||m(e)}function k(e){return["html","body","#document"].indexOf(f(e))>=0?e.ownerDocument.body:o(e)&&y(e)?e:k(_(e))}function C(e,t){var n;void 0===t&&(t=[]);var r=k(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),s=i(r),a=o?[s].concat(s.visualViewport||[],y(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(C(_(a)))}function O(e){return["table","td","th"].indexOf(f(e))>=0}function x(e){return o(e)&&"fixed"!==v(e).position?e.offsetParent:null}function E(e){for(var t=i(e),n=x(e);n&&O(n)&&"static"===v(n).position;)n=x(n);return n&&("html"===f(n)||"body"===f(n)&&"static"===v(n).position)?t:n||function(e){var t=/firefox/i.test(c());if(/Trident/i.test(c())&&o(e)&&"fixed"===v(e).position)return null;var n=_(e);for(s(n)&&(n=n.host);o(n)&&["html","body"].indexOf(f(n))<0;){var i=v(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var S="top",M="bottom",P="right",A="left",T="auto",D=[S,M,P,A],j="start",R="end",V="viewport",I="popper",L=D.reduce((function(e,t){return e.concat([t+"-"+j,t+"-"+R])}),[]),F=[].concat(D,[T]).reduce((function(e,t){return e.concat([t,t+"-"+j,t+"-"+R])}),[]),N=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function U(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}var $={placement:"bottom",modifiers:[],strategy:"absolute"};function z(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function B(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,s=void 0===o?$:o;return function(e,t,n){void 0===n&&(n=s);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},$,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],c=!1,d={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;h(),l.options=Object.assign({},s,l.options,o),l.scrollParents={reference:r(e)?C(e):e.contextElement?C(e.contextElement):[],popper:C(t)};var a,c,p=function(e){var t=U(e);return N.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(i,l.options.modifiers),c=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var o=r({state:l,name:t,instance:d,options:i});u.push(o||function(){})}})),d.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(z(t,n)){l.rects={reference:b(t,E(n),"fixed"===l.options.strategy),popper:w(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<l.orderedModifiers.length;i++)if(!0!==l.reset){var r=l.orderedModifiers[i],o=r.fn,s=r.options,a=void 0===s?{}:s,u=r.name;"function"==typeof o&&(l=o({state:l,options:a,name:u,instance:d})||l)}else l.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(e){d.forceUpdate(),e(l)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){h(),c=!0}};if(!z(e,t))return d;function h(){u.forEach((function(e){return e()})),u=[]}return d.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var H={passive:!0};function q(e){return e.split("-")[0]}function W(e){return e.split("-")[1]}function Y(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function K(e){var t,n=e.reference,i=e.element,r=e.placement,o=r?q(r):null,s=r?W(r):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case S:t={x:a,y:n.y-i.height};break;case M:t={x:a,y:n.y+n.height};break;case P:t={x:n.x+n.width,y:l};break;case A:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?Y(o):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case j:t[u]=t[u]-(n[c]/2-i[c]/2);break;case R:t[u]=t[u]+(n[c]/2-i[c]/2)}}return t}var G={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,h=e.roundOffsets,p=e.isFixed,f=a.x,g=void 0===f?0:f,y=a.y,b=void 0===y?0:y,w="function"==typeof h?h({x:g,y:b}):{x:g,y:b};g=w.x,b=w.y;var _=a.hasOwnProperty("x"),k=a.hasOwnProperty("y"),C=A,O=S,x=window;if(d){var T=E(n),D="clientHeight",j="clientWidth";T===i(n)&&"static"!==v(T=m(n)).position&&"absolute"===l&&(D="scrollHeight",j="scrollWidth"),(o===S||(o===A||o===P)&&s===R)&&(O=M,b-=(p&&T===x&&x.visualViewport?x.visualViewport.height:T[D])-r.height,b*=c?1:-1),o!==A&&(o!==S&&o!==M||s!==R)||(C=P,g-=(p&&T===x&&x.visualViewport?x.visualViewport.width:T[j])-r.width,g*=c?1:-1)}var V,I=Object.assign({position:l},d&&G),L=!0===h?function(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:u(n*r)/r||0,y:u(i*r)/r||0}}({x:g,y:b},i(n)):{x:g,y:b};return g=L.x,b=L.y,c?Object.assign({},I,((V={})[O]=k?"0":"",V[C]=_?"0":"",V.transform=(x.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",V)):Object.assign({},I,((t={})[O]=k?b+"px":"",t[C]=_?g+"px":"",t.transform="",t))}const Z={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];o(r)&&f(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});o(i)&&f(i)&&(Object.assign(i.style,s),Object.keys(r).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};var X={left:"right",right:"left",bottom:"top",top:"bottom"};function Q(e){return e.replace(/left|right|bottom|top/g,(function(e){return X[e]}))}var ee={start:"end",end:"start"};function te(e){return e.replace(/start|end/g,(function(e){return ee[e]}))}function ne(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&s(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function ie(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function re(e,t,n){return t===V?ie(function(e,t){var n=i(e),r=m(e),o=n.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){s=o.width,a=o.height;var c=d();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:s,height:a,x:l+g(e),y:u}}(e,n)):r(t)?function(e,t){var n=h(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ie(function(e){var t,n=m(e),i=p(e),r=null==(t=e.ownerDocument)?void 0:t.body,o=a(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=a(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-i.scrollLeft+g(e),u=-i.scrollTop;return"rtl"===v(r||n).direction&&(l+=a(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:l,y:u}}(m(e)))}function oe(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function se(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ae(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,u=n.strategy,c=void 0===u?e.strategy:u,d=n.boundary,p=void 0===d?"clippingParents":d,g=n.rootBoundary,y=void 0===g?V:g,b=n.elementContext,w=void 0===b?I:b,k=n.altBoundary,O=void 0!==k&&k,x=n.padding,A=void 0===x?0:x,T=oe("number"!=typeof A?A:se(A,D)),j=w===I?"reference":I,R=e.rects.popper,L=e.elements[O?j:w],F=function(e,t,n,i){var s="clippingParents"===t?function(e){var t=C(_(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&o(e)?E(e):e;return r(n)?t.filter((function(e){return r(e)&&ne(e,n)&&"body"!==f(e)})):[]}(e):[].concat(t),u=[].concat(s,[n]),c=u[0],d=u.reduce((function(t,n){var r=re(e,n,i);return t.top=a(r.top,t.top),t.right=l(r.right,t.right),t.bottom=l(r.bottom,t.bottom),t.left=a(r.left,t.left),t}),re(e,c,i));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}(r(L)?L:L.contextElement||m(e.elements.popper),p,y,c),N=h(e.elements.reference),U=K({reference:N,element:R,strategy:"absolute",placement:s}),$=ie(Object.assign({},R,U)),z=w===I?$:N,B={top:F.top-z.top+T.top,bottom:z.bottom-F.bottom+T.bottom,left:F.left-z.left+T.left,right:z.right-F.right+T.right},H=e.modifiersData.offset;if(w===I&&H){var q=H[s];Object.keys(B).forEach((function(e){var t=[P,M].indexOf(e)>=0?1:-1,n=[S,M].indexOf(e)>=0?"y":"x";B[e]+=q[n]*t}))}return B}function le(e,t,n){return a(e,l(t,n))}function ue(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ce(e){return[S,P,M,A].some((function(t){return e[t]>=0}))}var de=B({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=void 0===o||o,a=r.resize,l=void 0===a||a,u=i(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach((function(e){e.addEventListener("scroll",n.update,H)})),l&&u.addEventListener("resize",n.update,H),function(){s&&c.forEach((function(e){e.removeEventListener("scroll",n.update,H)})),l&&u.removeEventListener("resize",n.update,H)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=K({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,u={placement:q(t.placement),variation:W(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,J(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,J(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Z,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,o=void 0===r?[0,0]:r,s=F.reduce((function(e,n){return e[n]=function(e,t,n){var i=q(e),r=[A,S].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[A,P].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,o),e}),{}),a=s[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[i]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=q(g),y=l||(v!==g&&f?function(e){if(q(e)===T)return[];var t=Q(e);return[te(e),t,te(t)]}(g):[Q(g)]),b=[g].concat(y).reduce((function(e,n){return e.concat(q(n)===T?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?F:l,c=W(i),d=c?a?L:L.filter((function(e){return W(e)===c})):D,h=d.filter((function(e){return u.indexOf(e)>=0}));0===h.length&&(h=d);var p=h.reduce((function(t,n){return t[n]=ae(e,{placement:n,boundary:r,rootBoundary:o,padding:s})[q(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,_=t.rects.popper,k=new Map,C=!0,O=b[0],x=0;x<b.length;x++){var E=b[x],R=q(E),V=W(E)===j,I=[S,M].indexOf(R)>=0,N=I?"width":"height",U=ae(t,{placement:E,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),$=I?V?P:A:V?M:S;w[N]>_[N]&&($=Q($));var z=Q($),B=[];if(o&&B.push(U[R]<=0),a&&B.push(U[$]<=0,U[z]<=0),B.every((function(e){return e}))){O=E,C=!1;break}k.set(E,B)}if(C)for(var H=function(e){var t=b.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},Y=f?3:1;Y>0&&"break"!==H(Y);Y--);t.placement!==O&&(t.modifiersData[i]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=void 0===r||r,s=n.altAxis,u=void 0!==s&&s,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.padding,f=n.tether,m=void 0===f||f,g=n.tetherOffset,v=void 0===g?0:g,y=ae(t,{boundary:c,rootBoundary:d,padding:p,altBoundary:h}),b=q(t.placement),_=W(t.placement),k=!_,C=Y(b),O="x"===C?"y":"x",x=t.modifiersData.popperOffsets,T=t.rects.reference,D=t.rects.popper,R="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,V="number"==typeof R?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(x){if(o){var F,N="y"===C?S:A,U="y"===C?M:P,$="y"===C?"height":"width",z=x[C],B=z+y[N],H=z-y[U],K=m?-D[$]/2:0,G=_===j?T[$]:D[$],J=_===j?-D[$]:-T[$],Z=t.elements.arrow,X=m&&Z?w(Z):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Q[N],te=Q[U],ne=le(0,T[$],X[$]),ie=k?T[$]/2-K-ne-ee-V.mainAxis:G-ne-ee-V.mainAxis,re=k?-T[$]/2+K+ne+te+V.mainAxis:J+ne+te+V.mainAxis,oe=t.elements.arrow&&E(t.elements.arrow),se=oe?"y"===C?oe.clientTop||0:oe.clientLeft||0:0,ue=null!=(F=null==I?void 0:I[C])?F:0,ce=z+re-ue,de=le(m?l(B,z+ie-ue-se):B,z,m?a(H,ce):H);x[C]=de,L[C]=de-z}if(u){var he,pe="x"===C?S:A,fe="x"===C?M:P,me=x[O],ge="y"===O?"height":"width",ve=me+y[pe],ye=me-y[fe],be=-1!==[S,A].indexOf(b),we=null!=(he=null==I?void 0:I[O])?he:0,_e=be?ve:me-T[ge]-D[ge]-we+V.altAxis,ke=be?me+T[ge]+D[ge]-we-V.altAxis:ye,Ce=m&&be?function(e,t,n){var i=le(e,t,n);return i>n?n:i}(_e,me,ke):le(m?_e:ve,me,m?ke:ye);x[O]=Ce,L[O]=Ce-me}t.modifiersData[i]=L}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=q(n.placement),l=Y(a),u=[A,P].indexOf(a)>=0?"height":"width";if(o&&s){var c=function(e,t){return oe("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:se(e,D))}(r.padding,n),d=w(o),h="y"===l?S:A,p="y"===l?M:P,f=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],m=s[l]-n.rects.reference[l],g=E(o),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,b=c[h],_=v-d[u]-c[p],k=v/2-d[u]/2+y,C=le(b,k,_),O=l;n.modifiersData[i]=((t={})[O]=C,t.centerOffset=C-k,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&ne(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=ae(t,{elementContext:"reference"}),a=ae(t,{altBoundary:!0}),l=ue(s,i),u=ue(a,r,o),c=ce(l),d=ce(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),he='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',pe="tippy-content",fe="tippy-backdrop",me="tippy-arrow",ge="tippy-svg-arrow",ve={passive:!0,capture:!0},ye=function(){return document.body};function be(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function we(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function _e(e,t){return"function"==typeof e?e.apply(void 0,t):e}function ke(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function Ce(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function Oe(e){return[].concat(e)}function xe(e,t){-1===e.indexOf(t)&&e.push(t)}function Ee(e){return e.split("-")[0]}function Se(e){return[].slice.call(e)}function Me(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Pe(){return document.createElement("div")}function Ae(e){return["Element","Fragment"].some((function(t){return we(e,t)}))}function Te(e){return we(e,"MouseEvent")}function De(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function je(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Re(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Ve(e){var t,n=Oe(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function Ie(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}function Le(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var Fe={isTouch:!1},Ne=0;function Ue(){Fe.isTouch||(Fe.isTouch=!0,window.performance&&document.addEventListener("mousemove",$e))}function $e(){var e=performance.now();e-Ne<20&&(Fe.isTouch=!1,document.removeEventListener("mousemove",$e)),Ne=e}function ze(){var e=document.activeElement;if(De(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var Be=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),He=Object.assign({appendTo:ye,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),qe=Object.keys(He);function We(e){var t=(e.plugins||[]).reduce((function(t,n){var i,r=n.name,o=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:null!=(i=He[r])?i:o),t}),{});return Object.assign({},e,t)}function Ye(e,t){var n=Object.assign({},t,{content:_e(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(We(Object.assign({},He,{plugins:t}))):qe).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},He.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var Ke=function(){return"innerHTML"};function Ge(e,t){e[Ke()]=t}function Je(e){var t=Pe();return!0===e?t.className=me:(t.className=ge,Ae(e)?t.appendChild(e):Ge(t,e)),t}function Ze(e,t){Ae(t.content)?(Ge(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Ge(e,t.content):e.textContent=t.content)}function Xe(e){var t=e.firstElementChild,n=Se(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(pe)})),arrow:n.find((function(e){return e.classList.contains(me)||e.classList.contains(ge)})),backdrop:n.find((function(e){return e.classList.contains(fe)}))}}function Qe(e){var t=Pe(),n=Pe();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=Pe();function r(n,i){var r=Xe(t),o=r.box,s=r.content,a=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||Ze(s,e.props),i.arrow?a?n.arrow!==i.arrow&&(o.removeChild(a),o.appendChild(Je(i.arrow))):o.appendChild(Je(i.arrow)):a&&o.removeChild(a)}return i.className=pe,i.setAttribute("data-state","hidden"),Ze(i,e.props),t.appendChild(n),n.appendChild(i),r(e.props,e.props),{popper:t,onUpdate:r}}Qe.$$tippy=!0;var et=1,tt=[],nt=[];function it(e,t){var n,i,r,o,s,a,l,u,c=Ye(e,Object.assign({},He,We(Me(t)))),d=!1,h=!1,p=!1,f=!1,m=[],g=ke(Y,c.interactiveDebounce),v=et++,y=(u=c.plugins).filter((function(e,t){return u.indexOf(e)===t})),b={id:v,reference:e,popper:Pe(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){if(!b.state.isDestroyed){j("onBeforeUpdate",[b,t]),q();var n=b.props,i=Ye(e,Object.assign({},n,Me(t),{ignoreAttributes:!0}));b.props=i,H(),n.interactiveDebounce!==i.interactiveDebounce&&(I(),g=ke(Y,i.interactiveDebounce)),n.triggerTarget&&!i.triggerTarget?Oe(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):i.triggerTarget&&e.removeAttribute("aria-expanded"),V(),D(),k&&k(n,i),b.popperInstance&&(Z(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),j("onAfterUpdate",[b,t])}},setContent:function(e){b.setProps({content:e})},show:function(){var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=Fe.isTouch&&!b.props.touch,r=be(b.props.duration,0,He.duration);if(!(e||t||n||i||M().hasAttribute("disabled")||(j("onShow",[b],!1),!1===b.props.onShow(b)))){if(b.state.isVisible=!0,S()&&(_.style.visibility="visible"),D(),U(),b.state.isMounted||(_.style.transition="none"),S()){var o=A();je([o.box,o.content],0)}var s,l,u;a=function(){var e;if(b.state.isVisible&&!f){if(f=!0,_.offsetHeight,_.style.transition=b.props.moveTransition,S()&&b.props.animation){var t=A(),n=t.box,i=t.content;je([n,i],r),Re([n,i],"visible")}R(),V(),xe(nt,b),null==(e=b.popperInstance)||e.forceUpdate(),j("onMount",[b]),b.props.animation&&S()&&function(e,t){z(e,(function(){b.state.isShown=!0,j("onShown",[b])}))}(r)}},l=b.props.appendTo,u=M(),(s=b.props.interactive&&l===ye||"parent"===l?u.parentNode:_e(l,[u])).contains(_)||s.appendChild(_),b.state.isMounted=!0,Z()}},hide:function(){var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=be(b.props.duration,1,He.duration);if(!(e||t||n)&&(j("onHide",[b],!1),!1!==b.props.onHide(b))){if(b.state.isVisible=!1,b.state.isShown=!1,f=!1,d=!1,S()&&(_.style.visibility="hidden"),I(),$(),D(!0),S()){var r=A(),o=r.box,s=r.content;b.props.animation&&(je([o,s],i),Re([o,s],"hidden"))}R(),V(),b.props.animation?S()&&function(e,t){z(e,(function(){!b.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&t()}))}(i,b.unmount):b.unmount()}},hideWithInteractivity:function(e){P().addEventListener("mousemove",g),xe(tt,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide(),b.state.isMounted&&(X(),Q().forEach((function(e){e._tippy.unmount()})),_.parentNode&&_.parentNode.removeChild(_),nt=nt.filter((function(e){return e!==b})),b.state.isMounted=!1,j("onHidden",[b]))},destroy:function(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),q(),delete e._tippy,b.state.isDestroyed=!0,j("onDestroy",[b]))}};if(!c.render)return b;var w=c.render(b),_=w.popper,k=w.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+b.id,b.popper=_,e._tippy=b,_._tippy=b;var C=y.map((function(e){return e.fn(b)})),O=e.hasAttribute("aria-expanded");return H(),V(),D(),j("onCreate",[b]),c.showOnCreate&&ee(),_.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),_.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&P().addEventListener("mousemove",g)})),b;function x(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===x()[0]}function S(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function M(){return l||e}function P(){var e=M().parentNode;return e?Ve(e):document}function A(){return Xe(_)}function T(e){return b.state.isMounted&&!b.state.isVisible||Fe.isTouch||o&&"focus"===o.type?0:be(b.props.delay,e?0:1,He.delay)}function D(e){void 0===e&&(e=!1),_.style.pointerEvents=b.props.interactive&&!e?"":"none",_.style.zIndex=""+b.props.zIndex}function j(e,t,n){var i;void 0===n&&(n=!0),C.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(i=b.props)[e].apply(i,t)}function R(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,i=_.id;Oe(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function V(){!O&&b.props.aria.expanded&&Oe(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===M()?"true":"false"):e.removeAttribute("aria-expanded")}))}function I(){P().removeEventListener("mousemove",g),tt=tt.filter((function(e){return e!==g}))}function L(t){if(!Fe.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!Le(_,n)){if(Oe(b.props.triggerTarget||e).some((function(e){return Le(e,n)}))){if(Fe.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else j("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),h=!0,setTimeout((function(){h=!1})),b.state.isMounted||$())}}}function F(){p=!0}function N(){p=!1}function U(){var e=P();e.addEventListener("mousedown",L,!0),e.addEventListener("touchend",L,ve),e.addEventListener("touchstart",N,ve),e.addEventListener("touchmove",F,ve)}function $(){var e=P();e.removeEventListener("mousedown",L,!0),e.removeEventListener("touchend",L,ve),e.removeEventListener("touchstart",N,ve),e.removeEventListener("touchmove",F,ve)}function z(e,t){var n=A().box;function i(e){e.target===n&&(Ie(n,"remove",i),t())}if(0===e)return t();Ie(n,"remove",s),Ie(n,"add",i),s=i}function B(t,n,i){void 0===i&&(i=!1),Oe(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,i),m.push({node:e,eventType:t,handler:n,options:i})}))}function H(){var e;E()&&(B("touchstart",W,{passive:!0}),B("touchend",K,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(B(e,W),e){case"mouseenter":B("mouseleave",K);break;case"focus":B(Be?"focusout":"blur",G);break;case"focusin":B("focusout",G)}}))}function q(){m.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),m=[]}function W(e){var t,n=!1;if(b.state.isEnabled&&!J(e)&&!h){var i="focus"===(null==(t=o)?void 0:t.type);o=e,l=e.currentTarget,V(),!b.state.isVisible&&Te(e)&&tt.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!i&&te(e)}}function Y(e){var t=e.target,n=M().contains(t)||_.contains(t);if("mousemove"!==e.type||!n){var i=Q().concat(_).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null})).filter(Boolean);(function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,o=e.props.interactiveBorder,s=Ee(r.placement),a=r.modifiersData.offset;if(!a)return!0;var l="bottom"===s?a.top.y:0,u="top"===s?a.bottom.y:0,c="right"===s?a.left.x:0,d="left"===s?a.right.x:0,h=t.top-i+l>o,p=i-t.bottom-u>o,f=t.left-n+c>o,m=n-t.right-d>o;return h||p||f||m}))})(i,e)&&(I(),te(e))}}function K(e){J(e)||b.props.trigger.indexOf("click")>=0&&d||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function G(e){b.props.trigger.indexOf("focusin")<0&&e.target!==M()||b.props.interactive&&e.relatedTarget&&_.contains(e.relatedTarget)||te(e)}function J(e){return!!Fe.isTouch&&E()!==e.type.indexOf("touch")>=0}function Z(){X();var t=b.props,n=t.popperOptions,i=t.placement,r=t.offset,o=t.getReferenceClientRect,s=t.moveTransition,l=S()?Xe(_).arrow:null,u=o?{getBoundingClientRect:o,contextElement:o.contextElement||M()}:e,c=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(S()){var n=A().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];S()&&l&&c.push({name:"arrow",options:{element:l,padding:3}}),c.push.apply(c,(null==n?void 0:n.modifiers)||[]),b.popperInstance=de(u,_,Object.assign({},n,{placement:i,onFirstUpdate:a,modifiers:c}))}function X(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return Se(_.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&j("onTrigger",[b,e]),U();var t=T(!0),i=x(),r=i[0],o=i[1];Fe.isTouch&&"hold"===r&&o&&(t=o),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),j("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=T(!1);t?i=setTimeout((function(){b.state.isVisible&&b.hide()}),t):r=requestAnimationFrame((function(){b.hide()}))}}else $()}}function rt(e,t){void 0===t&&(t={});var n=He.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ue,ve),window.addEventListener("blur",ze);var i,r=Object.assign({},t,{plugins:n}),o=(i=e,Ae(i)?[i]:function(e){return we(e,"NodeList")}(i)?Se(i):Array.isArray(i)?i:Se(document.querySelectorAll(i))).reduce((function(e,t){var n=t&&it(t,r);return n&&e.push(n),e}),[]);return Ae(e)?o[0]:o}rt.defaultProps=He,rt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){He[t]=e[t]}))},rt.currentInput=Fe;var ot=function(e){var t=void 0===e?{}:e,n=t.exclude,i=t.duration;nt.forEach((function(e){var t=!1;if(n&&(t=De(n)?e.reference===n:e.popper===n.popper),!t){var r=e.props.duration;e.setProps({duration:i}),e.hide(),e.state.isDestroyed||e.setProps({duration:r})}}))},st=Object.assign({},Z,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),at=function(e,t){var n;void 0===t&&(t={});var i,r=e,o=[],s=[],a=t.overrides,l=[],u=!1;function c(){s=r.map((function(e){return Oe(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function d(){o=r.map((function(e){return e.reference}))}function h(e){r.forEach((function(t){e?t.enable():t.disable()}))}function p(e){return r.map((function(t){var n=t.setProps;return t.setProps=function(r){n(r),t.reference===i&&e.setProps(r)},function(){t.setProps=n}}))}function f(e,t){var n=s.indexOf(t);if(t!==i){i=t;var l=(a||[]).concat("content").reduce((function(e,t){return e[t]=r[n].props[t],e}),{});e.setProps(Object.assign({},l,{getReferenceClientRect:"function"==typeof l.getReferenceClientRect?l.getReferenceClientRect:function(){var e;return null==(e=o[n])?void 0:e.getBoundingClientRect()}}))}}h(!1),d(),c();var m={fn:function(){return{onDestroy:function(){h(!0)},onHidden:function(){i=null},onClickOutside:function(e){e.props.showOnCreate&&!u&&(u=!0,i=null)},onShow:function(e){e.props.showOnCreate&&!u&&(u=!0,f(e,o[0]))},onTrigger:function(e,t){f(e,t.currentTarget)}}}},g=rt(Pe(),Object.assign({},Ce(t,["overrides"]),{plugins:[m].concat(t.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[st])})})),v=g.show;g.show=function(e){if(v(),!i&&null==e)return f(g,o[0]);if(!i||null!=e){if("number"==typeof e)return o[e]&&f(g,o[e]);if(r.indexOf(e)>=0){var t=e.reference;return f(g,t)}return o.indexOf(e)>=0?f(g,e):void 0}},g.showNext=function(){var e=o[0];if(!i)return g.show(0);var t=o.indexOf(i);g.show(o[t+1]||e)},g.showPrevious=function(){var e=o[o.length-1];if(!i)return g.show(e);var t=o.indexOf(i),n=o[t-1]||e;g.show(n)};var y=g.setProps;return g.setProps=function(e){a=e.overrides||a,y(e)},g.setInstances=function(e){h(!0),l.forEach((function(e){return e()})),r=e,h(!1),d(),c(),l=p(g),g.setProps({triggerTarget:s})},l=p(g),g},lt={mouseover:"mouseenter",focusin:"focus",click:"click"};function ut(e,t){var n=[],i=[],r=!1,o=t.target,s=Ce(t,["target"]),a=Object.assign({},s,{trigger:"manual",touch:!1}),l=Object.assign({touch:He.touch},s,{showOnCreate:!0}),u=rt(e,a);function c(e){if(e.target&&!r){var n=e.target.closest(o);if(n){var s=n.getAttribute("data-tippy-trigger")||t.trigger||He.trigger;if(!n._tippy&&!("touchstart"===e.type&&"boolean"==typeof l.touch||"touchstart"!==e.type&&s.indexOf(lt[e.type])<0)){var a=rt(n,l);a&&(i=i.concat(a))}}}}function d(e,t,i,r){void 0===r&&(r=!1),e.addEventListener(t,i,r),n.push({node:e,eventType:t,handler:i,options:r})}return Oe(u).forEach((function(e){var t=e.destroy,o=e.enable,s=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&i.forEach((function(e){e.destroy()})),i=[],n.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),n=[],t()},e.enable=function(){o(),i.forEach((function(e){return e.enable()})),r=!1},e.disable=function(){s(),i.forEach((function(e){return e.disable()})),r=!0},function(e){var t=e.reference;d(t,"touchstart",c,ve),d(t,"mouseover",c),d(t,"focusin",c),d(t,"click",c)}(e)})),u}var ct={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return{};var n=Xe(e.popper),i=n.box,r=n.content,o=e.props.animateFill?function(){var e=Pe();return e.className=fe,Re([e],"hidden"),e}():null;return{onCreate:function(){o&&(i.insertBefore(o,i.firstElementChild),i.setAttribute("data-animatefill",""),i.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(o){var e=i.style.transitionDuration,t=Number(e.replace("ms",""));r.style.transitionDelay=Math.round(t/10)+"ms",o.style.transitionDuration=e,Re([o],"visible")}},onShow:function(){o&&(o.style.transitionDuration="0ms")},onHide:function(){o&&Re([o],"hidden")}}}},dt={clientX:0,clientY:0},ht=[];function pt(e){var t=e.clientX,n=e.clientY;dt={clientX:t,clientY:n}}var ft={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=Ve(e.props.triggerTarget||t),i=!1,r=!1,o=!0,s=e.props;function a(){return"initial"===e.props.followCursor&&e.state.isVisible}function l(){n.addEventListener("mousemove",d)}function u(){n.removeEventListener("mousemove",d)}function c(){i=!0,e.setProps({getReferenceClientRect:null}),i=!1}function d(n){var i=!n.target||t.contains(n.target),r=e.props.followCursor,o=n.clientX,s=n.clientY,a=t.getBoundingClientRect(),l=o-a.left,u=s-a.top;!i&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=o,i=s;"initial"===r&&(n=e.left+l,i=e.top+u);var a="horizontal"===r?e.top:i,c="vertical"===r?e.right:n,d="horizontal"===r?e.bottom:i,h="vertical"===r?e.left:n;return{width:c-h,height:d-a,top:a,right:c,bottom:d,left:h}}})}function h(){e.props.followCursor&&(ht.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",pt)}(n))}function p(){0===(ht=ht.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",pt)}(n)}return{onCreate:h,onDestroy:p,onBeforeUpdate:function(){s=e.props},onAfterUpdate:function(t,n){var o=n.followCursor;i||void 0!==o&&s.followCursor!==o&&(p(),o?(h(),!e.state.isMounted||r||a()||l()):(u(),c()))},onMount:function(){e.props.followCursor&&!r&&(o&&(d(dt),o=!1),a()||l())},onTrigger:function(e,t){Te(t)&&(dt={clientX:t.clientX,clientY:t.clientY}),r="focus"===t.type},onHidden:function(){e.props.followCursor&&(c(),u(),o=!0)}}}},mt={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference,i=-1,r=!1,o=[],s={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var s=r.state;e.props.inlinePositioning&&(-1!==o.indexOf(s.placement)&&(o=[]),t!==s.placement&&-1===o.indexOf(s.placement)&&(o.push(s.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n,i){if(n.length<2||null===e)return t;if(2===n.length&&i>=0&&n[0].left>n[1].right)return n[i]||t;switch(e){case"top":case"bottom":var r=n[0],o=n[n.length-1],s="top"===e,a=r.top,l=o.bottom,u=s?r.left:o.left,c=s?r.right:o.right;return{top:a,bottom:l,left:u,right:c,width:c-u,height:l-a};case"left":case"right":var d=Math.min.apply(Math,n.map((function(e){return e.left}))),h=Math.max.apply(Math,n.map((function(e){return e.right}))),p=n.filter((function(t){return"left"===e?t.left===d:t.right===h})),f=p[0].top,m=p[p.length-1].bottom;return{top:f,bottom:m,left:d,right:h,width:h-d,height:m-f};default:return t}}(Ee(e),n.getBoundingClientRect(),Se(n.getClientRects()),i)}(s.placement)}})),t=s.placement)}};function a(){var t;r||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter((function(e){return e.name!==t.name})),[t])})}}(e.props,s),r=!0,e.setProps(t),r=!1)}return{onCreate:a,onAfterUpdate:a,onTrigger:function(t,n){if(Te(n)){var r=Se(e.reference.getClientRects()),o=r.find((function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY})),s=r.indexOf(o);i=s>-1?s:i}},onHidden:function(){i=-1}}}},gt={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function i(t){return!0===e.props.sticky||e.props.sticky===t}var r=null,o=null;function s(){var a=i("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,l=i("popper")?n.getBoundingClientRect():null;(a&&vt(r,a)||l&&vt(o,l))&&e.popperInstance&&e.popperInstance.update(),r=a,o=l,e.state.isMounted&&requestAnimationFrame(s)}return{onMount:function(){e.props.sticky&&s()}}}};function vt(e,t){return!e||!t||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left}rt.setDefaultProps({render:Qe});const yt=rt},15893:function(e,t){"use strict";function n(e,t){return void 0===e?void 0===t?e:t:e}Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=function(e,t){return"function"==typeof(e=n(e,t))?function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return!!e.apply(this,n)}:e?function(){return!0}:function(){return!1}},t.integer=function(e,t){return"function"==typeof(e=n(e,t))?function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=parseInt(e.apply(this,n),10);return r!=r?0:r}:(e=parseInt(e,10))!=e?function(){return 0}:function(){return e}},t.string=function(e,t){return"function"==typeof(e=n(e,t))?function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return""+e.apply(this,n)}:(e=""+e,function(){return e})}},67429:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return l.default}});var i=h(n(63990)),r=h(n(8237)),o=h(n(75355)),s=h(n(83764)),a=h(n(86314)),l=h(n(58464)),u=h(n(46435)),c=h(n(73990)),d=h(n(18222));function h(e){return e&&e.__esModule?e:{default:e}}},94163:function(e,t){"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function i(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function r(e,t,n,r,o,s){return i((a=i(i(t,e),i(r,s)))<<(l=o)|a>>>32-l,n);var a,l}function o(e,t,n,i,o,s,a){return r(t&n|~t&i,e,t,o,s,a)}function s(e,t,n,i,o,s,a){return r(t&i|n&~i,e,t,o,s,a)}function a(e,t,n,i,o,s,a){return r(t^n^i,e,t,o,s,a)}function l(e,t,n,i,o,s,a){return r(n^(t|~i),e,t,o,s,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,i="0123456789abcdef";for(let r=0;r<n;r+=8){const n=e[r>>5]>>>r%32&255,o=parseInt(i.charAt(n>>>4&15)+i.charAt(15&n),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let r=1732584193,u=-271733879,c=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){const n=r,h=u,p=c,f=d;r=o(r,u,c,d,e[t],7,-680876936),d=o(d,r,u,c,e[t+1],12,-389564586),c=o(c,d,r,u,e[t+2],17,606105819),u=o(u,c,d,r,e[t+3],22,-1044525330),r=o(r,u,c,d,e[t+4],7,-176418897),d=o(d,r,u,c,e[t+5],12,1200080426),c=o(c,d,r,u,e[t+6],17,-1473231341),u=o(u,c,d,r,e[t+7],22,-45705983),r=o(r,u,c,d,e[t+8],7,1770035416),d=o(d,r,u,c,e[t+9],12,-1958414417),c=o(c,d,r,u,e[t+10],17,-42063),u=o(u,c,d,r,e[t+11],22,-1990404162),r=o(r,u,c,d,e[t+12],7,1804603682),d=o(d,r,u,c,e[t+13],12,-40341101),c=o(c,d,r,u,e[t+14],17,-1502002290),u=o(u,c,d,r,e[t+15],22,1236535329),r=s(r,u,c,d,e[t+1],5,-165796510),d=s(d,r,u,c,e[t+6],9,-1069501632),c=s(c,d,r,u,e[t+11],14,643717713),u=s(u,c,d,r,e[t],20,-373897302),r=s(r,u,c,d,e[t+5],5,-701558691),d=s(d,r,u,c,e[t+10],9,38016083),c=s(c,d,r,u,e[t+15],14,-660478335),u=s(u,c,d,r,e[t+4],20,-405537848),r=s(r,u,c,d,e[t+9],5,568446438),d=s(d,r,u,c,e[t+14],9,-1019803690),c=s(c,d,r,u,e[t+3],14,-187363961),u=s(u,c,d,r,e[t+8],20,1163531501),r=s(r,u,c,d,e[t+13],5,-1444681467),d=s(d,r,u,c,e[t+2],9,-51403784),c=s(c,d,r,u,e[t+7],14,1735328473),u=s(u,c,d,r,e[t+12],20,-1926607734),r=a(r,u,c,d,e[t+5],4,-378558),d=a(d,r,u,c,e[t+8],11,-2022574463),c=a(c,d,r,u,e[t+11],16,1839030562),u=a(u,c,d,r,e[t+14],23,-35309556),r=a(r,u,c,d,e[t+1],4,-1530992060),d=a(d,r,u,c,e[t+4],11,1272893353),c=a(c,d,r,u,e[t+7],16,-155497632),u=a(u,c,d,r,e[t+10],23,-1094730640),r=a(r,u,c,d,e[t+13],4,681279174),d=a(d,r,u,c,e[t],11,-358537222),c=a(c,d,r,u,e[t+3],16,-722521979),u=a(u,c,d,r,e[t+6],23,76029189),r=a(r,u,c,d,e[t+9],4,-640364487),d=a(d,r,u,c,e[t+12],11,-421815835),c=a(c,d,r,u,e[t+15],16,530742520),u=a(u,c,d,r,e[t+2],23,-995338651),r=l(r,u,c,d,e[t],6,-198630844),d=l(d,r,u,c,e[t+7],10,1126891415),c=l(c,d,r,u,e[t+14],15,-1416354905),u=l(u,c,d,r,e[t+5],21,-57434055),r=l(r,u,c,d,e[t+12],6,1700485571),d=l(d,r,u,c,e[t+3],10,-1894986606),c=l(c,d,r,u,e[t+10],15,-1051523),u=l(u,c,d,r,e[t+1],21,-2054922799),r=l(r,u,c,d,e[t+8],6,1873313359),d=l(d,r,u,c,e[t+15],10,-30611744),c=l(c,d,r,u,e[t+6],15,-1560198380),u=l(u,c,d,r,e[t+13],21,1309151649),r=l(r,u,c,d,e[t+4],6,-145523070),d=l(d,r,u,c,e[t+11],10,-1120210379),c=l(c,d,r,u,e[t+2],15,718787259),u=l(u,c,d,r,e[t+9],21,-343485551),r=i(r,n),u=i(u,h),c=i(c,p),d=i(d,f)}return[r,u,c,d]}(function(e){if(0===e.length)return[];const t=8*e.length,i=new Uint32Array(n(t));for(let n=0;n<t;n+=8)i[n>>5]|=(255&e[n/8])<<n%32;return i}(e),8*e.length))}},54790:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=n},86314:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},18222:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(46435))&&i.__esModule?i:{default:i};t.default=function(e){if(!(0,r.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}},70058:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},33319:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)};const i=new Uint8Array(16)},93757:function(e,t){"use strict";function n(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:case 3:return t^n^i;case 2:return t&n^t&i^n&i}}function i(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s);for(let t=0;t<s;++t){const n=new Uint32Array(16);for(let i=0;i<16;++i)n[i]=e[64*t+4*i]<<24|e[64*t+4*i+1]<<16|e[64*t+4*i+2]<<8|e[64*t+4*i+3];a[t]=n}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<s;++e){const o=new Uint32Array(80);for(let t=0;t<16;++t)o[t]=a[e][t];for(let e=16;e<80;++e)o[e]=i(o[e-3]^o[e-8]^o[e-14]^o[e-16],1);let s=r[0],l=r[1],u=r[2],c=r[3],d=r[4];for(let e=0;e<80;++e){const r=Math.floor(e/20),a=i(s,5)+n(r,l,u,c)+d+t[r]+o[e]>>>0;d=c,c=u,u=i(l,30)>>>0,l=s,s=a}r[0]=r[0]+s>>>0,r[1]=r[1]+l>>>0,r[2]=r[2]+u>>>0,r[3]=r[3]+c>>>0,r[4]=r[4]+d>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},73990:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=s;var i,r=(i=n(46435))&&i.__esModule?i:{default:i};const o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));function s(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}t.default=function(e,t=0){const n=s(e,t);if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n}},63990:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(33319))&&i.__esModule?i:{default:i},o=n(73990);let s,a,l=0,u=0;t.default=function(e,t,n){let i=t&&n||0;const c=t||new Array(16);let d=(e=e||{}).node||s,h=void 0!==e.clockseq?e.clockseq:a;if(null==d||null==h){const t=e.random||(e.rng||r.default)();null==d&&(d=s=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==h&&(h=a=16383&(t[6]<<8|t[7]))}let p=void 0!==e.msecs?e.msecs:Date.now(),f=void 0!==e.nsecs?e.nsecs:u+1;const m=p-l+(f-u)/1e4;if(m<0&&void 0===e.clockseq&&(h=h+1&16383),(m<0||p>l)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=p,u=f,a=h,p+=122192928e5;const g=(1e4*(268435455&p)+f)%4294967296;c[i++]=g>>>24&255,c[i++]=g>>>16&255,c[i++]=g>>>8&255,c[i++]=255&g;const v=p/4294967296*1e4&268435455;c[i++]=v>>>8&255,c[i++]=255&v,c[i++]=v>>>24&15|16,c[i++]=v>>>16&255,c[i++]=h>>>8|128,c[i++]=255&h;for(let e=0;e<6;++e)c[i+e]=d[e];return t||(0,o.unsafeStringify)(c)}},8237:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(17925)),r=o(n(94163));function o(e){return e&&e.__esModule?e:{default:e}}var s=(0,i.default)("v3",48,r.default);t.default=s},17925:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function i(e,i,s,a){var l;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof i&&(i=(0,o.default)(i)),16!==(null===(l=i)||void 0===l?void 0:l.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+e.length);if(u.set(i),u.set(e,i.length),u=n(u),u[6]=15&u[6]|t,u[8]=63&u[8]|128,s){a=a||0;for(let e=0;e<16;++e)s[a+e]=u[e];return s}return(0,r.unsafeStringify)(u)}try{i.name=e}catch(e){}return i.DNS=s,i.URL=a,i};var i,r=n(73990),o=(i=n(18222))&&i.__esModule?i:{default:i};const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a},75355:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(54790)),r=s(n(33319)),o=n(73990);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(i.default.randomUUID&&!t&&!e)return i.default.randomUUID();const s=(e=e||{}).random||(e.rng||r.default)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=s[e];return t}return(0,o.unsafeStringify)(s)}},83764:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(17925)),r=o(n(93757));function o(e){return e&&e.__esModule?e:{default:e}}var s=(0,i.default)("v5",80,r.default);t.default=s},46435:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(70058))&&i.__esModule?i:{default:i};t.default=function(e){return"string"==typeof e&&r.default.test(e)}},58464:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(46435))&&i.__esModule?i:{default:i};t.default=function(e){if(!(0,r.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},36310:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e){this.baseUrl=e||"https://cdn.form.io",this.overrides={},this.libs={js:"",ace:"1.4.12",bootstrap:"4.6.2",ckeditor:"19.0.0",flatpickr:"4.6.8","flatpickr-formio":"4.6.13-formio.3","font-awesome":"4.7.0",grid:"latest","moment-timezone":"latest",quill:"2.0.0-dev.3","shortcut-buttons-flatpickr":"0.4.0",uswds:"2.4.8",core:""},this.updateUrls()}getVersion(e){return this.libs[e]}setVersion(e,t){this.libs[e]=t,this.updateUrls()}setBaseUrl(e){this.baseUrl=e,this.updateUrls()}setOverrideUrl(e,t){this.overrides[e]=t,this.updateUrls()}removeOverride(e){delete this.overrides[e],this.updateUrls()}removeOverrides(){this.overrides={},this.updateUrls()}buildUrl(e,t,n){let i;return i="latest"===n||""===n?`${e}/${t}`:`${e}/${t}/${n}`,i}updateUrls(){for(const e in this.libs)e in this.overrides?this[e]=this.buildUrl(this.overrides[e],e,this.libs[e]):this[e]=this.buildUrl(this.baseUrl,e,this.libs[e])}}},32197:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=s(n(86011)),l=n(61066),u=o(n(76286)),c=n(11390),d=s(n(96486)),h=s(n(30381)),p=s(n(47853));t.default=class{constructor(e){var t;this.options=Object.assign({language:"en",highlightErrors:!0,componentErrorClass:"formio-error-wrapper",componentWarningClass:"formio-warning-wrapper",row:"",namespace:"formio"},e||{}),this.id=u.getRandomComponentId(),this.eventHandlers=[],this.options.i18n=this.options.i18n||{},(null===(t=this.options)||void 0===t?void 0:t.language)&&(this.options.i18n.language=this.options.language),this.options.i18next=this.i18next=this.options.i18next||c.I18n.init(this.options.i18n),this.events=e&&e.events?e.events:new a.default,this.defaultMask=null,this.helplinks="false"!==this.options.helplinks&&(this.options.helplinks||"https://help.form.io")}on(e,t,n,i=!1){if(!this.events)return;const r=`${this.options.namespace}.${e}`;return t.id=this.id,t.key=this.key,t.internal=n,this.events[i?"once":"on"](r,t)}once(e,t,n){return this.on(e,t,n,!0)}onAny(e){if(this.events)return this.events.onAny(e)}offAny(e){if(this.events)return this.events.offAny(e)}off(e,t){if(!this.events)return;const n=`${this.options.namespace}.${e}`;this.events.listeners(n).forEach((e=>{e&&e.id===this.id&&(t&&t!==e||this.events.off(n,e))}))}emit(e,...t){this.events&&this.events.emit(`${this.options.namespace}.${e}`,...t)}hasEventHandler(e){if(!this.events)return!1;const t=`${this.options.namespace}.${e}`;return this.events.listeners(t).some((e=>!!e&&(e.id===this.id||e.key===this.key)))}addEventListener(e,t,n,i){if(e)return i||this.eventHandlers.push({id:this.id,obj:e,type:t,func:n}),"addEventListener"in e?e.addEventListener(t,n,!1):"attachEvent"in e&&e.attachEvent(`on${t}`,n),this}removeEventListener(e,t,n=null){const i=[];if(e)return this.eventHandlers.forEach(((r,o)=>{r.id!==this.id||!e.removeEventListener||r.type!==t||n&&r.func!==n||(e.removeEventListener(t,r.func),i.push(o))})),i.length&&d.default.pullAt(this.eventHandlers,i),this}removeEventListeners(){this.eventHandlers.forEach((e=>{this.id===e.id&&e.type&&e.obj&&e.obj.removeEventListener&&e.obj.removeEventListener(e.type,e.func)})),this.eventHandlers=[]}removeAllEvents(e){this.events&&d.default.each(this.events._events,((t,n)=>{d.default.each(t,(t=>{t&&this.id===t.id&&(e||t.internal)&&this.events.off(n,t)}))}))}teardown(){delete this.i18next,delete this.events}destroy(e=!1){this.removeEventListeners(),this.removeAllEvents(),e&&this.teardown()}appendTo(e,t){return null==t||t.appendChild(e),this}prependTo(e,t){if(t)if(t.firstChild)try{t.insertBefore(e,t.firstChild)}catch(n){console.warn(n),t.appendChild(e)}else t.appendChild(e);return this}removeChildFrom(e,t){if(t&&t.contains(e))try{t.removeChild(e)}catch(e){console.warn(e)}return this}ce(e,t,n=null){const i=document.createElement(e);return t&&this.attr(i,t),this.appendChild(i,n),i}appendChild(e,t){return Array.isArray(t)?t.forEach((t=>this.appendChild(e,t))):t instanceof HTMLElement||t instanceof Text?e.appendChild(t):t&&e.appendChild(this.text(t.toString())),this}maskPlaceholder(e){return e.map((e=>e instanceof RegExp?this.placeholderChar:e)).join("")}get placeholderChar(){var e;return(null===(e=this.component)||void 0===e?void 0:e.inputMaskPlaceholderChar)||"_"}setInputMask(e,t,n){if(e&&t){const i=u.getInputMask(t,this.placeholderChar);this.defaultMask=i;try{e.mask&&e.mask.destroy(),e.mask=(0,p.default)({inputElement:e,mask:i,placeholderChar:this.placeholderChar,shadowRoot:this.root?this.root.shadowRoot:null})}catch(e){console.warn(e)}i.numeric&&e.setAttribute("pattern","\\d*"),n&&e.setAttribute("placeholder",this.maskPlaceholder(i))}}t(e,...t){return this.i18next?this.i18next.t(e,...t):e}text(e){return document.createTextNode(this.t(e))}attr(e,t){e&&d.default.each(t,((t,n)=>{void 0!==t&&(0===n.indexOf("on")?this.addEventListener(e,n.substr(2).toLowerCase(),t):e.setAttribute(n,t))}))}hasClass(e,t){return!!e&&(t=` ${t} `,` ${e.className} `.replace(/[\n\t\r]/g," ").indexOf(t)>-1)}addClass(e,t){if(!(e&&e instanceof HTMLElement))return this;const n=e.getAttribute("class");return(null==n?void 0:n.includes(t))||e.setAttribute("class",`${n} ${t}`),this}removeClass(e,t){if(!(e&&t&&e instanceof HTMLElement))return this;let n=e.getAttribute("class");return n&&(n=n.replace(new RegExp(` ${t}`,"g"),""),e.setAttribute("class",n)),this}empty(e){if(e)for(;e.firstChild;)e.removeChild(e.firstChild)}evalContext(e){var t;return Object.assign({_:d.default,utils:u,util:u,user:l.Formio.getUser(),moment:h.default,instance:this,self:this,token:l.Formio.getToken({decode:!0}),config:this.root&&this.root.form&&this.root.form.config?this.root.form.config:(null===(t=this.options)||void 0===t?void 0:t.formConfig)?this.options.formConfig:{}},e,d.default.get(this.root,"options.evalContext",{}))}interpolate(e,t,n={}){if("function"==typeof e||!this.component.content&&!this.component.html||u.Evaluator.templateSettings.interpolate.test(e)||(e=u.translateHTMLTemplate(String(e),(e=>this.t(e)))),this.component.filter===e&&!this.options.building){const i=this.evalContext(t);return i.data=d.default.mapValues(i.data,(e=>d.default.isString(e)?encodeURIComponent(e):e)),u.interpolate(e,i,n)}return u.interpolate(e,this.evalContext(t),n)}evaluate(e,t,n,i){return u.evaluate(e,this.evalContext(t),n,i)}hook(){const e=arguments[0];if(this.options&&this.options.hooks&&this.options.hooks[e])return this.options.hooks[e].apply(this,Array.prototype.slice.call(arguments,1));{const e="function"==typeof arguments[arguments.length-1]?arguments[arguments.length-1]:null;return e?e(null,arguments[1]):arguments[1]}}}},86011:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const s=n(26729),a=o(n(76286));class l extends s.EventEmitter{constructor(e={}){const{loadLimit:t=1e3,eventsSafeInterval:n=300}=e;super(),this.onAny=e=>{this.on("any",e)},this.offAny=e=>{this.off("any",e)};const i=a.observeOverload((()=>{console.warn(`There were more than ${t} events emitted in ${n} ms. It might be caused by events' infinite loop`,this.id)}),{limit:t,delay:n});this.emit=(...e)=>{super.emit(...e),super.emit("any",...e),i()}}}t.default=l},66088:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=s(n(32197)),l=n(61066),u=s(n(44718)),c=s(n(22989)),d=o(n(76286));class h extends a.default{constructor(...e){let t=e[0]instanceof HTMLElement?e[2]:e[1];l.Formio.options&&l.Formio.options.form&&(t=Object.assign(t,l.Formio.options.form)),super(t),this.options.useSessionToken&&l.Formio.useSessionToken(this.options),this.ready=new Promise(((e,t)=>{this.readyResolve=e,this.readyReject=t})),this.instance=null,e[0]instanceof HTMLElement?(this.element&&delete this.element.component,this.element=e[0],this.options=e[2]||{},this.options.events=this.events,this.setForm(e[1]).then((()=>this.readyResolve(this.instance))).catch(this.readyReject)):e[0]?(this.element=null,this.options=e[1]||{},this.options.events=this.events,this.setForm(e[0]).then((()=>this.readyResolve(this.instance))).catch(this.readyReject)):(this.element=null,this.options={},this.options.events=this.events),this.display=""}createElement(e,t,n){const i=document.createElement(e);for(const e in t)t.hasOwnProperty(e)&&i.setAttribute(e,t[e]);return(n||[]).forEach((e=>{i.appendChild(this.createElement(e.tag,e.attrs,e.children))})),i}set loading(e){if(this.element&&!this.options.noLoader)if(e){if(this.loader)return;this.loader=this.createElement("div",{class:"formio-loader"},[{tag:"div",attrs:{class:"loader-wrapper"},children:[{tag:"div",attrs:{class:"loader text-center"}}]}]),this.element.appendChild(this.loader)}else this.loader&&(this.element.removeChild(this.loader),this.loader=null)}create(e){return this.options&&(this.options.flatten||"flat"===this.options.renderMode)&&(e="form"),this.display=e,u.default.displays[e]?new u.default.displays[e](this.element,this.options):new u.default.displays.webform(this.element,this.options)}set form(e){this.setForm(e)}errorForm(e){return{components:[{label:"HTML",tag:"div",className:"error error-message alert alert-danger ui red message",attrs:[{attr:"role",value:"alert"}],key:"errorMessage",type:"htmlelement",input:!1,content:"string"==typeof e?e:e.message}]}}setForm(e){let t;if("string"==typeof(e=e||this.form)){const n=new l.Formio(e);let i;this.loading=!0,t=this.getSubmission(n,this.options).catch((e=>{i=e})).then((t=>n.loadForm().catch((e=>{i=e})).then((n=>{if(i&&(n=this.errorForm(i)),this.loading=!1,this.instance=this.instance||this.create(n.display),this.instance.url=e,this.instance.nosubmit=!1,this._form=this.instance.form=n,t&&(this.instance.submission=t),i)throw i;return this.instance}))))}else this.instance=this.instance||this.create(e.display),this._form=this.instance.form=e,t=this.instance.ready;return t.then((()=>(this.element&&delete this.element.component,this.element=this.instance.element,this.instance)))}getSubmission(e,t){return e.submissionId?e.loadSubmission(null,t):Promise.resolve()}get form(){return this._form}setDisplay(e){return this.display===e&&this.instance?Promise.resolve(this.instance):(this.form.display=e,this.instance.destroy(),this.instance=this.create(e),this.setForm(this.form))}empty(){if(this.element)for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}static embed(e){return new Promise((t=>{e&&e.src||t();const n=this.id||`formio-${Math.random().toString(36).substring(7)}`,i=e.class||"formio-form-wrapper";let r=e.styles?`<link rel="stylesheet" href="${e.styles}">`:"";r+=`<div id="${n}" class="${i}"></div>`,document.write(r);let o=0;const s=setInterval((()=>{o++;const i=document.getElementById(n);(i||o>10)&&(t(new h(i,e.src).ready),clearInterval(s))}),10)}))}sanitize(e,t){return!1!==this.options.sanitize||t?d.sanitize(e,this.options):e}setContent(e,t,n){return e instanceof HTMLElement&&(e.innerHTML=this.sanitize(t,n),!0)}build(){if(!this.instance)return Promise.reject("Form not ready. Use form.ready promise");if(!this.element)return Promise.reject("No DOM element for form.");const e=this.options&&this.options.template?this.options.template:"bootstrap",t=c.default[e].loader||c.default.bootstrap.loader;return this.setContent(this.element,t.form),this.render().then((e=>(this.setContent(this.element,e),this.attach(this.element).then((()=>this.instance))))).then((e=>(this.emit("build",e),e)))}render(){return this.instance?Promise.resolve(this.instance.render()).then((e=>(this.emit("render",e),e))):Promise.reject("Form not ready. Use form.ready promise")}attach(e){return this.instance?(this.element&&delete this.element.component,this.element=e,this.instance.attach(this.element).then((e=>(this.emit("attach",e),e)))):Promise.reject("Form not ready. Use form.ready promise")}teardown(){super.teardown(),delete this.instance,delete this.ready}}t.default=h,l.Formio.embedForm=e=>h.embed(e),l.Formio.createForm=(...e)=>new h(...e).ready,l.Formio.Form=h},31454:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(61066),o=i(n(31074)),s=i(n(66088));class a extends s.default{constructor(e,t,n){n=n||{},super(e,t=t||{},Object.assign(n,a.options,r.Formio.options&&r.Formio.options.builder?r.Formio.options.builder:{}))}create(e){return o.default.builders[e]?new o.default.builders[e](this.element,this.options):new o.default.builders.webform(this.element,this.options)}}a.options={},t.default=a,r.Formio.builder=(...e)=>new a(...e).ready,r.Formio.FormBuilder=a},68603:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(61066),o=i(n(22114)),s=n(76286);class a extends o.default{constructor(e,t){t.display="pdf",super(e,t),this.components=[]}init(){super.init(),this.on("iframe-submission",(e=>this.setValue(e,{fromIframe:!0})),!0),this.on("iframe-change",(e=>this.setValue(e,{fromIframe:!0})),!0),this.on("iframe-getIframePositions",(e=>{const t=document.getElementById(`iframe-${e.formId}`);if(t){const n=t.getBoundingClientRect();this.postMessage({name:"iframePositions",data:{formId:e.formId,iframe:{top:n.top},scrollY:window.scrollY||window.pageYOffset}})}})),this.on("iframe-ready",(()=>this.iframeReadyResolve()),!0)}render(){return this.submitButton=this.addComponent({disabled:this.form.disableWizardSubmit,input:!0,type:"button",action:"submit",internal:!0,label:"Submit",key:"submit",ref:"button",hidden:this.isSubmitButtonHidden()}),this.renderTemplate("pdf",{submitButton:this.submitButton.render(),classes:"formio-form-pdf",children:this.renderComponents()})}redraw(){return this.postMessage({name:"redraw"}),this.builderMode?Promise.resolve():super.redraw()}destroy(e=!1){this.iframeElement&&(delete this.iframeElement.formioComponent,this.iframeElement.formioComponent=null),super.destroy(e)}rebuild(){return this.attached&&this.builderMode&&this.component.components?(this.destroyComponents(),this.addComponents(),Promise.resolve()):(this.postMessage({name:"redraw"}),super.rebuild())}attachComponents(e,t,n){return t=t||this.components,n=n||this.component.components,e=this.hook("attachComponents",e,t,n,this),Promise.resolve()}attach(e){return super.attach(e).then((()=>{this.loadRefs(e,{button:"single",buttonMessageContainer:"single",buttonMessage:"single",zoomIn:"single",zoomOut:"single",iframeContainer:"single"}),this.submitButton.refs=Object.assign({},this.refs),this.submitButton.attachButton(),this.iframeReady=new Promise(((e,t)=>{this.iframeReadyResolve=e,this.iframeReadyReject=t})),this.iframeElement=this.ce("iframe",{src:this.getSrc(),id:`iframe-${this.id}`,seamless:!0,class:"formio-iframe"}),this.iframeElement.formioContainer=this.component.components,this.iframeElement.formioComponent=this,this.empty(this.refs.iframeContainer),this.appendChild(this.refs.iframeContainer,this.iframeElement),this.form.base=r.Formio.getBaseUrl(),this.form.projectUrl=r.Formio.getProjectUrl(),this.postMessage({name:"form",data:this.form});const t=this.components.find((e=>e.element===this.refs.button));t&&this.refs.button.classList.toggle("hidden",!t.visible),this.addEventListener(this.refs.zoomIn,"click",(e=>{e.preventDefault(),this.postMessage({name:"zoomIn"})})),this.addEventListener(this.refs.zoomOut,"click",(e=>{e.preventDefault(),this.postMessage({name:"zoomOut"})}));const n=(0,s.fastCloneDeep)(this.form);this.formio&&(n.projectUrl=this.formio.projectUrl,n.url=this.formio.formUrl,n.base=this.formio.base,this.postMessage({name:"token",data:this.formio.getToken()})),this.emit("attach")}))}getSubmission(){return new Promise((e=>{this.once("iframe-submission",e),this.postMessage({name:"getSubmission"})}))}submitForm(e={}){return this.postMessage({name:"getErrors"}),this.getSubmission().then((()=>super.submitForm(e)))}getSrc(){if(!this._form||!this._form.settings||!this._form.settings.pdf)return"";let e=`${this._form.settings.pdf.src}.html`;const t=[`id=${this.id}`];return(this.options.showCheckboxBackground||this._form.settings.showCheckboxBackground)&&t.push("checkboxbackground=1"),this.options.readOnly&&t.push("readonly=1"),this.options.zoom&&t.push(`zoom=${this.options.zoom}`),this.builderMode&&t.push("builder=1"),t.length&&(e+=`?${t.join("&")}`),e}setForm(e,t={}){return super.setForm(e,t).then((()=>{this.formio&&(e.projectUrl=this.formio.projectUrl,e.url=this.formio.formUrl,e.base=this.formio.base,this.postMessage({name:"token",data:this.formio.getToken()})),this.postMessage({name:"form",data:this.form})}))}setValue(e,t={}){const n=super.setValue(e,t);return t&&t.fromIframe||this.once("iframe-ready",(()=>{n&&this.postMessage({name:"submission",data:e})})),n}postMessage(e){this.iframeReady&&(e.type||(e.type="iframe-data"),this.iframeReady.then((()=>{!this.iframeElement||!this.iframeElement.contentWindow||"form"===e.name&&this.iframeFormSetUp||(this.iframeElement.contentWindow.postMessage(JSON.stringify(e),"*"),this.iframeFormSetUp="form"===e.name)})))}focusOnComponent(e){this.postMessage({name:"focusErroredField",data:e})}clear(){}showErrors(e,t){var n;const i=document.getElementById("submit-error"),r=this.t("submitError"),o=(null===(n=this.refs.buttonMessage)||void 0===n?void 0:n.textContent.trim())===r;if(!i&&this.errors.length&&!o){const e=this.ce("p",{class:"help-block"});this.setContent(e,r),e.addEventListener("click",(()=>{window.scrollTo(0,0)}));const t=this.ce("div",{id:"submit-error",class:"has-error"});this.appendTo(e,t),this.appendTo(t,this.element)}!this.errors.length&&i&&i.remove(),super.showErrors(e,t)}isSubmitButtonHidden(){let e=!1;return(0,s.eachComponent)(this.component.components,(t=>{"button"!==t.type||"submit"!==t.action&&t.action||(e=t.hidden||!1)})),e}}t.default=a,"undefined"!=typeof window&&window.addEventListener("message",(e=>{let t=null;try{t=JSON.parse(e.data)}catch(e){t=null}t&&t.name&&t.formId&&r.Formio.forms.hasOwnProperty(t.formId)&&r.Formio.forms[t.formId].emit(`iframe-${t.name}`,t.data)}))},14128:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=n(61066),s=i(n(26191)),a=n(76286),l=n(49386),u=i(n(81290)),c=i(n(68603));class d extends s.default{constructor(){let e,t;arguments[0]instanceof HTMLElement||arguments[1]?(e=arguments[0],t=arguments[1]):t=arguments[0],t.skipInit=!0,t.display="pdf",e?super(e,t):super(t),this.dragDropEnabled=!1}get defaultGroups(){return{pdf:{title:"PDF Fields",weight:0,default:!0,components:{textfield:!0,number:!0,password:!0,email:!0,phoneNumber:!0,currency:!0,checkbox:!0,signature:!0,select:!0,textarea:!0,datetime:!0,file:!0,htmlelement:!0,signrequestsignature:!0}},basic:!1,advanced:!1,layout:!1,data:!1,premium:!1,resource:!1}}get hasPDF(){return r.default.has(this.webform.form,"settings.pdf")}get projectUrl(){return this.options.projectUrl||o.Formio.getProjectUrl()}init(){this.options.attachMode="builder",this.webform=this.webform||this.createForm(this.options),this.webform.init()}render(){return this.renderTemplate("pdfBuilder",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:`builder-sidebar-${this.id}`,groups:this.groupOrder.map((e=>this.renderTemplate("builderSidebarGroup",{group:this.groups[e],groupKey:e,groupId:`builder-sidebar-${this.id}`,subgroups:this.groups[e].subgroups.map((t=>this.renderTemplate("builderSidebarGroup",{group:t,groupKey:t.key,groupId:`group-container-${e}`,subgroups:[]})))})))}),form:this.hasPDF?this.webform.render():this.renderTemplate("pdfBuilderUpload",{})})}attach(e){if(!this.hasPDF){if(this.loadRefs(e,{fileDrop:"single",fileBrowse:"single",hiddenFileInputElement:"single",uploadError:"single",uploadProgress:"single",uploadProgressWrapper:"single",dragDropText:"single"}),this.addEventListener(this.refs["pdf-upload-button"],"click",(e=>{e.preventDefault()})),this.projectUrl?this.setUploadError():this.setUploadError('Form options.projectUrl not set. Please set the "projectUrl" property of the options for this form or use Formio.setProjectUrl(). This setting is necessary to upload a pdf background.'),this.refs.fileDrop){const e=this;this.addEventListener(this.refs.fileDrop,"dragover",(function(e){this.className="fileSelector fileDragOver",e.preventDefault()})),this.addEventListener(this.refs.fileDrop,"dragleave",(function(e){this.className="fileSelector",e.preventDefault()})),this.addEventListener(this.refs.fileDrop,"drop",(function(t){return this.className="fileSelector",t.preventDefault(),e.upload(t.dataTransfer.files[0]),!1}))}return this.refs.fileBrowse&&this.refs.hiddenFileInputElement&&(this.addEventListener(this.refs.fileBrowse,"click",(e=>{e.preventDefault(),"function"==typeof this.refs.hiddenFileInputElement.trigger?this.refs.hiddenFileInputElement.trigger("click"):this.refs.hiddenFileInputElement.click()})),this.addEventListener(this.refs.hiddenFileInputElement,"change",(()=>{this.refs.hiddenFileInputElement.value&&(this.upload(this.refs.hiddenFileInputElement.files[0]),this.refs.hiddenFileInputElement.value="")}))),Promise.resolve()}return super.attach(e).then((()=>(this.loadRefs(this.element,{iframeDropzone:"single","sidebar-container":"multiple",sidebar:"single"}),this.afterAttach(),this.element)))}afterAttach(){this.on("saveComponent",(e=>{this.webform.postMessage({name:"updateElement",data:e})})),this.on("removeComponent",(e=>{this.webform.postMessage({name:"removeElement",data:e})})),this.initIframeEvents(),this.updateDropzoneDimensions();const e=this.refs.sidebar;e&&(this.addClass(e,"disabled"),this.webform.on("iframe-ready",(()=>{this.pdfLoaded=!0,this.updateDragAndDrop(),this.removeClass(e,"disabled")}),!0))}upload(e){const t=new o.Formio(this.projectUrl);this.refs.dragDropText&&(this.refs.dragDropText.style.display="none"),this.refs.uploadProgressWrapper&&(this.refs.uploadProgressWrapper.style.display="inherit"),t.uploadFile("url",e,e,"",(e=>{if(this.refs.uploadProgress){const t=Math.floor(e.loaded/e.total*100);this.refs.uploadProgress.style.width=`${t}%`,this.refs.uploadProgress.innerHTML=t>98?this.t("Converting PDF. Please wait."):`${this.t("Uploading")} ${t}%`}}),`${this.projectUrl}/upload`,{},"file").then((e=>{var t,n,i,o;let s=!1;if((null===(t=e.data.formfields)||void 0===t?void 0:t.components)&&e.data.formfields.components.length){const t="submit"===(null===(n=this.webform.form.components[0])||void 0===n?void 0:n.key),r="page1"===(null===(i=this.webform.form.components[0])||void 0===i?void 0:i.key)&&0===(null===(o=this.webform.form.components[0])||void 0===o?void 0:o.components.length),a=0===this.webform.form.components.length;(t||r||a)&&(s=!0,this.webform.form.components=e.data.formfields.components)}this.refs.dragDropText&&(this.refs.dragDropText.style.display="inherit"),this.refs.uploadProgressWrapper&&(this.refs.uploadProgressWrapper.style.display="none"),r.default.set(this.webform.form,"settings.pdf",{id:e.data.file,src:e.data.filesServer?`${e.data.filesServer}${e.data.path}`:`${new URL(this.projectUrl).origin}/pdf-proxy${e.data.path}`,nonFillableConversionUsed:s&&e.data.formfields.nonFillableConversionUsed}),this.emit("pdfUploaded",e.data),this.redraw()})).catch((e=>this.setUploadError(e)))}setUploadError(e){this.refs.uploadError&&(this.refs.uploadError.style.display=e?"":"none",this.refs.uploadError.innerHTML=e)}createForm(e){return e.skipInit=!1,e.hideLoader=!0,this.webform=new c.default(this.element,e),this.webform.on("attach",(()=>{this.refs.iframeDropzone&&![...this.refs.form.children].includes(this.refs.iframeDropzone)&&this.prependTo(this.refs.iframeDropzone,this.refs.form)})),this.webform}destroy(e=!1){super.destroy(e),this.webform.destroy(e)}getParentContainer(e){let t=[],n=null;return(0,l.eachComponent)(this.webform._form.components,((i,r,o)=>{if(i.id===e.component.id)return t=o,n=i,!0}),!0),{formioComponent:e.parent,formioContainer:t,originalComponent:n}}initIframeEvents(){this.webform.off("iframe-elementUpdate"),this.webform.off("iframe-componentUpdate"),this.webform.off("iframe-componentClick"),this.webform.on("iframe-elementUpdate",(e=>{const t=this.webform.getComponentById(e.id);if(t&&t.component){const n=!0;t.component.overlay={page:e.page,left:e.left,top:e.top,height:e.height,width:e.width},this.options.noNewEdit||t.component.noNewEdit||this.editComponent(t.component,this.getParentContainer(t),n),this.emit("updateComponent",t.component)}return t})),this.webform.on("iframe-componentUpdate",(e=>{const t=this.webform.getComponentById(e.id);return t&&t.component&&(t.component.overlay={page:e.overlay.page,left:e.overlay.left,top:e.overlay.top,height:e.overlay.height,width:e.overlay.width},this.emit("updateComponent",t.component),this.emit("change",this.form)),t})),this.webform.on("iframe-componentClick",(e=>{const t=this.webform.getComponentById(e.id);t&&this.editComponent(t.component,this.getParentContainer(t))}),!0)}initDropzoneEvents(){this.refs.iframeDropzone&&(this.removeEventListener(this.refs.iframeDropzone,"dragover"),this.removeEventListener(this.refs.iframeDropzone,"drop"),this.addEventListener(this.refs.iframeDropzone,"dragover",(e=>(e.preventDefault(),!1))),this.addEventListener(this.refs.iframeDropzone,"drop",this.onDropzoneDrop.bind(this)))}updateDragAndDrop(){this.pdfLoaded&&(this.initDropzoneEvents(),this.prepSidebarComponentsForDrag())}prepSidebarComponentsForDrag(){this.refs["sidebar-container"]&&this.refs["sidebar-container"].forEach((e=>{[...e.children].forEach((e=>{e.draggable=!0,e.setAttribute("draggable",!0),this.removeEventListener(e,"dragstart"),this.removeEventListener(e,"dragend"),this.addEventListener(e,"dragstart",this.onDragStart.bind(this),!0),this.addEventListener(e,"dragend",this.onDragEnd.bind(this),!0),this.addEventListener(e,"drag",(e=>{e.target.style.cursor="none"}))}))}))}updateDropzoneDimensions(){if(!this.refs.iframeDropzone)return;const e=(0,a.getElementRect)(this.webform.refs.iframeContainer);this.refs.iframeDropzone.style.height=e&&e.height?`${e.height}px`:"1000px",this.refs.iframeDropzone.style.width=e&&e.width?`${e.width}px`:"100%"}onDragStart(e){const{offsetX:t=0,offsetY:n=0}=e;this.itemOffsetX=t,this.itemOffsetY=n,e.dataTransfer.setData("text",""),this.updateDropzoneDimensions(),this.addClass(this.refs.iframeDropzone,"enabled"),this.dropEmitted=!1}onDropzoneDrop(e){return this.dropEmitted=!0,this.dropEvent=e,e.preventDefault(),!1}onDragEnd(e){const t=this.webform.refs.iframeContainer.getBoundingClientRect(),n=this.dropEvent?this.dropEvent.layerX:null,i=this.dropEvent?this.dropEvent.layerY:null;if(this.removeClass(this.refs.iframeDropzone,"enabled"),!this.dropEvent){if(!(!this.dropEmitted&&((0,a.getBrowserInfo)().chrome||(0,a.getBrowserInfo)().edge)&&"macOS"===globalThis.navigator.userAgentData.platform&&t.left<e.clientX&&t.top<e.clientY))return;this.dropEvent=e,this.dropEvent.dataTransfer.effectAllowed="all",this.dropEmitted=!0}const o=e.target,s=o.getAttribute("data-type"),l=o.getAttribute("data-key"),c=o.getAttribute("data-group"),d=(0,a.fastCloneDeep)(this.schemas[s]);if(l&&c){const e=this.getComponentInfo(l,c);r.default.merge(d,e)}u.default.uniquify([this.webform._form],d),this.webform._form.components.push(d),d.overlay={top:i?i-this.itemOffsetY+20:e.clientY-t.top-2*(this.itemOffsetY-20),left:n?n-this.itemOffsetX:e.clientX-t.left-2*this.itemOffsetX,width:100,height:20},this.webform.addComponent(d,{},null,!0),this.webform.postMessage({name:"addElement",data:d}),this.emit("addComponent",d,this.webform,d.key,this.webform.component.components.length,!this.options.noNewEdit&&!d.noNewEdit),this.dropEvent=null,e.target.style.cursor="default"}highlightInvalidComponents(){const e=this.findRepeatablePaths();r.default.isEqual(this.repeatablePaths,e)||((0,l.eachComponent)(this.webform.getComponents(),((e,t)=>{this.repeatablePaths.includes(t)&&this.webform.postMessage({name:"updateElement",data:e.component})})),this.repeatablePaths=e),e.length&&(0,l.eachComponent)(this.webform.getComponents(),((e,t)=>{this.repeatablePaths.includes(t)&&this.webform.postMessage({name:"showBuilderErrors",data:{compId:e.component.id,errorMessage:`API Key is not unique: ${e.key}`}})}))}}t.default=d},22114:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(30381)),s=n(6445),a=i(n(86011)),l=i(n(52225)),u=n(61066),c=i(n(85950)),d=i(n(72048)),h=n(76286),p=n(49386);u.Formio.forms={},u.Formio.registerComponent=c.default.setComponent;class f extends d.default{constructor(){let e,t;if(arguments[0]instanceof HTMLElement||arguments[1]?(e=arguments[0],t=arguments[1]):t=arguments[0],super(null,function(e){var t;return(e=r.default.defaults(e,{submitOnEnter:!1,iconset:(t=e&&e.icons?e.icons:u.Formio.icons,"fontawesome"===t?"fa":t||""),i18next:null,saveDraft:!1,alwaysDirty:!1,saveDraftThrottle:5e3,display:"form",cdnUrl:u.Formio.cdn.baseUrl})).events||(e.events=new a.default),e}(t)),this.executeShortcuts=e=>{const{target:t}=e;if(!this.keyboardCatchableElement(t))return;const n=e.ctrlKey||e.metaKey,i=e.keyCode;let o="";65<=i&&i<=90?o=String.fromCharCode(i):13===i?o="Enter":27===i&&(o="Esc"),r.default.each(this.shortcuts,(t=>{t.ctrl&&!n||t.shortcut===o&&(t.element.click(),e.preventDefault())}))},this.setElement(e),u.Formio.forms[this.id]=this,this.options.baseUrl&&u.Formio.setBaseUrl(this.options.baseUrl),this.type="form",this._src="",this._loading=!1,this._form={},this.draftEnabled=!1,this.savingDraft=!0,this.options.saveDraftThrottle?this.triggerSaveDraft=r.default.throttle(this.saveDraft.bind(this),this.options.saveDraftThrottle):this.triggerSaveDraft=this.saveDraft.bind(this),this.customErrors=[],this.nosubmit=!1,this.submitted=!1,this.submitting=!1,this.formio=null,this.loader=null,this.alert=null,this.onSubmission=null,this.submissionSet=!1,this.formReady=new Promise(((e,t)=>{this.formReadyResolve=e,this.formReadyReject=t})),this.submissionReady=new Promise(((e,t)=>{this.submissionReadyResolve=e,this.submissionReadyReject=t})),this.shortcuts=[],this.language=this.i18next.language,this.options.saveDraft&&!this.options.skipDraftRestore){const e=u.Formio.getUser();e&&!this.submissionSet&&this.restoreDraft(e._id)}this.component.clearOnHide=!1,this.root=this,this.localRoot=this}get language(){return this.options.language}get emptyValue(){return null}componentContext(){return this._data}set language(e){this.i18next&&(this.options.language=e,this.i18next.language!==e&&this.i18next.changeLanguage(e,(e=>{e||(this.rebuild(),this.emit("languageChanged"))})))}get componentComponents(){return this.form.components}get shadowRoot(){return this.options.shadowRoot}addLanguage(e,t,n=!1){if(this.i18next){var i=r.default.assign((0,h.fastCloneDeep)(l.default.resources.en.translation),t);this.i18next.addResourceBundle(e,"translation",i,!0,!0),n&&(this.language=e)}}keyboardCatchableElement(e){return"TEXTAREA"!==e.nodeName&&("INPUT"!==e.nodeName||-1===["text","email","password"].indexOf(e.type))}addShortcut(e,t){if(t&&/^([A-Z]|Enter|Esc)$/i.test(t))if("Enter"===(t=r.default.capitalize(t))||"Esc"===t){if("BUTTON"!==e.tagName)return;this.shortcuts.push({shortcut:t,element:e})}else this.shortcuts.push({ctrl:!0,shortcut:t,element:e})}removeShortcut(e,t){t&&/^([A-Z]|Enter|Esc)$/i.test(t)&&r.default.remove(this.shortcuts,{shortcut:t,element:e})}get src(){return this._src}loadSubmission(){return this.loadingSubmission=!0,this.formio.submissionId?this.onSubmission=this.formio.loadSubmission().then((e=>this.setSubmission(e)),(e=>this.submissionReadyReject(e))).catch((e=>this.submissionReadyReject(e))):this.submissionReadyResolve(),this.submissionReady}setSrc(e,t){return this.setUrl(e,t)?(this.nosubmit=!1,this.formio.loadForm({params:{live:1}}).then((e=>{const t=this.setForm(e);return this.loadSubmission(),t})).catch((e=>{console.warn(e),this.formReadyReject(e)}))):Promise.resolve()}set src(e){this.setSrc(e)}get url(){return this._src}setUrl(e,t){return!(!e||"string"!=typeof e||e===this._src||(this._src=e,this.nosubmit=!0,this.formio=this.options.formio=new u.Formio(e,t),"form"===this.type&&(this.options.src=e),0))}set url(e){this.setUrl(e)}get ready(){return this.formReady.then((()=>super.ready.then((()=>!this.loadingSubmission||this.submissionReady))))}get loading(){return this._loading}set loading(e){if(this._loading!==e){if(this._loading=e,!this.loader&&e){this.loader=this.ce("div",{class:"loader-wrapper"});const e=this.ce("div",{class:"loader text-center"});this.loader.appendChild(e)}if(this.loader)try{e?this.prependTo(this.loader,this.wrapper):this.removeChildFrom(this.loader,this.wrapper)}catch(e){}}}setForm(e,t){var n,i,o;const a=this._form&&(null===(n=this._form.components)||void 0===n?void 0:n.length);try{if(a&&JSON.stringify(this._form)===JSON.stringify(e))return Promise.resolve();if(this._form=(null==t?void 0:t.keepAsReference)?e:r.default.cloneDeep(e),this.onSetForm&&this.onSetForm(r.default.cloneDeep(this._form),e),null===(o=null===(i=this.parent)||void 0===i?void 0:i.component)||void 0===o?void 0:o.modalEdit)return Promise.resolve()}catch(e){return console.warn(e),Promise.resolve()}if(e&&e.settings&&e.settings.components&&(this.options.components=e.settings.components),e&&e.properties&&(this.options.properties=e.properties),"schema"in e&&(0,s.compareVersions)(e.schema,"1.x")>0&&this.ready.then((()=>{this.setAlert("alert alert-danger","Form schema is for a newer version, please upgrade your renderer. Some functionality may not work.")})),e&&e.module){let t=null;if("string"==typeof e.module)try{t=this.evaluate(`return ${e.module}`)}catch(e){console.warn(e)}else t=e.module;t&&(u.Formio.use(t),t.options&&t.options.form&&(this.options=Object.assign(this.options,t.options.form)))}return this.initialized=!1,(this.rebuild()||Promise.resolve()).then((()=>(this.emit("formLoad",e),this.triggerRecaptcha(),setTimeout((()=>{this.onChange(t),this.formReadyResolve()}),0),this.formReady)))}get form(){return this._form||(this._form={components:[]}),this._form}set form(e){this.setForm(e)}get submission(){return this.getValue()}set submission(e){this.setSubmission(e)}setSubmission(e,t={}){return t=Object.assign(Object.assign({},t),{fromSubmission:!r.default.has(t,"fromSubmission")||t.fromSubmission}),this.onSubmission=this.formReady.then((n=>(n&&(t=Object.assign(Object.assign({},t),n)),this.submissionSet=!0,this.triggerChange(t),this.emit("beforeSetSubmission",e),this.setValue(e,t),this.submissionReadyResolve(e))),(e=>this.submissionReadyReject(e))).catch((e=>this.submissionReadyReject(e)))}saveDraft(){if(!this.draftEnabled)return;if(!this.formio)return void console.warn(this.t("saveDraftInstanceError"));if(!u.Formio.getUser())return void console.warn(this.t("saveDraftAuthError"));const e=(0,h.fastCloneDeep)(this.submission);e.state="draft",this.savingDraft||(this.emit("saveDraftBegin"),this.savingDraft=!0,this.formio.saveSubmission(e).then((e=>{this.submission._id=e._id,this.savingDraft=!1,this.emit("saveDraft",e)})))}restoreDraft(e){this.formio?(this.savingDraft=!0,this.formio.loadSubmissions({params:{state:"draft",owner:e}}).then((e=>{if(e.length>0&&!this.options.skipDraftRestore){const t=(0,h.fastCloneDeep)(e[0]);return this.setSubmission(t).then((()=>{this.draftEnabled=!0,this.savingDraft=!1,this.emit("restoreDraft",t)}))}this.draftEnabled=!0,this.savingDraft=!1,this.emit("restoreDraft",null)}))):console.warn(this.t("restoreDraftInstanceError"))}get schema(){const e=(0,h.fastCloneDeep)(r.default.omit(this._form,["components"]));return e.components=[],this.eachComponent((t=>e.components.push(t.schema))),e}mergeData(e,t){r.default.mergeWith(e,t,((e,t)=>{if(Array.isArray(e)&&Array.isArray(t)&&e.length!==t.length)return t}))}setValue(e,t={}){e&&e.data||(e={data:{},metadata:e.metadata}),this._submission.metadata=e.metadata||{},this.editing=!!e._id,!this.options.submissionTimezone&&e.metadata&&e.metadata.timezone&&(this.options.submissionTimezone=e.metadata.timezone);const n=super.setValue(e.data,t);return t.sanitize||this.mergeData(this.data,e.data),e.data=this.data,this._submission=e,n}getValue(){return this._submission.data||(this._submission.data={}),this.viewOnly||(this._submission.data=this.data),this._submission}init(){if(this.options.submission){const e=r.default.extend({},this.options.submission);this._submission=e,this._data=e.data}else this._submission=this._submission||{data:{}};return this.components&&this.components.length&&(this.destroyComponents(),this.components=[]),this.component?this.component.components=this.form?this.form.components:[]:this.component=this.form,this.component.type="form",this.component.input=!1,this.addComponents(),this.on("submitButton",(e=>{this.submit(!1,e).catch((e=>!1!==e&&console.log(e)))}),!0),this.on("checkValidity",(e=>this.checkValidity(e,!0,e)),!0),this.on("requestUrl",(e=>this.submitUrl(e.url,e.headers)),!0),this.on("resetForm",(()=>this.resetValue()),!0),this.on("deleteSubmission",(()=>this.deleteSubmission()),!0),this.on("refreshData",(()=>this.updateValue()),!0),this.executeFormController(),this.formReady}executeFormController(){if(!this.form||!this.form.controller||(!this.visible||this.component.hidden)&&this.component.clearOnHide&&!this.rootPristine)return!1;this.formReady.then((()=>{this.evaluate(this.form.controller,{components:this.components,instance:this})}))}teardown(){this.emit("formDelete",this.id),delete u.Formio.forms[this.id],delete this.executeShortcuts,delete this.triggerSaveDraft,super.teardown()}destroy(e=!1){return this.off("submitButton"),this.off("checkValidity"),this.off("requestUrl"),this.off("resetForm"),this.off("deleteSubmission"),this.off("refreshData"),super.destroy(e)}build(e){return e||this.element?this.ready.then((()=>{e=e||this.element,super.build(e)})):this.ready}getClassName(){let e="formio-form";return this.options.readOnly&&(e+=" formio-read-only"),e}render(){return super.render(this.renderTemplate("webform",{classes:this.getClassName(),children:this.renderComponents()}),this.builderMode?"builder":"form",!0)}redraw(){return this.element?(this.clear(),this.setContent(this.element,this.render()),this.attach(this.element)):Promise.resolve()}attach(e){this.setElement(e),this.loadRefs(e,{webform:"single"});const t=this.attachComponents(this.refs.webform);return this.addEventListener(document,"keydown",this.executeShortcuts),this.currentForm=this,this.hook("attachWebform",e,this),t.then((()=>(this.emit("render",this.element),this.setValue(this._submission,{noUpdateEvent:!0}))))}hasRequiredFields(){let e=!1;return(0,p.eachComponent)(this.form.components,(t=>{if(t.validate.required)return e=!0,!0}),!0),e}resetValue(){r.default.each(this.getComponents(),(e=>e.resetValue())),this.setPristine(!0),this.onChange()}setAlert(e,t,n){if(e||!this.submitted)if(this.options.noAlerts)t||this.emit("error",!1);else{if(this.alert)try{this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach((e=>{this.removeEventListener(e,"click"),this.removeEventListener(e,"keypress")})),this.removeChild(this.alert),this.alert=null}catch(e){}if(t){const i={class:n&&n.classes||`alert alert-${e}`,id:`error-list-${this.id}`},r={message:t instanceof HTMLElement?t.outerHTML:t,attrs:i,type:e};this.alert=(0,h.convertStringToHTMLElement)(this.renderTemplate("alert",r),`#${i.id}`)}this.alert&&(this.loadRefs(this.alert,{errorRef:"multiple"}),this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach((e=>{this.addEventListener(e,"click",(e=>{const t=e.currentTarget.dataset.componentKey;this.focusOnComponent(t)})),this.addEventListener(e,"keydown",(e=>{if(13===e.keyCode){e.preventDefault();const t=e.currentTarget.dataset.componentKey;this.focusOnComponent(t)}}))})),this.prepend(this.alert))}else this.alert&&(this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach((e=>{this.removeEventListener(e,"click"),this.removeEventListener(e,"keypress")})),this.removeChild(this.alert),this.alert=null)}focusOnComponent(e){if(e){const t=this.getComponent(e);t&&t.focus()}}showErrors(e,t,n){this.loading=!1;let i=this.errors;if(e?Array.isArray(e)?i=i.concat(e):i.push(e):i=super.errors,i=i.concat(this.customErrors),i=i.concat(this.serverErrors||[]),!i.length)return void this.setAlert(!1);i.forEach((e=>{const{components:t=[]}=e;e.component&&t.push(e.component),e.path&&t.push(e.path),t.forEach((t=>{const n=this._parentPath+(0,h.getStringFromComponentPath)(t),i=this.getComponent(t,r.default.identity,n);e.fromServer&&(i.serverErrors?i.serverErrors.push(e):i.serverErrors=[e]),r.default.compact(Array.isArray(i)?i:[i]).forEach((t=>t.setCustomValidity(e.message,!0)))}))}));const o=[];i.forEach((e=>{if(e){const t=(t,n)=>{const i=!r.default.isUndefined(n)&&e.messages&&e.messages[n],o=i&&i.formattedKeyOrPath||i.path||e.component&&e.component.key||e.fromServer&&e.path;let s=o?(0,h.getStringFromComponentPath)(o):"";return s=this._parentPath+s,"string"==typeof e||e.formattedKeyOrPath||(e.formattedKeyOrPath=s),{message:(0,h.unescapeHTML)(t),keyOrPath:s}};if(e.messages=r.default.uniqBy(e.messages,(e=>e.message)),e.messages&&e.messages.length){const{component:n}=e;e.messages.forEach((({message:e,context:i,fromServer:r},s)=>{const a=(null==i?void 0:i.hasLabel)||r?this.t("alertMessage",{message:this.t(e)}):this.t("alertMessageWithLabel",{label:this.t(n.label),message:this.t(e)});o.push(t(a,s))}))}else if(e){const n=r.default.isObject(e)?this.t("alertMessage",{message:this.t(e.message||"")}):this.t("alertMessage",{message:this.t(e)});o.push(t(n))}}}));const s=this.renderTemplate("errorsList",{errors:o});return this.root.setAlert("danger",s),t&&this.emit("error",i),i}onSubmit(e,t){var n;return this.loading=!1,this.submitting=!1,this.setPristine(!0),this.setValue((0,h.fastCloneDeep)(e),{noValidate:!0,noCheck:!0}),this.setAlert("success",`<p>${this.t("complete")}</p>`),this.draftEnabled&&(null===(n=this.triggerSaveDraft)||void 0===n?void 0:n.cancel)&&this.triggerSaveDraft.cancel(),this.emit("submit",e,t),t&&this.emit("submitDone",e),e}normalizeError(e){return e&&("object"==typeof e&&"details"in e&&(e=e.details),"string"==typeof e&&(e={message:e})),e}onSubmissionError(e){if(e=this.normalizeError(e),this.submitting=!1,this.setPristine(!1),this.emit("submitError",e),e&&e.silent)return this.emit("change",{isValid:!0},{silent:!0}),!1;let t;return t=this.submitted?this.showErrors():this.showErrors(e,!0),this.root&&this.root.alert&&this.scrollIntoView(this.root.alert),t}onChange(e,t,n,i){e=e||{};let o=!1;t&&t.component&&(this.customErrors=this.customErrors.filter((e=>e.component&&e.component!==t.component.key))),super.onChange(e,!0);const s=r.default.clone(this.submission);e.changed=s.changed=t,e.changes=i,n&&this.pristine&&(this.pristine=!1),s.isValid=this.checkData(s.data,e),this.loading=!1,this.submitted&&this.showErrors(),n&&this.options.saveDraft&&this.triggerSaveDraft(),e&&e.noEmit||(this.emit("change",s,e,n),o=!0),o&&!this.initialized&&(this.emit("initialized"),this.initialized=!0)}checkData(e,t={}){const n=super.checkData(e,t);return(r.default.isEmpty(t)||t.noValidate)&&this.submitted&&this.showErrors(),n}deleteSubmission(){return this.formio.deleteSubmission().then((()=>{this.emit("submissionDeleted",this.submission),this.resetValue()}))}cancel(e){return this.hook("beforeCancel",!0)&&(e||confirm(this.t("confirmCancel")))?(this.resetValue(),!0):(this.emit("cancelSubmit"),!1)}setMetadata(e){e.metadata=e.metadata||{},r.default.defaults(e.metadata,{timezone:r.default.get(this,"_submission.metadata.timezone",(0,h.currentTimezone)()),offset:parseInt(r.default.get(this,"_submission.metadata.offset",(0,o.default)().utcOffset()),10),origin:document.location.origin,referrer:document.referrer,browserName:navigator.appName,userAgent:navigator.userAgent,pathName:window.location.pathname,onLine:navigator.onLine})}submitForm(e={}){return this.clearServerErrors(),new Promise(((t,n)=>{if(this.options.readOnly)return t({submission:this.submission,saved:!1});const i=(0,h.fastCloneDeep)(this.submission||{});this.setMetadata(i),i.state=e.state||"submitted";const o="draft"===i.state;this.hook("beforeSubmit",Object.assign(Object.assign({},i),{component:e.component}),((s,a)=>s?n(s):(i._vnote=a&&a._vnote?a._vnote:"",o||i.data?o||this.checkValidity(i.data,!0)?(this.everyComponent((e=>{i._vnote&&"form"===e.type&&e.component.reference&&(r.default.get(i.data,e.path,{})._vnote=i._vnote);const{persistent:t}=e.component;"client-only"===t&&r.default.unset(i.data,e.path)})),void this.hook("customValidation",Object.assign(Object.assign({},i),{component:e.component}),(e=>{if(e)return"string"==typeof e&&(e={message:e}),e=Array.isArray(e)?e:[e],this.customErrors=e,n();if(this.loading=!0,this._form&&this._form.action){const e=i.data._id&&this._form.action.includes(i.data._id)?"PUT":"POST";return u.Formio.makeStaticRequest(this._form.action,e,i,this.formio?this.formio.options:{}).then((e=>t({submission:e,saved:!0}))).catch((e=>(this.setServerErrors(e),n(e))))}const r=this.formio;if(this.nosubmit||!r)return t({submission:i,saved:!1});r[r.actionUrl?"saveAction":"saveSubmission"](i).then((e=>t({submission:e,saved:!0}))).catch((e=>(this.setServerErrors(e),n(e))))}))):n():n("Invalid Submission"))))}))}setServerErrors(e){e.details?this.serverErrors=e.details.filter((e=>e.level?"error"===e.level:e)).map((e=>(e.fromServer=!0,e))):"string"==typeof e&&(this.serverErrors=[{fromServer:!0,level:"error",message:e}])}executeSubmit(e){return this.submitted=!0,this.submitting=!0,this.submitForm(e).then((({submission:e,saved:t})=>this.onSubmit(e,t))).then((e=>(this.submissionInProcess=!1,e))).catch((e=>(this.submissionInProcess=!1,Promise.reject(this.onSubmissionError(e)))))}clearServerErrors(){var e;null===(e=this.serverErrors)||void 0===e||e.forEach((e=>{if(e.path){const t=(0,h.getArrayFromComponentPath)(e.path),n=this.getComponent(t,r.default.identity,e.formattedKeyOrPath);n&&(n.serverErrors=[])}})),this.serverErrors=[]}submit(e,t){return this.submissionInProcess=!0,e?this.executeSubmit(t):this.beforeSubmit(t).then((()=>this.executeSubmit(t)))}submitUrl(e,t){if(!e)return console.warn("Missing URL argument");const n=this.submission||{},i=e,r={method:"POST",headers:{}};if(t&&t.length>0&&t.map((e=>{""!==e.header&&""!==e.value&&(r.headers[e.header]=this.interpolate(e.value,n))})),!i||!r)return this.emit("error","You should add a URL to this button."),this.setAlert("warning","You should add a URL to this button."),console.warn("You should add a URL to this button.");u.Formio.makeStaticRequest(i,r.method,n,{headers:r.headers}).then((()=>{this.emit("requestDone"),this.setAlert("success","<p> Success </p>")})).catch((e=>{const t=`${e.statusText?e.statusText:""} ${e.status?e.status:e}`;return this.emit("error",t),console.error(t),this.setAlert("danger",`<p> ${t} </p>`),Promise.reject(this.onSubmissionError(e))}))}triggerRecaptcha(){if(!this||!this.components)return;const e=(0,h.searchComponents)(this.components,{"component.type":"recaptcha","component.eventType":"formLoad"});e.length>0&&e[0].verify(`${this.form.name?this.form.name:"form"}Load`)}set nosubmit(e){this._nosubmit=!!e,this.emit("nosubmit",this._nosubmit)}get nosubmit(){return this._nosubmit||!1}get conditions(){var e,t;return null!==(t=null===(e=this.schema.settings)||void 0===e?void 0:e.conditions)&&void 0!==t?t:[]}get variables(){var e,t;return null!==(t=null===(e=this.schema.settings)||void 0===e?void 0:e.variables)&&void 0!==t?t:[]}}t.default=f,f.setBaseUrl=u.Formio.setBaseUrl,f.setApiUrl=u.Formio.setApiUrl,f.setAppUrl=u.Formio.setAppUrl},26191:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(22114)),o=i(n(93977)),s=i(n(31051)),a=i(n(85950)),l=n(61066),u=n(76286),c=n(49386),d=i(n(81290)),h=i(n(96486)),p=i(n(2201)),f=i(n(40170));n(58936),"undefined"!=typeof window&&void 0===window.global&&(window.global=window);const m=i(n(1143));class g extends o.default{constructor(){let e,t;arguments[0]instanceof HTMLElement||arguments[1]?(e=arguments[0],t=arguments[1]):t=arguments[0],t.skipInit=!1,t.display=t.display||"form",super(null,t),this.moveHandler=e=>{38!==e.keyCode&&40!==e.keyCode&&13!==e.keyCode||(e.stopPropagation(),e.preventDefault()),38===e.keyCode&&this.updateComponentPlacement(!0),40===e.keyCode&&this.updateComponentPlacement(!1),13===e.keyCode&&this.stopMoving(this.selectedComponent)},this.setElement(e),this.dragulaLib=m.default,this.builderHeight=0,this.schemas={},this.repeatablePaths=[],this.sideBarScroll=h.default.get(this.options,"sideBarScroll",!0),this.sideBarScrollOffset=h.default.get(this.options,"sideBarScrollOffset",0),this.dragDropEnabled=!0,this.builder=h.default.defaultsDeep({},this.options.builder,this.defaultGroups),h.default.each(this.defaultGroups,((e,t)=>{!1===e&&(this.builder[t]=!1)})),this.groups={},this.groupOrder=[];for(const e in this.builder)this.builder[e]&&(this.builder[e].key=e,this.groups[e]=this.builder[e],this.groups[e].components=this.groups[e].components||{},this.groups[e].componentOrder=this.groups[e].componentOrder||[],this.groups[e].subgroups=Object.keys(this.groups[e].groups||{}).map((t=>(this.groups[e].groups[t].componentOrder=Object.keys(this.groups[e].groups[t].components).map((e=>e)),this.groups[e].groups[t]))),this.groupOrder.push(this.groups[e]));this.groupOrder=this.groupOrder.filter((e=>e&&!e.ignore)).sort(((e,t)=>e.weight-t.weight)).map((e=>e.key));for(const e in a.default.components){const t=a.default.components[e];if(t.builderInfo&&t.builderInfo.schema){this.schemas[e]=t.builderInfo.schema,t.type=e;const n=t.builderInfo;n.key=t.type,this.addBuilderComponentInfo(n)}}for(const e in this.groups){const t=this.groups[e];for(const n in t.components){const i="resource"===e?`component-${n}`:n;let r=t.components[i];!0===r&&a.default.components[n]&&a.default.components[n].builderInfo&&(r=a.default.components[n].builderInfo),r&&r.schema?(this.schemas[n]=r.schema,t.components[i]=r,t.components[i].key=n):delete t.components[i]}this.orderComponents(t)}this.options.hooks=this.options.hooks||{},this.options.hooks.renderComponent=(e,{component:t,self:n})=>{var i;return"form"!==n.type||n.key?this.options.disabled&&this.options.disabled.includes(n.key)||n.parent.noDragDrop?e:this.renderTemplate("builderComponent",{html:e,disableBuilderActions:null===(i=null==n?void 0:n.component)||void 0===i?void 0:i.disableBuilderActions,childComponent:t}):this.hook("renderComponentFormTemplate",e.replace("formio-component-form",""))},this.options.hooks.renderComponents=(e,{components:t,self:n})=>"datagrid"===n.type&&t.length>0||n.noDragDrop?e:((!t||!t.length&&!t.nodrop||"form"===n.type&&t.length<=1&&(0===t.length||"button"===t[0].type))&&(e=this.renderTemplate("builderPlaceholder",{position:0})+e),this.renderTemplate("builderComponents",{key:n.key,type:n.type,html:e})),this.options.hooks.renderInput=(e,{self:t})=>"hidden"===t.type?e+t.name:e,this.options.hooks.renderLoading=(e,{self:t})=>"form"===t.type&&t.key?t.name:e,this.options.hooks.attachComponents=(e,t,n,i)=>{if(!e)return;if(i.noDragDrop)return e;const r=e.querySelector(`[ref="${i.component.key}-container"]`)||e;return r.formioContainer=n,r.formioComponent=i,this.dragula&&this.allowDrop(e)&&this.dragula.containers.push(r),("datagrid"===i.type||"datamap"===i.type)&&t.length>0?e:e.children[0]},this.options.hooks.attachDatagrid=(e,t)=>{t.loadRefs(e,{[`${t.key}-container`]:"single"});const n=t.refs[`${t.key}-container`];n&&t.attachComponents(n.parentNode,[],t.component.components)},this.options.hooks.attachComponent=this.attachComponent.bind(this);const n={params:{type:"resource",limit:1e6,select:"_id,title,name,components"}};this.options&&this.options.resourceTag?n.params.tags=[this.options.resourceTag]:this.options&&this.options.hasOwnProperty("resourceTag")||(n.params.tags=["builder"]);const i=new l.Formio(l.Formio.projectUrl),r=this.options.builder&&!1===this.options.builder.resource;if(i.loadProject().then((e=>{if(e&&(h.default.get(e,"settings.addConfigToForms",!1)||h.default.get(e,"addConfigToForms",!1))){const t=e.config||{};this.options.formConfig=t;const n="webform._form.config",i=h.default.get(this,n);this.webform&&!i&&h.default.set(this,n,t)}})).catch((e=>{console.warn(`Could not load project settings: ${e.message||e}`)})),!i.noProject&&!r&&i.formsUrl){const e=this.options.builder&&this.options.builder.resource;i.loadForms(n).then((t=>{t.length&&(this.builder.resource={title:e?e.title:"Existing Resource Fields",key:"resource",weight:e?e.weight:50,subgroups:[],components:[],componentOrder:[]},this.groups.resource={title:e?e.title:"Existing Resource Fields",key:"resource",weight:e?e.weight:50,subgroups:[],components:[],componentOrder:[]},this.groupOrder.includes("resource")||this.groupOrder.push("resource"),this.addExistingResourceFields(t))}))}this.options.attachMode="builder",this.webform=this.webform||this.createForm(this.options),this.pathComponentsMapping={},this.arrayDataComponentPaths=[],this.nestedDataComponents=[],this.arrayDataComponents=[]}allowDrop(){return!0}addExistingResourceFields(e){h.default.each(e,((e,t)=>{const n=`resource-${e.name}`,i={key:n,title:e.title,components:[],componentOrder:[],default:0===t};(0,c.eachComponent)(e.components,(t=>{if("button"===t.type)return;if(this.options&&this.options.resourceFilter&&(!t.tags||-1===t.tags.indexOf(this.options.resourceFilter)))return;let r=t.label;!r&&t.key&&(r=h.default.upperFirst(t.key)),i.componentOrder.push(`component-${t.key}`),i.components[`component-${t.key}`]=h.default.merge((0,u.fastCloneDeep)(a.default.components[t.type]?a.default.components[t.type].builderInfo:a.default.components.unknown.builderInfo),{key:t.key,title:r,group:"resource",subgroup:n},{schema:Object.assign(Object.assign({},t),{label:t.label,key:t.key,lockKey:!0,source:this.options.noSource?void 0:e._id,isNew:!0})})}),!0),this.groups.resource.subgroups.push(i)})),this.triggerRedraw()}attachTooltip(e,t){return(0,s.default)(e,{allowHTML:!0,trigger:"mouseenter focus",placement:"top",delay:[200,0],zIndex:1e4,content:t})}attachComponent(e,t){if(t instanceof g)return;if(e.formioComponent=t,t.loadRefs(e,{removeComponent:"single",editComponent:"single",moveComponent:"single",copyComponent:"single",pasteComponent:"single",editJson:"single"}),t.refs.copyComponent&&(this.attachTooltip(t.refs.copyComponent,this.t("Copy")),t.addEventListener(t.refs.copyComponent,"click",(()=>this.copyComponent(t)))),t.refs.pasteComponent){const e=this.attachTooltip(t.refs.pasteComponent,this.t("Paste below"));t.addEventListener(t.refs.pasteComponent,"click",(()=>{e.hide(),this.pasteComponent(t)}))}t.refs.moveComponent&&(this.attachTooltip(t.refs.moveComponent,this.t("Move")),this.keyboardActionsEnabled&&t.addEventListener(t.refs.moveComponent,"click",(()=>{this.moveComponent(t)})));const n=this.getParentElement(e);return t.refs.editComponent&&(this.attachTooltip(t.refs.editComponent,this.t("Edit")),t.addEventListener(t.refs.editComponent,"click",(()=>this.editComponent(t.schema,n,!1,!1,t.component,{inDataGrid:t.isInDataGrid})))),t.refs.editJson&&(this.attachTooltip(t.refs.editJson,this.t("Edit JSON")),t.addEventListener(t.refs.editJson,"click",(()=>this.editComponent(t.schema,n,!1,!0,t.component)))),t.refs.removeComponent&&(this.attachTooltip(t.refs.removeComponent,this.t("Remove")),t.addEventListener(t.refs.removeComponent,"click",(()=>this.removeComponent(t.schema,n,t.component)))),e}createForm(e){return this.webform=new r.default(this.element,e),this.element&&(this.loadRefs(this.element,{form:"single"}),this.refs.form&&(this.webform.element=this.refs.form)),this.webform}get ready(){return this.webform.ready}get defaultGroups(){return{basic:{title:"Basic",weight:0,default:!0},advanced:{title:"Advanced",weight:10},layout:{title:"Layout",weight:20},data:{title:"Data",weight:30},premium:{title:"Premium",weight:40}}}redraw(){return r.default.prototype.redraw.call(this)}get form(){return this.webform.form}get schema(){return this.webform.schema}set form(e){this.setForm(e)}get container(){return this.webform.form.components}findNamespaceRoot(e){const t=(0,u.getArrayFromComponentPath)(e.path);let n=this.webform.getComponent(t);n=Array.isArray(n)?n[0]:n;const i=this.recurseNamespace(n);if(!i||this.form.key===i)return this.form.components;const r=e.component;if(i===e.key)return[...r.components,r];const o=(0,c.getComponent)(this.form.components,i,!0);return o?o.components:n.components}recurseNamespace(e){return e?["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree?e.key:this.recurseNamespace(e.parent):null}render(){return this.renderTemplate("builder",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:`builder-sidebar-${this.id}`,groups:this.groupOrder.map((e=>this.renderTemplate("builderSidebarGroup",{group:this.groups[e],groupKey:e,groupId:`builder-sidebar-${this.id}`,subgroups:this.groups[e].subgroups.map((t=>this.renderTemplate("builderSidebarGroup",{group:t,groupKey:t.key,groupId:`group-container-${e}`,subgroups:[]}))),keyboardActionsEnabled:this.keyboardActionsEnabled})))}),form:this.webform.render()})}attach(e){return this.on("change",(e=>{this.populateRecaptchaSettings(e)})),super.attach(e).then((()=>{if(this.loadRefs(e,{form:"single",sidebar:"single","sidebar-search":"single","sidebar-groups":"single",container:"multiple","sidebar-anchor":"multiple","sidebar-group":"multiple","sidebar-container":"multiple","sidebar-component":"multiple"}),this.sideBarScroll&&f.default.current.handleBuilderSidebarScroll&&f.default.current.handleBuilderSidebarScroll.call(this,this),"undefined"!=typeof window&&window.sessionStorage&&window.sessionStorage.getItem("formio.clipboard")&&this.addClass(this.refs.form,"builder-paste-mode"),!(0,u.bootstrapVersion)(this.options)){const e=(e,t)=>{let n=e.getAttribute(`data-${t}`);return n||(n=e.getAttribute(`data-bs-${t}`)),n},t=(e,t)=>{t?(e.classList.add(["show"]),e.style.display="inherit"):(e.classList.remove(["show"]),e.style.display="none")};this.refs["sidebar-group"].forEach((n=>{t(n,"true"===e(n,"default"))})),this.refs["sidebar-anchor"].forEach(((n,i)=>{this.addEventListener(n,"click",(()=>{const r=e(n,"parent").slice(17),o=e(n,"target").slice(7);this.refs["sidebar-group"].forEach(((n,s)=>{const a="true"===e(n,"default"),l=n.getAttribute("id").slice(6),u=e(n,"parent").slice(17);t(n,a&&u===o||l===r||s===i)}))}),!0)}))}this.keyboardActionsEnabled&&this.refs["sidebar-component"].forEach((e=>{this.addEventListener(e,"keydown",(t=>{13===t.keyCode&&this.addNewComponent(e)}))})),this.addEventListener(this.refs["sidebar-search"],"input",h.default.debounce((e=>{const t=e.target.value;this.searchFields(t)}),300)),this.dragDropEnabled&&this.initDragula();const t=this.dragula;if(this.refs.form)return(0,p.default)([window],{margin:20,maxSpeed:6,scrollWhenOutside:!0,autoScroll:function(){return this.down&&(null==t?void 0:t.dragging)}}),this.webform.attach(this.refs.form)}))}searchFields(e=""){const t=e.toLowerCase(),n=this.refs.sidebar,i=this.refs["sidebar-groups"];if(!n||!i)return;const r=(e,t="")=>{const n=h.default.toPlainObject(e),{subgroups:i=[],components:r}=n,o=[];for(const e in r){const n=this.t(r[e].title).toLowerCase().match(t),i=r[e].key.toLowerCase().match(t);(n||i)&&o.push(r[e])}return this.orderComponents(n,o),t&&(n.default=!0),n.componentOrder.length||i.length?n:null},o=(e,t)=>h.default.clone(e).map((e=>r(e,t))).filter((e=>!h.default.isNull(e))),s=e=>({group:r(this.groups[e],t),groupKey:e,groupId:n.id||i.id,subgroups:o(this.groups[e].subgroups,t).map((t=>this.renderTemplate("builderSidebarGroup",{group:t,groupKey:t.key,groupId:`group-container-${e}`,subgroups:[]})))});i.innerHTML=((e,t)=>h.default.cloneDeep(e).filter((e=>r(this.groups[e],t))))(this.groupOrder,t).map((e=>this.renderTemplate("builderSidebarGroup",s(e)))).join(""),this.loadRefs(this.element,{"sidebar-groups":"single","sidebar-anchor":"multiple","sidebar-group":"multiple","sidebar-container":"multiple"}),this.updateDragAndDrop(),""===t&&this.triggerRedraw()}orderComponents(e,t){const n=t||e.components,i=0===e.key.indexOf("resource-");n&&(e.componentOrder=Object.keys(n).map((e=>n[e])).filter((e=>e&&!e.ignore&&!e.ignoreForForm)).sort(((e,t)=>e.weight-t.weight)).map((e=>i?`component-${e.key}`:e.key)))}updateDragAndDrop(){if(this.dragDropEnabled&&this.initDragula(),this.refs.form)return this.webform.attach(this.refs.form)}initDragula(){const e=this.options;this.dragula&&this.dragula.destroy();const t=Array.prototype.slice.call(this.refs["sidebar-container"]).filter((e=>"group-container-resource"!==e.id));m.default&&(this.dragula=(0,m.default)(t,{moves(t){let n=!0;return Array.from(t.classList).filter((e=>0===e.indexOf("formio-component-"))).forEach((t=>{const i=t.slice(17);e.disabled&&e.disabled.includes(i)&&(n=!1)})),t.classList.contains("no-drag")&&(n=!1),n},copy:e=>e.classList.contains("drag-copy"),accepts:(e,t)=>!e.contains(t)&&!t.classList.contains("no-drop")}).on("drop",((e,t,n,i)=>this.onDrop(e,t,n,i))))}detach(){this.dragula&&this.dragula.destroy(),this.dragula=null,this.sideBarScroll&&f.default.current.clearBuilderSidebarScroll&&f.default.current.clearBuilderSidebarScroll.call(this,this),super.detach()}getComponentInfo(e,t){let n;if(t&&"resource"===t.slice(0,t.indexOf("-"))){const i=this.groups.resource.subgroups,r=h.default.find(i,{key:t});r&&r.components.hasOwnProperty(`component-${e}`)&&(n=(0,u.fastCloneDeep)(r.components[`component-${e}`].schema))}else if(this.schemas.hasOwnProperty(e))n=(0,u.fastCloneDeep)(this.schemas[e]);else if(this.groups.hasOwnProperty(t)){const i=this.groups[t].components;i.hasOwnProperty(e)&&(n=(0,u.fastCloneDeep)(i[e].schema))}else if("searchFields"===t){const t=this.groups.resource.subgroups;for(let i=0;i<t.length;i++){const r=t[i];if(r.components.hasOwnProperty(`component-${e}`)){n=(0,u.fastCloneDeep)(r.components[`component-${e}`].schema);break}}}return n&&(n.key=this.generateKey(n)),n}getComponentsPath(e,t){let n="components",i=0,r=0,o=0,s=0;switch(t.type){case"table":r=h.default.findIndex(t.rows,(t=>t.some((t=>t.components.some((t=>t.key===e.key)))))),o=h.default.findIndex(t.rows[r],(t=>t.components.some((t=>t.key===e.key)))),n=`rows[${r}][${o}].components`;break;case"columns":i=h.default.findIndex(t.columns,(t=>t.components.some((t=>t.key===e.key)))),n=`columns[${i}].components`;break;case"tabs":s=h.default.findIndex(t.components,(t=>t.components.some((t=>t.key===e.key)))),n=`components[${s}].components`}return n}onDrop(e,t,n,i){var r;if(!t)return;if(e.contains(t))return;const o=e.getAttribute("data-key"),s=e.getAttribute("data-type"),a=e.getAttribute("data-group");let l,u,p,f;if(o&&a?(l=this.getComponentInfo(o,a),!l&&s&&(l=this.getComponentInfo(s,a)),u=!0):n.formioContainer&&(f=h.default.findIndex(n.formioContainer,{key:e.formioComponent.component.key}),-1!==f&&(l=n.formioContainer.splice(h.default.findIndex(n.formioContainer,{key:e.formioComponent.component.key}),1),l=l[0])),!l)return;const m="resource"===a?`component-${o}`:o,g=(null===(r=this.groups[a])||void 0===r?void 0:r.components[m])||{};if(g.disableSiblings){let e=!1;if((0,c.eachComponent)(this.webform.components,(t=>{t.type!==g.schema.type||(e=!0)}),!0),e)return this.webform.redraw(),void this.webform.setAlert("danger",`You cannot add more than one ${g.key} component to one page.`)}t!==n&&d.default.uniquify(this.findNamespaceRoot(t.formioComponent),l);const v=t.formioComponent;t.formioContainer&&(i?(i.getAttribute("data-noattach")?f=i.getAttribute("data-position"):(f=h.default.findIndex(t.formioContainer,{key:h.default.get(i,"formioComponent.component.key")}),f=-1===f?0:f),-1!==f&&t.formioContainer.splice(f,0,l)):t.formioContainer.push(l),p=this.getComponentsPath(l,v.component),f=h.default.findIndex(h.default.get(v.schema,p),{key:l.key}),-1===f&&(f=0)),v&&v.addChildComponent&&v.addChildComponent(l,e,t,n,i);const y="datagrid"===v.type;let b;return!u||this.options.noNewEdit||l.noNewEdit||this.editComponent(l,t,u,null,null,{inDataGrid:y}),t!==n?n.formioContainer&&n.contains(t)?b=n.formioComponent.rebuild():(t.contains(n)||n.formioContainer&&(b=n.formioComponent.rebuild()),b=t.formioComponent.rebuild()):b=t.formioComponent.rebuild(),b||(b=Promise.resolve()),b.then((()=>{this.emit("addComponent",l,v,p,f,u&&!this.options.noNewEdit&&!l.noNewEdit),(!u||this.options.noNewEdit||l.noNewEdit)&&this.emit("change",this.form)}))}setForm(e){var t;if(e.components||(e.components=[]),e&&e.properties&&(this.options.properties=e.properties),this.keyboardActionsEnabled=h.default.get(this.options,"keyboardBuilder",!1)||(null===(t=this.options.properties)||void 0===t?void 0:t.keyboardBuilder),!(this.options.noDefaultSubmitButton||e.components.length&&e.components.find((e=>"submit"===e.key)))&&e.components.push({type:"button",label:"Submit",key:"submit",size:"md",block:!1,action:"submit",disableOnInvalid:!0,theme:"primary"}),this.webform){const t=!this.webform.form.components||e.components.length!==this.webform.form.components.length;return this.webform.setForm(e,{keepAsReference:!0}).then((()=>(this.refs.form&&(this.builderHeight=this.refs.form.offsetHeight),t?this.rebuild().then((()=>this.form)):this.form)))}return Promise.resolve(e)}populateRecaptchaSettings(e){let t=!1;this.form.components&&((0,c.eachComponent)(e.components,(e=>{if(!t)return"recaptcha"===e.type?(t=!0,!1):void 0})),t?h.default.set(e,"settings.recaptcha.isEnabled",!0):h.default.get(e,"settings.recaptcha.isEnabled")&&h.default.set(e,"settings.recaptcha.isEnabled",!1))}removeComponent(e,t,n){if(!t)return;let i=!0;const r=!e.skipRemoveConfirm&&(Array.isArray(e.components)&&e.components.length||Array.isArray(e.rows)&&e.rows.length||Array.isArray(e.columns)&&e.columns.length);if(this.options.alwaysConfirmComponentRemoval||r){const e=r?"Removing this component will also remove all of its children. Are you sure you want to do this?":"Are you sure you want to remove this component?";i=window.confirm(this.t(e))}n||(n=t.formioContainer.find((t=>t.id===e.id)));const o=t.formioContainer?t.formioContainer.indexOf(n):0;if(i&&-1!==o){const n=this.getComponentsPath(e,t.formioComponent.component);t.formioContainer?t.formioContainer.splice(o,1):t.formioComponent&&t.formioComponent.removeChildComponent&&t.formioComponent.removeChildComponent(e),(t.formioComponent.rebuild()||Promise.resolve()).then((()=>{this.emit("removeComponent",e,t.formioComponent.schema,n,o),this.emit("change",this.form)}))}return i}replaceDoubleQuotes(e,t=[]){if(e)return t.forEach((t=>{e[t]&&(e[t]=e[t].replace(/"/g,"'"))})),e}updateComponent(e,t){if(this.preview){this.preview.form={components:[h.default.omit(Object.assign({},e),["hidden","conditional","calculateValue","logic","autofocus","customConditional"])],config:this.options.formConfig||{}};const t=["label","tooltip"];this.preview.form.components.forEach((e=>this.replaceDoubleQuotes(e,t)));const n=this.componentEdit.querySelector('[ref="preview"]');n&&(this.setContent(n,this.preview.render()),this.preview.attach(n))}const n=(0,c.getComponent)(this.editForm.components,"defaultValue",!0);if(n&&"hidden"!==e.type)if(t&&(t.component&&"defaultValue"===t.component.key||t.instance&&n.hasComponent&&n.hasComponent(t.instance))){let n=t.instance._data.key;const i=(0,u.getArrayFromComponentPath)(t.instance.path);i.shift(),i.length&&(i.unshift(e.key),n=(0,u.getStringFromComponentPath)(i)),h.default.set(this.preview._data,n,t.value),h.default.set(this.webform._data,n,t.value)}else{h.default.assign(n.component,h.default.omit(Object.assign({},e),["key","label","labelPosition","labelMargin","labelWidth","placeholder","tooltip","hidden","autofocus","validate","disabled","defaultValue","customDefaultValue","calculateValue","conditional","customConditional","id"]));const i=n.parent;let r=-1,o=-1;if(i.tabs.some(((e,t)=>{e.some(((e,i)=>e.id===n.id&&(r=t,o=i,!0)))})),-1!==r&&-1!==o&&t&&!h.default.isNil(t.value)){const e=i.tabs[r][o+1];i.removeComponent(n);const t=i.addComponent(n.component,n.data,e);h.default.pull(t.validators,"required"),i.tabs[r].splice(o,1,t),t.checkValidity=()=>!0,t.build(n.element)}}this.emit("updateComponent",e)}findRepeatablePaths(){const e=[],t=new Map;return(0,c.eachComponent)(this.form.components,((n,i)=>{n.key&&(t.has(n.key)?t.get(n.key).includes(i)?e.push(i):t.set(n.key,[...t.get(n.key),i]):t.set(n.key,[i]))}),!0),e}highlightInvalidComponents(){const e=this.findRepeatablePaths();let t=!1;this.webform.everyComponent((n=>{var i,r;const o=n.path;e.includes(o)?(n.setCustomValidity(`API Key is not unique: ${n.key}`),t=!0):(null===(r=null===(i=n.error)||void 0===i?void 0:i.message)||void 0===r?void 0:r.startsWith("API Key is not unique"))&&n.setCustomValidity("")})),this.emit("builderFormValidityChange",t)}saveComponent(e,t,n,i){this.editForm.detach();const r=t?t.formioContainer:this.container,o=t?t.formioComponent:this;this.dialog.close();const s=r?this.getComponentsPath(e,o.component):"";i||(i=t.formioContainer.find((t=>t.id===e.id)));const a=r?r.indexOf(i):0;if(-1!==a){let e=this.editForm.submission.data;e=e.componentJson||e;const l=["label","tooltip"];this.replaceDoubleQuotes(e,l),this.hook("beforeSaveComponentSettings",e);let u=null;o.getComponents().forEach((e=>{e.component.key===i.key&&(u=e)}));const c=u.component,d=u.schema,h=this.isParentSaveChildMethod(t.formioComponent);return r&&!h?(r[a]=e,u&&(u.component=e)):h&&t.formioComponent.saveChildComponent(e),(o.rebuild()||Promise.resolve()).then((()=>{const e=r?r[a]:u?u.schema:[];if(this.emitSaveComponentEvent(e,c,o.schema,s,a,n,d),this.emit("change",this.form),this.highlightInvalidComponents(),this.isComponentCreated){const e=t.formioComponent.components[0];this.moveComponent(e),this.isComponentCreated=!1}}))}return this.highlightInvalidComponents(),Promise.resolve()}emitSaveComponentEvent(e,t,n,i,r,o,s){this.emit("saveComponent",e,t,n,i,r,o,s)}attachEditComponentControls(e,t,n,i,r){this.componentEdit.querySelectorAll('[ref="cancelButton"]').forEach((t=>{this.editForm.addEventListener(t,"click",(t=>{t.preventDefault(),this.editForm.detach(),this.emit("cancelComponent",e),this.dialog.close(),this.highlightInvalidComponents()}))})),this.componentEdit.querySelectorAll('[ref="removeButton"]').forEach((n=>{this.editForm.addEventListener(n,"click",(n=>{n.preventDefault(),this.saved=!0,this.editForm.detach(),this.removeComponent(e,t,i),this.dialog.close(),this.highlightInvalidComponents()}))})),this.componentEdit.querySelectorAll('[ref="saveButton"]').forEach((r=>{this.editForm.addEventListener(r,"click",(r=>{if(r.preventDefault(),!this.editForm.checkValidity(this.editForm.data,!0,this.editForm.data))return this.editForm.setPristine(!1),this.editForm.showErrors(),!1;this.saved=!0,this.saveComponent(e,t,n,i)}))})),this.componentEdit.querySelectorAll('[ref="previewButton"]').forEach((o=>{this.editForm.addEventListener(o,"click",(o=>{o.preventDefault(),this.showPreview=!this.showPreview,this.editForm.detach(),this.setContent(this.componentEdit,this.renderTemplate("builderEditForm",{componentInfo:r.builderInfo,editForm:this.editForm.render(),preview:!!this.preview&&this.preview.render(),showPreview:this.showPreview,helplinks:this.helplinks})),this.editForm.attach(this.componentEdit.querySelector('[ref="editForm"]')),this.attachEditComponentControls(e,t,n,i,r)}))}))}editComponent(e,t,n,i,o,s={}){var l;if(!e.key)return;this.saved=!1;const c=(0,u.fastCloneDeep)(e);let p=a.default.components[c.type];const f=void 0===p;i=i||f,p=f?a.default.components.unknown:p,this.dialog&&(this.dialog.close(),this.highlightInvalidComponents());const m=h.default.clone(h.default.get(this,"options.editForm",{}));this.editForm&&this.editForm.destroy();const g=h.default.get(this.options,`editForm.${c.type}`,{});m.editForm=this.form,m.editComponent=e,m.flags=s,this.hook("editComponentParentInstance",m,t),this.editForm=new r.default(Object.assign(Object.assign(Object.assign({},h.default.omit(this.options,["hooks","builder","events","attachMode","skipInit"])),{language:this.options.language}),m)),this.hook("editFormProperties",t),this.editForm.form=i&&!f?{components:[{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"componentJson",label:"Component JSON",tooltip:"Edit the JSON for this component."},{type:"checkbox",key:"showFullSchema",label:"Full Schema"}]}:p.editForm(h.default.cloneDeep(g));const v={inFormBuilder:!0};this.hook("instanceOptionsPreview",v);const y=new p(c,v),b=this.hook("builderComponentSchema",e,y);this.editForm.submission=i?{data:{componentJson:b,showFullSchema:this.options.showFullJsonSchema}}:{data:y.component},this.preview&&this.preview.destroy(),p.builderInfo.hasOwnProperty("preview")&&!p.builderInfo.preview||(this.preview=new r.default(h.default.omit(Object.assign(Object.assign({},this.options),{preview:!0}),["hooks","builder","events","attachMode","calculateValue"])),this.hook("previewFormSettitngs",b,i)),this.showPreview=null===(l=p.builderInfo.showPreview)||void 0===l||l,this.componentEdit=this.ce("div",{class:"component-edit-container"}),this.setContent(this.componentEdit,this.renderTemplate("builderEditForm",{componentInfo:p.builderInfo,editForm:this.editForm.render(),preview:!!this.preview&&this.preview.render(),showPreview:this.showPreview,helplinks:this.helplinks})),this.dialog=this.createModal(this.componentEdit,h.default.get(this.options,"dialogAttr",{})),this.editForm.attach(this.componentEdit.querySelector('[ref="editForm"]')),this.hook("editFormWrapper"),this.updateComponent(c),this.editForm.on("change",(r=>{if(r.changed){if(r.changed.component&&"showFullSchema"===r.changed.component.key){const{value:t}=r.changed;return void(this.editForm.submission={data:{componentJson:t?y.component:e,showFullSchema:t}})}(r.changed.component&&"key"===r.changed.component.key||i)&&(c.keyModified=!0);let o=!1;if(r.changed.instance?o=["label","title"].includes(r.changed.instance.path):r.changed.component&&(o=["label","title"].includes(r.changed.component.key)),o&&n&&(r.data.keyModified||this.editForm.everyComponent((e=>{if("key"===e.key&&"tabs"===e.parent.component.key)return e.setValue(this.updateComponentKey(r.data)),!1})),this.form)){let e=this.findNamespaceRoot(t.formioComponent);e=e.filter((e=>m.editComponent.id!==e.id)),d.default.uniquify(e,r.data)}this.updateComponent(r.data.componentJson||r.data,r.changed)}})),this.attachEditComponentControls(e,t,n,o,p);const w=()=>{this.editForm.destroy(!0),this.preview&&(this.preview.destroy(!0),this.preview=null),n&&!this.saved&&(this.removeComponent(e,t,o),this.highlightInvalidComponents()),this.removeEventListener(this.dialog,"close",w),this.dialog=null};this.addEventListener(this.dialog,"close",w),this.emit("editComponent",e)}updateComponentKey(e){return h.default.camelCase(e.title||e.label||e.placeholder||e.type).replace(/^[0-9]*/,"")}moveComponent(e){var t;this.selectedComponent&&(null===(t=this.selectedComponent.element)||void 0===t||t.classList.remove("builder-component-selected"),this.removeEventListener(document,"keydown")),e.element.focus(),e.element.classList.add("builder-component-selected"),this.selectedComponent=e,this.addEventListener(document,"keydown",this.moveHandler.bind(this))}updateComponentPlacement(e){const t=this.selectedComponent;let n,i;const r=e?-1:1;if(t){const o=t.element,s=e?o.previousElementSibling:o.nextElementSibling,a=o.parentNode,l=a.formioContainer.length;if(l&&l<=1)return;a.formioContainer&&(n=h.default.findIndex(a.formioContainer,{key:o.formioComponent.component.key}),-1!==n&&(i=a.formioContainer.splice(h.default.findIndex(a.formioContainer,{key:o.formioComponent.component.key}),1),i=i[0],a.removeChild(o)));const u=a.formioComponent.components.length;if(n=-1===n?0:n+r,-1===n)a.formioContainer.push(i),a.appendChild(o);else if(n===u){const e=a.formioContainer[0].key;n=h.default.findIndex(a.formioComponent.components,{key:e});const t=a.formioComponent.components[n].element;a.formioContainer.splice(0,0,i),a.insertBefore(o,t)}else-1!==n&&(a.formioContainer.splice(n,0,i),e?a.insertBefore(o,s):a.insertBefore(o,s.nextElementSibling));o.focus()}}stopMoving(e){const t=e.element.parentNode;this.removeEventListener(document,"keydown"),t.formioComponent.rebuild(),this.selectedComponent=null}addNewComponent(e){var t;const n=document.querySelector(".formio-builder-form"),i=e.getAttribute("data-key"),r=e.getAttribute("data-group");let o;i&&r&&(o=this.getComponentInfo(i,r)),this.options.noNewEdit||o.noNewEdit||(d.default.uniquify(this.findNamespaceRoot(n.formioComponent),o),this.editComponent(o,n,!0,null,null)),(null===(t=n.formioComponent.components[0])||void 0===t?void 0:t.element)?n.formioContainer.splice(0,0,o):n.formioContainer.push(o),n.formioComponent.rebuild().then((()=>{this.isComponentCreated=!0}))}copyComponent(e){if(!window.sessionStorage)return console.warn("Session storage is not supported in this browser.");this.addClass(this.refs.form,"builder-paste-mode"),window.sessionStorage.setItem("formio.clipboard",JSON.stringify(e.schema))}pasteComponent(e){if(!window.sessionStorage)return console.warn("Session storage is not supported in this browser.");if(this.removeClass(this.refs.form,"builder-paste-mode"),window.sessionStorage){const t=window.sessionStorage.getItem("formio.clipboard");if(t){const n=JSON.parse(t),i=this.getParentElement(e.element);if(i){d.default.uniquify(this.findNamespaceRoot(i.formioComponent),n);let t="",r=0;const o=this.isParentSaveChildMethod(i.formioComponent);i.formioContainer&&!o?(r=i.formioContainer.indexOf(e.component),t=this.getComponentsPath(n,i.formioComponent.component),i.formioContainer.splice(r+1,0,n)):o&&i.formioComponent.saveChildComponent(n,!1),i.formioComponent.rebuild(),this.emitSaveComponentEvent(n,n,i.formioComponent.component,t,r+1,!0,n)}this.emit("change",this.form)}}}isParentSaveChildMethod(e){return!(!e||!e.saveChildComponent)}getParentElement(e){let t=e;do{t=t.parentNode}while(t&&!t.formioComponent);return t}addBuilderComponentInfo(e){if(!e||!e.group||!this.groups[e.group])return;e=h.default.clone(e);const t=this.groups[e.group];return t.components.hasOwnProperty(e.key)||(t.components[e.key]=e),e}init(){return this.webform&&this.webform.init(),super.init()}clear(){this.webform.initialized&&this.webform.clear()}destroy(e=!1){this.webform.initialized&&this.webform.destroy(e),super.destroy(e)}addBuilderGroup(e,t){this.groups[e]?this.updateBuilderGroup(e,t):(this.groups[e]=t,this.groupOrder.push(e),this.triggerRedraw())}updateBuilderGroup(e,t){this.groups[e]&&(this.groups[e]=t,this.triggerRedraw())}generateKey(e){return e.key||h.default.camelCase(e.title||e.label||e.placeholder||e.type)}}t.default=g},29022:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(22114)),s=n(61066),a=n(76286);class l extends o.default{constructor(){let e,t;arguments[0]instanceof HTMLElement||arguments[1]?(e=arguments[0],t=arguments[1]||{}):t=arguments[0]||{},t.display="wizard",super(e,t),this.pages=[],this.prefixComps=[],this.suffixComps=[],this.components=[],this.originalComponents=[],this.page=0,this.currentPanel=null,this.currentPanels=null,this.currentNextPage=0,this._seenPages=[0],this.subWizards=[],this.allPages=[],this.lastPromise=Promise.resolve(),this.enabledIndex=0,this.editMode=!1,this.originalOptions=r.default.cloneDeep(this.options)}isLastPage(){const e=this.getNextPage();return r.default.isNumber(e)?-1===e:r.default.isNull(e)}getPages(e={}){const{all:t=!1}=e;return(this.hasExtraPages?this.components:this.pages).filter(t?r.default.identity:(e,t)=>this._seenPages.includes(t))}get hasExtraPages(){return!r.default.isEmpty(this.subWizards)}get data(){return super.data}get localData(){var e,t;return(null===(t=null===(e=this.pages[this.page])||void 0===e?void 0:e.root)||void 0===t?void 0:t.submission.data)||this.submission.data}checkConditions(e,t,n){const i=super.checkConditions(e,t,n);return this.establishPages(e),i}set data(e){this._data=e,r.default.each(this.getPages({all:!0}),(e=>{e.data=this.componentContext(e)}))}getComponents(){return this.submitting?this.getPages({all:this.isLastPage()}):super.getComponents()}resetValue(){this.getPages({all:!0}).forEach((e=>e.resetValue())),this.setPristine(!0)}init(){var e,t,n;this.options.buttonSettings=r.default.defaults(this.options.buttonSettings,{showPrevious:!0,showNext:!0,showSubmit:!0,showCancel:!this.options.readOnly}),this.isSecondInit||(this.isClickableDefined=null===(t=null===(e=this.options)||void 0===e?void 0:e.breadcrumbSettings)||void 0===t?void 0:t.hasOwnProperty("clickable"),this.isSecondInit=!0),this.options.breadcrumbSettings=r.default.defaults(this.options.breadcrumbSettings,{clickable:!0}),this.options.allowPrevious=this.options.allowPrevious||!1,this.page=0;const i=super.init();return this.setComponentSchema(),(null===(n=this.pages)||void 0===n?void 0:n[this.page])&&(this.component=this.pages[this.page].component),this.on("subWizardsUpdated",(e=>{const t=this.subWizards.find((t=>{var n;return(null==e?void 0:e.id)&&(null===(n=t.subForm)||void 0===n?void 0:n.id)===(null==e?void 0:e.id)}));this.subWizards.length&&t&&(t.subForm.setValue(e._submission,{},!0),this.establishPages(),this.redraw())})),i}get wizardKey(){return`wizard-${this.id}`}get wizard(){return this.form}set wizard(e){this.setForm(e)}get buttons(){const e={};return[{name:"cancel",method:"cancel"},{name:"previous",method:"prevPage"},{name:"next",method:"nextPage"},{name:"submit",method:"submit"}].forEach((t=>{this.hasButton(t.name)&&(e[t.name]=t)})),e}get buttonOrder(){var e,t,n;return null!==(n=null===(t=null===(e=this.options.properties)||void 0===e?void 0:e.wizardButtonOrder)||void 0===t?void 0:t.toLowerCase().split(", "))&&void 0!==n?n:["cancel","previous","next","submit"]}get renderContext(){var e,t;return{disableWizardSubmit:this.form.disableWizardSubmit,wizardKey:this.wizardKey,isBreadcrumbClickable:this.isBreadcrumbClickable(),isSubForm:!!this.parent&&"wizard"===!(null===(t=null===(e=this.root)||void 0===e?void 0:e.component)||void 0===t?void 0:t.type),panels:this.allPages.length?this.allPages.map((e=>e.component)):this.pages.map((e=>e.component)),buttons:this.buttons,currentPage:this.page,buttonOrder:this.buttonOrder}}prepareNavigationSettings(e){const t=this.currentPanel;return t&&t.buttonSettings&&Object.keys(t.buttonSettings).forEach((()=>{Object.keys(e.buttons).forEach((n=>{(void 0!==t.buttonSettings[n]&&!t.buttonSettings[n]||e.isSubForm)&&(e.buttons[n]=null)}))})),this.renderTemplate("wizardNav",e)}prepareHeaderSettings(e,t){return this.currentPanel&&"none"===this.currentPanel.breadcrumb||e.isSubForm?null:this.renderTemplate(t,e)}render(){const e=this.renderContext;this.component.key&&e.panels.map((t=>{t.key===this.component.key&&(this.currentPanel=t,e.wizardPageTooltip=this.getFormattedTooltip(t.tooltip))}));const t=this.prepareNavigationSettings(e),n=`wizardHeader${r.default.get(this.form,"settings.wizardHeaderType","")}`,i=r.default.get(this.form,"settings.wizardHeaderLocation","left"),o=this.prepareHeaderSettings(e,n);return this.renderTemplate("wizard",Object.assign(Object.assign({},e),{className:super.getClassName(),wizardHeader:o,wizardHeaderType:n,wizardHeaderLocation:i,wizardNav:t,components:this.renderComponents([...this.prefixComps,...this.currentPage.components,...this.suffixComps])}),this.builderMode?"builder":"form")}redrawNavigation(){if(this.element){let e=this.element.querySelector(`#${this.wizardKey}-nav`);e&&(this.detachNav(),e.outerHTML=this.renderTemplate("wizardNav",this.renderContext),e=this.element.querySelector(`#${this.wizardKey}-nav`),this.loadRefs(e,{[`${this.wizardKey}-cancel`]:"single",[`${this.wizardKey}-previous`]:"single",[`${this.wizardKey}-next`]:"single",[`${this.wizardKey}-submit`]:"single"}),this.attachNav())}}redrawHeader(){if(this.element){let e=this.element.querySelector(`#${this.wizardKey}-header`);e&&(this.detachHeader(),e.outerHTML=this.renderTemplate(`wizardHeader${r.default.get(this.form,"settings.wizardHeaderType","")}`,this.renderContext),e=this.element.querySelector(`#${this.wizardKey}-header`),this.loadRefs(e,{[`${this.wizardKey}-link`]:"multiple",[`${this.wizardKey}-tooltip`]:"multiple"}),this.attachHeader())}}attach(e){var t;this.setElement(e),this.loadRefs(e,{[this.wizardKey]:"single",[`${this.wizardKey}-header`]:"single",[`${this.wizardKey}-cancel`]:"single",[`${this.wizardKey}-previous`]:"single",[`${this.wizardKey}-next`]:"single",[`${this.wizardKey}-submit`]:"single",[`${this.wizardKey}-link`]:"multiple",[`${this.wizardKey}-tooltip`]:"multiple"}),!this.options.readOnly&&!this.editMode||this.enabledIndex||(this.enabledIndex=(null===(t=this.pages)||void 0===t?void 0:t.length)-1),this.hook("attachWebform",e,this);const n=this.attachComponents(this.refs[this.wizardKey],[...this.prefixComps,...this.currentPage.components,...this.suffixComps]);return this.attachNav(),this.attachHeader(),n.then((()=>{this.emit("render",{component:this.currentPage,page:this.page}),this.component.scrollToTop&&this.scrollPageToTop()}))}scrollPageToTop(){var e;const t=null!==(e=this.refs[`${this.wizardKey}-header`])&&void 0!==e?e:this.refs[this.wizardKey];t&&("scrollIntoView"in t?t.scrollIntoView(!0):this.scrollIntoView(t))}isBreadcrumbClickable(){let e=null;return this.pages.map((t=>{r.default.isEqual(this.currentPage.component,t.component)&&(e=t)})),this.isClickableDefined?this.options.breadcrumbSettings.clickable:r.default.get(e,"component.breadcrumbClickable",!0)}isAllowPrevious(){let e=null;return this.pages.map((t=>{r.default.isEqual(this.currentPage.component,t.component)&&(e=t)})),r.default.get(e.component,"allowPrevious",this.options.allowPrevious)}handleNaviageteOnEnter(e){if(13===e.keyCode){const e=new CustomEvent("click"),t=this.refs[`${this.wizardKey}-${this.buttons.next.name}`];t&&t.dispatchEvent(e)}}handleSaveOnEnter(e){if(13===e.keyCode){const e=new CustomEvent("click"),t=this.refs[`${this.wizardKey}-${this.buttons.submit.name}`];t&&t.dispatchEvent(e)}}attachNav(){this.component.navigateOnEnter&&this.addEventListener(document,"keyup",this.handleNaviageteOnEnter.bind(this)),this.component.saveOnEnter&&this.addEventListener(document,"keyup",this.handleSaveOnEnter.bind(this)),r.default.each(this.buttons,(e=>{const t=this.refs[`${this.wizardKey}-${e.name}`];this.addEventListener(t,"click",(n=>{n.preventDefault(),t.setAttribute("disabled","disabled"),this.setLoading(t,!0),this[e.method]().then((()=>{t.removeAttribute("disabled"),this.setLoading(t,!1)})).catch((()=>{t.removeAttribute("disabled"),this.setLoading(t,!1)}))}))}))}emitWizardPageSelected(e){this.emit("wizardPageSelected",this.pages[e],e)}attachHeader(){var e;const t=this.isAllowPrevious();this.attachTooltips(this.refs[`${this.wizardKey}-tooltip`],this.currentPanel.tooltip),(this.isBreadcrumbClickable()||t)&&(null===(e=this.refs[`${this.wizardKey}-link`])||void 0===e||e.forEach(((e,n)=>{(!t||n<=this.enabledIndex)&&this.addEventListener(e,"click",(e=>(this.emit("wizardNavigationClicked",this.pages[n]),e.preventDefault(),this.setPage(n).then((()=>{this.emitWizardPageSelected(n)})))))})))}detachNav(){this.component.navigateOnEnter&&this.removeEventListener(document,"keyup",this.handleNaviageteOnEnter.bind(this)),this.component.saveOnEnter&&this.removeEventListener(document,"keyup",this.handleSaveOnEnter.bind(this)),r.default.each(this.buttons,(e=>{this.removeEventListener(this.refs[`${this.wizardKey}-${e.name}`],"click")}))}detachHeader(){this.refs[`${this.wizardKey}-link`]&&this.refs[`${this.wizardKey}-link`].forEach((e=>{this.removeEventListener(e,"click")}))}transformPages(){const e=[],t=this.getSortedComponents(this);let n=[];this.allPages=[];const i=(e,t,o=!0)=>{const s=[],l=["datagrid","editgrid","dynamicWizard"],u=(null==e?void 0:e.subForm)?this.getSortedComponents(e.subForm):(null==e?void 0:e.components)||[],c=u.filter((e=>e._visible)).filter((e=>!l.includes(e.component.type)&&("form"!==e.type||e.isNestedWizard))),d=u.filter((e=>{var t;return"wizard"!==(null===(t=e.subForm)||void 0===t?void 0:t._form.display)}));let h=!1;if((0,a.eachComponent)(c,(e=>{if(e&&e.component&&("panel"===e.component.type&&(null==e?void 0:e.parent.wizard)&&!i(e,t,!1)&&(o&&(this.setRootPanelId(e),s.push(e)),h=!0),e.isNestedWizard&&e.subForm)){const t=i(e,s,o);h||(h=t)}}),!0),"panel"===e.component.type&&(!h&&o&&(this.setRootPanelId(e),t.push(e)),h&&d.length)){const t=r.default.clone(e);t.components=d,this.setRootPanelId(t),n.push(t)}return o&&(t.push(...n,...s),n=[]),h};t.forEach((t=>{t.visible&&i(t,e)}),[]),this.localRoot&&this.id===this.localRoot.id&&e.forEach(((e,t)=>{e.eachComponent((e=>{e.page=t}))})),this.allPages=e}getSortedComponents({components:e,originalComponents:t}){const n=[],i=[];return e&&e.length&&e.map((e=>{"panel"===e.component.type&&(i[e.component.key||e.component.title]=e)})),null==t||t.forEach((e=>{e.key||(e.key=e.title),i[e.key]&&n.push(i[e.key])})),n}findRootPanel(e){var t;return(null===(t=e.parent)||void 0===t?void 0:t.parent)?this.findRootPanel(e.parent):e}setRootPanelId(e){var t;if(e.rootPanelId&&e.rootPanelId!==e.id)return;const n=(null===(t=e.parent)||void 0===t?void 0:t.parent)?this.findRootPanel(e.parent):e;e.rootPanelId=n.id}establishPages(e=this.data){this.pages=[],this.prefixComps=[],this.suffixComps=[];const t=[],n={},i=Object.assign(Object.assign({},r.default.clone(this.options)),this.parent?{root:this}:{});return this.components&&this.components.length&&this.components.forEach((e=>{"panel"===e.component.type&&(n[e.component.key||e.component.title]=e)})),this.originalComponents&&this.originalComponents.forEach((r=>{if("panel"===r.type){r.key||(r.key=r.title);let o=n[r.key];const s=this.shouldForceShow(r),l=this.shouldForceHide(r);let u=o?o.visible:(0,a.checkCondition)(r,e,e,this.component,this)&&!r.hidden;s?u=!0:l&&(u=!1),u&&(t.push(r),o&&this.pages.push(o)),!o&&u&&(o=this.createComponent(r,i),o.visible=u,this.pages.push(o),o.eachComponent((e=>{e.page=this.pages.length-1})))}else"button"!==r.type&&(this.pages.length?this.suffixComps.push(this.createComponent(r,i)):this.prefixComps.push(this.createComponent(r,i)))})),this.pages.length&&this.emit("pagesChanged"),this.transformPages(),this.allPages&&this.allPages.length&&this.updatePages(),t}updatePages(){this.pages=this.allPages}addComponents(){this.establishPages()}setPage(e){if(e===this.page)return Promise.resolve();if(e>=0&&e<this.pages.length){this.page=e,this.pageFieldLogic(e),this.getNextPage();let t=e;if(this.hasExtraPages){const n=this.pages[e],i=this.components[e];i&&(null==n?void 0:n.id)===i.id||(t=this.components.findIndex((e=>{var n,i;return e.id===(null===(i=null===(n=this.pages)||void 0===n?void 0:n[t])||void 0===i?void 0:i.rootPanelId)})))}return this._seenPages.includes(t)||(this._seenPages=this._seenPages.concat(t)),this.redraw().then((()=>{this.checkData(this.submission.data)})),Promise.resolve()}return this.pages.length?Promise.reject("Page not found"):(this.redraw(),Promise.resolve())}pageFieldLogic(e){var t;(null===(t=this.pages)||void 0===t?void 0:t[e])&&(this.component=this.pages[e].component,this.originalComponent=(0,a.fastCloneDeep)(this.component),this.fieldLogic(this.data),this.disabled=this.shouldDisabled)}get currentPage(){return this.pages&&this.pages.length>=this.page?this.pages[this.page]:{components:[]}}getNextPage(){var e;if(null===(e=this.pages)||void 0===e?void 0:e[this.page]){const e=this.submission.data,t=this.pages[this.page].component;if(t){const n=this.pages.length>this.page+1&&!this.showAllErrors?this.page+1:-1;if(t.nextPage){const i=this.evaluate(t.nextPage,{next:n,data:e,page:n,form:t},"next");if(null===i)return this.currentNextPage=null,null;const r=parseInt(i,10);return!isNaN(parseInt(r,10))&&isFinite(r)?(this.currentNextPage=r,r):(this.currentNextPage=this.getPageIndexByKey(i),this.currentNextPage)}return this.currentNextPage=n,n}this.currentNextPage=null}return null}getPreviousPage(){return this.page-1}beforeSubmit(){const e=this.getPages();return Promise.all(e.map((e=>(e.options.beforeSubmit=!0,e.beforeSubmit()))))}beforePage(e){return new Promise(((t,n)=>{this.hook(e?"beforeNext":"beforePrev",this.currentPage,this.submission,(i=>{i&&(this.showErrors(i,!0),n(i));const r=this.currentPage;r?r.beforePage(e).then(t).catch(n):t()}))}))}emitNextPage(){this.emit("nextPage",{page:this.page,submission:this.submission})}nextPage(){return this.options.readOnly?this.beforePage(!0).then((()=>this.setPage(this.getNextPage()).then((()=>{this.emitNextPage()})))):this.checkValidity(this.localData,!0,this.localData,!0)?(this.checkData(this.submission.data),this.beforePage(!0).then((()=>this.setPage(this.getNextPage()).then((()=>{!this.options.readOnly&&!this.editMode&&this.enabledIndex<this.page&&(this.enabledIndex=this.page,this.redraw()),this.emitNextPage()}))))):(this.currentPage.components.forEach((e=>e.setPristine(!1))),this.scrollIntoView(this.element),Promise.reject(this.showErrors([],!0)))}emitPrevPage(){this.emit("prevPage",{page:this.page,submission:this.submission})}prevPage(){return this.beforePage().then((()=>this.setPage(this.getPreviousPage()).then((()=>{this.emitPrevPage()}))))}cancel(e){return this.options.readOnly?Promise.resolve():super.cancel(e)?(this.setPristine(!0),this.setPage(0).then((()=>(this.enabledIndex&&(this.enabledIndex=0),this.onChange(),this.redraw(),this.page)))):Promise.resolve()}getPageIndexByKey(e){let t=this.page;return this.pages.forEach(((n,i)=>{if(n.component.key===e)return t=i,!1})),t}get schema(){return this.wizard}setComponentSchema(){const e={};if(this.originalComponents=[],this.component.components.map((t=>{"panel"===t.type&&(t.key=(0,a.uniqueKey)(e,t.key||"panel"),e[t.key]=!0,this.wizard.full?(this.options.show=this.options.show||{},this.options.show[t.key]=!0):this.wizard.hasOwnProperty("full")&&!r.default.isEqual(this.originalOptions.show,this.options.show)&&(this.options.show=Object.assign({},this.originalOptions.show||{}))),this.originalComponents.push(r.default.clone(t))})),!Object.keys(e).length){const e={type:"panel",title:"Page 1",label:"Page 1",key:"page1",components:this.component.components};this.component.components=[e],this.originalComponents.push(r.default.clone(e))}}setForm(e,t){if(e)return super.setForm(e,t)}onSetForm(e,t){this.component.components=(this._parentPath?t.components:e.components)||[],this.setComponentSchema()}setEditMode(e){this.editMode||!e._id||this.options.readOnly||(this.editMode=!0,this.redraw())}setValue(e,t={},n){const i=this.getPages({all:!0}).reduce(((n,i)=>this.setNestedValue(i,e.data,t,n)||n),!1);return t.sanitize||this.mergeData(this.data,e.data),i&&this.pageFieldLogic(this.page),this.setEditMode(e),e.data=this.data,this._submission=e,n||this.establishPages(e.data),i}isClickable(e,t){return this.page!==t&&(0,a.firstNonNil)([r.default.get(e,"breadcrumbClickable"),this.options.breadcrumbSettings.clickable])}hasButton(e,t=this.getNextPage()){const{previous:n=this.options.buttonSettings.showPrevious,cancel:i=this.options.buttonSettings.showCancel,submit:o=this.options.buttonSettings.showSubmit,next:s=this.options.buttonSettings.showNext}=r.default.get(this.currentPage,"component.buttonSettings",{});switch(e){case"previous":return n&&this.getPreviousPage()>-1;case"next":return s&&null!==t&&-1!==t;case"cancel":return i&&!this.options.readOnly;case"submit":return o&&!this.options.readOnly&&(null===t||this.page===this.pages.length-1);default:return!0}}pageId(e){return e.key?`${e.key}-${e.title}`:e.components&&e.components.length>0?this.pageId(e.components[0]):e.title}onChange(e,t,n,i){var o,s;let a,l;super.onChange(e,t,n,i),this.alert&&!this.submitted&&(this.checkValidity(this.localData,!1,this.localData,!0),this.showErrors([],!0,!0));const u=this.currentNextPage;this.hasExtraPages?(a=this.pages.map((e=>e.component.key)),this.establishPages(),l=this.pages.map((e=>e.component.key))):(a=this.currentPanels||this.pages.map((e=>e.component.key)),l=this.establishPages().map((e=>e.key)),this.currentPanels=l,(null===(o=this.currentPanel)||void 0===o?void 0:o.key)&&(null===(s=this.currentPanels)||void 0===s?void 0:s.length)&&this.setPage(this.currentPanels.findIndex((e=>e===this.currentPanel.key)))),(!r.default.isEqual(l,a)||e&&e.fromSubmission)&&this.redrawHeader(),u!==this.getNextPage()&&this.redrawNavigation(),this.options.readOnly&&(this.prefixComps.length||this.suffixComps.length)&&this.redraw()}redraw(){var e,t;return(null===(t=null===(e=this.parent)||void 0===e?void 0:e.component)||void 0===t?void 0:t.modalEdit)?this.parent.redraw():super.redraw()}checkValidity(e,t,n,i){return this.checkCondition(n,e)?(!i||this.isLastPage()?this.getComponents():this.currentPage.components).reduce(((i,r)=>r.checkValidity(e,t,n)&&i),!0):(this.setCustomValidity(""),!0)}get errors(){return this.isLastPage()?super.errors:this.currentPage.errors}focusOnComponent(e){let t=0;const[n]=this.pages.filter(((n,i)=>{let r=!1;return n.getComponent(e,(n=>{n.path===e&&(t=i,r=!0)})),r}));return n&&n!==this.currentPage?this.setPage(t).then((()=>{this.checkValidity(this.submission.data,!0,this.submission.data),this.showErrors(),super.focusOnComponent(e)})):super.focusOnComponent(e)}}t.default=l,l.setBaseUrl=s.Formio.setBaseUrl,l.setApiUrl=s.Formio.setApiUrl,l.setAppUrl=s.Formio.setAppUrl},81375:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(26191)),o=i(n(22114)),s=i(n(81290)),a=i(n(96486)),l=n(76286);class u extends r.default{constructor(){let e,t;arguments[0]instanceof HTMLElement||arguments[1]?(e=arguments[0],t=arguments[1]):t=arguments[0],t.skipInit=!1,t.display="wizard",super(e,t),this._form={components:[this.getPageConfig(1)]},this.page=0;for(const e in this.groups)this.groups[e]&&this.groups[e].components&&(this.groups[e].componentOrder=Object.keys(this.groups[e].components).map((t=>this.groups[e].components[t])).filter((e=>e&&!e.ignore)).sort(((e,t)=>e.weight-t.weight)).map((e=>e.key)));const n=this.options.hooks.renderComponents;this.options.hooks.renderComponents=(e,{components:t,self:i})=>"form"!==i.type||i.root?n(e,{components:t,self:i}):e;const i=this.options.hooks.attachComponents;this.options.hooks.attachComponents=(e,t,n,r)=>"form"!==r.type||r.root?i(e,t,n,r):e,this.on("saveComponent",((e,t)=>{const n=this.webform.components.map((({component:e})=>e));if(this._form.components.includes(t))this._form.components[this._form.components.indexOf(t)]=e,this.rebuild();else if(n.includes(t))this._form.components.push(e),this.rebuild();else{const n=this._form.components.findIndex((e=>t.key===e.key));-1!==n&&(this._form.components[n]=e,this.rebuild())}}),!0)}removeComponent(e,t,n){const i=super.removeComponent(e,t,n);if(i&&"panel"===e.type){const t=this.pages.findIndex((t=>t.key===e.key)),n=this._form.components.findIndex((t=>t.key===e.key));-1!==t&&this.removePage(t,n)}return i}allowDrop(e){return!this.webform||!this.webform.refs||this.webform.refs.webform!==e}get pages(){return a.default.filter(this._form.components,{type:"panel"})}get currentPage(){const e=this.pages;return e&&e.length>=this.page?e[this.page]:null}set form(e){if(this._form=e,this._form.components&&Array.isArray(this._form.components)||(this._form.components=[]),0===this.pages.length){const e=this._form.components.filter((e=>"button"!==e.type));this._form.components=[this.getPageConfig(1,e)]}else{const e=this._form.components.filter((e=>"button"!==e.type||"submit"!==e.action));this._form.components=e}this.rebuild()}get form(){return this._form}get schema(){a.default.assign(this.currentPage,this.webform._form.components[0]);const e=new o.default(this.options);return e.setForm(this._form,{noEmit:!0}),e.schema}render(){return this.renderTemplate("builderWizard",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:`builder-sidebar-${this.id}`,groups:this.groupOrder.map((e=>this.renderTemplate("builderSidebarGroup",{group:this.groups[e],groupKey:e,groupId:`builder-sidebar-${this.id}`,subgroups:this.groups[e].subgroups.map((t=>this.renderTemplate("builderSidebarGroup",{group:t,groupKey:t.key,groupId:`group-container-${e}`,subgroups:[]})))})))}),pages:this.pages,form:this.webform.render()})}attach(e){return this.loadRefs(e,{addPage:"multiple",gotoPage:"multiple"}),this.refs.gotoPage.forEach(((e,t)=>{e.parentNode.dragInfo={index:t}})),this.dragulaLib&&(this.navigationDragula=this.dragulaLib([this.element.querySelector(".wizard-pages")],{moves:e=>!e.classList.contains("wizard-add-page"),accepts:(e,t,n,i)=>!!i}).on("drop",this.onReorder.bind(this))),this.refs.addPage.forEach((e=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.addPage()}))})),this.refs.gotoPage.forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.setPage(t)}))})),super.attach(e)}detach(){this.navigationDragula&&this.navigationDragula.destroy(),this.navigationDragula=null,super.detach()}rebuild(){var e;const t=this.currentPage;return this.webform.setForm({display:"form",type:"form",components:t?[t]:[],controller:(null===(e=this._form)||void 0===e?void 0:e.controller)||""},{keepAsReference:!0}),this.redraw()}addPage(e){const t=e&&e.schema?(0,l.fastCloneDeep)(e.schema):this.getPageConfig(this.pages.length+1);return s.default.uniquify(this._form.components,t),this._form.components.push(t),this.emitSaveComponentEvent(t,t,this._form,"components",this._form.components.length-1,!0,t),this.emit("change",this._form),this.rebuild()}removePage(e,t){return this._form.components.splice(t,1),this.emit("change",this._form),e===this.pages.length?0===e?(this._form.components.push(this.getPageConfig(1)),this.rebuild()):this.setPage(e-1):this.rebuild()}onReorder(e,t,n,i){const r=null==i?void 0:i.classList.contains("wizard-add-page");if(!e.dragInfo||i&&!i.dragInfo&&!r)return void console.warn("There is no Drag Info available for either dragged or sibling element");const o=e.dragInfo.index,s=i&&i.dragInfo?i.dragInfo.index:this.pages.length,a=s>o,u=(0,l.fastCloneDeep)(this._form.components),c=this._form.components[o];return u.splice(s,0,c),u.splice(a?o:o+1,1),this._form.components=(0,l.fastCloneDeep)(u),this.rebuild().then((()=>{this.emit("change",this._form)}))}setPage(e){if(e!==this.page)return this.page=e,this.rebuild()}getPageConfig(e,t=[]){return{title:`Page ${e}`,label:`Page ${e}`,type:"panel",key:`page${e}`,components:t}}pasteComponent(e){if(!(e instanceof u))return this._form.components.find((t=>a.default.isEqual(e.component,t)))?void this.addPage(e):super.pasteComponent(e)}}t.default=u},64096:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(32197)),o=i(n(96486));class s extends r.default{static get info(){return{supportedComponents:[],name:"formioAddon",components:[],label:"Formio Addon",defaultSettings:{}}}get defaultSettings(){return s.info.defaultSettings}get element(){return this._element}constructor(e,t){super(e),this.namespace="formio.plugin",this.component=t||{},this.settings=o.default.merge({},this.defaultSettings,e||{})}attach(e){return this._element=e,Promise.resolve()}destroy(){}}t.default=s},58315:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(66140));t.default=[{label:"Strength Levels",reorder:!1,addAnotherPosition:"bottom",layoutFixed:!1,enableRowGroups:!1,initEmpty:!1,tableView:!1,defaultValue:[{}],key:"levels",type:"editgrid",input:!0,components:[{label:"Name",tableView:!0,validate:{required:!0},key:"name",type:"textfield",input:!0},{label:"Max Entropy",description:"Specifies the top boundary of the password's entropy(strength) which belongs to this level.\nCommon entropy values are:\n<ul>\n <li>&lt; 28 bits = Very Weak;</li>\n <li>28 - 35 bits = Weak; should keep out most people;</li>\n <li>36 - 59 bits = Reasonable; fairly secure passwords for network and company passwords;</li>\n <li>60 - 127 bits = Strong; can be good for guarding financial information;</li>\n <li>&gt; 128 bits = Very Strong; often overkill;</li>\n</ul>\n",mask:!1,spellcheck:!0,tableView:!1,delimiter:!1,requireDecimal:!1,inputFormat:"plain",validate:{required:!0,min:1,max:128},key:"maxEntropy",type:"number",input:!0},{label:"Style",tooltip:"Specifies the background color style using bootstrap classes",tableView:!0,data:{values:[{label:"Danger",value:"danger"},{label:"Warning",value:"warning"},{label:"Info",value:"info"},{label:"Success",value:"success"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"style",type:"select",indexeddb:{filter:{}},input:!0},{label:"Color",placeholder:"#0079c0",tooltip:"Specifies a color of the indicator element",tableView:!0,key:"color",type:"textfield",input:!0}]},{label:"Update On",tableView:!0,data:{values:[{label:"Strength Level Change",value:"levelChange"},{label:"Entropy Change",value:"entropyChange"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"updateOn",type:"select",indexeddb:{filter:{}},input:!0},{label:"Rules",reorder:!1,addAnotherPosition:"bottom",layoutFixed:!1,enableRowGroups:!1,initEmpty:!1,tableView:!1,defaultValue:[{}],key:"rulesSettings",type:"datagrid",input:!0,components:[{label:"Name",tableView:!0,data:{values:[{label:"Length",value:"length"},{label:"Lower Case",value:"lowerCase"},{label:"Upper Case",value:"upperCase"},{label:"Numeric",value:"numeric"},{label:"Symbols",value:"symbols"}]},selectThreshold:.3,validate:{required:!0,onlyAvailableItems:!1},key:"name",type:"select",indexeddb:{filter:{}},input:!0},{label:"Error Message",tableView:!0,key:"errorMessage",type:"textfield",input:!0},{label:"Required",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1}]},{label:"Custom Rules",tableView:!1,rowDrafts:!1,key:"customRules",type:"editgrid",input:!0,components:[{label:"Name",tableView:!0,validate:{required:!0},key:"name",type:"textfield",input:!0},r.default.javaScriptValue("Check","check","",1100,'<p><h4>Example:</h4><pre>valid = !value.includes(data.email) ? true : "Password should not be variation of the email";</pre></p>',"","",!0),{label:"Increase Characters Pool Size",description:"Set this to amount of characters that may be used in the password if there is a specific group of characters is used.\nE.g., if your validation checks if there is any numeric symbol in the password, then you should set it to 10 (there are 10 possible numbers).\n",mask:!1,spellcheck:!0,tableView:!1,delimiter:!1,requireDecimal:!1,inputFormat:"plain",key:"increaseCharactersPoolSize",type:"number",input:!0},{label:"Required",tooltip:"Check if this check is required to proceed",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1}]},r.default.javaScriptValue("Is Valid","isValid","",1100,"<p><h4>Example:</h4><pre>valid = entropy > maxEntropy / 2 ;</pre></p>","","<tr><th>entropy</th><td>Current entropy bits of the password.</td></tr><tr><th>level</th><td>Current strength level of the password.</td></tr>",!0),{label:"Required",description:"Check this if you don't want to allow submitting password which does not correspond to the minimal strength requirements.",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1},{label:"Black List",tooltip:"Add words to search in the password. If there are some words from that list were found, the entropy of the password will be recalculated.\n",tableView:!0,multiple:!0,key:"blackList",type:"textfield",input:!0},r.default.javaScriptValue("Custom Blacklisted Words","customBlackListedWords","",1100,"<p><h4>Example:</h4><pre>values = [ data.name, data.dataOfBirth, data.favoriteColor ];</pre></p>","","",!0),{label:"Disable Blacklisted Words",tooltip:"Check if you want to disable submitting passwords containing words form the clack list",tableView:!1,key:"disableBlacklistedWords",type:"checkbox",input:!0,defaultValue:!1},{label:"Location",hideLabel:!1,tableView:!1,key:"location",type:"container",input:!0,components:[{label:"Insert",tooltip:"Specifies where the indicator will be inserted: before or aftre an element",tableView:!0,data:{values:[{label:"Before",value:"before"},{label:"After",value:"after"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"insert",type:"select",indexeddb:{filter:{}},input:!0},{label:"Selector",placeholder:"[ref='element']",description:"Specifies the selector of the element which will be used as a reference to insert the indicator template",tableView:!0,key:"selector",type:"textfield",input:!0}]},{label:"Template",editor:"ace",tableView:!0,key:"template",type:"textarea",input:!0,as:"html"}]},98910:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(64096)),s=i(n(58315));class a extends o.default{static get info(){return{supportedComponents:["password"],name:"passwordStrength",components:s.default,label:"Password Strength",defaultSettings:{rulesSettings:[{name:"length",required:!1,message:"Value should be longer"},{name:"upperCase",required:!1,message:"Value should have uppercase letters"},{name:"numeric",required:!1,message:"Value should have numeric symbols"},{name:"lowerCase",required:!1,message:"Value should be have lowercase letters"},{name:"symbols",required:!1,message:"Value should have symbols"}],updateOn:"levelChange",required:!0,levels:[{name:"Low",maxEntropy:28,style:"danger"},{name:"Medium",maxEntropy:45,style:"warning"},{name:"High",maxEntropy:59,style:"info"},{name:"Very High",maxEntropy:85,style:"success"}],blackList:[],template:"\n <div class=\"formio-security-indicator\">\n {% if (!ctx.readOnly && !ctx.pristine) { %}\n <div\n title=\"{{ctx.t(ctx.tooltip)}}\"\n class=\"security-{{ctx.levelName}} {{ ctx.level.style ? 'bg-' + ctx.level.style : ''}}\"\n style=\"{{ctx.level.color ? 'background-color: ' + ctx.level.color + ';' : ''}}\"\n ></div>\n {% } %}\n </div>\n ",location:{insert:"after",selector:'[ref="element"]'}}}}get defaultSettings(){return a.info.defaultSettings}get rules(){return{length:{check:(e,t)=>{const n=t.minLength||this.component.component.validate.minLength||6;return!(e.length<n)||`Value must be longer than ${n} characters`}},upperCase:{check:e=>!!/[A-Z]/g.test(e)||"Value must contain uppercased alphabetical characters",increaseCharactersPoolSize:26},numeric:{check:e=>!!/[0-9]/g.test(e)||"Value must contain numeric characters",increaseCharactersPoolSize:10},lowerCase:{check:e=>!!/[a-z]/g.test(e)||"Value must contain lowercased alphabetical characters",increaseCharactersPoolSize:26},symbols:{check:e=>!!/[ `!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?~]/.test(e)||"Value must contain symbols",increaseCharactersPoolSize:32}}}get charactersPoolLength(){return this._charactersPoolLength}set charactersPoolLength(e){this._charactersPoolLength=e}get level(){return this._level||this.getLevel()}set level(e){this._level=e}get entropy(){return this._entropy}get dictionarySize(){return this.settings.dictionarySize||171476}set entropy(e){const t=this.getLevel(),n="entropyChange"===this.settings.updateOn&&this._entropy!==e;this._entropy=e,this.level=this.getLevel(),("levelChange"===this.settings.updateOn&&t.name!==this.level.name||n)&&this.updateView()}get template(){return this.settings.template}get tooltip(){var e,t;return(null===(e=this.level)||void 0===e?void 0:e.tooltip)||`${null===(t=this.level)||void 0===t?void 0:t.name} strongness`}get rulesSettings(){return this.settings.rulesSettings||[]}get customRules(){return this.settings.customRules||[]}log2(e){return"function"==typeof Math.log2?Math.log2(e):Math.log(e)*Math.LOG2E}calculatePasswordEntropy(e,t){return e&&t?this.log2(Math.pow(t,e)):0}calculatePasswordEntropyWords(e){return this.dictionarySize?this.log2(this.dictionarySize)*e:0}render(){const e=this.component.interpolate(this.template,{entropy:this.entropy,maxEntropy:this.maxEntropy,level:this.level,levelName:this.level.name.replace(" ","-").toLowerCase(),levels:this.levels,readOnly:this.component.options.readOnly,pristine:this.component.pristine,t:this.t.bind(this),tooltip:this.tooltip});return this.component.sanitize(e)}checkBlackList(e){const t=[...this.settings.blackList];let n=this.settings.customBlacklistedWords;n&&"string"==typeof n&&(n=this.evaluate(n,this.component.evalContext({value:e}),"values"),n&&n.length&&t.push(...n));let i=e;const r=[];for(let n=0;n<t.length;n++){const o=t[n],s=new RegExp(`${o}`,"gi");if(s.test(e)&&(r.push(o),i=i.replace(s,"")),i.length<3)break}if(r.length){const{charactersPoolSize:e}=i.length?this.performChecks(i):0,t=this.calculatePasswordEntropy(i.length,e);return{entropy:this.calculatePasswordEntropyWords(r.length)+t,blacklistedWords:r}}return!0}isValid(){const e=this.settings.isValid;return e&&"string"==typeof e?this.evaluate(e,this.component.evalContext({entropy:this.entropy,level:this.level}),"valid"):this.entropy>=Math.round(this.maxEntropy/2)}handleRuleCheckResult(e,t,n,i){if(!0!==e)i.push({validation:t.name,message:n,level:t.required?"error":"warning"});else if(t.increaseCharactersPoolSize)return t.increaseCharactersPoolSize;return 0}performChecks(e){const t=[];let n=0;return this.rulesSettings.forEach((i=>{if(this.rules[i.name]){const o=r.default.merge({},this.rules[i.name],i),s=o.check(e,i.options||{}),a=i.message||s;n+=this.handleRuleCheckResult(s,o,a,t)}})),this.customRules.forEach((i=>{if(i.check&&"string"==typeof i.check){const r=this.evaluate(i.check,this.component.evalContext({value:e}),"valid"),o="string"==typeof r?r:`Password does not meet ${i.name} validation`;n+=this.handleRuleCheckResult(r,i,o,t)}})),{charactersPoolSize:n,errors:t}}checkValidity(e){var t;const n=e.length,{charactersPoolSize:i,errors:r}=this.performChecks(e);this.errors=r;const o=this.calculatePasswordEntropy(n,i),s=(null===(t=this.settings.blackList)||void 0===t?void 0:t.length)||this.settings.customBlacklistedWords?this.checkBlackList(e):null;return s&&!0!==s?(this.handleBlackListCheckResult(s),this.entropy=Math.min(o,s.entropy)):this.entropy=o,this.isValid()||this.errors.push({message:"Password is not strong enough",level:this.settings.required?"error":"warning"}),!this.errors.length}handleBlackListCheckResult(e){const t=e.blacklistedWords,n=this.settings.disableBlacklistedWords,i=`Password ${n?"must":"should"} not include common words: ${t.join(", ")}`,r={name:"blacklist",required:n};this.handleRuleCheckResult(!1,r,i,this.errors)}constructor(e,t){super(e,t),this._entropy=0,this.levels=[...this.settings.levels||this.defaultSettings.levels],this.levels.sort(((e,t)=>e.maxEntropy-t.maxEntropy)),this.level=this.levels[0],this.maxEntropy=this.levels[this.levels.length-1].maxEntropy}attach(e){super.attach(e);const t=this.component.ce("div",{ref:"passwordStrengthIndicator"});this.insertContainer(e,t)||this.component.append(t),this._element=t,this.component.on("redraw",(()=>this.updateView())),this.component.on("componentError",(()=>this.updateView())),this.updateView()}insertContainer(e,t){var n,i;if(!e||!t)return!1;const r=null===(n=this.settings.location)||void 0===n?void 0:n.insert,o=null===(i=this.settings.location)||void 0===i?void 0:i.selector;let s;if(o&&(s=e.querySelector(o)),!s)return console.warn(`No elements found using selector: ${o}`),!1;{const e=s.parentNode;switch(r){case"after":return!!e&&(e.insertBefore(t,s.nextSibling||null),!0);case"before":return!!e&&(e.insertBefore(t,s),!0);default:return console.warn(`Unknown insert option: ${r}`),!1}}}destroy(){super.destroy()}getLevel(e=this.entropy){const t=this.levels[0];let n=t.maxEntropy;if(e<=t.maxEntropy)return t;if(e>=this.maxEntropy)return this.levels[this.levels.length-1];for(let t=1;t<this.levels.length;t++){const i=this.levels[t];if(e>n&&e<=i.maxEntropy)return i;n=i.maxEntropy}return t}updateView(){if(!this.element)return;const e=this.render();this.element.innerHTML=e}}t.default=a},37911:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.editForms=void 0;const r=i(n(98910));t.editForms=[r.default.info].map((({components:e,name:t,defaultSettings:n})=>({type:"form",key:"settings",display:"form",input:!0,components:e,defaultValue:{data:n},customConditional:({row:e})=>e.name.value===t}))),t.default={passwordStrength:r.default}},51413:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(14128)),s=i(n(26191)),a=i(n(81375));class l{static addBuilder(e,t){l.builders[e]=t}static addBuilders(e){l.builders=r.default.merge(l.builders,e)}static getBuilder(e){return l.builders[e]}static getBuilders(){return l.builders}}l.builders={pdf:o.default,webform:s.default,wizard:a.default},t.default=l},31074:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(51413));t.default=r.default},85950:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(93977)),o=i(n(66140)),s=i(n(83095)),a=i(n(96486));class l{static set EditFormUtils(e){l._editFormUtils=e}static get EditFormUtils(){return l._editFormUtils}static set baseEditForm(e){l._baseEditForm=e}static get baseEditForm(){return l._baseEditForm}static recalculateComponents(){window&&window.Formio&&window.Formio.AllComponents&&l.setComponents(window.Formio.AllComponents)}static get components(){return l._components||(l._components={}),l._components}static setComponents(e){e.base&&(e.base.tableView=function(e,t){return l.create(t.component,t.options||{},t.data||{},!0).getView(e)}),a.default.assign(l.components,e)}static addComponent(e,t){return l.setComponent(e,t)}static setComponent(e,t){l.components[e]=t}static create(e,t,n){let i=null;return i=e.type&&l.components.hasOwnProperty(e.type)?new l.components[e.type](e,t,n):e.arrayTree?new l.components.datagrid(e,t,n):e.tree?new l.components.nesteddata(e,t,n):Array.isArray(e.components)?new l.components.nested(e,t,n):t&&t.server?new l.components.hidden(e,t,n):new r.default(e,t,n),i}}l._editFormUtils=o.default,l._baseEditForm=s.default,t.default=l},83095:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(53316)),s=i(n(83672)),a=i(n(39860)),l=i(n(61397)),u=i(n(21568)),c=i(n(9081)),d=i(n(22025)),h=i(n(66140));t.default=function(...e){const t=r.default.cloneDeep([{type:"tabs",key:"tabs",components:[{label:"Display",key:"display",weight:0,components:l.default},{label:"Data",key:"data",weight:10,components:s.default},{label:"Validation",key:"validation",weight:20,components:c.default},{label:"API",key:"api",weight:30,components:a.default},{label:"Conditional",key:"conditional",weight:40,components:o.default},{label:"Logic",key:"logic",weight:50,components:u.default},{label:"Layout",key:"layout",weight:60,components:d.default}]}]).concat(e.map((e=>({type:"tabs",key:"tabs",components:r.default.cloneDeep(e)}))));return{components:r.default.unionWith(t,h.default.unifyComponents).concat({type:"hidden",key:"type"})}}},93977:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(47853),l=s(n(31051)),u=s(n(96486)),c=s(n(90891)),d=n(61066),h=o(n(76286)),p=s(n(90783)),f=n(76286),m=s(n(32197)),g=s(n(4372)),v=s(n(94554)),y=s(n(37911)),b=n(89678),w=s(n(92569)),_=s(n(40170)),k=h.getBrowserInfo().ie;class C extends m.default{static schema(...e){return u.default.merge({input:!0,key:"",placeholder:"",prefix:"",customClass:"",suffix:"",multiple:!1,defaultValue:null,protected:!1,unique:!1,persistent:!0,hidden:!1,clearOnHide:!0,refreshOn:"",redrawOn:"",tableView:!1,modalEdit:!1,label:"",dataGridLabel:!1,labelPosition:"top",description:"",errorLabel:"",tooltip:"",hideLabel:!1,tabindex:"",disabled:!1,autofocus:!1,dbIndex:!1,customDefaultValue:"",calculateValue:"",calculateServer:!1,widget:null,attributes:{},validateOn:"change",validate:{required:!1,custom:"",customPrivate:!1,strictDateValidation:!1,multiple:!1,unique:!1},conditional:{show:null,when:null,eq:""},overlay:{style:"",left:"",top:"",width:"",height:""},allowCalculateOverride:!1,encrypted:!1,showCharCount:!1,showWordCount:!1,properties:{},allowMultipleMasks:!1,addons:[]},...e)}static get Validator(){return p.default}static get conditionOperatorsSettings(){return{operators:["isEqual","isNotEqual","isEmpty","isNotEmpty"],valueComponent:()=>({type:"textfield"})}}static savedValueTypes(e){return e=e||{},h.getComponentSavedTypes(e)||[h.componentValueTypes.any]}static tableView(e,t){}constructor(e,t,n){super(Object.assign({renderMode:"form",attachMode:"full",noDefaults:!1},t||{})),e&&e.id&&(this.id=e.id),this._hasCondition=null,this.refs={},e&&this.options.components&&this.options.components[e.type]&&u.default.merge(e,this.options.components[e.type]),this.validator=p.default,this.path="",this.component=this.mergeSchema(e||{}),this.component.id=this.id,this.afterComponentAssign(),this.originalComponent=(0,f.fastCloneDeep)(this.component),this.attached=!1,this.rendered=!1,this._data=n||{},this.error="",this.tooltip="",this.row=this.options.row,this._disabled=!!(0,f.boolValue)(this.component.disabled)&&this.component.disabled,this.root=this.options.root,this.localRoot=this.options.localRoot,this.pristine=!0,this.parent=this.options.parent,this.options.name=this.options.name||"data",this.validators=["required","minLength","maxLength","minWords","maxWords","custom","pattern","json","mask"],this._path="",this._parentPath=this.options.parentPath||"",this.resetCaches(),this._parentVisible=!this.options.hasOwnProperty("parentVisible")||this.options.parentVisible,this._visible=this._parentVisible&&this.conditionallyVisible(null,n),this._parentDisabled=!1;let i=[],r=null,o=[];const s=u.default.debounce(((...e)=>{this.root&&(this.root.changing=!1),o=[],!e[1]&&r&&(e[1]=r),u.default.isEmpty(e[0])&&r&&(e[0]=r.flags),r=null,e[3]=i;const t=this.onChange(...e);return i=[],t}),100);this.triggerChange=(...e)=>(e[1]&&(r=e[1],i.push(r)),this.root&&(this.root.changing=!0),e.length&&(o=e),s(...o)),this.triggerRedraw=u.default.debounce(this.redraw.bind(this),100),this.tooltips=[],this.addons=[],this.invalid=!1,this.component&&(this.type=this.component.type,this.allowData&&this.key&&(this.options.name+=`[${this.key}]`,!this.visible&&this.component.clearOnHide||(this.hasValue()?this.dataValue=this.dataValue:this.shouldAddDefaultValue&&(this.dataValue=this.defaultValue))),this.info=this.elementInfo()),this.hook("component"),this.options.skipInit||this.init()}get data(){return this._data}set data(e){this._data=e}mergeSchema(e={}){return u.default.defaultsDeep(e,this.defaultSchema)}get ready(){return Promise.resolve(this)}get isPDFReadOnlyMode(){return this.parent&&this.parent.form&&"pdf"===this.parent.form.display&&this.options.readOnly}get labelInfo(){const e={};e.hidden=this.labelIsHidden(),e.className="",e.labelPosition=this.component.labelPosition,e.tooltipClass=`${this.iconClass("question-sign")} text-muted`;const t=this.isPDFReadOnlyMode;return this.hasInput&&this.component.validate&&(0,f.boolValue)(this.component.validate.required)&&!t&&(e.className+=" field-required"),e.hidden&&(e.className+=" control-label--hidden"),this.info.attr.id&&(e.for=this.info.attr.id),e}init(){var e;this.disabled=this.shouldDisabled,this._visible=this.conditionallyVisible(null,null),(null===(e=this.component.addons)||void 0===e?void 0:e.length)&&this.component.addons.forEach((e=>this.createAddon(e)))}afterComponentAssign(){}createAddon(e){var t;const n=e.name;if(!n)return;const i=(null===(t=e.settings)||void 0===t?void 0:t.data)||{},r=y.default[n.value];let o=null;if(r){const e=r.info.supportedComponents;(null==e?void 0:e.length)&&-1===e.indexOf(this.component.type)?console.warn(`Addon ${n.label} does not support component of type ${this.component.type}.`):(o=new r(i,this),this.addons.push(o))}return o}teardown(){this.element&&(delete this.element.component,delete this.element),delete this._currentForm,delete this.parent,delete this.root,delete this.triggerChange,delete this.triggerRedraw,this.options&&(delete this.options.root,delete this.options.parent,delete this.options.i18next),super.teardown()}destroy(e=!1){super.destroy(e),this.detach(),this.addons.forEach((e=>e.destroy())),e&&this.teardown()}get shouldDisabled(){return this.options.readOnly||this.component.disabled||this.options.hasOwnProperty("disabled")&&this.options.disabled[this.key]}get isInputComponent(){return!this.component.hasOwnProperty("input")||this.component.input}get allowData(){return this.hasInput}get hasInput(){return this.isInputComponent||this.refs.input&&this.refs.input.length}get defaultSchema(){return C.schema()}get key(){return u.default.get(this.component,"key","")}set parentVisible(e){this._parentVisible=e}get parentVisible(){return this._parentVisible}set parentDisabled(e){this._parentDisabled=e}get parentDisabled(){return this._parentDisabled}shouldForceVisibility(e,t){return!!this.options[t]&&(e||(e=this.component),u.default.isArray(this.options[t])?this.options[t].includes(e.key):this.options[t][e.key])}shouldForceHide(e){return this.shouldForceVisibility(e,"hide")}shouldForceShow(e){return this.shouldForceVisibility(e,"show")}set visible(e){if(this._visible!==e){if(e&&this.shouldForceHide())return;if(!e&&this.shouldForceShow())return;this._visible=e,this.clearOnHide(),this.redraw()}}get visible(){return!!(this.builderMode||this.previewMode||this.options.showHiddenFields)||!this.shouldForceHide()&&(!!this.shouldForceShow()||this._visible&&this._parentVisible)}get currentForm(){return this._currentForm}set currentForm(e){this._currentForm=e}get fullMode(){return"full"===this.options.attachMode}get builderMode(){return"builder"===this.options.attachMode}get calculatedPath(){return console.error("component.calculatedPath was deprecated, use component.path instead."),this.path}get labelPosition(){return this.component.labelPosition}get labelWidth(){const e=this.component.labelWidth;return e>=0?e:30}get labelMargin(){const e=this.component.labelMargin;return e>=0?e:3}get isAdvancedLabel(){return["left-left","left-right","right-left","right-right"].includes(this.labelPosition)}get labelPositions(){return this.labelPosition.split("-")}get skipInEmail(){return!1}rightDirection(e){return!this.options.condensedMode&&"right"===e}getLabelInfo(e=!1){const t=this.rightDirection(this.labelPositions[0]),n="left"===this.labelPositions[0]||e,i=this.rightDirection(this.labelPositions[1]);let r="";if(this.component.hideLabel){const e=this.labelWidth+this.labelMargin;r=t?`margin-right: ${e}%`:"",r=n?`margin-left: ${e}%`:""}return{isRightPosition:t,isRightAlign:i,labelStyles:`\n flex: ${this.labelWidth};\n ${t?"margin-left":"margin-right"}: ${this.labelMargin}%;\n `,contentStyles:`\n flex: ${100-this.labelWidth-this.labelMargin};\n ${r};\n ${this.component.hideLabel?"max-width: "+(100-this.labelWidth-this.labelMargin):""};\n `}}getModifiedSchema(e,t,n){const i={};return t?(u.default.each(e,((e,r)=>{if(!u.default.isArray(e)&&u.default.isObject(e)&&t.hasOwnProperty(r)){const n=this.getModifiedSchema(e,t[r],!0);u.default.isEmpty(n)||(i[r]=n)}else u.default.isArray(e)?0===e.length||u.default.isEqual(e,t[r])||(i[r]=e):(!n&&"type"===r||!n&&"key"===r||!n&&"label"===r||!n&&"input"===r||!n&&"tableView"===r||""!==e&&!t.hasOwnProperty(r)||""!==e&&e!==t[r]||t[r]&&e!==t[r])&&(i[r]=e)})),i):e}get schema(){return(0,f.fastCloneDeep)(this.getModifiedSchema(u.default.omit(this.component,"id"),this.defaultSchema))}get isInDataGrid(){return this.inDataGrid}t(e,t={},...n){return e?e in w.default&&t._userInput?e:(t.data=this.rootValue,t.row=this.data,t.component=this.component,super.t(e,t,...n)):""}labelIsHidden(){return!this.component.label||(!this.isInDataGrid&&this.component.hideLabel||this.isInDataGrid&&!this.component.dataGridLabel||this.options.inputsOnly)&&!this.builderMode}transform(e,t){const n=this.options.template?_.default.templates[this.options.template]:_.default.current;return n.hasOwnProperty("transform")?n.transform(e,t,this):(e,t)=>t}getTemplate(e,t){t=Array.isArray(t)?t:[t],e=Array.isArray(e)?e:[e],t.includes("form")||t.push("form");let n=null;if(this.options.templates&&(n=this.checkTemplate(this.options.templates,e,t),n))return n;const i=this.options.template?_.default.templates[this.options.template]:_.default.current;if(n=this.checkTemplate(i,e,t),n)return n;const r=e[e.length-1],o=_.default.defaultTemplates[r];if(!o)return`Unknown template: ${r}`;return this.checkTemplateMode(o,t)||o.form}checkTemplate(e,t,n){for(const i of t){const t=e[i];if(t){const e=this.checkTemplateMode(t,n);if(e)return e}}return null}checkTemplateMode(e,t){for(const n of t){const t=e[n];if(t)return t}return null}getFormattedAttribute(e){return e?this.t(e,{_userInput:!0}).replace(/"/g,"&quot;"):""}getFormattedTooltip(e){const t=this.interpolate(e||"").replace(/(?:\r\n|\r|\n)/g,"<br />");return this.getFormattedAttribute(t)}isHtmlRenderMode(){return"html"===this.options.renderMode}renderTemplate(e,t={},n){const i=n||this.options.renderMode||"form";t.component=this.component,t.self=this,t.options=this.options,t.readOnly=this.options.readOnly,t.iconClass=this.iconClass.bind(this),t.size=this.size.bind(this),t.t=this.t.bind(this),t.transform=this.transform.bind(this),t.id=t.id||this.id,t.key=t.key||this.key,t.value=t.value||this.dataValue,t.disabled=this.disabled,t.builder=this.builderMode,t.render=(...e)=>(console.warn("Form.io 'render' template function is deprecated.\n If you need to render template (template A) inside of another template (template B),\n pass pre-compiled template A (use this.renderTemplate('template_A_name') as template context variable for template B"),this.renderTemplate(...e)),t.label=t.labelInfo||this.labelInfo,t.tooltip=this.getFormattedTooltip(this.component.tooltip);const r=[`${e}-${this.component.type}-${this.key}`,`${e}-${this.component.type}`,`${e}-${this.key}`,`${e}`];return this.hook(`render${e.charAt(0).toUpperCase()+e.substring(1,e.length)}`,this.interpolate(this.getTemplate(r,i),t),t,i)}sanitize(e,t,n){var i;return!this.shouldSanitizeValue&&!t||this.options.pdf&&!t?e:h.sanitize(e,{sanitizeConfig:u.default.merge((null===(i=this.options)||void 0===i?void 0:i.sanitizeConfig)||{},n||{})})}renderString(e,t){return e?this.interpolate(e,t):""}performInputMapping(e){return e}get widget(){var e;const t=this.component.widget;return t&&(null===(e=this.root)||void 0===e?void 0:e.shadowRoot)&&(t.shadowRoot=this.root.shadowRoot),t&&v.default[t.type]?new v.default[t.type](t,this.component,this):null}getBrowserLanguage(){const e=window.navigator,t=["language","browserLanguage","systemLanguage","userLanguage"];let n;if(Array.isArray(e.languages))for(let t=0;t<e.languages.length;t++)if(n=e.languages[t],n&&n.length)return n.split(";")[0];for(let i=0;i<t.length;i++)if(n=e[t[i]],n&&n.length)return n.split(";")[0];return null}beforePage(){return Promise.resolve(!0)}beforeNext(){return this.beforePage(!0)}beforeSubmit(){return Promise.resolve(!0)}get submissionTimezone(){return this.options.submissionTimezone=this.options.submissionTimezone||u.default.get(this.root,"options.submissionTimezone"),this.options.submissionTimezone}get timezone(){return this.getTimezone(this.component)}getTimezone(e){if(e.timezone)return e.timezone;if("utc"===e.displayInTimezone)return"UTC";const t=this.submissionTimezone;return t&&("submission"===e.displayInTimezone||(this.options.pdf||this.options.server)&&"viewer"===e.displayInTimezone)?t:(0,f.currentTimezone)()}loadRefs(e,t){for(const n in t){const i=t[n],r="string"==typeof i,o=r&&i.includes("scope")?`:scope > [ref="${n}"]`:`[ref="${n}"]`;r&&i.startsWith("single")?this.refs[n]=e.querySelector(o):this.refs[n]=e.querySelectorAll(o)}}setOpenModalElement(e){this.componentModal.setOpenModalElement(e||this.getModalPreviewTemplate())}getModalPreviewTemplate(){var e;const t="password"===this.component.type?this.dataValue.replace(/./g,"•"):this.dataValue,n=this.error?{level:"error",message:this.error.message}:"";let i;return this.hasInput&&(null===(e=this.component.validate)||void 0===e?void 0:e.required)&&!this.isPDFReadOnlyMode&&(i={className:"field-required"}),this.renderTemplate("modalPreview",{previewText:this.getValueAsString(t,{modalPreview:!0})||this.t("Click to set value"),messages:n&&this.renderTemplate("message",n),labelInfo:i})}build(e){return e=e||this.element,this.empty(e),this.setContent(e,this.render()),this.attach(e)}get hasModalSaveButton(){return!0}render(e=`Unknown component: ${this.component.type}`,t=!1){const n=this.visible;return this.rendered=!0,this.builderMode||this.previewMode||!this.component.modalEdit?this.renderTemplate("component",{visible:n,id:this.id,classes:this.className,styles:this.customStyle,children:e},t):g.default.render(this,{visible:n,showSaveButton:this.hasModalSaveButton,id:this.id,classes:this.className,styles:this.customStyle,children:e},t)}attachTooltips(e){null==e||e.forEach(((e,t)=>{if(e){const n=e.getAttribute("data-tooltip"),i=e.getAttribute("data-title"),r=this.interpolate(i||n).replace(/(?:\r\n|\r|\n)/g,"<br />");this.tooltips[t]=(0,l.default)(e,{allowHTML:!0,trigger:"mouseenter click focus",placement:"right",zIndex:1e4,interactive:!0,content:this.t(r,{_userInput:!0})})}}))}createComponentModal(e,t,n){return new g.default(this,e,t,n)}attach(e){if(!this.builderMode&&!this.previewMode&&this.component.modalEdit){const t=!!this.componentModal&&this.componentModal.isOpened,n=t?this.componentModal.currentValue:this.dataValue,i=this.componentModal&&t?this.componentModal.openModalTemplate:null;this.componentModal=this.createComponentModal(e,t,n),this.setOpenModalElement(i)}this.attached=!0,this.setElement(e),e.component=this,this.element.id&&(this.id=this.element.id,this.component.id=this.id),this.loadRefs(e,{messageContainer:"single",tooltip:"multiple"}),this.attachTooltips(this.refs.tooltip),this.attachLogic(),this.autofocus(),this.hook("attachComponent",e,this);const t=this.component.type;return t&&this.hook(`attach${t.charAt(0).toUpperCase()+t.substring(1,t.length)}`,e,this),this.restoreFocus(),this.addons.forEach((t=>t.attach(e))),Promise.resolve()}restoreFocus(){var e,t,n;(null===(t=null===(e=this.root)||void 0===e?void 0:e.focusedComponent)||void 0===t?void 0:t.path)===this.path&&(this.loadRefs(this.element,{input:"multiple"}),this.focus(null===(n=this.root.currentSelection)||void 0===n?void 0:n.index),this.restoreCaretPosition())}addShortcut(e,t){e&&this.root&&this.root!==this&&(t||(t=this.component.shortcut),this.root.addShortcut(e,t))}removeShortcut(e,t){e&&this.root!==this&&(t||(t=this.component.shortcut),this.root.removeShortcut(e,t))}detach(){u.default.each(this.refs,(e=>{typeof e===NodeList?e.forEach((e=>{delete e.component})):e&&delete e.component})),this.refs={},this.removeEventListeners(),this.detachLogic(),this.tooltip&&this.tooltip.destroy()}checkRefresh(e,t,n){const i=u.default.get(t,"instance.path",!1);i&&this.path===i||("data"===e?this.refresh(this.data,t,n):i&&(0,f.getComponentPath)(t.instance)===e&&t&&t.instance&&this.inContext(t.instance)&&this.refresh(t.value,t,n))}checkRefreshOn(e,t={}){if(e=e||[],t.noRefresh)return;!e.length&&t.changed&&(e=[t.changed]);const n=t.fromBlur?this.component.refreshOnBlur:this.component.refreshOn||this.component.redrawOn;n&&(Array.isArray(n)?n.forEach((n=>e.forEach((e=>this.checkRefresh(n,e,t))))):e.forEach((e=>this.checkRefresh(n,e,t))))}refresh(e){this.hasOwnProperty("refreshOnValue")?this.refreshOnChanged=!u.default.isEqual(e,this.refreshOnValue):this.refreshOnChanged=!0,this.refreshOnValue=(0,f.fastCloneDeep)(e),this.refreshOnChanged&&(this.component.clearOnRefresh&&this.setValue(null),this.triggerRedraw())}inContext(e){if(e.data===this.data)return!0;let t=this.parent;for(;t;){if(t.data===e.data)return!0;t=t.parent}return!1}get viewOnly(){return this.options.readOnly&&this.options.viewAsHtml}setElement(e){this.element&&(delete this.element.component,delete this.element),this.element=e}createViewOnlyElement(){return this.setElement(this.ce("dl",{id:this.id})),this.element&&(this.element.component=this),this.element}get defaultViewOnlyValue(){return"-"}getWidgetValueAsString(e,t){const n=!this.refs.input||!this.refs.input[0]||!this.refs.input[0].widget;if(!e||n)return this.widget&&e?this.widget.getValueAsString(e):e;if(Array.isArray(e)){const n=[];return e.forEach(((e,i)=>{const r=this.refs.input[i]&&this.refs.input[i].widget;r&&n.push(r.getValueAsString(e,t))})),n}return this.refs.input[0].widget.getValueAsString(e,t)}getValueAsString(e,t){if(!e)return"";if(e=this.getWidgetValueAsString(e,t),Array.isArray(e))return e.join(", ");if(u.default.isPlainObject(e))return JSON.stringify(e);if(null==e)return"";const n=e.toString();return this.sanitize(n)}getView(e,t){return this.component.protected?"--- PROTECTED ---":this.getValueAsString(e,t)}updateItems(...e){this.restoreValue(),this.onChange(...e)}itemValue(e,t=!1){if(u.default.isObject(e)&&!u.default.isArray(e)){if(this.valueProperty)return u.default.get(e,this.valueProperty);if(t)return e.value}return e}itemValueForHTMLMode(e){return Array.isArray(e)?e.map((e=>Array.isArray(e)?this.itemValueForHTMLMode(e):this.itemValue(e))).join(", "):this.itemValue(e)}createModal(e,t,n){const i=this.ce("div",t||{});this.setContent(i,this.renderTemplate("dialog")),i.refs={},this.loadRefs.call(i,i,{dialogOverlay:"single",dialogContents:"single",dialogClose:"single"}),i.refs.dialogContents.appendChild(e),document.body.appendChild(i),document.body.classList.add("modal-open"),i.close=()=>{document.body.classList.remove("modal-open"),i.dispatchEvent(new CustomEvent("close"))},this.addEventListener(i,"close",(()=>this.removeChildFrom(i,document.body)));const r=e=>{e.preventDefault(),i.close()},o=e=>{n?n().then((()=>r(e))).catch((()=>{})):r(e)};return this.addEventListener(i.refs.dialogOverlay,"click",o),this.addEventListener(i.refs.dialogClose,"click",o),i}get optimizeRedraw(){return!(!this.options.optimizeRedraw||!this.element||this.visible||(this.addClass(this.element,"formio-removed"),0))}get className(){let e=this.hasInput?`${this.transform("class","form-group")} has-feedback `:"";return e+=`formio-component formio-component-${this.component.type} `,this.key&&"form"!==this.key&&(e+=`formio-component-${this.key} `),this.component.multiple&&(e+="formio-component-multiple "),this.component.customClass&&(e+=this.component.customClass),this.hasInput&&this.component.validate&&(0,f.boolValue)(this.component.validate.required)&&(e+=" required"),this.labelIsHidden()&&(e+=" formio-component-label-hidden"),this.visible||(e+=" formio-hidden"),e}get customStyle(){let e="";return u.default.each(this.component.style,((t,n)=>{""!==t&&(e+=`${n}:${t};`)})),e}static get serverConditionSettings(){return C.conditionOperatorsSettings}get isMobile(){return(0,c.default)()}getElement(){return this.element}evalContext(e){return super.evalContext(Object.assign({component:this.component,row:this.data,rowIndex:this.rowIndex,data:this.rootValue,iconClass:this.iconClass.bind(this),t:this.t.bind(this),submission:this.root?this.root._submission:{data:this.rootValue},form:this.root?this.root._form:{},options:this.options},e))}setPristine(e){this.pristine=e}get isPristine(){return this.pristine}setDirty(e){this.dirty=e}get isDirty(){return this.dirty}removeValue(e){this.splice(e),this.redraw(),this.restoreValue(),this.triggerRootChange()}iconClass(e,t){const n=this.options.iconset||_.default.current.defaultIconset||"fa";return _.default.current.hasOwnProperty("iconClass")?_.default.current.iconClass(n,e,t):"fa"===this.options.iconset?_.default.defaultTemplates.iconClass(n,e,t):e}size(e){return _.default.current.hasOwnProperty("size")?_.default.current.size(e):e}get name(){return this.t(this.component.label||this.component.placeholder||this.key,{_userInput:!0})}get errorLabel(){return this.t(this.component.errorLabel||this.component.label||this.component.placeholder||this.key)}errorMessage(e){return this.component.errors&&this.component.errors[e]?this.component.errors[e]:e}setContent(e,t,n,i){return e instanceof HTMLElement&&(e.innerHTML=this.sanitize(t,n,i),!0)}restoreCaretPosition(){var e,t,n;if((null===(e=this.root)||void 0===e?void 0:e.currentSelection)&&(null===(t=this.refs.input)||void 0===t?void 0:t.length)){const{selection:e,index:t}=this.root.currentSelection;let i=this.refs.input[t];const r=e=>/text|search|password|tel|url/i.test((null==e?void 0:e.type)||"");if(i)r(i)&&i.setSelectionRange(...e);else{i=this.refs.input[this.refs.input.length];const e=(null===(n=i.value)||void 0===n?void 0:n.length)||0;r(i)&&i.setSelectionRange(e,e)}}}redraw(){if(!this.element||!this.element.parentNode||this.optimizeRedraw)return Promise.resolve();this.detach(),this.emit("redraw");const e=this.element.parentNode,t=Array.prototype.indexOf.call(e.children,this.element);return this.element.outerHTML=this.sanitize(this.render()),this.setElement(e.children[t]),this.attach(this.element)}rebuild(){return this.destroy(),this.init(),this.visible=this.conditionallyVisible(null,null),this.redraw()}removeEventListeners(){super.removeEventListeners(),this.tooltips.forEach((e=>e.destroy())),this.tooltips=[]}hasClass(e,t){if(e)return super.hasClass(e,this.transform("class",t))}addClass(e,t){if(e)return super.addClass(e,this.transform("class",t))}removeClass(e,t){if(e)return super.removeClass(e,this.transform("class",t))}hasCondition(){return null!==this._hasCondition||(this._hasCondition=h.hasCondition(this.component)),this._hasCondition}conditionallyVisible(e,t){return e=e||this.rootValue,t=t||this.data,this.builderMode||this.previewMode||!this.hasCondition()?!this.component.hidden:(e=e||(this.root?this.root.data:{}),this.checkCondition(t,e))}checkCondition(e,t){return h.checkCondition(this.component,e||this.data,t||this.rootValue,this.root?this.root._form:{},this)}checkComponentConditions(e,t,n){e=e||this.rootValue,t=t||{},n=n||this.data,!this.builderMode&!this.previewMode&&this.fieldLogic(e,n)&&this.redraw();const i=this.conditionallyVisible(e,n);return this.visible!==i&&(this.visible=i),i}checkConditions(e,t,n){return e=e||this.rootValue,t=t||{},n=n||this.data,this.checkComponentConditions(e,t,n)}get logic(){return this.component.logic||[]}fieldLogic(e,t){e=e||this.rootValue,t=t||this.data;const n=this.logic;if(0===n.length)return;const i=(0,f.fastCloneDeep)(this.originalComponent);let r=n.reduce(((n,r)=>{const o=h.checkTrigger(i,r.trigger,t,e,this.root?this.root._form:{},this);return!!o&&this.applyActions(i,r.actions,o,t,e)||n}),!1);if(!u.default.isEqual(this.component,i)){this.component=i,r=!0;const e=this.shouldDisabled;this.disabled!==e&&(this.disabled=e)}return r}isIE(){if("undefined"==typeof window)return!1;const e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){const t=e.indexOf("rv:");return parseInt(e.substring(t+3,e.indexOf(".",t)),10)}const n=e.indexOf("Edge/");return n>0&&parseInt(e.substring(n+5,e.indexOf(".",n)),10)}defineActionValue(e,t){return this.evaluate(e.value,t,"value")}applyActions(e,t,n,i,r){return r=r||this.rootValue,i=i||this.data,t.reduce(((t,o)=>{switch(o.type){case"property":{h.setActionProperty(e,o,n,i,r,this);const s=o.property.value;u.default.isEqual(u.default.get(this.component,s),u.default.get(e,s))||(t=!0);break}case"value":{const s=this.getValue(),a=this.defineActionValue(o,{value:u.default.clone(s),data:r,row:i,component:e,result:n});u.default.isEqual(s,a)||this.component.clearOnHide&&!this.visible||(this.setValue(a),this.viewOnly&&(this.dataValue=a),t=!0);break}case"mergeComponentSchema":{const s=this.evaluate(o.schemaDefinition,{value:u.default.clone(this.getValue()),data:r,row:i,component:e,result:n},"schema");u.default.assign(e,s),u.default.isEqual(this.component,e)||(t=!0);break}case"customAction":{const s=this.getValue(),a=this.evaluate(o.customAction,{value:u.default.clone(s),data:r,row:i,input:s,component:e,result:n},"value");u.default.isEqual(s,a)||this.component.clearOnHide&&!this.visible||(this.setValue(a),this.viewOnly&&(this.dataValue=a),t=!0);break}}return t}),!1)}addInputError(e,t,n){this.addMessages(e),this.setErrorClasses(n,t,!!e)}removeInputError(e){this.setErrorClasses(e,!0,!1)}addMessages(e){e&&("string"==typeof e&&(e={messages:e,level:"error"}),Array.isArray(e)||(e=[e]),e=u.default.uniqBy(e,(e=>e.message)),this.refs.messageContainer&&this.setContent(this.refs.messageContainer,e.map((e=>(e.message&&"string"==typeof e.message&&(e.message=e.message.replaceAll("<","&lt;").replaceAll(">","&gt;")),this.renderTemplate("message",e)))).join("")))}setErrorClasses(e,t,n,i,r=this.element){this.clearErrorClasses(),e.forEach((e=>{this.setElementInvalid(this.performInputMapping(e),!1)})),this.setInputWidgetErrorClasses(e,n),n&&(e.forEach((e=>{this.setElementInvalid(this.performInputMapping(e),!0)})),t&&this.options.highlightErrors?this.addClass(r,this.options.componentErrorClass):this.addClass(r,"has-error")),i&&this.addClass(r,"has-message")}setElementInvalid(e,t){e&&(t?this.addClass(e,"is-invalid"):this.removeClass(e,"is-invalid"),e.setAttribute("aria-invalid",t?"true":"false"))}clearOnHide(){this.rootPristine&&!this.options.server&&!(0,f.isInsideScopingComponent)(this)||!1===this.component.clearOnHide||this.options.readOnly||this.options.showHiddenFields||(this.visible?!this.hasValue()&&this.shouldAddDefaultValue&&this.setValue(this.defaultValue,{noUpdateEvent:!0}):this.deleteValue())}triggerRootChange(...e){this.options.onChange?this.options.onChange(...e):this.root&&this.root.triggerChange(...e)}onChange(e,t){(e=e||{}).modified&&(e.noPristineChangeOnModified||(this.pristine=!1),this.addClass(this.getElement(),"formio-modified")),"blur"!==this.component.validateOn||this.errors.length||(e.noValidate=!0),this.component.onChange&&this.evaluate(this.component.onChange,{flags:e});const n={instance:this,component:this.component,value:this.dataValue,flags:e};this.emit("componentChange",n);let i=!1;return e.modified&&(i=!0,delete e.modified),t||this.triggerRootChange(e,n,i),n}get wysiwygDefault(){return{quill:{theme:"snow",placeholder:this.t(this.component.placeholder,{_userInput:!0}),modules:{toolbar:[[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{font:[]}],["bold","italic","underline","strike",{script:"sub"},{script:"super"},"clean"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["blockquote","code-block"],["link","image","video","formula","source"]]}},ace:{theme:"ace/theme/xcode",maxLines:12,minLines:12,tabSize:2,mode:"ace/mode/javascript",placeholder:this.t(this.component.placeholder,{_userInput:!0})},ckeditor:{image:{toolbar:["imageTextAlternative","|","imageStyle:full","imageStyle:alignLeft","imageStyle:alignCenter","imageStyle:alignRight"],styles:["full","alignLeft","alignCenter","alignRight"]},extraPlugins:[]},default:{}}}addCKE(e,t,n){return(t=u.default.isEmpty(t)?{}:t).base64Upload=!this.component.isUploadEnabled,t.mediaEmbed={previewsInData:!0},t=u.default.merge(this.wysiwygDefault.ckeditor,u.default.get(this.options,"editors.ckeditor.settings",{}),t),this.component.isUploadEnabled&&t.extraPlugins.push((0,b.getFormioUploadAdapterPlugin)(this.fileService,this)),d.Formio.requireLibrary("ckeditor",k?"CKEDITOR":"ClassicEditor",u.default.get(this.options,"editors.ckeditor.src",`${d.Formio.cdn.ckeditor}/ckeditor.js`),!0).then((()=>{if(!e.parentNode)return Promise.reject();if(k){const t=CKEDITOR.replace(e);return t.on("change",(()=>n(t.getData()))),Promise.resolve(t)}return ClassicEditor.create(e,t).then((e=>(e.model.document.on("change",(()=>n(e.data.get()))),e)))}))}addQuill(e,t,n){return t=u.default.isEmpty(t)?this.wysiwygDefault.quill:t,t=u.default.merge(this.wysiwygDefault.quill,u.default.get(this.options,"editors.quill.settings",{}),t),t=Object.assign(Object.assign({},t),{modules:Object.assign({table:!0},t.modules)}),d.Formio.requireLibrary(`quill-css-${t.theme}`,"Quill",[{type:"styles",src:`${d.Formio.cdn.quill}/quill.${t.theme}.css`}],!0),d.Formio.requireLibrary("quill","Quill",u.default.get(this.options,"editors.quill.src",`${d.Formio.cdn.quill}/quill.min.js`),!0).then((()=>d.Formio.requireLibrary("quill-table","Quill",`${d.Formio.cdn.baseUrl}/quill/quill-table.js`,!0).then((()=>{if(!e.parentNode)return Promise.reject();this.quill=new Quill(e,k?Object.assign(Object.assign({},t),{modules:{}}):t);const i=document.createElement("textarea");i.setAttribute("class","quill-source-code"),this.quill.addContainer("ql-custom").appendChild(i);const r=e.parentNode.querySelector(".ql-source");r&&this.addEventListener(r,"click",(e=>{e.preventDefault(),"inherit"===i.style.display&&this.quill.setContents(this.quill.clipboard.convert({html:i.value})),i.style.display="none"===i.style.display?"inherit":"none"})),this.addEventListener(e,"click",(()=>this.quill.focus()));const o=document.querySelectorAll(".ql-formats > button");for(let e=0;e<o.length;e++)o[e].setAttribute("tabindex","-1");return this.quill.on("text-change",(()=>{i.value=this.quill.root.innerHTML,n(i)})),this.quill}))))}get shouldSanitizeValue(){var e;return!1!==(null===(e=this.options)||void 0===e?void 0:e.sanitize)}addAce(e,t,n){if(!t||"snow"===t.theme){const e=t?t.mode:"";t={},e&&(t.mode=e)}return t=u.default.merge(this.wysiwygDefault.ace,u.default.get(this.options,"editors.ace.settings",{}),t||{}),d.Formio.requireLibrary("ace","ace",u.default.get(this.options,"editors.ace.src",`${d.Formio.cdn.ace}/ace.js`),!0).then((i=>((i=i.edit(e)).removeAllListeners("change"),i.setOptions(t),i.getSession().setMode(t.mode),i.on("change",(()=>n(i.getValue()))),t.isUseWorkerDisabled&&i.session.setUseWorker(!1),i)))}get tree(){return this.component.tree||!1}get emptyValue(){return null}hasValue(e){return!u.default.isUndefined(u.default.get(e||this.data,this.key))}get rootValue(){return this.root?this.root.data:this.data}get rootPristine(){return u.default.get(this,"root.pristine",!1)}get dataValue(){if(!this.key||!this.visible&&this.component.clearOnHide&&!this.rootPristine)return this.emptyValue;if(!this.hasValue()&&this.shouldAddDefaultValue){const e=this.component.multiple?[]:this.emptyValue;return this.rootPristine||(this.dataValue=e),e}return u.default.get(this._data,this.key)}set dataValue(e){this.allowData&&this.key&&(this.visible||!this.component.clearOnHide||this.rootPristine)&&(null!=e&&(e=this.hook("setDataValue",e,this.key,this._data)),null!=e?u.default.set(this._data,this.key,e):this.unset())}splice(e,t={}){if(this.hasValue()){const n=this.dataValue||[];u.default.isArray(n)&&n.hasOwnProperty(e)&&(n.splice(e,1),this.dataValue=n,this.triggerChange(t))}}unset(){u.default.unset(this._data,this.key)}deleteValue(){this.setValue(null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}getCustomDefaultValue(e){return this.component.customDefaultValue&&!this.options.preview&&(e=this.evaluate(this.component.customDefaultValue,{value:""},"value")),e}get shouldAddDefaultValue(){return!this.options.noDefaults||this.component.defaultValue&&!this.isEmpty(this.component.defaultValue)||this.component.customDefaultValue}get defaultValue(){let e=this.emptyValue;this.component.defaultValue&&(e=this.component.defaultValue),e=this.getCustomDefaultValue(e);const t=e=>{if("string"==typeof e){const t=this.placeholderChar;e=(0,a.conformToMask)(e,this.defaultMask,{placeholderChar:t}).conformedValue,h.matchInputMask(e,this.defaultMask)||(e="")}else e="";return e};return this.defaultMask&&(e=Array.isArray(e)?e.map(t):t(e)),u.default.cloneDeep(e)}getValue(){if(!this.hasInput||this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;const e=[];for(const t in this.refs.input)if(this.refs.input.hasOwnProperty(t)){if(!this.component.multiple)return this.getValueAt(t);e.push(this.getValueAt(t))}return 0!==e.length||this.component.multiple?e:""}getValueAt(e){const t=this.performInputMapping(this.refs.input[e]);return t?t.value:void 0}setValue(e,t={}){const n=this.updateValue(e,t);if(e=this.dataValue,!this.hasInput)return n;const i=Array.isArray(e),r=this.refs.fileLink||this.refs.input;if(i&&Array.isArray(this.defaultValue)&&this.refs.hasOwnProperty("input")&&r&&r.length!==e.length&&this.visible&&this.redraw(),this.isHtmlRenderMode()&&t&&t.fromSubmission&&n)return this.redraw(),n;for(const n in this.refs.input)this.refs.input.hasOwnProperty(n)&&this.setValueAt(n,i?e[n]:e,t);return n}setValueAt(e,t,n={}){n.noDefault||null!=t||this.component.multiple||(t=this.defaultValue);const i=this.performInputMapping(this.refs.input[e]),r=this.refs.valueMaskInput;(null==r?void 0:r.mask)&&r.mask.textMaskInputElement.update(t),i.mask?i.mask.textMaskInputElement.update(t):i.widget&&i.widget.setValue?i.widget.setValue(t):i.value=t}get hasSetValue(){return this.hasValue()&&!this.isEmpty(this.dataValue)}setDefaultValue(){if(this.defaultValue&&this.shouldAddDefaultValue){const e=this.component.multiple&&!this.dataValue.length?[]:this.defaultValue;this.setValue(e,{noUpdateEvent:!0})}}restoreValue(){this.hasSetValue?this.setValue(this.dataValue,{noUpdateEvent:!0}):this.setDefaultValue()}normalizeValue(e){return this.component.multiple&&!Array.isArray(e)&&(e=e?[e]:[]),e}updateComponentValue(e,t={}){let n=t.resetValue||null!=e?e:this.getValue();n=this.normalizeValue(n,t);const i=this.dataValue;let r=void 0!==n&&this.hasChanged(n,i);return r&&(this.dataValue=n,r=this.dataValue!==i,this.updateOnChange(t,r)),this.componentModal&&t&&t.fromSubmission&&this.componentModal.setValue(e),r}updateValue(...e){return this.updateComponentValue(...e)}getIcon(e,t,n,i="icon"){return this.renderTemplate("icon",{className:this.iconClass(e),ref:i,styles:n,content:t})}resetValue(){this.unset(),this.setValue(this.emptyValue,{noUpdateEvent:!0,noValidate:!0,resetValue:!0})}hasChanged(e,t){return!(null==e&&(null==t||this.isEmpty(t))||(null==e||!this.allowData||this.hasValue())&&u.default.isEqual(e,t))}updateOnChange(e={},t=!1){return!(e.noUpdateEvent||!t||(this.triggerChange(e),0))}convertNumberOrBoolToString(e){return"number"==typeof e||"boolean"==typeof e?e.toString():e}doValueCalculation(e,t,n){var i;return this.evaluate(this.component.calculateValue,{value:e,data:t,row:n||this.data,submission:(null===(i=this.root)||void 0===i?void 0:i._submission)||{data:this.rootValue}},"value")}calculateComponentValue(e,t,n){if(u.default.isUndefined(u.default.get(this,"root.data")))return!1;const{clearOnHide:i}=this.component,r=!this.visible&&i,o=u.default.get(this.component,"allowCalculateOverride",!1);if(this.options.readOnly&&!this.options.pdf&&!this.component.calculateValue||!this.component.calculateValue&&!this.component.calculateValueVariable||r||this.options.server&&!this.component.calculateServer||t.dataSourceInitialLoading&&o)return!1;const s=this.dataValue;let a=this.doValueCalculation(s,e,n,t);if(this.options.readOnly&&s&&!a)return!1;u.default.isNil(a)&&(a=this.emptyValue);const l=!u.default.isEqual(s,a);if(o){const e=t.fromSubmission&&!0===this.component.persistent;if(this.isEmpty(s))this.calculationLocked=!1;else if(this.calculationLocked||e)return this.calculationLocked=!0,!1;const n=void 0===this.calculatedValue;n&&(this.calculatedValue=null);const i=this.normalizeValue(this.convertNumberOrBoolToString(a)),r=this.normalizeValue(this.convertNumberOrBoolToString(this.calculatedValue)),o=this.normalizeValue(this.convertNumberOrBoolToString(s)),c=!u.default.isEqual(r,i),d=!u.default.isEqual(o,r);if(c&&d&&!n)return!1;if(r&&d&&!c)return!1;if(t.isReordered||!c)return!1;if(e)return this.calculatedValue=a,!1;if(n&&!this.isEmpty(s)&&l&&c)return!0}return this.calculatedValue=a,!!l&&(t.noPristineChangeOnModified||(this.pristine=!1),t.triggeredComponentId=this.id,this.setValue(a,t))}calculateValue(e,t,n){return e=e||this.rootValue,t=t||{},n=n||this.data,this.calculateComponentValue(e,t,n)}get label(){return this.component.label}set label(e){this.component.label=e,this.labelElement&&(this.labelElement.innerText=e)}getRoot(){return this.root}invalidMessage(e,t,n,i){return n||this.checkCondition(i,e)?this.invalid?this.invalid:!this.hasInput||!t&&this.pristine?"":u.default.map(p.default.checkComponent(this,e),"message").join("\n\n"):""}isValid(e,t){return!this.invalidMessage(e,t)}setComponentValidity(e,t,n){const i=!!e.filter((e=>"error"===e.level&&!e.fromServer)).length;return!e.length||n&&!this.error||this.isEmpty(this.defaultValue)&&!t&&this.pristine?n||this.setCustomValidity(""):this.setCustomValidity(e,t),!i}checkComponentValidity(e,t,n,i={}){var r;e=e||this.rootValue,n=n||this.data;const{async:o=!1,silentCheck:s=!1}=i;if(this.shouldSkipValidation(e,t,n))return this.setCustomValidity(""),!o||Promise.resolve(!0);const a=p.default.checkComponent(this,e,n,!0,o);let l=a;return(null===(r=this.serverErrors)||void 0===r?void 0:r.length)&&(l=a.concat(this.serverErrors)),o?l.then((e=>this.setComponentValidity(e,t,s))):this.setComponentValidity(l,t,s)}checkValidity(e,t,n,i){e=e||this.rootValue,n=n||this.data;const r=this.checkComponentValidity(e,t,n,{silentCheck:i});return this.checkModal(),r}checkAsyncValidity(e,t,n,i){return Promise.resolve(this.checkComponentValidity(e,t,n,{async:!0,silentCheck:i}))}checkData(e,t,n){if(e=e||this.rootValue,t=t||{},n=n||this.data,this.resetCaches(),t.fromBlur||this.checkRefreshOn(t.changes,t),t.noCheck)return!0;if(this.checkComponentConditions(e,t,n),this.id!==t.triggeredComponentId&&this.calculateComponentValue(e,t,n),t.noValidate&&!t.validateOnInit&&!t.fromIframe)return t.fromSubmission&&this.rootPristine&&this.pristine&&this.error&&t.changed&&this.checkComponentValidity(e,!!this.options.alwaysDirty,n,!0),!0;let i=!1;if((this.options.alwaysDirty||t.dirty)&&(i=!0),t.fromSubmission&&this.hasValue(e)&&(i=!0),this.setDirty(i),"blur"===this.component.validateOn&&t.fromSubmission)return!0;const r=this.checkComponentValidity(e,i,n,t);return this.checkModal(),r}checkModal(e=!0,t=!1){this.component.modalEdit&&this.componentModal&&(t&&!e?this.setErrorClasses([this.refs.openModal],t,!e,!!this.errors.length,this.refs.openModalWrapper):this.clearErrorClasses(this.refs.openModalWrapper))}get validationValue(){return this.dataValue}isEmpty(e=this.dataValue){const t=!(!u.default.isArray(e)||1!==e.length)&&u.default.isEqual(e[0],this.emptyValue);return null==e||0===e.length||u.default.isEqual(e,this.emptyValue)||t}isEqual(e,t=this.dataValue){return this.isEmpty(e)&&this.isEmpty(t)||u.default.isEqual(e,t)}validateMultiple(){return!0}get errors(){return this.error?[this.error]:[]}clearErrorClasses(e=this.element){this.removeClass(e,this.options.componentErrorClass),this.removeClass(e,"alert alert-danger"),this.removeClass(e,"has-error"),this.removeClass(e,"has-message")}setInputWidgetErrorClasses(e,t){this.isInputComponent&&this.component.widget&&(null==e?void 0:e.length)&&e.forEach((e=>{(null==e?void 0:e.widget)&&e.widget.setErrorClasses&&e.widget.setErrorClasses(t)}))}addFocusBlurEvents(e){this.addEventListener(e,"focus",(()=>{this.root.focusedComponent!==this?(this.root.pendingBlur&&this.root.pendingBlur(),this.root.focusedComponent=this,this.emit("focus",this)):this.root.focusedComponent===this&&this.root.pendingBlur&&(this.root.pendingBlur.cancel(),this.root.pendingBlur=null)})),this.addEventListener(e,"blur",(()=>{this.root.pendingBlur=h.delay((()=>{this.emit("blur",this),"blur"===this.component.validateOn&&this.root.triggerChange({fromBlur:!0},{instance:this,component:this.component,value:this.dataValue,flags:{fromBlur:!0}}),this.root.focusedComponent=null,this.root.pendingBlur=null}))}))}setCustomValidity(e,t,n){const i=this.isInputComponent?this.refs.input||[]:null;"string"==typeof e&&e&&(e={level:"error",message:e}),Array.isArray(e)||(e=e?[e]:[]);const r=!!e.filter((e=>"error"===e.level)).length;let o=i;if(this.component.multiple){const t=Array.from(i);t.forEach((e=>{this.setElementInvalid(this.performInputMapping(e),!1)})),this.setInputWidgetErrorClasses(t,!1),o=t.filter((t=>{var n;return null===(n=e.some)||void 0===n?void 0:n.call(e,(e=>{var n;return(null===(n=null==e?void 0:e.context)||void 0===n?void 0:n.input)===t}))}))}e.length?(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.error={component:this.component,message:e[0].message,messages:e,external:!!n},this.emit("componentError",this.error),this.addMessages(e,t,o),o&&this.setErrorClasses(o,t,r,!!e.length)):(!this.error||this.error&&this.error.external===!!n)&&(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.refs.modalMessageContainer&&this.empty(this.refs.modalMessageContainer),this.error=null,o&&this.setErrorClasses(o,t,r,!!e.length),this.clearErrorClasses())}isValueHidden(){return(!this.component.protected||!this.root.editing)&&!(!this.root||!this.root.hasOwnProperty("editing"))&&!(!this.root||!this.root.editing)&&(this.component.protected||!this.component.persistent||"client-only"===this.component.persistent)}shouldSkipValidation(e,t,n){return[()=>this.component.validate.custom&&!this.dataValue&&!this.component.validate.required,()=>this.options.readOnly,()=>!this.hasInput,()=>this.isValueHidden(),()=>!this.visible,()=>!this.checkCondition(n,e)].some((e=>e()))}whenReady(){return console.warn("The whenReady() method has been deprecated. Please use the dataReady property instead."),this.dataReady}get dataReady(){return Promise.resolve()}asString(e){return e=e||this.getValue(),(Array.isArray(e)?e:[e]).map(u.default.toString).join(", ")}get disabled(){return this._disabled||this.parentDisabled}set disabled(e){this._disabled=e}setDisabled(e,t){e&&(e.disabled=t,t?e.setAttribute("disabled","disabled"):e.removeAttribute("disabled"))}setLoading(e,t){e&&e.loading!==t&&(e.loading=t,!e.loader&&t&&(e.loader=this.ce("i",{class:`${this.iconClass("refresh",!0)} button-icon-right`})),e.loader&&(t?this.appendTo(e.loader,e):this.removeChildFrom(e.loader,e)))}selectOptions(e,t,n,i){u.default.each(n,(t=>{const n={value:t.value};void 0!==i&&t.value===i&&(n.selected="selected");const r=this.ce("option",n);r.appendChild(this.text(t.label)),e.appendChild(r)}))}setSelectValue(e,t){const n=e.querySelectorAll("option");u.default.each(n,(e=>{e.value===t?e.setAttribute("selected","selected"):e.removeAttribute("selected")})),e.onchange&&e.onchange(),e.onselect&&e.onselect()}getRelativePath(e){const t=`.${this.key}`,n=this.isInputComponent?this.path:this.path.slice(0).replace(t,"");return e.replace(n,"")}clear(){this.detach(),this.empty(this.getElement())}append(e){this.appendTo(e,this.element)}prepend(e){this.prependTo(e,this.element)}removeChild(e){this.removeChildFrom(e,this.element)}detachLogic(){this.logic.forEach((e=>{if("event"===e.trigger.type){const t=this.interpolate(e.trigger.event);this.off(t)}}))}attachLogic(){this.builderMode||this.logic.forEach((e=>{if("event"===e.trigger.type){const t=this.interpolate(e.trigger.event);this.on(t,((...t)=>{const n=(0,f.fastCloneDeep)(this.originalComponent);if(this.applyActions(n,e.actions,t)&&!u.default.isEqual(this.component,n)){this.component=n;const e=this.conditionallyVisible(null,null),t=this.shouldDisabled;this.visible!==e&&(this.visible=e),this.disabled!==t&&(this.disabled=t),this.redraw()}}),!0)}}))}elementInfo(){const e={name:this.options.name,type:this.component.inputType||"text",class:"form-control",lang:this.options.language};return this.component.placeholder&&(e.placeholder=this.t(this.component.placeholder,{_userInput:!0})),this.component.tabindex&&(e.tabindex=this.component.tabindex),this.disabled&&(e.disabled="disabled"),u.default.defaults(e,this.component.attributes),{type:"input",component:this.component,changeEvent:"change",attr:e}}autofocus(){this.component.autofocus&&!this.builderMode&&!this.options.preview&&this.on("render",(()=>this.focus()),!0)}scrollIntoView(e=this.element){if(!e)return;const{left:t,top:n}=e.getBoundingClientRect();window.scrollTo(t+window.scrollX,n+window.scrollY)}focus(e){var t,n;if("beforeFocus"in this.parent&&this.parent.beforeFocus(this),null===(t=this.refs.input)||void 0===t?void 0:t.length){const t="number"==typeof e&&this.refs.input[e]?this.refs.input[e]:this.refs.input[this.refs.input.length-1];if("calendar"===(null===(n=this.component.widget)||void 0===n?void 0:n.type)){const e=t.nextSibling;e&&e.focus()}else t.focus()}this.refs.openModal&&this.refs.openModal.focus(),this.parent.refs.openModal&&this.parent.refs.openModal.focus()}get fileService(){if(this.options.fileService)return this.options.fileService;if(this.options.formio)return this.options.formio;if(this.root&&this.root.formio)return this.root.formio;const e=new d.Formio;return this.root&&this.root._form&&this.root._form._id&&(e.formUrl=`${e.projectUrl}/form/${this.root._form._id}`),e}resetCaches(){}get previewMode(){return!1}}t.default=C,C.externalLibraries={},C.requireLibrary=function(e,t,n,i){if(!C.externalLibraries.hasOwnProperty(e)){C.externalLibraries[e]={},C.externalLibraries[e].ready=new Promise(((t,n)=>{C.externalLibraries[e].resolve=t,C.externalLibraries[e].reject=n}));const r=`${e}Callback`;i||window[r]||(window[r]=function(){this.resolve()}.bind(C.externalLibraries[e]));const o=u.default.get(window,t);o?C.externalLibraries[e].resolve(o):((n=Array.isArray(n)?n:[n]).forEach((e=>{let t={},n="";switch("string"==typeof e&&(e={type:"script",src:e}),e.type){case"script":n="script",t={src:e.src,type:"text/javascript",defer:!0,async:!0};break;case"styles":n="link",t={href:e.src,rel:"stylesheet"}}const i=document.createElement(n);for(const e in t)i.setAttribute(e,t[e]);document.getElementsByTagName("head")[0].appendChild(i)})),i&&setTimeout((function n(){const i=u.default.get(window,t);i?C.externalLibraries[e].resolve(i):setTimeout(n,200)}),200))}return C.externalLibraries[e].ready},C.libraryReady=function(e){return C.externalLibraries.hasOwnProperty(e)&&C.externalLibraries[e].ready?C.externalLibraries[e].ready:Promise.reject(`${e} library was not required.`)}},39860:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{weight:0,type:"textfield",input:!0,key:"key",label:"Property Name",tooltip:"The name of this field in the API endpoint.",validate:{pattern:"(\\w|\\w[\\w-.]*\\w)",patternMessage:"The property name must only contain alphanumeric characters, underscores, dots and dashes and should not be ended by dash or dot.",required:!0}},{weight:100,type:"tags",input:!0,label:"Field Tags",storeas:"array",tooltip:"Tag the field for use in custom logic.",key:"tags"},{weight:200,type:"datamap",label:"Custom Properties",tooltip:"This allows you to configure any custom properties for this component.",key:"properties",valueComponent:{type:"textfield",key:"value",label:"Value",placeholder:"Value",input:!0}}]},53316:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(66140)),o=n(76286);t.default=[{type:"panel",title:"Simple",key:"simple-conditional",theme:"default",weight:105,components:[{type:"select",input:!0,label:"This component should Display:",key:"conditional.show",dataSrc:"values",data:{values:[{label:"True",value:"true"},{label:"False",value:"false"}]}},{type:"select",input:!0,label:"When the form component:",key:"conditional.when",dataSrc:"custom",valueProperty:"value",data:{custom:e=>(0,o.getContextComponents)(e)}},{type:"textfield",input:!0,label:"Has the value:",key:"conditional.eq"}]},r.default.javaScriptValue("Advanced Conditions","customConditional","conditional.json",110,"<p>You must assign the <strong>show</strong> variable a boolean result.</p><p><strong>Note: Advanced Conditional logic will override the results of the Simple Conditional logic.</strong></p><h5>Example</h5><pre>show = !!data.showMe;</pre>",'<p><a href="http://formio.github.io/formio.js/app/examples/conditions.html" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>')]},83672:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(66140));t.default=[{weight:0,type:"checkbox",label:"Multiple Values",tooltip:"Allows multiple values to be entered for this field.",key:"multiple",input:!0},{type:"textfield",label:"Default Value",key:"defaultValue",weight:5,placeholder:"Default Value",tooltip:"The Default Value will be the value for this field, before user interaction. Having a default value will override the placeholder text.",input:!0},{weight:30,type:"radio",label:"Persistent",tooltip:"A persistent field will be stored in database when the form is submitted.",key:"persistent",input:!0,inline:!0,defaultValue:!0,values:[{label:"None",value:!1},{label:"Server",value:!0},{label:"Client",value:"client-only"}]},{weight:150,type:"checkbox",label:"Protected",tooltip:"A protected field will not be returned when queried via API.",key:"protected",input:!0},{type:"checkbox",input:!0,weight:200,key:"dbIndex",label:"Database Index",tooltip:"Set this field as an index within the database. Increases performance for submission queries."},{weight:400,type:"checkbox",label:"Encrypted",tooltip:"Encrypt this field on the server. This is two way encryption which is not suitable for passwords.",key:"encrypted",input:!0,logic:[{name:"disabled",trigger:{type:"javascript",javascript:"result = !instance.root.options.sac;"},actions:[{name:"disabled",type:"property",property:{label:"Disabled",value:"disabled",type:"boolean"},state:!0}]},{name:"disabledToolTip",trigger:{type:"javascript",javascript:"result = !instance.root.options.sac;"},actions:[{name:"addDisabledTooltip",type:"property",property:{label:"Tooltip",value:"tooltip",type:"string"},text:"Only available with Security Module. Contact sales@form.io for more information."}]}]},{type:"select",input:!0,key:"redrawOn",label:"Redraw On",weight:600,tooltip:"Redraw this component if another component changes. This is useful if interpolating parts of the component like the label.",dataSrc:"custom",valueProperty:"value",data:{custom(e){var t=[];return t.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,(function(n,i){n.key!==e.data.key&&t.push({label:n.label||n.key,value:i})})),t}},conditional:{json:{"!":[{var:"data.dataSrc"}]}}},{weight:700,type:"checkbox",label:"Clear Value When Hidden",key:"clearOnHide",defaultValue:!0,tooltip:"When a field is hidden, clear the value.",input:!0},r.default.javaScriptValue("Custom Default Value","customDefaultValue","customDefaultValue",1e3,'<p><h4>Example:</h4><pre>value = data.firstName + " " + data.lastName;</pre></p>','<p><h4>Example:</h4><pre>{"cat": [{"var": "data.firstName"}, " ", {"var": "data.lastName"}]}</pre>'),r.default.javaScriptValue("Calculated Value","calculateValue","calculateValue",1100,"<p><h4>Example:</h4><pre>value = data.a + data.b + data.c;</pre></p>",'<p><h4>Example:</h4><pre>{"+": [{"var": "data.a"}, {"var": "data.b"}, {"var": "data.c"}]}</pre><p><a href="http://formio.github.io/formio.js/app/examples/calculated.html" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>',"<tr><th>token</th><td>The decoded JWT token for the authenticated user.</td></tr>"),{type:"checkbox",input:!0,weight:1100,key:"calculateServer",label:"Calculate Value on server",tooltip:"Checking this will run the calculation on the server. This is useful if you wish to override the values submitted with the calculations performed on the server."},{type:"checkbox",input:!0,weight:1200,key:"allowCalculateOverride",label:"Allow Manual Override of Calculated Value",tooltip:"When checked, this will allow the user to manually override the calculated value."}]},61397:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field that will appear next to it.",validate:{required:!0},autofocus:!0},{type:"select",input:!0,key:"labelPosition",label:"Label Position",tooltip:"Position for the label for this field.",weight:20,defaultValue:"top",dataSrc:"values",data:{values:[{label:"Top",value:"top"},{label:"Left (Left-aligned)",value:"left-left"},{label:"Left (Right-aligned)",value:"left-right"},{label:"Right (Left-aligned)",value:"right-left"},{label:"Right (Right-aligned)",value:"right-right"},{label:"Bottom",value:"bottom"}]}},{type:"number",input:!0,key:"labelWidth",label:"Label Width",tooltip:"The width of label on line in percentages.",clearOnHide:!1,weight:30,placeholder:"30",suffix:"%",validate:{min:0,max:100},conditional:{json:{and:[{"!==":[{var:"data.labelPosition"},"top"]},{"!==":[{var:"data.labelPosition"},"bottom"]}]}}},{type:"number",input:!0,key:"labelMargin",label:"Label Margin",tooltip:"The width of label margin on line in percentages.",clearOnHide:!1,weight:30,placeholder:"3",suffix:"%",validate:{min:0,max:100},conditional:{json:{and:[{"!==":[{var:"data.labelPosition"},"top"]},{"!==":[{var:"data.labelPosition"},"bottom"]}]}}},{weight:100,type:"textfield",input:!0,key:"placeholder",label:"Placeholder",placeholder:"Placeholder",tooltip:"The placeholder text that will appear when this field is empty."},{weight:200,type:"textarea",input:!0,key:"description",label:"Description",placeholder:"Description for this field.",tooltip:"The description is text that will appear below the input field.",editor:"ace",as:"html",wysiwyg:{minLines:3,isUseWorkerDisabled:!0}},{weight:300,type:"textarea",input:!0,key:"tooltip",label:"Tooltip",placeholder:"To add a tooltip to this field, enter text here.",tooltip:"Adds a tooltip to the side of this field.",editor:"ace",as:"html",wysiwyg:{minLines:3,isUseWorkerDisabled:!0}},{weight:500,type:"textfield",input:!0,key:"customClass",label:"Custom CSS Class",placeholder:"Custom CSS Class",tooltip:"Custom CSS class to add to this component."},{weight:600,type:"textfield",input:!0,key:"tabindex",label:"Tab Index",placeholder:"0",tooltip:"Sets the tabindex attribute of this component to override the tab order of the form. See the <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex'>MDN documentation</a> on tabindex for more information."},{weight:1100,type:"checkbox",label:"Hidden",tooltip:"A hidden field is still a part of the form, but is hidden from view.",key:"hidden",input:!0},{weight:1200,type:"checkbox",label:"Hide Label",tooltip:"Hide the label (title, if no label) of this component. This allows you to show the label in the form builder, but not when it is rendered.",key:"hideLabel",input:!0},{weight:1350,type:"checkbox",label:"Initial Focus",tooltip:"Make this field the initially focused element on this form.",key:"autofocus",input:!0},{weight:1370,type:"checkbox",label:"Show Label in DataGrid",tooltip:"Show the label inside each row when in a Datagrid.",key:"dataGridLabel",input:!0,customConditional(e){var t,n;return null===(n=null===(t=e.instance.options)||void 0===t?void 0:t.flags)||void 0===n?void 0:n.inDataGrid}},{weight:1400,type:"checkbox",label:"Disabled",tooltip:"Disable the form input.",key:"disabled",input:!0},{weight:1500,type:"checkbox",label:"Table View",tooltip:"Shows this value within the table view of the submissions.",key:"tableView",input:!0},{weight:1600,type:"checkbox",label:"Modal Edit",tooltip:"Opens up a modal to edit the value of this component.",key:"modalEdit",input:!0}]},22025:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{label:"HTML Attributes",type:"datamap",input:!0,key:"attributes",keyLabel:"Attribute Name",valueComponent:{type:"textfield",key:"value",label:"Attribute Value",input:!0},tooltip:"Provide a map of HTML attributes for component's input element (attributes provided by other component settings or other attributes generated by form.io take precedence over attributes in this grid)",addAnother:"Add Attribute"},{type:"panel",legend:"PDF Overlay",title:"PDF Overlay",key:"overlay",tooltip:"The settings inside apply only to the PDF forms.",weight:2e3,collapsible:!0,collapsed:!0,components:[{type:"textfield",input:!0,key:"overlay.style",label:"Style",placeholder:"",tooltip:"Custom styles that should be applied to this component when rendered in PDF."},{type:"textfield",input:!0,key:"overlay.page",label:"Page",placeholder:"",tooltip:"The PDF page to place this component."},{type:"textfield",input:!0,key:"overlay.left",label:"Left",placeholder:"",tooltip:"The left margin within a page to place this component."},{type:"textfield",input:!0,key:"overlay.top",label:"Top",placeholder:"",tooltip:"The top margin within a page to place this component."},{type:"textfield",input:!0,key:"overlay.width",label:"Width",placeholder:"",tooltip:"The width of the component (in pixels)."},{type:"textfield",input:!0,key:"overlay.height",label:"Height",placeholder:"",tooltip:"The height of the component (in pixels)."}]}]},21568:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(66140)),o=n(76286);t.default=[{weight:0,input:!0,label:"Advanced Logic",key:"logic",templates:{header:'<div class="row"> \n <div class="col-sm-6">\n <strong>{{ value.length }} {{ ctx.t("Advanced Logic Configured") }}</strong>\n </div>\n</div>',row:'<div class="row"> \n <div class="col-sm-6">\n <div>{{ row.name }} </div>\n </div>\n <div class="col-sm-2"> \n <div class="btn-group pull-right"> \n <button class="btn btn-default editRow">{{ ctx.t("Edit") }}</button> \n <button class="btn btn-danger removeRow">{{ ctx.t("Delete") }}</button> \n </div> \n </div> \n</div>',footer:""},type:"editgrid",addAnother:"Add Logic",saveRow:"Save Logic",components:[{weight:0,input:!0,inputType:"text",label:"Logic Name",key:"name",validate:{required:!0},type:"textfield"},{weight:10,key:"triggerPanel",input:!1,title:"Trigger",tableView:!1,components:[{weight:0,input:!0,tableView:!1,components:[{weight:0,input:!0,label:"Type",key:"type",tableView:!1,data:{values:[{value:"simple",label:"Simple"},{value:"javascript",label:"Javascript"},{value:"json",label:"JSON Logic"},{value:"event",label:"Event"}]},dataSrc:"values",template:"<span>{{ item.label }}</span>",type:"select"},{weight:10,label:"",key:"simple",type:"container",tableView:!1,customConditional:({row:e})=>"simple"===e.type,components:[{input:!0,key:"show",label:"Show",type:"hidden",tableView:!1,calculateValue:()=>!0},{type:"select",input:!0,label:"When the form component:",key:"when",dataSrc:"custom",valueProperty:"value",tableView:!1,data:{custom:e=>(0,o.getContextComponents)(e)}},{type:"textfield",input:!0,label:"Has the value:",key:"eq",tableView:!1}]},{weight:10,type:"textarea",key:"javascript",rows:5,editor:"ace",as:"javascript",input:!0,tableView:!1,placeholder:"result = (data['mykey'] > 1);",description:'"row", "data", and "component" variables are available. Return "result".',customConditional:({row:e})=>"javascript"===e.type},{weight:10,type:"textarea",key:"json",rows:5,editor:"ace",label:"JSON Logic",as:"json",input:!0,tableView:!1,placeholder:"{ ... }",description:'"row", "data", "component" and "_" variables are available. Return the result to be passed to the action if truthy.',customConditional:({row:e})=>"json"===e.type},{weight:10,type:"textfield",key:"event",label:"Event Name",placeholder:"event",description:"The event that will trigger this logic. You can trigger events externally or via a button.",tableView:!1,customConditional:({row:e})=>"event"===e.type}],key:"trigger",type:"container"}],type:"panel"},{weight:20,input:!0,label:"Actions",key:"actions",tableView:!1,templates:{header:'<div class="row"> \n <div class="col-sm-6"><strong>{{ value.length }} {{ ctx.t("actions") }}</strong></div>\n</div>',row:'<div class="row"> \n <div class="col-sm-6">\n <div>{{ row.name }} </div>\n </div>\n <div class="col-sm-2"> \n <div class="btn-group pull-right"> \n <button class="btn btn-default editRow">{{ ctx.t("Edit") }}</button> \n <button class="btn btn-danger removeRow">{{ ctx.t("Delete") }}</button> \n </div> \n </div> \n</div>',footer:""},type:"editgrid",addAnother:"Add Action",saveRow:"Save Action",components:[{weight:0,title:"Action",input:!1,key:"actionPanel",type:"panel",components:[{weight:0,input:!0,inputType:"text",label:"Action Name",key:"name",validate:{required:!0},type:"textfield"},{weight:10,input:!0,label:"Type",key:"type",data:{values:[{value:"property",label:"Property"},{value:"value",label:"Value"},{label:"Merge Component Schema",value:"mergeComponentSchema"},{label:"Custom Action",value:"customAction"}]},dataSrc:"values",template:"<span>{{ item.label }}</span>",type:"select"},{weight:20,type:"select",template:"<span>{{ item.label }}</span>",dataSrc:"json",tableView:!1,data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Prefix",value:"prefix",type:"string"},{label:"Suffix",value:"suffix",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"Input Mask",value:"inputMask",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"}]},key:"property",label:"Component Property",input:!0,customConditional:({row:e})=>"property"===e.type},{weight:30,input:!0,label:"Set State",key:"state",tableView:!1,data:{values:[{label:"True",value:"true"},{label:"False",value:"false"}]},dataSrc:"values",template:"<span>{{ item.label }}</span>",type:"select",customConditional:({row:e})=>"property"===e.type&&e.hasOwnProperty("property")&&"boolean"===e.property.type},{weight:30,type:"textfield",key:"text",label:"Text",inputType:"text",input:!0,tableView:!1,description:'Can use templating with {{ data.myfield }}. "data", "row", "component" and "result" variables are available.',customConditional:({row:e})=>"property"===e.type&&e.hasOwnProperty("property")&&"string"===e.property.type&&!e.property.component},{weight:20,input:!0,label:"Value (Javascript)",key:"value",editor:"ace",as:"javascript",rows:5,placeholder:"value = data.myfield;",type:"textarea",tableView:!1,description:'"row", "data", "component", and "result" variables are available. Return the value.',customConditional:({row:e})=>"value"===e.type},{weight:20,input:!0,label:"Schema Defenition",key:"schemaDefinition",editor:"ace",as:"javascript",rows:5,placeholder:"schema = { label: 'Updated' };",type:"textarea",tableView:!1,description:'"row", "data", "component", and "result" variables are available. Return the schema.',customConditional:({row:e})=>"mergeComponentSchema"===e.type},Object.assign(r.default.logicVariablesTable("<tr><th>input</th><td>The value that was input into this component</td></tr>"),{customConditional:({row:e})=>"customAction"===e.type}),{weight:20,input:!0,label:"Custom Action (Javascript)",key:"customAction",editor:"ace",rows:5,placeholder:"value = data.myfield;",type:"textarea",tableView:!1,customConditional:({row:e})=>"customAction"===e.type}]}]}]}]},9081:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(66140)),o=i(n(8128));t.default=[{weight:10,type:"checkbox",label:"Required",tooltip:"A required field must be filled in before the form can be submitted.",key:"validate.required",input:!0},{weight:100,type:"checkbox",label:"Unique",tooltip:"Makes sure the data submitted for this field is unique, and has not been submitted before.",key:"unique",input:!0},{weight:0,type:"select",key:"validateOn",defaultValue:"change",input:!0,label:"Validate On",tooltip:"Determines when this component should trigger front-end validation.",dataSrc:"values",data:{values:[{label:"Change",value:"change"},{label:"Blur",value:"blur"}]}},{weight:190,type:"textfield",input:!0,key:"errorLabel",label:"Error Label",placeholder:"Error Label",tooltip:"The label for this field when an error occurs."},{weight:200,key:"validate.customMessage",label:"Custom Error Message",placeholder:"Custom Error Message",type:"textfield",tooltip:"Error message displayed if any error occurred.",input:!0},{type:"panel",title:"Custom Validation",collapsible:!0,collapsed:!0,style:{"margin-bottom":"10px"},key:"custom-validation-js",weight:300,customConditional:()=>!o.default.noeval||o.default.protectedEval,components:[r.default.logicVariablesTable("<tr><th>input</th><td>The value that was input into this component</td></tr>"),{type:"textarea",key:"validate.custom",rows:5,editor:"ace",hideLabel:!0,as:"javascript",input:!0},{type:"htmlelement",tag:"div",content:"\n <small>\n <p>Enter custom validation code.</p>\n <p>You must assign the <strong>valid</strong> variable as either <strong>true</strong> or an error message if validation fails.</p>\n <h5>Example:</h5>\n <pre>valid = (input === 'Joe') ? true : 'Your name must be \"Joe\"';</pre>\n </small>"},{type:"well",components:[{weight:100,type:"checkbox",label:"Secret Validation",tooltip:"Check this if you wish to perform the validation ONLY on the server side. This keeps your validation logic private and secret.",description:"Check this if you wish to perform the validation ONLY on the server side. This keeps your validation logic private and secret.",key:"validate.customPrivate",input:!0}]}]},{type:"panel",title:"JSONLogic Validation",collapsible:!0,collapsed:!0,key:"json-validation-json",weight:400,components:[{type:"htmlelement",tag:"div",content:'<p>Execute custom logic using <a href="http://jsonlogic.com/" target="_blank" rel="noopener noreferrer">JSONLogic</a>.</p><h5>Example:</h5><pre>'+JSON.stringify({if:[{"===":[{var:"input"},"Bob"]},!0,"Your name must be 'Bob'!"]},null,2)+"</pre>"},{type:"textarea",key:"validate.json",hideLabel:!0,rows:5,editor:"ace",as:"json",input:!0}]},{type:"panel",title:"Custom Errors",collapsible:!0,collapsed:!0,key:"errors",weight:400,components:[{type:"textarea",key:"errors",hideLabel:!0,rows:5,editor:"ace",as:"json",input:!0},{type:"htmlelement",tag:"div",content:'\n <p>This allows you to set different custom error messages for different errors\n (in contrast to “Custom Error Message”, which only allows you to set one\n error message for all errors). E.g.</p>\n\n<pre>{\n "required": "{<span/>{ field }} is required. Try again.",\n "maxLength": "{<span/>{ field }} is too long. Try again."\n}</pre>\n\n <p>You can set the following keys (among others):</p>\n <ul>\n <li>r<span/>equired</li>\n <li>m<span/>in</li>\n <li>m<span/>ax</li>\n <li>m<span/>inLength</li>\n <li>m<span/>axLength</li>\n <li>m<span/>inWords</li>\n <li>m<span/>axWords</li>\n <li>i<span/>nvalid_email</li>\n <li>i<span/>nvalid_date</li>\n <li>i<span/>nvalid_day</li>\n <li>i<span/>nvalid_regex</li>\n <li>m<span/>ask</li>\n <li>p<span/>attern</li>\n <li>c<span/>ustom</li>\n </ul>\n\n <p>Depending on the error message some of the following template variables can be used in the script:</p>\n <ul>\n <li><code>{<span/>{ f<span/>ield }}</code> is replaced with the label of the field.</li>\n <li><code>{<span/>{ m<span/>in }}</code></li>\n <li><code>{<span/>{ m<span/>ax }}</code></li>\n <li><code>{<span/>{ l<span/>ength }}</code></li>\n <li><code>{<span/>{ p<span/>attern }}</code></li>\n <li><code>{<span/>{ m<span/>inDate }}</code></li>\n <li><code>{<span/>{ m<span/>axDate }}</code></li>\n <li><code>{<span/>{ m<span/>inYear }}</code></li>\n <li><code>{<span/>{ m<span/>axYear }}</code></li>\n <li><code>{<span/>{ r<span/>egex }}</code></li>\n </ul>\n '}]}]},66140:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(8128)),s={sortAndFilterComponents:e=>r.default.filter(r.default.sortBy(e,"weight"),(e=>!e.ignore)),unifyComponents:(e,t)=>e.key&&t.key?!e.skipMerge&&!t.skipMerge&&e.key===t.key&&(r.default.each(e,((n,i)=>{!e.overrideEditForm&&t.hasOwnProperty(i)||(t[i]=n)})),r.default.each(t,((n,i)=>{!t.overrideEditForm&&e.hasOwnProperty(i)||(e[i]=n)})),e.components&&(t.components=s.sortAndFilterComponents(r.default.unionWith(e.components,t.components,s.unifyComponents))),!0):r.default.isEqual(e,t),logicVariablesTable:e=>({type:"htmlelement",tag:"div",content:'<p>The following variables are available in all scripts.</p><table class="table table-bordered table-condensed table-striped">'+(e=e||"")+'<tr><th>form</th><td>The complete form JSON object</td></tr><tr><th>submission</th><td>The complete submission object.</td></tr><tr><th>data</th><td>The complete submission data object.</td></tr><tr><th>row</th><td>Contextual "row" data, used within DataGrid, EditGrid, and Container components</td></tr><tr><th>component</th><td>The current component JSON</td></tr><tr><th>instance</th><td>The current component instance.</td></tr><tr><th>value</th><td>The current value of the component.</td></tr><tr><th>moment</th><td>The moment.js library for date manipulation.</td></tr><tr><th>_</th><td>An instance of <a href="https://lodash.com/docs/" target="_blank" rel="noopener noreferrer">Lodash</a>.</td></tr><tr><th>utils</th><td>An instance of the <a href="http://formio.github.io/formio.js/docs/identifiers.html#utils" target="_blank" rel="noopener noreferrer">FormioUtils</a> object.</td></tr><tr><th>util</th><td>An alias for "utils".</td></tr></table><br/>'}),javaScriptValue(e,t,n,i,r,s,a="",l){const u=[this.logicVariablesTable(a),{type:"panel",title:"JavaScript",collapsible:!0,collapsed:!1,style:{"margin-bottom":"10px"},key:`${t}-js`,customConditional:()=>!o.default.noeval||o.default.protectedEval,components:[{type:"textarea",key:t,rows:5,editor:"ace",hideLabel:!0,as:"javascript",input:!0},{type:"htmlelement",tag:"div",content:`<p>Enter custom javascript code.</p>${r}`}]},{type:"panel",title:"JSONLogic",collapsible:!0,collapsed:!0,key:`${t}-json`,components:[{type:"htmlelement",tag:"div",content:'<p>Execute custom logic using <a href="http://jsonlogic.com/" target="_blank" rel="noopener noreferrer">JSONLogic</a>.</p><p>Full <a href="https://lodash.com/docs" target="_blank" rel="noopener noreferrer">Lodash</a> support is provided using an "_" before each operation, such as <code>{"_sum": {var: "data.a"}}</code></p>'+s},{type:"textarea",key:n,rows:5,editor:"ace",hideLabel:!0,as:"json",input:!0}]}];return l&&u.splice(2,1),{type:"panel",title:e,theme:"default",collapsible:!0,collapsed:!0,key:`${t}Panel`,weight:i,components:u}}};t.default=s},4372:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=n(76286);t.default=class{static render(e,t,n){const i=e.renderTemplate("component",t,n);return e.renderTemplate("componentModal",Object.assign(Object.assign({},t),{children:i}))}constructor(e,t,n,i){this.isOpened=n,this.component=e,this.element=t,this.currentValue=(0,o.fastCloneDeep)(null!=i?i:this.component.getValue()),this.dataLoaded=!1,this.init()}get refs(){return this.component.refs}init(){this.openModalListener=this.openModalHandler.bind(this),this.showDialogListener=e=>{this.isValueChanged()&&!this.component.disabled?this.showDialog():this.closeModalHandler(e)},this.closeModalListener=this.closeModalHandler.bind(this),this.saveModalListener=this.saveModalValueHandler.bind(this),this.closeDialogListener=this.closeDialog.bind(this),this.saveDialogListener=this.saveDialog.bind(this),this.loadRefs()}setValue(e){this.dataLoaded&&this.currentValue===e||(this.currentValue=(0,o.fastCloneDeep)(e),this.dataLoaded=!0,this.updateView())}setOpenModalElement(e){var t;(null===(t=this.component)||void 0===t?void 0:t.visible)&&(this.openModalTemplate=e,this.component.setContent(this.refs.openModalWrapper,e),this.loadRefs(),this.setEventListeners(),this.isOpened&&(this.refs.modalWrapper.classList.add("formio-dialog-disabled-animation"),this.openModal()))}get templateRefs(){return{modalOverlay:"single",modalContents:"single",modalClose:"single",openModalWrapper:"single",openModal:"single",modalSave:"single",modalWrapper:"single"}}loadRefs(){this.component.loadRefs(this.element,this.templateRefs)}removeEventListeners(){this.component.removeEventListener(this.refs.openModal,"click",this.openModalListener),this.component.removeEventListener(this.refs.modalOverlay,"click",this.refs.modalSave?this.showDialogListener:this.saveModalListener),this.component.removeEventListener(this.refs.modalClose,"click",this.showDialogListener),this.component.removeEventListener(this.refs.modalSave,"click",this.saveModalListener)}setEventListeners(){this.removeEventListeners(),this.component.addEventListener(this.refs.openModal,"click",this.openModalListener),this.component.addEventListener(this.refs.modalOverlay,"click",this.refs.modalSave?this.showDialogListener:this.saveModalListener),this.component.addEventListener(this.refs.modalClose,"click",this.showDialogListener),this.component.addEventListener(this.refs.modalSave,"click",this.saveModalListener)}isValueChanged(){let e=this.component.getValue(),t=this.currentValue;return e&&e.data&&e.metadata&&(e=this.component.getValue().data,t=this.currentValue.data),!r.default.isEqual((0,o.fastCloneDeep)(e),t)}setOpenEventListener(){var e;this.component.removeEventListener(this.refs.openModal,"click",this.openModalListener),this.component.loadRefs(null!==(e=this.refs.openModalWrapper)&&void 0!==e?e:this.element,{openModal:"single"}),this.component.addEventListener(this.refs.openModal,"click",this.openModalListener)}openModalHandler(e){e.preventDefault(),this.openModal()}positionOverElement(){let e=this.element.getBoundingClientRect().top-this.refs.modalContents.getBoundingClientRect().height-10;e=e>0?e:10,this.refs.modalWrapper.style.paddingTop=`${e}px`}openModal(){this.isOpened=!0,this.refs.modalWrapper.classList.remove("component-rendering-hidden"),"signature"===this.component.component.type&&this.positionOverElement()}updateView(){const e=r.default.isEqual(this.currentValue,this.component.defaultValue)?this.openModalTemplate:this.component.getModalPreviewTemplate();this.component.setContent(this.refs.openModalWrapper,e),this.setOpenEventListener()}closeModal(){this.refs.modalWrapper.classList.remove("formio-dialog-disabled-animation"),this.refs.modalWrapper.classList.add("component-rendering-hidden"),this.isOpened=!1,this.updateView()}closeModalHandler(e){e.preventDefault(),this.component.disabled||this.component.setValue(r.default.cloneDeep(this.currentValue),{resetValue:!0}),this.closeModal()}showDialog(){this.dialogElement=this.component.ce("div");const e=`\n <h3 ref="dialogHeader">${this.component.t("Do you want to clear changes?")}</h3>\n <div style="display:flex; justify-content: flex-end;">\n <button ref="dialogCancelButton" class="btn btn-secondary">${this.component.t("Cancel")}</button>\n <button ref="dialogYesButton" class="btn btn-danger">${this.component.t("Yes, delete it")}</button>\n </div>\n `;this.dialogElement.innerHTML=e,this.dialogElement.refs={},this.component.loadRefs.call(this.dialogElement,this.dialogElement,{dialogHeader:"single",dialogCancelButton:"single",dialogYesButton:"single"}),this.dialog=this.component.createModal(this.dialogElement),this.component.addEventListener(this.dialogElement.refs.dialogYesButton,"click",this.saveDialogListener),this.component.addEventListener(this.dialogElement.refs.dialogCancelButton,"click",this.closeDialogListener)}closeDialog(e){e.preventDefault(),this.dialog.close(),this.component.removeEventListener(this.dialogElement.refs.dialogYesButton,"click",this.saveDialogListener),this.component.removeEventListener(this.dialogElement.refs.dialogCancelButton,"click",this.closeDialogListener)}saveDialog(e){this.closeDialog(e),this.closeModalHandler(e)}saveModalValueHandler(e){var t;e.preventDefault(),this.currentValue=(0,o.fastCloneDeep)(null!==(t=this.component.dataValue)&&void 0!==t?t:this.component.getValue()),this.closeModal()}}},24133:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(93977));class o extends r.default{render(e){return this.noField?super.render(e):this.isAdvancedLabel||this.options.condensedMode?super.render(this.renderTemplate("field",Object.assign(Object.assign({},this.getLabelInfo(this.options.condensedMode)),{labelMarkup:this.renderTemplate("label"),element:e}),"align")):super.render(this.renderTemplate("field",{labelMarkup:this.renderTemplate("label"),element:e}))}saveCaretPosition(e,t){var n,i;if((null===(i=null===(n=this.root)||void 0===n?void 0:n.focusedComponent)||void 0===i?void 0:i.path)===this.path)try{this.root.currentSelection={selection:[e.selectionStart,e.selectionEnd],index:t}}catch(e){e instanceof DOMException||console.debug(e)}}}t.default=o},14297:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(10257)),o=n(76286),s=i(n(94554)),a=i(n(96486));class l extends r.default{constructor(e,t,n){super(e,t,n),this.triggerUpdateValueAt=a.default.debounce(this.updateValueAt.bind(this),100)}static schema(...e){return r.default.schema({widget:{type:"input"}},...e)}get inputInfo(){const e={name:this.options.name,type:this.component.inputType||"text",class:"form-control",lang:this.options.language};return("builder"===this.options.attachMode||this.options.building||a.default.get(this.root,"form.settings.disableAutocomplete"))&&(e.autocomplete=this.autocompleteDisableAttrName),this.component.inputMode&&(e.inputmode=this.component.inputMode),this.component.placeholder&&(e.placeholder=this.getFormattedAttribute(this.component.placeholder)),this.component.tabindex&&(e.tabindex=this.component.tabindex),this.disabled&&(e.disabled="disabled"),this.component.autocomplete&&(e.autocomplete=this.component.autocomplete),a.default.defaults(e,this.component.attributes),{id:this.key,type:"input",changeEvent:"input",content:"",attr:e}}get autocompleteDisableAttrName(){return"off"}get maskOptions(){return a.default.map(this.component.inputMasks,(e=>({label:e.label,value:e.label})))}get isMultipleMasksField(){return this.component.allowMultipleMasks&&!!this.component.inputMasks&&!!this.component.inputMasks.length}getMaskByName(e){const t=a.default.find(this.component.inputMasks,(t=>t.label===e));return t?t.mask:void 0}setInputMask(e,t){const n=t||this.component.displayMask||this.component.inputMask;return super.setInputMask(e,n,!this.component.placeholder)}getMaskOptions(){return this.component.inputMasks.map((e=>({label:e.label,value:e.label})))}getWordCount(e){return e?e.trim().split(/\s+/).length:0}get remainingWords(){return a.default.parseInt(a.default.get(this.component,"validate.maxWords"),10)-this.getWordCount(this.dataValue)}get prefix(){return this.component.prefix}get suffix(){if(this.component.widget&&"calendar"===this.component.widget.type){const e=this.renderTemplate("icon",{ref:"icon",className:this.iconClass(this.component.enableDate||this.component.widget.enableDate?"calendar":"clock-o"),styles:"",content:""}).trim();if(this.component.prefix!==e)return(0,o.convertStringToHTMLElement)(e,'[ref="icon"]')}return this.component.suffix}renderElement(e,t){e&&"string"==typeof e&&(e=e.replace(/"/g,"&quot;"));const n=this.inputInfo;n.attr=n.attr||{},n.attr.value=this.getValueAsString(this.formatValue(this.parseValue(e))).replace(/"/g,"&quot;");const i=this.component.inputMask,r=this.component.displayMask,o=i&&r&&i!==r;return this.isMultipleMasksField&&(n.attr.class+=" formio-multiple-mask-input"),this.isMultipleMasksField?this.renderTemplate("multipleMasksInput",{input:n,value:e,index:t,selectOptions:this.getMaskOptions()||[]},this.isHtmlRenderMode()?"html":null):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:n,value:this.formatValue(this.parseValue(e)),hasValueMaskInput:o,index:t},this.isHtmlRenderMode()?"html":null)}setCounter(e,t,n,i){if(i){const r=i-n;r>0?this.removeClass(t,"text-danger"):this.addClass(t,"text-danger"),this.setContent(t,this.t(`{{ remaining }} ${e} remaining.`,{remaining:r}))}else this.setContent(t,this.t(`{{ count }} ${e}`,{count:n}))}updateValueAt(e,t,n){if(t=t||{},a.default.get(this.component,"showWordCount",!1)&&this.refs.wordcount&&this.refs.wordcount[n]){const t=a.default.parseInt(a.default.get(this.component,"validate.maxWords",0),10);this.setCounter(this.t("words"),this.refs.wordcount[n],this.getWordCount(e),t)}if(a.default.get(this.component,"showCharCount",!1)&&this.refs.charcount&&this.refs.charcount[n]){const t=a.default.parseInt(a.default.get(this.component,"validate.maxLength",0),10);this.setCounter(this.t("characters"),this.refs.charcount[n],e.length,t)}}getValueAt(e){const t=this.performInputMapping(this.refs.input[e]);return t&&t.widget?t.widget.getValue():t?t.value:void 0}updateValue(e,t,n){t=t||{};const i=super.updateValue(e,t);return this.triggerUpdateValueAt(this.dataValue,t,n),i}parseValue(e){return e}formatValue(e){return e}attach(e){return this.loadRefs(e,{charcount:"multiple",wordcount:"multiple",prefix:"multiple",suffix:"multiple"}),super.attach(e)}getWidget(e){return e=e||0,this.refs.input&&this.refs.input[e]?this.refs.input[e].widget:null}attachElement(e,t){super.attachElement(e,t),e.widget&&e.widget.destroy();let n=Promise.resolve();return e.widget=this.createWidget(t),e.widget&&(n=e.widget.attach(e),this.refs.prefix&&this.refs.prefix[t]&&e.widget.addPrefix(this.refs.prefix[t]),this.refs.suffix&&this.refs.suffix[t]&&e.widget.addSuffix(this.refs.suffix[t])),this.addFocusBlurEvents(e),this.options.submitOnEnter&&this.addEventListener(e,"keypress",(e=>{13===(e.keyCode||e.which)&&(e.preventDefault(),e.stopPropagation(),this.emit("submitButton"))})),n}createWidget(e){var t,n;if(!this.component.widget)return null;const i="string"==typeof this.component.widget?{type:this.component.widget}:this.component.widget;if((null===(t=this.root)||void 0===t?void 0:t.shadowRoot)&&(i.shadowRoot=null===(n=this.root)||void 0===n?void 0:n.shadowRoot),!s.default.hasOwnProperty(i.type))return null;const r=new s.default[i.type](i,this.component,this,e);return r.on("update",(()=>this.updateValue(this.getValue(),{modified:!0},e)),!0),r.on("redraw",(()=>this.redraw()),!0),r}teardown(){if(this.element&&this.element.widget&&(this.element.widget.destroy(),delete this.element.widget),this.refs&&this.refs.input)for(let e=0;e<=this.refs.input.length;e++){const t=this.getWidget(e);t&&t.destroy()}super.teardown()}detach(){if(this.refs&&this.refs.input)for(let e=0;e<=this.refs.input.length;e++){const t=this.getWidget(e);t&&t.destroy()}this.refs.input=[],super.detach()}}t.default=l},28345:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(28180));t.default=function(...e){return r.default.baseEditForm([{key:"data",components:o.default}],...e)}},92094:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(24133)),o=n(61066),s=i(n(96486));class a extends r.default{static schema(...e){return r.default.schema({dataSrc:"values",authenticate:!1,ignoreCache:!1,template:"<span>{{ item.label }}</span>",validate:{onlyAvailableItems:!1}},...e)}get isSelectURL(){return"url"===this.component.dataSrc}get selectData(){const e=s.default.get(this.root,"submission.metadata.selectData",{});return s.default.get(e,this.path)}get shouldLoad(){if(this.loadingError)return!1;if(!this.options.readOnly)return!0;if(this.templateKeys&&this.templateKeys.length){const e=this.dataValue,t=this.selectData;return this.templateKeys.reduce(((n,i)=>{const r=s.default.has(e,i)||(s.default.isArray(t)?t.every((e=>s.default.has(e,i))):s.default.has(t,i));return n||!r}),!1)}return!0}getTemplateKeys(){if(this.templateKeys=[],this.options.readOnly&&this.component.template){const e=this.component.template.match(/({{\s*(.*?)\s*}})/g);e&&e.forEach((e=>{const t=e.match(/{{\s*item\.(.*?)\s*}}/);t&&t.length>1&&this.templateKeys.push(t[1])}))}}get requestHeaders(){const e=new o.Formio.Headers;if(this.component.data&&this.component.data.headers)try{s.default.each(this.component.data.headers,(t=>{t.key&&e.set(t.key,this.interpolate(t.value))}))}catch(e){console.warn(e.message)}return e}setItems(){}updateCustomItems(){}loadItems(){}getOptionTemplate(e,t,n){if(!this.component.template)return e.label;const i={noeval:!0,data:{}},r=this.sanitize(this.component.template?this.interpolate(this.component.template,{item:e},i):e.label,this.shouldSanitizeValue),o=this.component.reference&&(null==t?void 0:t._id)?t._id.toString():t;return o&&!s.default.isObject(o)&&i.data.item&&(this.templateData[o]=i.data.item),s.default.isNumber(n)&&(this.templateData[n]=i.data.item),r}itemTemplate(e,t,n){if(s.default.isEmpty(e))return"";const i=this.sanitize(this.getOptionTemplate(e,t,n),this.shouldSanitizeValue);if(i){const e=i.replace(/<\/?[^>]+(>|$)/g,"");if(!e)return;return i.replace(e,this.t(e,{_userInput:!0}))}return this.sanitize(JSON.stringify(e),this.shouldSanitizeValue)}handleLoadingError(e){this.loading=!1,e.networkError&&(this.networkError=!0),this.itemsLoadedResolve(),this.emit("componentError",{component:this.component,message:e.toString()}),console.warn(`Unable to load resources for ${this.key}`)}updateItems(e,t){if(!this.component.data)return console.warn(`Select component ${this.key} does not have data configuration.`),void this.itemsLoadedResolve();if(this.visible)switch(this.component.dataSrc){case"values":this.setItems(this.component.data.values);break;case"json":this.setItems(this.component.data.json);break;case"custom":this.updateCustomItems(t);break;case"resource":{if(!this.component.data.resource||!t&&!this.active)return void this.itemsLoadedResolve();let n=this.options.formio?this.options.formio.formsUrl:`${o.Formio.getProjectUrl()}/form`;if(n+=`/${this.component.data.resource}/submission`,t||this.additionalResourcesAvailable||!this.serverCount)try{this.loadItems(n,e,this.requestHeaders)}catch(e){console.warn(`Unable to load resources for ${this.key}`)}else this.setItems(this.downloadedResources);break}case"url":{if(!t&&!this.active&&!this.calculatedValue&&"select"===this.component.type)return void this.itemsLoadedResolve();let n,i,{url:r}=this.component.data;if(r.startsWith("/")){const e=r.startsWith("/project")?o.Formio.getBaseUrl():o.Formio.getProjectUrl()||o.Formio.getBaseUrl();r=e+r}this.component.data.method?(n=this.component.data.method,i="POST"===n.toUpperCase()?this.component.data.body:null):n="GET";const s=this.component.authenticate?{}:{noToken:!0};this.loadItems(r,e,this.requestHeaders,s,n,i);break}case"indexeddb":if("undefined"==typeof window)return;if(window.indexedDB||window.alert("Your browser doesn't support current version of indexedDB"),this.component.indexeddb&&this.component.indexeddb.database&&this.component.indexeddb.table){const e=window.indexedDB.open(this.component.indexeddb.database);e.onupgradeneeded=e=>{if(this.component.customOptions){const t=e.target.result;t.createObjectStore(this.component.indexeddb.table,{keyPath:"myKey",autoIncrement:!0}).transaction.oncomplete=()=>{const e=t.transaction(this.component.indexeddb.table,"readwrite");this.component.customOptions.forEach((t=>{e.objectStore(this.component.indexeddb.table).put(t)}))}}},e.onerror=()=>{window.alert(e.errorCode)},e.onsuccess=e=>{const t=e.target.result.transaction(this.component.indexeddb.table,"readwrite").objectStore(this.component.indexeddb.table);new Promise((e=>{const n=[];t.getAll().onsuccess=t=>{t.target.result.forEach((e=>{n.push(e)})),e(n)}})).then((e=>{s.default.isEmpty(this.component.indexeddb.filter)||(e=s.default.filter(e,this.component.indexeddb.filter)),this.setItems(e)}))}}}else this.itemsLoadedResolve()}}t.default=a},28180:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"select",input:!0,weight:0,tooltip:"The source to use for the select data. Values lets you provide your own values and labels. JSON lets you provide raw JSON data. URL lets you provide a URL to retrieve the JSON data from.",key:"dataSrc",defaultValue:"values",label:"Data Source Type",dataSrc:"values"},{type:"textfield",input:!0,key:"data.url",weight:10,label:"Data Source URL",placeholder:"Data Source URL",tooltip:"A URL that returns a JSON array to use as the data source.",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"datagrid",input:!0,label:"Request Headers",key:"data.headers",tooltip:"Set any headers that should be sent along with the request to the url. This is useful for authentication.",weight:11,components:[{label:"Key",key:"key",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}],conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"textfield",input:!0,label:"Value Property",key:"valueProperty",skipMerge:!0,clearOnHide:!1,weight:13,description:"The selected item's property to save.",tooltip:"The property of each item in the data source to use as the select value. If not specified, the item itself will be used.",conditional:{json:{in:[{var:"data.dataSrc"},["json","url","custom"]]}}},{type:"textarea",input:!0,key:"template",label:"Item Template",editor:"ace",as:"html",rows:3,weight:18,tooltip:"The HTML template for the result data items.",allowCalculateOverride:!0,calculateValue:e=>!e.data.template&&e.instance&&e.instance._currentForm.options.editComponent?e.instance._currentForm.options.editComponent.template:e.data.template},{type:"checkbox",input:!0,weight:26,key:"authenticate",label:"Formio Authenticate",tooltip:"Check this if you would like to use Formio Authentication with the request.",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"checkbox",input:!0,weight:29,key:"ignoreCache",label:"Disables Storing Request Result in the Cache",tooltip:"Check it if you don't want the requests and its results to be stored in the cache. By default, it is stored and if the Select tries to make the request to the same URL with the same paremetrs, the cached data will be returned. It allows to increase performance, but if the remote source's data is changing quite often and you always need to keep it up-to-date, uncheck this option.",conditional:{json:{or:[{"===":[{var:"data.dataSrc"},"url"]},{"===":[{var:"data.dataSrc"},"resource"]}]}}}]},10257:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(24133)),o=i(n(96486));class s extends r.default{get dataValue(){const e=super.dataValue;return!e&&this.component.multiple?[]:e}set dataValue(e){super.dataValue=e}get defaultValue(){let e=super.defaultValue;return this.component.multiple&&(e=o.default.isArray(e)?e.length?e:[super.emptyValue]:[e]),e}get addAnother(){return this.t(this.component.addAnother||"Add Another")}useWrapper(){return this.component.hasOwnProperty("multiple")&&this.component.multiple}render(){if(!this.useWrapper())return super.render(`<div ref="element">\n ${this.renderElement("hidden"!==this.component.type?this.dataValue:"")}\n </div>`);let e=this.dataValue;return Array.isArray(e)||(e=e?[e]:[]),super.render(this.renderTemplate("multiValueTable",{rows:e.map(this.renderRow.bind(this)).join(""),disabled:this.disabled,addAnother:this.addAnother}))}renderElement(){return""}renderRow(e,t){return this.renderTemplate("multiValueRow",{index:t,disabled:this.disabled,element:`${this.renderElement(e,t)}`})}attach(e){const t=super.attach(e);this.loadRefs(e,{addButton:"multiple",input:"multiple",removeRow:"multiple",mask:"multiple",select:"multiple"});const n=[];return this.refs.input.forEach(((e,t)=>{n.push(this.attachElement.call(this,e,t))})),this.component.multiple?(this.refs.removeRow.forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.removeValue(t)}))})),this.refs.addButton.forEach((e=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.addValue()}))})),t.then((()=>Promise.all(n)))):Promise.all(n)}detach(){this.refs.input&&this.refs.input.length&&this.refs.input.forEach((e=>{e.mask&&e.mask.destroy(),e.widget&&e.widget.destroy()})),this.refs.mask&&this.refs.mask.length&&this.refs.mask.forEach((e=>{e.mask&&e.mask.destroy()})),super.detach()}attachElement(e,t){if(this.addEventListener(e,this.inputInfo.changeEvent,(()=>{const n=o.default.get(this.component,"case","mixed");if("mixed"!==n){const{selectionStart:t,selectionEnd:i}=e;"uppercase"===n&&e.value&&(e.value=e.value.toUpperCase()),"lowercase"===n&&e.value&&(e.value=e.value.toLowerCase()),e.selectionStart&&e.selectionEnd&&(e.selectionStart=t,e.selectionEnd=i)}try{this.saveCaretPosition(e,t)}catch(e){console.warn("An error occurred while trying to save caret position",e)}if(!e.mask)return this.updateValue(null,{modified:"hidden"!==this.component.type},t);setTimeout((()=>this.updateValue(null,{modified:"hidden"!==this.component.type},t)),1)})),!this.attachMultiMask(t)){const t=()=>{this.setInputMask(e);const t=this.component.inputMask,n=this.component.displayMask;t&&n&&n!==t&&this.refs.valueMaskInput&&this.setInputMask(this.refs.valueMaskInput,t)};"blur"===this.inputInfo.changeEvent?this.addEventListener(e,this.inputInfo.changeEvent,(()=>{t(),this.dataValue=this.refs.input[0].value,this.checkComponentValidity()&&this.updateComponentValue(this.refs.input[0].value)})):t()}}onSelectMaskHandler(e){this.updateMask(e.target.maskInput,this.getMaskPattern(e.target.value))}getMaskPattern(e){if(this.multiMasks||(this.multiMasks={}),this.multiMasks[e])return this.multiMasks[e];const t=this.component.inputMasks.find((t=>t.label===e));return this.multiMasks[e]=t?t.mask:this.component.inputMasks[0].mask,this.multiMasks[e]}attachMultiMask(e){if(!(this.isMultipleMasksField&&this.component.inputMasks.length&&this.refs.input.length))return!1;const t=this.refs.select[e];return t.onchange=this.onSelectMaskHandler.bind(this),t.maskInput=this.refs.mask[e],this.setInputMask(t.maskInput,this.component.inputMasks[0].mask),!0}updateMask(e,t){t&&(this.setInputMask(e,t,!this.component.placeholder),this.updateValue())}addNewValue(e){void 0===e&&(e=this.component.defaultValue?this.component.defaultValue:this.emptyValue,Array.isArray(e)&&0===e.length&&(e=this.emptyValue));let t=this.dataValue||[];Array.isArray(t)||(t=[t]),Array.isArray(e)?t=t.concat(e):t.push(e),this.dataValue=t}addValue(){this.addNewValue(),this.redraw(),this.checkConditions(),this.isEmpty(this.dataValue)||this.restoreValue(),this.root&&this.root.onChange()}}t.default=s},4219:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950));t.default=function(...e){return r.default.baseEditForm([{key:"data",ignore:!0},{key:"validation",ignore:!0}],...e)}},99216:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(24133)),s=i(n(85950)),a=n(76286);class l extends o.default{static schema(...e){return o.default.schema({tree:!1,lazyLoad:!1},...e)}constructor(e,t,n){super(e,t,n),this.type="components",this._collapsed=!!this.component.collapsed}get defaultSchema(){return l.schema()}get schema(){const e=super.schema,t=r.default.uniqBy(this.getComponents(),"component.key");return e.components=r.default.map(t,"schema"),e}get collapsed(){return this._collapsed}collapse(e){const t=this.redraw();return e||this.checkValidity(this.data,!this.pristine,null,this.pristine),t}set collapsed(e){this._collapsed=e,this.collapse(e)}set visible(e){const t=this._visible!==e;this._visible=e;const n=this.visible,i=this.shouldForceShow(),r=this.shouldForceHide();this.components.forEach((e=>{e.parentVisible=n;const t=e.conditionallyVisible();i||t?e.visible=!0:!r&&n&&t||(e.visible=!1),e.visible||(e.error="")})),t&&(this.clearOnHide(),this.redraw())}get visible(){return super.visible}set parentVisible(e){super.parentVisible=e,this.components.forEach((e=>e.parentVisible=this.visible))}get parentVisible(){return super.parentVisible}get disabled(){return super.disabled}set disabled(e){super.disabled=e,this.components.forEach((t=>t.parentDisabled=e))}set parentDisabled(e){super.parentDisabled=e,this.components.forEach((e=>{e.parentDisabled=this.disabled}))}get parentDisabled(){return super.parentDisabled}get ready(){return Promise.all(this.getComponents().map((e=>e.ready)))}get currentForm(){return super.currentForm}set currentForm(e){super.currentForm=e,this.getComponents().forEach((t=>{t.currentForm=e}))}get rowIndex(){return this._rowIndex}set rowIndex(e){this._rowIndex=e,this.eachComponent((t=>{t.rowIndex=e}))}componentContext(){return this._data}get data(){return this._data}set data(e){this._data=e,this.eachComponent((e=>{e.data=this.componentContext(e)}))}getComponents(){return this.components||[]}everyComponent(e,t){const n=this.getComponents();r.default.each(n,((i,r)=>!1!==e(i,n,r)&&("function"!=typeof i.everyComponent||!1!==i.everyComponent(e,t))&&void 0))}hasComponent(e){let t=!1;return this.everyComponent((n=>{if(n===e)return t=!0,!1})),t}flattenComponents(){const e={};return this.everyComponent((t=>{e[t.component.flattenAs||t.key]=t})),e}eachComponent(e){r.default.each(this.getComponents(),((t,n)=>{if(!1===e(t,n))return!1}))}getComponent(e,t,n){n=n||(0,a.getStringFromComponentPath)(e),e=(0,a.getArrayFromComponentPath)(e);const i=n,o=r.default.clone(e);let s=o.shift();const l=o;let u=null,c=null;return r.default.isNumber(s)&&(s=l.shift()),r.default.isString(s)?(this.everyComponent(((e,r)=>{const o=!e.hasInput||!e.path||i.includes(e.path);if(e.component.key===s&&(c=e,o))return u=e,l.length>0&&"getComponent"in e?u=e.getComponent(l,t,n):t&&t(e,r),!1})),u||(u=c),u):u}getComponentById(e,t){let n=null;return this.everyComponent(((i,r)=>{if(i.id===e)return n=i,t&&t(i,r),!1})),n}calculateComponentPath(e){let t="";if(e.component.key){let n=this;for(;n&&!n.allowData&&n.parent;)n=n.parent;const i=e.row?`[${Number.parseInt(e.row)}]`:"";return t=n.path?`${n.path}${i}.`:"",t+=e._parentPath&&e.component.shouldIncludeSubFormPath?e._parentPath:"",t+=e.component.key,t}}createComponent(e,t,n,i,o){if(!e)return;t=t||this.options,n=n||this.data,t.parent=this,t.parentVisible=this.visible,t.root=(null==t?void 0:t.root)||this.root||this,t.localRoot=this.localRoot,t.skipInit=!0,"pdf"===t.display&&this.builderMode||(e.id=(0,a.getRandomComponentId)()),!this.isInputComponent&&this.component.shouldIncludeSubFormPath&&(e.shouldIncludeSubFormPath=!0);const l=s.default.create(e,t,n,!0),u=this.calculateComponentPath(l);if(u&&(l.path=u),l.init(),e.internal)return l;if(i){const e=r.default.findIndex(this.components,{id:i.id});-1!==e?this.components.splice(e,0,l):this.components.push(l)}else if(o){const e=r.default.findIndex(this.components,{id:o.id});-1!==e?this.components[e]=l:this.components.push(l)}else this.components.push(l);return l}getContainer(){return this.element}get componentComponents(){return this.component.components||[]}get nestedKey(){return`nested-${this.key}`}get templateName(){return"container"}init(){return this.components=this.components||[],this.addComponents(),super.init()}addComponents(e,t){e=e||this.data,this.components=this.components||[],(t=t||this.options).components?this.components=t.components:(this.hook("addComponents",this.componentComponents,this)||[]).forEach((t=>this.addComponent(t,e)))}addComponent(e,t,n,i){t=t||this.data,this.components=this.components||[],this.options.parentPath&&(e.shouldIncludeSubFormPath=!0),e=this.hook("addComponent",e,t,n,i);return this.createComponent(e,this.options,t,n||null)}beforeFocus(){this.parent&&"beforeFocus"in this.parent&&this.parent.beforeFocus(this)}render(e){return super.render(e||this.renderTemplate(this.templateName,{children:this.visible?this.renderComponents():"",nestedKey:this.nestedKey,collapsed:!this.options.pdf&&this.collapsed}))}renderComponents(e){const t=(e=e||this.getComponents()).map((e=>e.render()));return this.renderTemplate("components",{children:t,components:e})}attach(e){const t=super.attach(e);this.loadRefs(e,{header:"single",collapsed:this.collapsed,[this.nestedKey]:"single"});let n=Promise.resolve();return this.refs[this.nestedKey]&&(n=this.attachComponents(this.refs[this.nestedKey])),this.visible||this.attachComponentsLogic(),this.component.collapsible&&this.refs.header&&(this.addEventListener(this.refs.header,"click",(()=>{this.collapsed=!this.collapsed})),this.addEventListener(this.refs.header,"keydown",(e=>{13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),this.collapsed=!this.collapsed)}))),Promise.all([t,n])}attachComponentsLogic(e){e=e||this.components,r.default.each(e,(e=>{e.attachLogic(),r.default.isFunction(e.attachComponentsLogic)&&e.attachComponentsLogic()}))}attachComponents(e,t,n){if(t=t||this.components,n=n||this.component.components,!(e=this.hook("attachComponents",e,t,n,this)))return new Promise((()=>{}));let i=0;const r=[];return Array.prototype.slice.call(e.children).forEach((e=>{!e.getAttribute("data-noattach")&&t[i]&&(r.push(t[i].attach(e)),i++)})),Promise.all(r)}removeComponent(e,t,n=!1){t=t||this.components,e.destroy(n),r.default.remove(t,{id:e.id})}removeComponentByKey(e,t){if(!this.getComponent(e,((e,n)=>{this.removeComponent(e,n),t&&t(e,n)})))return t&&t(null),null}removeComponentById(e,t){if(!this.getComponentById(e,((e,n)=>{this.removeComponent(e,n),t&&t(e,n)})))return t&&t(null),null}updateValue(e,t={}){return this.components.reduce(((e,n)=>n.updateValue(null,t)||e),super.updateValue(e,t))}shouldSkipValidation(e,t,n){return!this.component.input||super.shouldSkipValidation(e,t,n)}checkData(e,t,n,i){if(this.builderMode)return!0;e=e||this.rootValue,t=t||{},n=n||this.data;const o=(i=i&&r.default.isArray(i)?i:this.getComponents()).reduce(((i,r)=>r.checkData(e,t,n)&&i),super.checkData(e,t,n));return this.checkModal(o,this.isDirty),o}checkConditions(e,t,n){const i=super.checkConditions(e,t,n);return this.getComponents().forEach((n=>n.checkConditions(e,t,n.data))),i}clearOnHide(e){super.clearOnHide(e),this.component.clearOnHide&&(this.allowData&&!this.hasValue()&&(this.dataValue=this.defaultValue),this.hasValue()&&this.restoreComponentsContext()),this.getComponents().forEach((t=>t.clearOnHide(e)))}restoreComponentsContext(){this.getComponents().forEach((e=>e.data=this.dataValue))}beforePage(e){return Promise.all(this.getComponents().map((t=>t.beforePage(e))))}beforeSubmit(){return Promise.all(this.getComponents().map((e=>e.beforeSubmit())))}calculateValue(e,t,n){return!!this.conditionallyVisible()&&this.getComponents().reduce(((i,r)=>r.calculateValue(e,t,n)||i),super.calculateValue(e,t,n))}isLastPage(){return this.pages.length-1===this.page}isValid(e,t){return this.getComponents().reduce(((n,i)=>i.isValid(e,t)&&n),super.isValid(e,t))}checkChildComponentsValidity(e,t,n,i,r){return this.getComponents().reduce(((r,o)=>o.checkValidity(e,t,n,i)&&r),r)}checkValidity(e,t,n,i){if(!this.checkCondition(n,e))return this.setCustomValidity(""),!0;const r=this.checkChildComponentsValidity(e,t,n,i,super.checkValidity(e,t,n,i));return this.checkModal(r,t),r}checkAsyncValidity(e,t,n,i){return this.ready.then((()=>{const r=[super.checkAsyncValidity(e,t,n,i)];return this.eachComponent((o=>r.push(o.checkAsyncValidity(e,t,n,i)))),Promise.all(r).then((e=>e.reduce(((e,t)=>e&&t),!0)))}))}setPristine(e){super.setPristine(e),this.getComponents().forEach((t=>t.setPristine(e)))}get isPristine(){return this.pristine&&this.getComponents().every((e=>e.isPristine))}get isDirty(){return this.dirty&&this.getComponents().every((e=>e.isDirty))}detach(){this.components.forEach((e=>{e.detach()})),super.detach()}clear(){this.components.forEach((e=>{e.clear()})),super.clear()}destroy(e=!1){this.destroyComponents(e),super.destroy(e)}destroyComponents(e=!1){this.getComponents().slice().forEach((t=>this.removeComponent(t,this.components,e))),this.components=[]}get errors(){const e=this.error?[this.error]:[];return this.getComponents().reduce(((e,t)=>e.concat(t.errors||[])),e).filter((e=>"hidden"!==e.level))}getValue(){return this.data}resetValue(){super.resetValue(),this.getComponents().forEach((e=>e.resetValue())),this.setPristine(!0)}get dataReady(){return Promise.all(this.getComponents().map((e=>e.dataReady)))}setNestedValue(e,t,n={}){return e._data=this.componentContext(e),"button"!==e.type&&("components"===e.type?e.tree&&e.hasValue(t)?e.setValue(r.default.get(t,e.key),n):e.setValue(t,n):t&&e.hasValue(t)?e.setValue(r.default.get(t,e.key),n):this.rootPristine&&!e.visible||!e.shouldAddDefaultValue?void 0:(n.noValidate=!n.dirty,n.resetValue=!0,e.setValue(e.defaultValue,n)))}setValue(e,t={}){return!!e&&(e.submitAsDraft&&!e.submit&&(t.noValidate=!0),this.getComponents().reduce(((n,i)=>this.setNestedValue(i,e,t,n)||n),!1))}get lazyLoad(){var e;return null!==(e=this.component.lazyLoad)&&void 0!==e&&e}}t.default=l},87568:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=n(76286),s=i(n(93977)),a=i(n(72048));class l extends a.default{static schema(...e){return a.default.schema({disableAddingRemovingRows:!1},...e)}static savedValueTypes(){return[o.componentValueTypes.array]}componentContext(e){return this.iteratableRows[e.rowIndex].data}get iteratableRows(){throw new Error("Getter #iteratableRows() is not implemented")}get rowIndex(){return super.rowIndex}set rowIndex(e){this._rowIndex=e}init(){super.init(),this.prevHasAddButton=this.hasAddButton()}checkAddButtonChanged(){const e=this.hasAddButton();e!==this.prevHasAddButton&&(this.prevHasAddButton=e,this.redraw())}checkData(e,t,n){return e=e||this.rootValue,t=t||{},n=n||this.data,this.checkAddButtonChanged(),this.checkRows("checkData",e,t,s.default.prototype.checkData.call(this,e,t,n))}checkRows(e,t,n,i,r){return this.iteratableRows.reduce(((i,o,s)=>((null==n?void 0:n.rowIndex)&&(null==n?void 0:n.rowIndex)!==s||this.checkRow(e,t,n,o.data,o.components,r))&&i),i)}checkRow(e,t,n,i,o,s){(null==n?void 0:n.isolateRow)&&(s=!0,n.noRefresh=!0);const a=r.default.reduce(o,((r,o)=>o[e](t,n,i,s)&&r),!0);return(null==n?void 0:n.noRefresh)&&delete n.noRefresh,a}hasAddButton(){const e=r.default.get(this.component,"validate.maxLength"),t=r.default.get(this.component,"conditionalAddButton");return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&!this.options.preview&&(!e||this.iteratableRows.length<e)&&(!t||this.evaluate(t,{value:this.dataValue},"show"))}getComponent(e,t,n){let i=(e=Array.isArray(e)?e:[e]).shift();const o=e;let s=[],a=null,l=null,u=null;return r.default.isNumber(i)&&(u=i,i=o.shift()),r.default.isString(i)?(this.everyComponent(((e,r)=>{e.component.key===i&&(a=e,o.length>0&&"getComponent"in e?l=e.getComponent(o,t,n):t&&t(e,r),s=null!==u?l:s.concat(l||a))}),u),s&&0!==s.length||!a||(s=null!==u?a:[a]),s):s}everyComponent(e,t,n){if(r.default.isObject(t)&&(n=t,t=null),null==n?void 0:n.email)return;const i=this.getComponents(t);r.default.each(i,((t,r)=>!1!==e(t,i,r)&&("function"!=typeof t.everyComponent||!1!==t.everyComponent(e,n))&&void 0))}getValueAsString(e,t){var n;if(null==t?void 0:t.email){let e='\n <table border="1" style="width:100%">\n <thead>\n <tr>\n ';return null===(n=this.component.components)||void 0===n||n.forEach((t=>{const n=t.label||t.key;e+=`<th style="padding: 5px 10px;">${n}</th>`})),e+="\n </tr>\n </thead>\n <tbody>\n ",this.iteratableRows.forEach((({components:n})=>{e+="<tr>",r.default.each(n,(n=>{e+='<td style="padding:5px 10px;">',n.isInputComponent&&n.visible&&!n.skipInEmail&&(e+=n.getView(n.dataValue,t)),e+="</td>"})),e+="</tr>"})),e+="\n </tbody>\n </table>\n ",e}return e&&e.length?super.getValueAsString(e,t):""}getComponents(e){return void 0!==e?this.iteratableRows[e]?this.iteratableRows[e].components:[]:super.getComponents()}}t.default=l},72048:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(93977)),o=i(n(99216)),s=i(n(96486)),a=n(76286);class l extends o.default{hasChanged(e,t){return null!=e&&!this.hasValue()||!s.default.isEqual(e,t)}static savedValueTypes(e){return(0,a.getComponentSavedTypes)(e)||[a.componentValueTypes.object]}get allowData(){return!0}get emptyValue(){return{}}componentContext(){return this.dataValue}getValueAsString(e,t){if(null==t?void 0:t.email){let e='\n <table border="1" style="width:100%">\n <tbody>\n ';return this.everyComponent((n=>{n.isInputComponent&&n.visible&&!n.skipInEmail&&(e+=`\n <tr>\n <th style="padding: 5px 10px;">${n.label}</th>\n <td style="width:100%;padding:5px 10px;">${n.getView(n.dataValue,t)}</td>\n </tr>\n `)}),Object.assign(Object.assign({},t),{fromRoot:!0})),e+="\n </tbody>\n </table>\n ",e}return s.default.isEmpty(e)?"":(null==t?void 0:t.modalPreview)?(delete t.modalPreview,this.getDataValueAsTable(e,t)):"[Complex Data]"}getDataValueAsTable(e,t){let n='\n <table border="1" style="width:100%">\n <tbody>\n ';const i=new RegExp("<(.*?)>");return this.components.forEach((e=>{if(e.isInputComponent&&e.visible&&!e.skipInEmail){const r=e.getView(e.dataValue,t);n+=`\n <tr>\n <th style="padding: 5px 10px;">${e.label}</th>\n <td style="width:100%;padding:5px 10px;">${e.component&&"html"===e.component.inputFormat&&i.test(r)?r:`<input type="text" value="${r.replace(/"/g,"&quot;")}" readonly/>`}</td>\n </tr>\n `}}),Object.assign(Object.assign({},t),{fromRoot:!0})),n+="\n </tbody>\n </table>\n ",n}everyComponent(e,t){if(null==t?void 0:t.email){if(!t.fromRoot)return;delete t.fromRoot}return super.everyComponent(e,t)}getValue(){return this.dataValue}updateValue(e,t={}){return r.default.prototype.updateValue.call(this,e,t)}setValue(e,t={}){let n=!1;const i=this.hasValue();return i&&s.default.isEmpty(this.dataValue)&&(t.noValidate=!0),e&&s.default.isObject(e)&&i||(n=!0,this.dataValue=this.defaultValue),n=super.setValue(e,t)||n,this.updateOnChange(t,n),n}}t.default=l},33691:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(12868)),s=i(n(84156)),a=i(n(9394));t.default=function(...e){return r.default.baseEditForm([{key:"data",components:o.default},{key:"display",components:s.default},{label:"Provider",key:"provider",weight:15,components:a.default}],...e)}},88233:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AddressComponentMode=void 0;const r=i(n(77338)),o=i(n(96486)),s=n(61066),a=n(80918),l=i(n(24133)),u=i(n(99216)),c=i(n(31252)),d=n(76286);t.AddressComponentMode={Autocomplete:"autocomplete",Manual:"manual"};const h="address-autocomplete-remove-value-icon--hidden",p="show = _.get(instance, 'parent.manualMode', false);";class f extends c.default{static schema(...e){return c.default.schema({type:"address",label:"Address",key:"address",switchToManualModeLabel:"Can't find address? Switch to manual mode.",provider:"",providerOptions:{},manualModeViewString:"",hideLabel:!1,disableClearIcon:!1,enableManualMode:!1,components:[{label:"Address 1",tableView:!1,key:"address1",type:"textfield",input:!0,customConditional:p},{label:"Address 2",tableView:!1,key:"address2",type:"textfield",input:!0,customConditional:p},{label:"City",tableView:!1,key:"city",type:"textfield",input:!0,customConditional:p},{label:"State",tableView:!1,key:"state",type:"textfield",input:!0,customConditional:p},{label:"Country",tableView:!1,key:"country",type:"textfield",input:!0,customConditional:p},{label:"Zip Code",tableView:!1,key:"zip",type:"textfield",input:!0,customConditional:p}]},...e)}static savedValueTypes(e){return e=e||{},(0,d.getComponentSavedTypes)(e)||[d.componentValueTypes.object]}static get builderInfo(){return{title:"Address",group:"advanced",icon:"home",documentation:"/userguide/form-building/advanced-components#address",weight:35,schema:f.schema()}}mergeSchema(e={}){let{defaultSchema:t}=this;return e.components&&(t=o.default.omit(t,"components")),o.default.defaultsDeep(e,t)}init(){if(this.components=this.components||[],(this.builderMode||this.manualModeEnabled)&&u.default.prototype.addComponents.call(this,this.manualMode?this.address:{}),l.default.prototype.init.call(this),!this.builderMode)if(this.component.provider){const{provider:e,providerOptions:t}=this.component;this.provider=this.initializeProvider(e,t)}else if(this.component.map){this.component.provider=a.GoogleAddressProvider.name,this.component.providerOptions=this.component.providerOptions||{};const{map:e,provider:t,providerOptions:n}=this.component,{key:i,region:r}=e;i&&o.default.set(n,"params.key",i),r&&o.default.set(n,"params.region",r),this.provider=this.initializeProvider(t,n)}}initializeProvider(e,t={}){const n=this.interpolate(t.url);return new(s.Formio.Providers.getProvider("address",e))(Object.assign(Object.assign({},t),{url:n}))}get emptyValue(){return this.manualModeEnabled?{mode:t.AddressComponentMode.Autocomplete,address:{}}:{}}get mode(){var e,n;return this.manualModeEnabled&&null!==(n=null===(e=this.dataValue)||void 0===e?void 0:e.mode)&&void 0!==n?n:t.AddressComponentMode.Autocomplete}set mode(e){this.manualModeEnabled&&(this.dataValue.mode=e)}get autocompleteMode(){return this.mode===t.AddressComponentMode.Autocomplete}get manualMode(){return this.mode===t.AddressComponentMode.Manual}get manualModeEnabled(){return!this.isMultiple&&Boolean(this.component.enableManualMode)}restoreComponentsContext(){this.getComponents().forEach((e=>{e.data=this.address,e.setValue(e.dataValue,{noUpdateEvent:!0})}))}get isMultiple(){return Boolean(this.component.multiple)}get address(){return this.isMultiple?o.default.isArray(this.dataValue)?this.dataValue:[this.dataValue]:this.manualModeEnabled&&this.dataValue?this.dataValue.address:this.dataValue}set address(e){this.manualModeEnabled&&!this.isMultiple?this.dataValue.address=e:this.dataValue=e}get defaultValue(){let e=super.defaultValue;return this.isMultiple&&(e=o.default.isArray(e)?e:[e]),e}get defaultSchema(){return f.schema()}isValueInLegacyFormat(e){return e&&!e.mode}normalizeValue(e){return this.manualModeEnabled&&this.isValueInLegacyFormat(e)?{mode:t.AddressComponentMode.Autocomplete,address:e}:e}setValue(e,t={}){const n=l.default.prototype.setValue.call(this,e,t);return this.manualMode&&this.restoreComponentsContext(),(n||!o.default.isEmpty(e)&&t.fromSubmission)&&this.redraw(),n}static get modeSwitcherRef(){return"modeSwitcher"}static get removeValueIconRef(){return"removeValueIcon"}static get searchInputRef(){return"searchInput"}static get addRowButtonRef(){return"addButton"}static get removeRowButtonRef(){return"removeRow"}get modeSwitcher(){return this.refs&&this.refs[f.modeSwitcherRef]||null}get removeValueIcon(){return this.refs&&this.refs[f.removeValueIconRef]||null}get searchInput(){return this.refs&&this.refs[f.searchInputRef]||null}get addRowButton(){return this.refs&&this.refs[f.addRowButtonRef]||null}get removeRowButton(){return this.refs&&this.refs[f.removeRowButtonRef]||null}get searchInputAttributes(){const e={name:this.options.name,type:"text",class:"form-control",lang:this.options.language,tabindex:this.component.tabindex||0};return this.component.placeholder&&(e.placeholder=this.t(this.component.placeholder)),this.disabled&&(e.disabled="disabled"),o.default.defaults(e,this.component.attributes),e}get templateName(){return"address"}get gridTemplateName(){return"multiValueTable"}get rowTemplateName(){return"multiValueRow"}get hasChildren(){return!this.isMultiple&&(this.builderMode||this.manualModeEnabled)}get addAnother(){return this.t(this.component.addAnother||"Add Another")}renderElement(e){return this.renderTemplate(this.templateName,{children:this.hasChildren?this.renderComponents():"",nestedKey:this.nestedKey,inputAttributes:this.searchInputAttributes,ref:{modeSwitcher:f.modeSwitcherRef,removeValueIcon:f.removeValueIconRef,searchInput:f.searchInputRef},displayValue:this.getDisplayValue(e),mode:{autocomplete:this.autocompleteMode,manual:this.manualMode}})}renderRow(e,t){return this.renderTemplate(this.rowTemplateName,{index:t,disabled:this.disabled,element:`${this.renderElement(e,t)}`})}renderGrid(){return this.renderTemplate(this.gridTemplateName,{rows:this.address.map(this.renderRow.bind(this)).join(""),disabled:this.disabled,addAnother:this.addAnother})}render(){return this.isMultiple?super.render(this.renderGrid()):super.render(this.renderElement())}onSelectAddress(e,t,n){this.isMultiple?(this.address[n]=e,this.address=[...this.address]):this.address=e,this.triggerChange({modified:!0}),t&&(t.value=this.getDisplayValue(this.isMultiple?this.address[n]:this.address)),this.updateRemoveIcon(n)}addRow(){this.address=this.address.concat(this.emptyValue),super.redraw()}attach(e){const n=(this.builderMode||this.manualMode?super.attach:l.default.prototype.attach).call(this,e);if(!this.builderMode&&!this.provider&&this.component.provider){const{provider:e,providerOptions:t}=this.component;this.provider=this.initializeProvider(e,t)}return this.loadRefs(e,{[f.addRowButtonRef]:"single",[f.modeSwitcherRef]:"single",[f.removeRowButtonRef]:"multiple",[f.removeValueIconRef]:"multiple",[f.searchInputRef]:"multiple"}),this.searchInput.forEach(((e,t)=>{!this.builderMode&&e&&this.provider&&("google"===this.component.provider?this.provider.attachAutocomplete(e,t,this.onSelectAddress.bind(this)):(0,r.default)({input:e,debounceWaitMs:300,fetch:(e,t)=>{const n=e;this.provider.search(n).then(t)},render:e=>{const t=this.ce("div");return t.textContent=this.getDisplayValue(e),t},onSelect:n=>{this.onSelectAddress(n,e,t)}}),this.addEventListener(e,"blur",(()=>{e&&e.value&&(e.value=this.getDisplayValue(this.isMultiple?this.address[t]:this.address))})),this.addEventListener(e,"keyup",(()=>{e&&(e.value||this.clearAddress(e,t))})))})),this.addRowButton&&this.addEventListener(this.addRowButton,"click",(e=>{e.preventDefault(),this.addRow()})),this.removeRowButton.forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.removeValue(t)}))})),this.modeSwitcher&&this.addEventListener(this.modeSwitcher,"change",(()=>{this.modeSwitcher&&(this.dataValue=this.emptyValue,this.mode=this.modeSwitcher.checked?t.AddressComponentMode.Manual:t.AddressComponentMode.Autocomplete,this.builderMode||(this.manualMode&&this.restoreComponentsContext(),this.triggerChange({modified:!0})),this.redraw())})),this.builderMode||(this.removeValueIcon.forEach(((e,t)=>{this.updateRemoveIcon(t);const n=()=>{var e;const n=null===(e=this.searchInput)||void 0===e?void 0:e[t];this.clearAddress(n,t),n&&n.focus()};this.addEventListener(e,"click",n),this.addEventListener(e,"keydown",(({key:e})=>{"Enter"===e&&n()}))})),o.default.each(this.refs.searchInput||[],(e=>this.addFocusBlurEvents(e)))),n}addChildComponent(e){e.customConditional=p}redraw(){const e=this.modeSwitcher&&document.activeElement===this.modeSwitcher;return super.redraw().then((t=>(e&&this.modeSwitcher&&this.modeSwitcher.focus(),t)))}clearAddress(e,t){var n;this.isEmpty()||this.triggerChange(),(null===(n=this.address)||void 0===n?void 0:n[t])?this.address[t]=this.emptyValue:this.address=this.emptyValue,e&&(e.value=""),this.updateRemoveIcon(t)}getDisplayValue(e=this.address){return this.provider&&!this.manualMode?this.provider.getDisplayValue(e):""}validateMultiple(){return this.isMultiple}updateRemoveIcon(e){var t;const n=null===(t=this.removeValueIcon)||void 0===t?void 0:t[e];if(n){const t=this.isMultiple?this.address[e]:this.address;this.isEmpty(t)||this.disabled?this.addClass(n,h):this.removeClass(n,h)}}getValueAsString(e,n){if(!e)return"";const i=this.normalizeValue(e),{address:r,mode:s}=this.manualModeEnabled?i:{address:i,mode:t.AddressComponentMode.Autocomplete},a=s===t.AddressComponentMode.Manual;return this.provider&&!a?this.getDisplayValue(r):a?this.component.manualModeViewString?this.interpolate(this.component.manualModeViewString,{address:r,data:this.data,component:this.component}):this.getComponents().filter((e=>e.hasValue(r))).map((e=>[e,o.default.get(r,e.key)])).filter((([e,t])=>!e.isEmpty(t))).map((([e,t])=>e.getValueAsString(t,n))).join(", "):super.getValueAsString(r,n)}focus(){this.searchInput&&this.searchInput[0]&&this.searchInput[0].focus()}}t.default=f},12868:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",customConditional:({data:e})=>!e.enableManualMode},{type:"address",label:"Default Value",key:"defaultValue",weight:5,placeholder:"Default Value",tooltip:"The Default Value will be the value for this field, before user interaction. Having a default value will override the placeholder text.",input:!0,customDefaultValue:({instance:e})=>e.manualModeEnabled?{mode:"autocomplete",address:{}}:{}}]},84156:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{weight:20,type:"checkbox",input:!0,key:"enableManualMode",label:"Enable Manual Mode",tooltip:"Should Manual Mode be enabled for that component or not.",customConditional:({data:e})=>!e.multiple},{weight:30,type:"textfield",input:!0,key:"switchToManualModeLabel",label:"Switch To Manual Mode Label",placeholder:"Switch To Manual Mode Label",tooltip:"The label for the checkbox used to switch to manual mode.",validate:{required:!0},customConditional:({data:e})=>Boolean(e.enableManualMode)},{weight:40,type:"checkbox",input:!0,key:"disableClearIcon",label:"Disable Clear Icon",tooltip:"Clear Icon allows easily clear component's value."},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:({data:e})=>e.multiple}]},9394:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=n(61066);t.default=[{type:"select",input:!0,key:"provider",label:"Provider",placeholder:"Select your address search provider",weight:0,tooltip:"Which address search service should be used.",valueProperty:"value",dataSrc:"custom",data:{custom:()=>r.default.values(o.Formio.Providers.getProviders("address")).sort().map((e=>({label:e.displayName,value:e.name})))},validate:{required:!0}},{type:"textfield",input:!0,key:"providerOptions.params['subscription-key']",label:"Subscription Key",placeholder:"Enter Subscription Key",weight:10,tooltip:"Use your Azure Maps subscription key here.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"azure"]}}},{type:"textfield",input:!0,key:"providerOptions.url",label:"Url",placeholder:"Enter Url",weight:10,tooltip:"Url to the service which should be used to search addresses for autocomplete.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.queryProperty",label:"Query Property",defaultValue:"query",placeholder:"Enter Query Property",weight:20,tooltip:"Which query param should be used to pass as a search string. Default is `query`.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.responseProperty",label:"Response Property",placeholder:"Enter Response Property",weight:30,tooltip:"The property within the response data, where iterable addresses reside. For example: results.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.displayValueProperty",label:"Display Value Property",placeholder:"Display Value Property",weight:40,tooltip:"The property of each address in the response to use as the display value.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textarea",input:!0,key:"providerOptions.params",label:"Params",placeholder:"{ ... }",weight:50,rows:5,editor:"ace",as:"json",tooltip:"Additional query params can be specified here in a way of JSON object.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.params.key",label:"API Key",placeholder:"Enter API Key",weight:10,tooltip:"Use your Google API key here.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"google"]}}},{type:"textarea",input:!0,key:"providerOptions.params.autocompleteOptions",label:"Provider options",placeholder:"Enter provider options as JSON object",defaultValue:{},weight:60,rows:5,as:"json",editor:"ace",tooltip:"Specify Google Maps Autocomplete options used for address searching as JSON object. Follow the <a href ='https://developers.google.com/maps/documentation/javascript/places-autocomplete' target='_blank'>link</a> for available options",conditional:{json:{"===":[{var:"data.provider"},"google"]}}},{type:"textarea",input:!0,key:"manualModeViewString",label:"Manual Mode View String",placeholder:"Enter Manual Mode View String",description:'"address" variable references component value, "data" - submission data and "component" - address component schema.',weight:60,rows:5,editor:"ace",tooltip:"Specify template which should be when quering view string for the component value entered in manual mode. This string is used in table view, CSV export and email rendering. When left blank combined value of all components joined with comma will be used."}]},49686:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=n(76286);t.default=class{constructor(e,t){this.container=e,this.alert=null,this.parentComponent=t,this.refs={},this.loadRefs=this.parentComponent.loadRefs.bind(this)}get refsNames(){return{messageRef:"multiple"}}get alertTypes(){return{error:"danger",success:"success",info:"info",warning:"warning"}}showErrors(e=[],t=!1,n={}){e=r.default.isArray(e)?e:[e];const i=this.createMessagesList("error",e);return this.showAlert("error",i,n),t&&this.parentComponent.emit("error",e),e}showMessage(e,t,n={}){let i=e;i instanceof HTMLElement?i.setAttribute("ref","messageRef"):i=this.parentComponent.ce("p",{ref:"messageRef"}),this.showAlert(t,i,n)}createMessagesList(e,...t){if("error"===e)return this.createErrorList(...t)}createErrorList(e){const t=this.parentComponent.ce("p");this.parentComponent.setContent(t,this.parentComponent.t("error"));const n=this.parentComponent.ce("ul"),i=document.createDocumentFragment();return e.forEach((e=>this.appendErrorToList(e,n))),t.appendChild(n),i.appendChild(t),i}showAlert(e,t,n={}){const{customClasses:i,customEvents:r}=n;this.setAlert(e,t,{customClasses:i}),this.alert&&(this.attach({customEvents:r}),this.parentComponent.prependTo(this.alert,this.container))}setAlert(e,t,n={}){const i=this.alertTypes[e];if(this.alert&&this.clear(),t){const{id:r=`${e}-list-${this.parentComponent.id}`,customClasses:o=`alert alert-${i}`}=n;this.alert=this.parentComponent.ce("div",{id:r,class:o}),t instanceof HTMLElement?this.parentComponent.appendTo(t,this.alert):this.parentComponent.setContent(this.alert,t)}}attach(e){var t,n,i;let{customEvents:r={}}=e;this.eventListenersKeys=[],this.loadRefs(this.alert,this.refsNames);const o=(null===(t=r.click)||void 0===t?void 0:t.listeners)||[],s=(null===(n=r.keypress)||void 0===n?void 0:n.listeners)||[];r=Object.assign(Object.assign({},r),{click:[...o,e=>{const t=e.currentTarget.dataset.componentKey;this.focusOnComponent(t)}],keypress:[...s,e=>{const t=e.currentTarget.dataset.componentKey;this.focusOnComponent(t)}]}),(null===(i=this.refs.messageRef)||void 0===i?void 0:i.length)&&this.refs.messageRef.forEach((e=>{Object.entries(r).forEach((([t,n])=>{n.forEach((n=>this.parentComponent.addEventListener(e,t,n))),this.eventListenersKeys.push(t)}))}))}clear(){var e;try{(null===(e=this.refs.messageRef)||void 0===e?void 0:e.length)&&this.refs.messageRef.forEach((e=>{this.eventListenersKeys.forEach((t=>this.parentComponent.removeEventListener(e,t)))})),this.refs={},this.parentComponent.removeChildFrom(this.alert,this.container),this.alert=null}catch(e){}}focusOnComponent(e){var t;if(e){const n=this.parentComponent._parentPath?e.replace(this.parentComponent._parentPath,""):e,i=null===(t=this.parentComponent.root)||void 0===t?void 0:t.getComponent(n,null,e);i&&r.default.isFunction(i.focus)&&i.focus()}}createMessage(e,t,n,i,r){if("error"===e)return this.createErrorMessage(t,n,i,r)}createErrorMessage(e,t,n,i){var s,a;const l={style:"cursor: pointer",ref:"messageRef",tabIndex:0,"aria-label":`${t}. Click to navigate to the field with following error.`},u=this.parentComponent.ce("li",l);this.parentComponent.setContent(u,t);const c=!r.default.isUndefined(n)&&(null===(s=null==i?void 0:i.messages)||void 0===s?void 0:s[n]),d=(null==c?void 0:c.path)||(null===(a=null==i?void 0:i.component)||void 0===a?void 0:a.key);if(d){const e=(0,o.getStringFromComponentPath)(d);u.dataset.componentKey=e}this.parentComponent.appendTo(u,e)}appendErrorToList(e,t){var n;if(null===(n=null==e?void 0:e.messages)||void 0===n?void 0:n.length)e.messages.forEach((({message:n},i)=>{this.createMessage("error",t,n,i,e)}));else if(e){const n=r.default.isObject(e)?e.message||"":e;this.createMessage("error",t,n)}}}},58936:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3278)),o=i(n(33691)),s=i(n(42837)),a=i(n(10008)),l=i(n(24112)),u=i(n(83095)),c=i(n(29631)),d=i(n(44348)),h=i(n(36344)),p=i(n(16487)),f=i(n(43576)),m=i(n(46087)),g=i(n(21180)),v=i(n(82878)),y=i(n(82511)),b=i(n(93039)),w=i(n(79407)),_=i(n(49086)),k=i(n(28345)),C=i(n(59916)),O=i(n(13262)),x=i(n(4219)),E=i(n(70367)),S=i(n(64947)),M=i(n(98406)),P=i(n(75288)),A=i(n(13352)),T=i(n(37132)),D=i(n(42548)),j=i(n(15052)),R=i(n(84543)),V=i(n(29650)),I=i(n(78433)),L=i(n(6914)),F=i(n(96111)),N=i(n(74285)),U=i(n(85854)),$=i(n(72125)),z=i(n(23803)),B=i(n(95606)),H=i(n(65915)),q=i(n(41603)),W=i(n(39534));r.default.address.editForm=o.default,r.default.button.editForm=s.default,r.default.checkbox.editForm=a.default,r.default.columns.editForm=l.default,r.default.component.editForm=u.default,r.default.container.editForm=c.default,r.default.content.editForm=d.default,r.default.currency.editForm=h.default,r.default.datagrid.editForm=p.default,r.default.datamap.editForm=f.default,r.default.datetime.editForm=m.default,r.default.day.editForm=g.default,r.default.editgrid.editForm=v.default,r.default.email.editForm=y.default,r.default.fieldset.editForm=b.default,r.default.file.editForm=w.default,r.default.form.editForm=_.default,r.default.list.editForm=k.default,r.default.hidden.editForm=C.default,r.default.htmlelement.editForm=O.default,r.default.nested.editForm=x.default,r.default.number.editForm=E.default,r.default.panel.editForm=S.default,r.default.password.editForm=M.default,r.default.phoneNumber.editForm=P.default,r.default.radio.editForm=A.default,r.default.recaptcha.editForm=T.default,r.default.resource.editForm=D.default,r.default.select.editForm=R.default,r.default.selectboxes.editForm=j.default,r.default.signature.editForm=V.default,r.default.survey.editForm=I.default,r.default.table.editForm=L.default,r.default.tabs.editForm=F.default,r.default.tags.editForm=N.default,r.default.textarea.editForm=U.default,r.default.textfield.editForm=$.default,r.default.time.editForm=z.default,r.default.tree.editForm=B.default,r.default.unknown.editForm=H.default,r.default.url.editForm=q.default,r.default.well.editForm=W.default,t.default=r.default},42837:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(59167));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0}],...e)}},48658:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(24133)),s=i(n(14297)),a=n(76286);class l extends o.default{static schema(...e){return s.default.schema({type:"button",label:"Submit",key:"submit",size:"md",leftIcon:"",rightIcon:"",block:!1,action:"submit",persistent:!1,disableOnInvalid:!1,theme:"primary",dataGridLabel:!0},...e)}static get builderInfo(){return{title:"Button",group:"basic",icon:"stop",documentation:"/userguide/form-building/form-components#button",weight:110,schema:l.schema()}}static savedValueTypes(e){return(0,a.getComponentSavedTypes)(e)||[a.componentValueTypes.boolean]}constructor(e,t,n){super(e,t,n),this.filesUploading=[]}get defaultSchema(){return l.schema()}get inputInfo(){const e=super.elementInfo();return e.type="button",e.attr.type=["submit","saveState"].includes(this.component.action)?"submit":"button",this.component.theme=this.component.theme||"default",e.attr.class=`btn btn-${this.component.theme}`,this.component.size&&(e.attr.class+=` btn-${this.component.size}`),this.component.block&&(e.attr.class+=" btn-block"),this.component.customClass&&(e.attr.class+=` ${this.component.customClass}`),e.content=this.t(this.component.label,{_userInput:!0}),e}get labelInfo(){return{hidden:!0}}set loading(e){this.setLoading(this.refs.button,e)}get skipInEmail(){return!0}createLabel(){}createInput(e){return this.refs.button=super.createInput(e),this.refs.button}get emptyValue(){return!1}getValue(){return this.dataValue}get clicked(){return this.dataValue}get defaultValue(){return!1}get className(){let e=super.className;return e+=` ${this.transform("class","form-group")}`,e}get oauthConfig(){return r.default.has(this,"root.form.config.oauth")&&this.component.oauthProvider?this.root.form.config.oauth[this.component.oauthProvider]:!!this.component.oauth&&this.component.oauth}render(){return(this.viewOnly||this.options.hideButtons)&&(this._visible=!1),super.render(this.renderTemplate("button",{component:this.component,input:this.inputInfo}))}attachButton(){this.addShortcut(this.refs.button);let e=null,t=null;if("submit"===this.component.action&&(this.on("submitButton",(()=>{this.disabled=!0}),!0),this.on("cancelSubmit",(()=>{this.disabled=!1}),!0),this.on("submitDone",(e=>{const t=r.default.isString(e)?e:this.t("complete");this.loading=!1,this.disabled=!1,this.addClass(this.refs.button,"btn-success submit-success"),this.removeClass(this.refs.button,"btn-danger submit-fail"),this.addClass(this.refs.buttonMessageContainer,"has-success"),this.removeClass(this.refs.buttonMessageContainer,"has-error"),this.setContent(this.refs.buttonMessage,t)}),!0),this.on("submitError",(e=>{const t=r.default.isString(e)?this.t(e):this.t(this.errorMessage("submitError"));this.loading=!1,this.disabled=!1,this.hasError=!0,this.removeClass(this.refs.button,"btn-success submit-success"),this.addClass(this.refs.button,"btn-danger submit-fail"),this.removeClass(this.refs.buttonMessageContainer,"has-success"),this.addClass(this.refs.buttonMessageContainer,"has-error"),this.setContent(this.refs.buttonMessage,t)}),!0),this.on("fileUploadingStart",(e=>{this.filesUploading.push(e),this.disabled=!0,this.setDisabled(this.refs.button,this.disabled)}),!0),this.on("fileUploadingEnd",(e=>{const t=this.filesUploading.indexOf(e);-1!==t&&this.filesUploading.splice(t,1),this.disabled=!!this.shouldDisabled,this.setDisabled(this.refs.button,this.disabled)}),!0),e=(e,t)=>{this.removeClass(this.refs.button,"btn-success submit-success"),t&&(this.removeClass(this.refs.button,"btn-danger submit-fail"),this.hasError&&(this.hasError=!1,this.setContent(this.refs.buttonMessage,""),this.removeClass(this.refs.buttonMessageContainer,"has-success"),this.removeClass(this.refs.buttonMessageContainer,"has-error")))},t=()=>{this.hasError=!0,this.removeClass(this.refs.button,"btn-success submit-success"),this.addClass(this.refs.button,"btn-danger submit-fail"),this.removeClass(this.refs.buttonMessageContainer,"has-success"),this.addClass(this.refs.buttonMessageContainer,"has-error"),this.setContent(this.refs.buttonMessage,this.t(this.errorMessage("submitError")))}),"url"===this.component.action&&(this.on("requestButton",(()=>{this.disabled=!0}),!0),this.on("requestDone",(()=>{this.loading=!1,this.disabled=!1}),!0)),this.on("change",((t,n)=>{let i=t.isValid;const r=n&&n.silent;n&&n.noValidate&&(this.component.disableOnInvalid||this.hasError)&&(i=n.rootValidity||!this.root||this.root.checkValidity(this.root.data,null,null,!0),n.rootValidity=i),this.isDisabledOnInvalid=this.component.disableOnInvalid&&(r||!i),this.disabled=this.shouldDisabled,this.setDisabled(this.refs.button,this.disabled),e&&e(t,i)}),!0),this.on("error",(()=>{this.loading=!1,this.disabled=!1,t&&t()}),!0),this.component.saveOnEnter&&this.root.addEventListener(this.root.element,"keyup",(e=>{13===e.keyCode&&this.onClick.call(this,e)})),this.addEventListener(this.refs.button,"click",this.onClick.bind(this)),this.addEventListener(this.refs.buttonMessageContainer,"click",(()=>{this.refs.buttonMessageContainer.classList.contains("has-error")&&this.root&&this.root.alert&&this.scrollIntoView(this.root.alert)})),this.disabled=this.shouldDisabled,this.setDisabled(this.refs.button,this.disabled),"oauth"===this.component.action&&this.oauthConfig&&!this.oauthConfig.error){const e=function(e){e=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");const t=new RegExp(`[\\?&]${e}=([^&#]*)`).exec(location.search);return t?decodeURIComponent(t[1].replace(/\+/g," ")):t}("iss");e&&0===this.oauthConfig.authURI.indexOf(e)&&this.openOauth(this.oauthConfig)}}get shouldDisabled(){var e;return super.shouldDisabled||!!(null===(e=this.filesUploading)||void 0===e?void 0:e.length)||this.isDisabledOnInvalid}attach(e){this.loadRefs(e,{button:"single",buttonMessageContainer:"single",buttonMessage:"single"});const t=super.attach(e);return this.attachButton(),t}detach(e){e&&this.refs.button&&this.removeShortcut(this.refs.button),super.detach()}onClick(e){if(this.triggerReCaptcha(),!this.disabled&&"builder"!==this.options.attachMode)switch(this.dataValue=!0,"submit"!==this.component.action&&this.component.showValidations&&this.emit("checkValidity",this.data),this.component.action){case"saveState":case"submit":e.preventDefault(),e.stopPropagation(),this.loading=!0,this.emit("submitButton",{state:this.component.state||"submitted",component:this.component,instance:this});break;case"event":this.emit(this.interpolate(this.component.event),this.data),this.events.emit(this.interpolate(this.component.event),this.data),this.emit("customEvent",{type:this.interpolate(this.component.event),component:this.component,data:this.data,event:e});break;case"custom":{const e=this.getRoot(),t={},n={};(0,a.eachComponent)(e.components,((e,i)=>{const r=e.component||e;t[i]=r,n[r.key]=r}),!0),this.evaluate(this.component.custom,{form:e,flattened:t,components:n}),this.triggerChange();break}case"url":this.loading=!0,this.emit("requestButton",{component:this.component,instance:this}),this.emit("requestUrl",{url:this.interpolate(this.component.url),headers:this.component.headers});break;case"reset":this.emit("resetForm");break;case"delete":this.emit("deleteSubmission");break;case"oauth":if(this.root===this)return void console.warn("You must add the OAuth button to a form for it to function properly");if(!this.oauthConfig){this.root.setAlert("danger","OAuth not configured. You must configure oauth for your project before it will work.");break}if(this.oauthConfig.error){this.root.setAlert("danger",`The Following Error Has Occured ${this.oauthConfig.error}`);break}this.openOauth(this.oauthConfig)}}openOauth(e){if(!this.root.formio)return void console.warn("You must attach a Form API url to your form in order to use OAuth buttons.");let t={response_type:"code",client_id:e.clientId,redirect_uri:e.redirectURI&&this.interpolate(e.redirectURI)||window.location.origin||`${window.location.protocol}//${window.location.host}`,state:e.state,scope:e.scope};const n=t.redirect_uri;e.display&&(t.display=e.display),t=Object.keys(t).map((e=>`${e}=${encodeURIComponent(t[e])}`)).join("&");const i=-1!==e.authURI.indexOf("?")?"&":"?",o=`${e.authURI}${i}${t}`,s=window.open(o,e.provider,"width=1020,height=618"),a=setInterval((()=>{try{const t=s.location.host,i=window.location.host;if(s&&!s.closed&&t===i){s.close();const t=s.location.search.substr(1).split("&").reduce(((e,t)=>{const n=t.split("=");return e[n[0]]=n[1],e}),{});if(t.error)return alert(t.error_description||t.error),void this.root.setAlert("danger",t.error_description||t.error);if(e.state!==t.state)return void this.root.setAlert("danger","OAuth state does not match. Please try logging in again.");let i=Promise.resolve();if(r.default.has(this,"root.form.config.oauth")&&this.root.form.config.oauth[this.component.oauthProvider])t.provider=e.provider,t.redirectURI=n,t.triggeredBy=this.oauthComponentPath,i=this.root.formio.makeRequest("oauth",`${this.root.formio.projectUrl}/oauth2`,"POST",t);else{const r={data:{},oauth:{}};r.oauth[e.provider]=t,r.oauth[e.provider].redirectURI=n,e.logoutURI&&this.root.formio.oauthLogoutURI(e.logoutURI),r.oauth[e.provider].triggeredBy=this.oauthComponentPath,i=this.root.formio.saveSubmission(r)}i.then((e=>{this.root.onSubmit(e,!0)})).catch((e=>{this.root.onSubmissionError(e)}))}}catch(e){"SecurityError"===e.name||"Error"===e.name&&"Permission denied"===e.message||this.root.setAlert("danger",e.message||e)}s&&!s.closed&&void 0!==s.closed||clearInterval(a)}),100)}get oauthComponentPath(){const e=(0,a.getArrayFromComponentPath)(this.path);return r.default.chain(e).filter((e=>!r.default.isNumber(e))).join(".").value()}focus(){this.refs.button&&this.refs.button.focus()}triggerReCaptcha(){if(!this.root)return;let e;this.root.everyComponent((t=>{"recaptcha"===t.component.type&&"buttonClick"===t.component.eventType&&t.component.buttonKey===this.component.key&&(e=t)})),e&&e.verify(`${this.component.key}Click`)}}t.default=l},59167:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(81290)),o=i(n(96486));t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"hideLabel",customConditional(e){var t,n;return null===(n=null===(t=e.instance.options)||void 0===t?void 0:t.flags)||void 0===n?void 0:n.inDataGrid}},{key:"dataGridLabel",ignore:!0},{type:"select",key:"action",label:"Action",input:!0,dataSrc:"values",weight:110,tooltip:"This is the action to be performed by this button.",data:{values:[{label:"Submit",value:"submit"},{label:"Save in state",value:"saveState"},{label:"Event",value:"event"},{label:"Custom",value:"custom"},{label:"Reset",value:"reset"},{label:"OAuth",value:"oauth"},{label:"POST to URL",value:"url"}]}},{type:"select",key:"oauthProvider",label:"OAuth Provider",input:!0,dataSrc:"values",weight:111,tooltip:"The oauth provider to use to log in (8.x server only).",data:{values:[{label:"OpenID",value:"openid"},{label:"Github",value:"github"},{label:"Google",value:"google"}]},conditional:{json:{"===":[{var:"data.action"},"oauth"]}}},{type:"textfield",label:"Save in state",key:"state",weight:112,tooltip:'The state you wish to save the submission under when this button is pressed. Example "draft" would save the submission in Draft Mode.',placeholder:"submitted",input:!0,conditional:{json:{"===":[{var:"data.action"},"saveState"]}}},{type:"checkbox",input:!0,inputType:"checkbox",key:"saveOnEnter",label:"Save On Enter",weight:113,tooltip:"Use the Enter key to submit form.",conditional:{json:{"===":[{var:"data.action"},"submit"]}}},{type:"checkbox",input:!0,inputType:"checkbox",key:"showValidations",label:"Show Validations",weight:115,tooltip:"When the button is pressed, show any validation errors on the form.",conditional:{json:{"!==":[{var:"data.action"},"submit"]}}},{type:"textfield",label:"Button Event",key:"event",input:!0,weight:120,tooltip:"The event to fire when the button is clicked.",conditional:{json:{"===":[{var:"data.action"},"event"]}}},{type:"textfield",inputType:"url",key:"url",input:!0,weight:120,label:"Button URL",tooltip:"The URL where the submission will be sent.",placeholder:"https://example.form.io",conditional:{json:{"===":[{var:"data.action"},"url"]}}},{type:"datagrid",key:"headers",input:!0,weight:130,label:"Headers",addAnother:"Add Header",tooltip:"Headers Properties and Values for your request",components:[{key:"header",label:"Header",input:!0,type:"textfield"},{key:"value",label:"Value",input:!0,type:"textfield"}],conditional:{json:{"===":[{var:"data.action"},"url"]}}},{type:"textarea",key:"custom",label:"Button Custom Logic",tooltip:"The custom logic to evaluate when the button is clicked.",rows:5,editor:"ace",input:!0,weight:120,placeholder:"data['mykey'] = data['anotherKey'];",conditional:{json:{"===":[{var:"data.action"},"custom"]}}},{type:"select",key:"theme",label:"Theme",input:!0,tooltip:"The color theme of this button.",dataSrc:"values",weight:140,data:{values:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Danger",value:"danger"},{label:"Warning",value:"warning"}]}},{type:"select",key:"size",label:"Size",input:!0,tooltip:"The size of this button.",dataSrc:"values",weight:150,data:{values:[{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"}]}},{type:"textfield",key:"leftIcon",label:"Left Icon",input:!0,placeholder:"Enter icon classes",tooltip:"This is the full icon class string to show the icon. Example: 'bi bi-plus'",weight:160},{type:"textfield",key:"rightIcon",label:"Right Icon",input:!0,placeholder:"Enter icon classes",tooltip:"This is the full icon class string to show the icon. Example: 'bi bi-plus'",weight:170},{type:"select",input:!0,weight:180,label:"Shortcut",key:"shortcut",tooltip:"Shortcut for this component.",dataSrc:"custom",valueProperty:"value",customDefaultValue:()=>"",template:"{{ item.label }}",data:{custom:e=>r.default.getAvailableShortcuts(o.default.get(e,"instance.options.editForm",{}),o.default.get(e,"instance.options.editComponent",{}))}},{type:"checkbox",key:"block",label:"Block Button",input:!0,weight:155,tooltip:"This control should span the full width of the bounding container."},{type:"checkbox",key:"disableOnInvalid",label:"Disable on Form Invalid",tooltip:"This will disable this field if the form is invalid.",input:!0,weight:620}]},10008:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(61699)),s=i(n(57998)),a=i(n(58033));t.default=function(...e){return r.default.baseEditForm([{key:"data",components:o.default},{key:"display",components:s.default},{key:"validation",components:a.default}],...e)}},86563:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=n(76286),s=i(n(24133));class a extends s.default{static schema(...e){return s.default.schema({type:"checkbox",inputType:"checkbox",label:"Checkbox",key:"checkbox",dataGridLabel:!0,labelPosition:"right",value:"",name:""},...e)}static get builderInfo(){return{title:"Checkbox",group:"basic",icon:"check-square",documentation:"/userguide/form-building/form-components#check-box",weight:50,schema:a.schema()}}static get serverConditionSettings(){return a.conditionOperatorsSettings}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{operators:["isEqual"],valueComponent:()=>({valueType:"boolean",data:{values:[{label:"Checked",value:"true"},{label:"Not Checked",value:"false"}]},type:"select"})})}static savedValueTypes(e){e=e||{};const t=(0,o.getComponentSavedTypes)(e);return r.default.isArray(t)?t:"radio"===e.inputType?[o.componentValueTypes.string]:[o.componentValueTypes.boolean]}get defaultSchema(){return a.schema()}get labelClass(){let e="";return this.isInputComponent&&!this.options.inputsOnly&&this.component.validate&&this.component.validate.required&&(e+=" field-required"),`${e}`}get hasSetValue(){return this.hasValue()}get inputInfo(){const e=super.elementInfo();return e.type="input",e.changeEvent="click",e.attr.type=this.component.inputType||"checkbox",e.attr.class="form-check-input",this.component.name&&(e.attr.name=`data[${this.component.name}]`),e.attr.value=this.component.value?this.component.value:0,e.label=this.t(this.component.label,{_userInput:!0}),e.labelClass=this.labelClass,e}get labelInfo(){return{hidden:!0}}render(){return super.render(this.renderTemplate("checkbox",{input:this.inputInfo,checked:this.checked,tooltip:this.interpolate(this.t(this.component.tooltip)||"",{_userInput:!0}).replace(/(?:\r\n|\r|\n)/g,"<br />")}))}attach(e){return this.loadRefs(e,{input:"multiple"}),this.input=this.refs.input[0],this.refs.input&&(this.addEventListener(this.input,this.inputInfo.changeEvent,(()=>this.updateValue(null,{modified:!0}))),this.addShortcut(this.input)),super.attach(e)}detach(e){e&&this.input&&this.removeShortcut(this.input),super.detach()}get emptyValue(){return"radio"===this.component.inputType&&null}isEmpty(e=this.dataValue){return super.isEmpty(e)||!1===e}get key(){return this.component.name?this.component.name:super.key}getValueAt(e){return this.component.name?this.refs.input[e].checked?this.component.value:"":!!this.refs.input[e].checked}getValue(){const e=super.getValue();return this.component.name?e?this.setCheckedState(e):this.setCheckedState(this.dataValue):""===e?this.dataValue:!!e}get checked(){return this.component.name?this.dataValue===this.component.value:!!this.dataValue}setCheckedState(e){if(this.input)return this.component.name?(this.input.value=e===this.component.value?this.component.value:0,this.input.checked=e===this.component.value?1:0):"on"===e?(this.input.value=1,this.input.checked=1):"off"===e?(this.input.value=0,this.input.checked=0):e?(this.input.value=1,this.input.checked=1):(this.input.value=0,this.input.checked=0),this.input.checked?this.input.setAttribute("checked",!0):this.input.removeAttribute("checked"),e}setValue(e,t={}){if(void 0!==this.setCheckedState(e)||!this.input&&void 0!==e&&(this.visible||this.conditionallyVisible()||!this.component.clearOnHide)){const n=this.updateValue(e,t);return this.isHtmlRenderMode()&&t&&t.fromSubmission&&n&&this.redraw(),n}return!1}getValueAsString(e){const{name:t,value:n}=this.component,i=t?r.default.isEqual(e,n):e;return r.default.isUndefined(e)&&this.inDataTable?"":this.t(i?"Yes":"No")}updateValue(e,t){this.component.name&&t.modified&&this.dataValue===this.component.value&&(this.input.checked=0,this.input.value=0,this.dataValue="",this.updateOnChange(t,!0));const n=super.updateValue(e,t);return n&&this.input&&(this.input.checked?this.input.setAttribute("checked","true"):this.input.removeAttribute("checked")),n}}t.default=a},61699:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0}]},57998:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(81290)),o=i(n(96486));t.default=[{key:"labelPosition",ignore:!0},{key:"labelWidth",ignore:!0},{key:"labelMargin",ignore:!0},{key:"placeholder",ignore:!0},{type:"select",input:!0,weight:350,label:"Shortcut",key:"shortcut",tooltip:"Shortcut for this component.",dataSrc:"custom",valueProperty:"value",customDefaultValue:()=>"",template:"{{ item.label }}",data:{custom:e=>r.default.getAvailableShortcuts(o.default.get(e,"instance.options.editForm",{}),o.default.get(e,"instance.options.editComponent",{}))}},{type:"select",input:!0,key:"inputType",label:"Input Type",tooltip:"This is the input type used for this checkbox.",dataSrc:"values",weight:410,data:{values:[{label:"Checkbox",value:"checkbox"},{label:"Radio",value:"radio"}]}},{type:"textfield",input:!0,key:"name",label:"Radio Key",tooltip:"The key used to trigger the radio button toggle.",weight:420,conditional:{json:{"===":[{var:"data.inputType"},"radio"]}}},{type:"textfield",input:!0,label:"Radio Value",key:"value",tooltip:"The value used with this radio button.",weight:430,conditional:{json:{"===":[{var:"data.inputType"},"radio"]}}}]},58033:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validateOn",ignore:!0},{key:"unique",ignore:!0}]},24112:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(4219)),o=i(n(99107));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default}],...e)}},39835:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(99216));class s extends o.default{static schema(...e){return o.default.schema({label:"Columns",key:"columns",type:"columns",columns:[{components:[],width:6,offset:0,push:0,pull:0,size:"md"},{components:[],width:6,offset:0,push:0,pull:0,size:"md"}],clearOnHide:!1,input:!1,tableView:!1,persistent:!1,autoAdjust:!1},...e)}static get builderInfo(){return{title:"Columns",icon:"columns",group:"layout",documentation:"/userguide/form-building/layout-components#columns",showPreview:!1,weight:10,schema:s.schema()}}static savedValueTypes(){return[]}constructor(e,t,n){super(e,t,n),this.rows=[]}get schema(){var e;const t=r.default.omit(super.schema,["components"]);return null===(e=t.columns)||void 0===e||e.map(((e,n)=>{e.components.map(((e,i)=>{const o=r.default.clone(e);o.internal=!0;const s=this.createComponent(o);delete s.component.internal,t.columns[n].components[i]=s.schema}))})),t}get defaultSchema(){return s.schema()}get className(){return`row ${super.className}`}get columnKey(){return`column-${this.id}`}init(){super.init(),this.columns=[],r.default.each(this.component.columns,((e,t)=>{this.columns[t]=[],e.size||(e.size="md"),e.currentWidth=e.width||0,Array.isArray(e.components)||(e.components=[]),r.default.each(e.components,(e=>{const n=this.createComponent(e);n.column=t,this.columns[t].push(n)}))})),this.component.autoAdjust&&"pdf"!==this.options.display&&this.justify(),this.rows=this.groupByRow()}labelIsHidden(){return!0}render(){return super.render(this.renderTemplate("columns",{columnKey:this.columnKey,columnComponents:this.columns.map((e=>this.renderComponents(e)))}))}justifyColumn(e,t){const n=r.default.every(e,(e=>!e.visible)),i=this.component.columns[t],o=n&&e.length?0:i.width,s=!r.default.isEqual(o,i.currentWidth);return i.currentWidth=o,s}justify(){return this.columns.reduce(((e,t,n)=>this.justifyColumn(t,n)||e),!1)}attach(e){this.loadRefs(e,{[this.columnKey]:"multiple"});const t=super.attach(e);return this.refs[this.columnKey]&&this.refs[this.columnKey].forEach(((e,t)=>this.attachComponents(e,this.columns[t],this.component.columns[t].components))),t}get gridSize(){return 12}groupByRow(){const e=e=>e.component.width,t=r.default.reduce(this.components,((t,n)=>{const i=[...t.stack,n];return r.default.sumBy(i,e)<=this.gridSize?(t.stack=i,t):(t.rows=[...t.rows,t.stack],t.stack=[n],t)}),{stack:[],rows:[]});return r.default.concat(t.rows,[t.stack])}checkData(e,t,n,i){const r=super.checkData(e,t,n,i);return this.component.autoAdjust&&"pdf"!==this.options.display&&this.justify()&&this.redraw(),r}detach(e){super.detach(e)}destroy(e=!1){super.destroy(e),this.columns=[]}}t.default=s},99107:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{weight:150,type:"datagrid",input:!0,key:"columns",label:"Column Properties",addAnother:"Add Column",tooltip:"The width, offset, push, and pull settings for each column.",reorder:!0,components:[{type:"hidden",key:"components",defaultValue:[]},{type:"select",key:"size",defaultValue:"md",label:"Size",data:{values:[{label:"xs",value:"xs"},{label:"sm",value:"sm"},{label:"md",value:"md"},{label:"lg",value:"lg"},{label:"xl",value:"xl"}]}},{type:"number",key:"width",defaultValue:6,label:"Width"},{type:"number",key:"offset",defaultValue:0,label:"Offset"},{type:"number",key:"push",defaultValue:0,label:"Push"},{type:"number",key:"pull",defaultValue:0,label:"Pull"}]},{weight:160,type:"checkbox",label:"Auto adjust columns",tooltip:"Will automatically adjust columns based on if nested components are hidden.",key:"autoAdjust",input:!0}]},29631:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(49822)),s=i(n(55721));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:o.default},{key:"data",components:s.default}],...e)}},31252:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=n(76286),s=i(n(93977)),a=i(n(24133)),l=i(n(72048));class u extends l.default{static schema(...e){return l.default.schema({label:"Container",type:"container",key:"container",clearOnHide:!0,input:!0,tree:!0,hideLabel:!0,components:[]},...e)}static get builderInfo(){return{title:"Container",icon:"folder-open",group:"data",documentation:"/userguide/form-building/data-components#container",showPreview:!1,weight:10,schema:u.schema()}}constructor(...e){super(...e),this.type="container"}static savedValueTypes(e){return(0,o.getComponentSavedTypes)(e)||[o.componentValueTypes.object]}addComponents(e,t){return super.addComponents(this.dataValue,t)}get defaultSchema(){return u.schema()}get emptyValue(){return{}}get templateName(){return"container"}componentContext(){return this.dataValue}checkData(e,t,n,i){return e=e||this.rootValue,t=t||{},n=n||this.data,(i=i&&r.default.isArray(i)?i:this.getComponents()).reduce(((n,i)=>i.checkData(e,t,this.dataValue)&&n),s.default.prototype.checkData.call(this,e,t,n))}checkChildComponentsValidity(e,t,n,i,r){return super.checkChildComponentsValidity(e,t,this.dataValue,i,r)}focus(){const e=(0,o.getFocusableElements)(this.element);e&&e[0]&&e[0].focus()}checkConditions(e,t,n){const i=a.default.prototype.checkConditions.call(this,e,t,n);return this.getComponents().forEach((n=>n.checkConditions(e,t,this.dataValue))),i}}t.default=u},55721:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0},{key:"allowCalculateOverride",ignore:!0},{key:"defaultValue",ignore:!0}]},49822:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0}]},44348:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(28994)),s=i(n(92440));t.default=function(...e){const t=r.default.baseEditForm([{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:s.default}],...e);return t.components=[{weight:0,type:"textarea",editor:"ckeditor",label:"Content",hideLabel:!0,input:!0,key:"html",as:"html",rows:3,tooltip:"The HTML template for the result data items."}].concat(t.components),t}},72381:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(93977)),o=i(n(96486));class s extends r.default{static schema(...e){return r.default.schema({label:"Content",type:"content",key:"content",input:!1,html:""},...e)}static get builderInfo(){return{title:"Content",group:"layout",icon:"html5",preview:!1,documentation:"/userguide/form-building/layout-components#content",weight:5,schema:s.schema()}}static savedValueTypes(){return[]}get defaultSchema(){return s.schema()}get content(){if(this.builderMode)return this.component.html||"Content";const e=o.default.get(this.root,"submission",{});return this.component.html?this.interpolate(this.component.html,{metadata:e.metadata||{},submission:e,data:this.rootValue,row:this.data}):""}render(){return super.render(this.renderTemplate("html",{tag:"div",attrs:[],content:this.content}))}get dataReady(){var e;return(null===(e=this.root)||void 0===e?void 0:e.submissionReady)||Promise.resolve()}attach(e){return this.loadRefs(e,{html:"single"}),this.dataReady.then((()=>{this.refs.html&&this.setContent(this.refs.html,this.content)})),this.component.refreshOnChange&&this.on("change",(()=>{this.refs.html&&this.setContent(this.refs.html,this.content)}),!0),super.attach(e)}get emptyValue(){return""}}t.default=s},28994:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"disabled",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0},{weight:700,type:"checkbox",label:"Refresh On Change",tooltip:"Rerender the field whenever a value on the form changes.",key:"refreshOnChange",input:!0}]},92440:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"logic",components:[{key:"actions",components:[{key:"actionPanel",components:[{data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"},{label:"Content",value:"html",type:"string",component:"content"}]},key:"property"},{type:"textarea",editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'<div class="well">Content</div>',key:"content",weight:30,input:!0,customConditional:e=>"property"===e.row.type&&e.row.hasOwnProperty("property")&&"string"===e.row.property.type&&"content"===e.row.property.component}]}]}]}]},36344:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(72125)),o=i(n(29007)),s=i(n(78375));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default},{key:"data",components:s.default},{key:"validation",components:[{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{key:"validate.pattern",ignore:!0}]}],...e)}},64155:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(43281),o=n(47853),s=i(n(96486)),a=n(76286),l=i(n(21616));class u extends l.default{static schema(...e){return l.default.schema({type:"currency",label:"Currency",key:"currency"},...e)}static get builderInfo(){return{title:"Currency",group:"advanced",icon:"usd",documentation:"/userguide/form-building/advanced-components#currency",weight:70,schema:u.schema()}}constructor(e,t,n){e&&!e.hasOwnProperty("delimiter")&&(e.delimiter=!0),super(e,t,n)}createNumberMask(){const e=s.default.get(this.component,"decimalLimit",2),t=(0,a.getCurrencyAffixes)({currency:this.component.currency,decimalLimit:e,decimalSeparator:this.decimalSeparator,lang:this.options.language});return this.currencyPrefix=this.options.prefix||t.prefix,this.currencySuffix=this.options.suffix||t.suffix,(0,r.createNumberMask)({prefix:this.currencyPrefix,suffix:this.currencySuffix,thousandsSeparatorSymbol:s.default.get(this.component,"thousandsSeparator",this.delimiter),decimalSymbol:s.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:e,allowNegative:s.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}isDecimalAllowed(){return s.default.get(this.component,"allowDecimal",!0)}setInputMask(e){let t=`${(0,a.getCurrencyAffixes)({currency:this.component.currency,decimalSeparator:this.decimalSeparator,lang:this.options.language}).prefix}[0-9`;t+=this.decimalSeparator||"",t+=this.delimiter||"",t+="]*",e.setAttribute("pattern",t),e.mask=(0,o.maskInput)({inputElement:e,mask:this.numberMask||"",pipe:t=>("$0._"===t&&setTimeout((()=>{const t=e.value.length-1;e.setSelectionRange(t,t)})),t),shadowRoot:this.root?this.root.shadowRoot:null})}get defaultSchema(){return u.schema()}parseNumber(e){return super.parseNumber(this.stripPrefixSuffix(e))}parseValue(e){return super.parseValue(this.stripPrefixSuffix(e))}addZerosAndFormatValue(e){if(!e&&0!==e)return;const t=s.default.get(this.component,"decimalLimit",2);let n,i="",r=[];const o=!!this.currencyPrefix&&e.includes(this.currencyPrefix),a=!!this.currencySuffix&&e.includes(this.currencySuffix),l=e.includes("-")||!1;if((e=this.stripPrefixSuffix(l?e.replace("-",""):e)).includes(this.decimalSeparator)?([n,i]=e.split(this.decimalSeparator),r=[...i.split("")]):n=e,i.length<t)for(;r.length<t;)r.push("0");const u=`${l?"-":""}${o?this.currencyPrefix:""}${n}${this.decimalSeparator}${r.join("")}${a?this.currencySuffix:""}`;return super.formatValue(u)}getValueAsString(e,t){const n=super.getValueAsString(e,t);return e||"0"==e?Array.isArray(e)?e.map((e=>this.addZerosAndFormatValue(super.getValueAsString(e,t)))).join(", "):this.addZerosAndFormatValue(n):n}formatValue(e){return e||"0"===e?this.addZerosAndFormatValue(e):super.formatValue(e)}stripPrefixSuffix(e){if("string"==typeof e)try{const t=!!this.currencyPrefix&&e.includes(this.currencyPrefix),n=!!this.currencySuffix&&e.includes(this.currencySuffix),i=e.includes(this.delimiter),r=e.includes(this.decimalSeparator);this.currencyPrefix&&(e=e.replace(this.currencyPrefix,"")),this.currencySuffix&&(e=e.replace(this.currencySuffix,"")),!t&&!n||i||r||!Number.isNaN(+e)&&e||(e="0")}catch(e){}return e}addFocusBlurEvents(e){super.addFocusBlurEvents(e),this.addEventListener(e,"focus",(()=>{e.defaultValue===e.value&&e.setSelectionRange(0,e.defaultValue.length)})),this.addEventListener(e,"blur",(()=>{e.value=this.getValueAsString(this.addZerosAndFormatValue(this.parseValue(e.value)))}))}}t.default=u},78375:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"case",ignore:!0},{type:"select",input:!0,weight:50,key:"currency",label:"Currency",tooltip:"The currency to use in currency formatting. Possible values are (ISO-4217) currency codes.",defaultValue:"USD",dataSrc:"values",data:{values:[{label:"US Dollar (USD)",value:"USD"},{label:"Euro (EUR)",value:"EUR"},{label:"Pound Sterling (GBP)",value:"GBP"},{label:"Australian Dollar (AUD)",value:"AUD"},{label:"Afghani (AFN)",value:"AFN"},{label:"Lek (ALL)",value:"ALL"},{label:"Algerian Dinar (DZD)",value:"DZD"},{label:"Kwanza (AOA)",value:"AOA"},{label:"East Caribbean Dollar (XCD)",value:"XCD"},{label:"Argentine Peso (ARS)",value:"ARS"},{label:"Armenian Dram (AMD)",value:"AMD"},{label:"Aruban Florin (AWG)",value:"AWG"},{label:"Azerbaijan Manat (AZN)",value:"AZN"},{label:"Bahamian Dollar (BSD)",value:"BSD"},{label:"Bahraini Dinar (BHD)",value:"BHD"},{label:"Taka (BDT)",value:"BDT"},{label:"Barbados Dollar (BBD)",value:"BBD"},{label:"Belarusian Ruble (BYN)",value:"BYN"},{label:"Belize Dollar (BZD)",value:"BZD"},{label:"CFA Franc BCEAO (XOF)",value:"XOF"},{label:"Bermudian Dollar (BMD)",value:"BMD"},{label:"Indian Rupee (INR)",value:"INR"},{label:"Ngultrum (BTN)",value:"BTN"},{label:"Boliviano (BOB)",value:"BOB"},{label:"Mvdol (BOV)",value:"BOV"},{label:"Convertible Mark (BAM)",value:"BAM"},{label:"Pula (BWP)",value:"BWP"},{label:"Norwegian Krone (NOK)",value:"NOK"},{label:"Brazilian Real (BRL)",value:"BRL"},{label:"Brunei Dollar (BND)",value:"BND"},{label:"Bulgarian Lev (BGN)",value:"BGN"},{label:"Burundi Franc (BIF)",value:"BIF"},{label:"Cabo Verde Escudo (CVE)",value:"CVE"},{label:"Riel (KHR)",value:"KHR"},{label:"CFA Franc BEAC (XAF)",value:"XAF"},{label:"Canadian Dollar (CAD)",value:"CAD"},{label:"Cayman Islands Dollar (KYD)",value:"KYD"},{label:"Chilean Peso (CLP)",value:"CLP"},{label:"Unidad de Fomento (CLF)",value:"CLF"},{label:"Yuan Renminbi (CNY)",value:"CNY"},{label:"Colombian Peso (COP)",value:"COP"},{label:"Unidad de Valor Real (COU)",value:"COU"},{label:"Comorian Franc (KMF)",value:"KMF"},{label:"Congolese Franc (CDF)",value:"CDF"},{label:"New Zealand Dollar (NZD)",value:"NZD"},{label:"Costa Rican Colon (CRC)",value:"CRC"},{label:"Kuna (HRK)",value:"HRK"},{label:"Cuban Peso (CUP)",value:"CUP"},{label:"Peso Convertible (CUC)",value:"CUC"},{label:"Netherlands Antillean Guilder (ANG)",value:"ANG"},{label:"Czech Koruna (CZK)",value:"CZK"},{label:"Danish Krone (DKK)",value:"DKK"},{label:"Djibouti Franc (DJF)",value:"DJF"},{label:"Dominican Peso (DOP)",value:"DOP"},{label:"Egyptian Pound (EGP)",value:"EGP"},{label:"El Salvador Colon (SVC)",value:"SVC"},{label:"Nakfa (ERN)",value:"ERN"},{label:"Ethiopian Birr (ETB)",value:"ETB"},{label:"Falkland Islands Pound (FKP)",value:"FKP"},{label:"Fiji Dollar (FJD)",value:"FJD"},{label:"CFP Franc (XPF)",value:"XPF"},{label:"Dalasi (GMD)",value:"GMD"},{label:"Lari (GEL)",value:"GEL"},{label:"Ghana Cedi (GHS)",value:"GHS"},{label:"Gibraltar Pound (GIP)",value:"GIP"},{label:"Quetzal (GTQ)",value:"GTQ"},{label:"Guinean Franc (GNF)",value:"GNF"},{label:"Guyana Dollar (GYD)",value:"GYD"},{label:"Gourde (HTG)",value:"HTG"},{label:"Lempira (HNL)",value:"HNL"},{label:"Hong Kong Dollar (HKD)",value:"HKD"},{label:"Forint (HUF)",value:"HUF"},{label:"Iceland Krona (ISK)",value:"ISK"},{label:"Indian Rupee (INR)",value:"INR"},{label:"Rupiah (IDR)",value:"IDR"},{label:"SDR (Special Drawing Right) (XDR)",value:"XDR"},{label:"Iranian Rial (IRR)",value:"IRR"},{label:"Iraqi Dinar (IQD)",value:"IQD"},{label:"New Israeli Sheqel (ILS)",value:"ILS"},{label:"Jamaican Dollar (JMD)",value:"JMD"},{label:"Yen (JPY)",value:"JPY"},{label:"Jordanian Dinar (JOD)",value:"JOD"},{label:"Tenge (KZT)",value:"KZT"},{label:"Kenyan Shilling (KES)",value:"KES"},{label:"North Korean Won (KPW)",value:"KPW"},{label:"Won (KRW)",value:"KRW"},{label:"Kuwaiti Dinar (KWD)",value:"KWD"},{label:"Som (KGS)",value:"KGS"},{label:"Lao Kip (LAK)",value:"LAK"},{label:"Lebanese Pound (LBP)",value:"LBP"},{label:"Loti (LSL)",value:"LSL"},{label:"Rand (ZAR)",value:"ZAR"},{label:"Liberian Dollar (LRD)",value:"LRD"},{label:"Libyan Dinar (LYD)",value:"LYD"},{label:"Swiss Franc (CHF)",value:"CHF"},{label:"Pataca (MOP)",value:"MOP"},{label:"Denar (MKD)",value:"MKD"},{label:"Malagasy Ariary (MGA)",value:"MGA"},{label:"Malawi Kwacha (MWK)",value:"MWK"},{label:"Malaysian Ringgit (MYR)",value:"MYR"},{label:"Rufiyaa (MVR)",value:"MVR"},{label:"Ouguiya (MRU)",value:"MRU"},{label:"Mauritius Rupee (MUR)",value:"MUR"},{label:"ADB Unit of Account (XUA)",value:"XUA"},{label:"Mexican Peso (MXN)",value:"MXN"},{label:"Mexican Unidad de Inversion (UDI) (MXV)",value:"MXV"},{label:"Moldovan Leu (MDL)",value:"MDL"},{label:"Tugrik (MNT)",value:"MNT"},{label:"Moroccan Dirham (MAD)",value:"MAD"},{label:"Mozambique Metical (MZN)",value:"MZN"},{label:"Kyat (MMK)",value:"MMK"},{label:"Namibia Dollar (NAD)",value:"NAD"},{label:"Nepalese Rupee (NPR)",value:"NPR"},{label:"Cordoba Oro (NIO)",value:"NIO"},{label:"Naira (NGN)",value:"NGN"},{label:"Rial Omani (OMR)",value:"OMR"},{label:"Pakistan Rupee (PKR)",value:"PKR"},{label:"Balboa (PAB)",value:"PAB"},{label:"Kina (PGK)",value:"PGK"},{label:"Guarani (PYG)",value:"PYG"},{label:"Sol (PEN)",value:"PEN"},{label:"Philippine Peso (PHP)",value:"PHP"},{label:"Zloty (PLN)",value:"PLN"},{label:"Qatari Rial (QAR)",value:"QAR"},{label:"Romanian Leu (RON)",value:"RON"},{label:"Russian Ruble (RUB)",value:"RUB"},{label:"Rwanda Franc (RWF)",value:"RWF"},{label:"Saint Helena Pound (SHP)",value:"SHP"},{label:"Tala (WST)",value:"WST"},{label:"Dobra (STN)",value:"STN"},{label:"Saudi Riyal (SAR)",value:"SAR"},{label:"Serbian Dinar (RSD)",value:"RSD"},{label:"Seychelles Rupee (SCR)",value:"SCR"},{label:"Leone (SLL)",value:"SLL"},{label:"Singapore Dollar (SGD)",value:"SGD"},{label:"Sucre (XSU)",value:"XSU"},{label:"Solomon Islands Dollar (SBD)",value:"SBD"},{label:"Somali Shilling (SOS)",value:"SOS"},{label:"South Sudanese Pound (SSP)",value:"SSP"},{label:"Sri Lanka Rupee (LKR)",value:"LKR"},{label:"Sudanese Pound (SDG)",value:"SDG"},{label:"Surinam Dollar (SRD)",value:"SRD"},{label:"Lilangeni (SZL)",value:"SZL"},{label:"Swedish Krona (SEK)",value:"SEK"},{label:"WIR Euro (CHE)",value:"CHE"},{label:"WIR Franc (CHW)",value:"CHW"},{label:"Syrian Pound (SYP)",value:"SYP"},{label:"New Taiwan Dollar (TWD)",value:"TWD"},{label:"Somoni (TJS)",value:"TJS"},{label:"Tanzanian Shilling (TZS)",value:"TZS"},{label:"Baht (THB)",value:"THB"},{label:"Pa’anga (TOP)",value:"TOP"},{label:"Trinidad and Tobago Dollar (TTD)",value:"TTD"},{label:"Tunisian Dinar (TND)",value:"TND"},{label:"Turkish Lira (TRY)",value:"TRY"},{label:"Turkmenistan New Manat (TMT)",value:"TMT"},{label:"Uganda Shilling (UGX)",value:"UGX"},{label:"Hryvnia (UAH)",value:"UAH"},{label:"UAE Dirham (AED)",value:"AED"},{label:"US Dollar (Next day) (USN)",value:"USN"},{label:"Peso Uruguayo (UYU)",value:"UYU"},{label:"Uruguay Peso en Unidades Indexadas (UYI)",value:"UYI"},{label:"Unidad Previsional (UYW)",value:"UYW"},{label:"Uzbekistan Sum (UZS)",value:"UZS"},{label:"Vatu (VUV)",value:"VUV"},{label:"Bolívar Soberano (VES)",value:"VES"},{label:"Dong (VND)",value:"VND"},{label:"Yemeni Rial (YER)",value:"YER"},{label:"Zambian Kwacha (ZMW)",value:"ZMW"},{label:"Zimbabwe Dollar (ZWL),",value:"ZWL"}]}}]},29007:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0},{key:"spellcheck",ignore:!0},{type:"textfield",input:!0,weight:310,key:"prefix",label:"prefix",tooltip:"Specify the prefix symbol after the component (e.g.: USD, EUR)"},{type:"textfield",input:!0,weight:320,key:"suffix",label:"suffix",tooltip:"Specify the suffix symbol after the component (e.g.: USD, EUR)."}]},16487:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(43890)),s=i(n(60698)),a=i(n(44230));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:o.default},{key:"validation",components:a.default}],...e)}},95680:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(87568)),s=n(76286);class a extends o.default{static schema(...e){return o.default.schema({label:"Data Grid",key:"dataGrid",type:"datagrid",clearOnHide:!0,input:!0,tree:!0,components:[]},...e)}static get builderInfo(){return{title:"Data Grid",icon:"th",group:"data",documentation:"/userguide/form-building/data-components#data-grid",showPreview:!1,weight:30,schema:a.schema()}}constructor(...e){super(...e),this.type="datagrid",this.tabIndex=0}init(){this.components=this.components||[],this.rows=[],this.columns=[...this.component.components],!this.initRows&&r.default.isEqual(this.dataValue,this.emptyValue)||this.createRows(!0),this.visibleColumns={},this.prevHasAddButton=this.hasAddButton(),this.checkColumns()}get dataValue(){const e=super.dataValue;return e&&Array.isArray(e)?e:this.emptyValue}set dataValue(e){super.dataValue=e}get defaultSchema(){return a.schema()}get initEmpty(){return this.component.initEmpty||this.component.noFirstRow}get initRows(){return this.builderMode||"defaultValue"===this.path||!this.initEmpty}get emptyValue(){return this.initEmpty?[]:[{}]}get addAnotherPosition(){return r.default.get(this.component,"addAnotherPosition","bottom")}get minLength(){return this.hasRowGroups()?r.default.sum(this.getGroupSizes()):r.default.get(this.component,"validate.minLength",0)}get defaultValue(){const e=this.builderMode,t=this.initEmpty;if(e||t&&!this.dataValue.length)return t&&!e?[]:[{}];const n=super.defaultValue;let i;i=Array.isArray(n)?n:n&&"object"==typeof n?[n]:this.emptyValue;for(let e=i.length;e<this.minLength;e++)i.push({});return i}set disabled(e){super.disabled=e,r.default.each(this.refs[`${this.datagridKey}-addRow`],(t=>{t.disabled=e})),r.default.each(this.refs[`${this.datagridKey}-removeRow`],(t=>{t.disabled=e}))}get disabled(){return super.disabled}get datagridKey(){return`datagrid-${this.key}`}get allowReorder(){return!this.options.readOnly&&r.default.get(this.component,"reorder",!1)}get iteratableRows(){return this.rows.map(((e,t)=>({components:e,data:this.dataValue[t]})))}getRowChunks(e,t){const[,n]=e.reduce((([e,t],n)=>{const i=e+n;return[i,[...t,[e,i]]]}),[0,[]]);return n.map((e=>r.default.slice(t,...e)))}getGroups(){const e=r.default.get(this.component,"rowGroups",[]),t=r.default.map(e,"numberOfRows").slice(0,-1).reduce(((e,t)=>{const n=e[e.length-1];return e.concat(n+t)}),[0]);return e.reduce(((e,n,i)=>Object.assign(Object.assign({},e),{[t[i]]:n})),{})}getGroupSizes(){return r.default.map(r.default.get(this.component,"rowGroups",[]),"numberOfRows")}hasRowGroups(){return r.default.get(this,"component.enableRowGroups",!1)&&!this.builderMode}totalRowsNumber(e){return r.default.sum(r.default.map(e,"numberOfRows"))}setStaticValue(e){this.dataValue=r.default.range(e).map((()=>({})))}hasExtraColumn(){return this.hasRemoveButtons()||this.canAddColumn}hasRemoveButtons(){return!this.builderMode&&!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&this.dataValue.length>r.default.get(this.component,"validate.minLength",0)}hasTopSubmit(){return this.hasAddButton()&&["top","both"].includes(this.addAnotherPosition)}hasBottomSubmit(){return this.hasAddButton()&&["bottom","both"].includes(this.addAnotherPosition)}get canAddColumn(){return this.builderMode}render(){const e=this.getColumns();let t=0;const n=this.hasRemoveButtons();this.component.reorder&&t++,n&&t++,this.canAddColumn&&t++;const i=Math.floor(12/(e.length+t));return super.render(this.renderTemplate("datagrid",{rows:this.getRows(),columns:e,groups:this.hasRowGroups()?this.getGroups():[],visibleColumns:this.visibleColumns,hasToggle:r.default.get(this,"component.groupToggle",!1),hasHeader:this.hasHeader(),hasExtraColumn:this.hasExtraColumn(),hasAddButton:this.hasAddButton(),hasRemoveButtons:n,hasTopSubmit:this.hasTopSubmit(),hasBottomSubmit:this.hasBottomSubmit(),hasGroups:this.hasRowGroups(),numColumns:e.length+(this.hasExtraColumn()?1:0),datagridKey:this.datagridKey,allowReorder:this.allowReorder,builder:this.builderMode,canAddColumn:this.canAddColumn,tabIndex:this.tabIndex,placeholder:this.renderTemplate("builderPlaceholder",{position:this.componentComponents.length}),colWidth:i.toString()}))}getRows(){return this.rows.map((e=>{const t={};return r.default.each(e,((e,n)=>{t[n]=e.render()})),t}))}getColumns(){return this.columns.filter((e=>!this.visibleColumns.hasOwnProperty(e.key)||this.visibleColumns[e.key]))}hasHeader(){return this.component.components.reduce(((e,t)=>e||(t.label||t.title)&&!t.hideLabel),!1)}loadRefs(e,t){if(super.loadRefs(e,t),"single"===t.messageContainer){const t=r.default.last(e.querySelectorAll("[ref=messageContainer]"));this.refs.messageContainer=t||this.refs.messageContainer}}attach(e){this.loadRefs(e,{[`${this.datagridKey}-row`]:"multiple",[`${this.datagridKey}-tbody`]:"single",[`${this.datagridKey}-addRow`]:"multiple",[`${this.datagridKey}-removeRow`]:"multiple",[`${this.datagridKey}-group-header`]:"multiple",[this.datagridKey]:"multiple",messageContainer:"single"}),this.allowReorder&&(this.refs[`${this.datagridKey}-row`].forEach(((e,t)=>{e.dragInfo={index:t}})),this.root.dragulaLib&&(this.dragula=this.root.dragulaLib([this.refs[`${this.datagridKey}-tbody`]],{moves:(e,t,n)=>{const i=n.getAttribute("data-key");if(t.getAttribute("data-key")===i)return n.classList.contains("formio-drag-button")}}).on("drop",this.onReorder.bind(this)),this.dragula.on("cloned",((e,t)=>{e&&e.children&&t&&t.children&&r.default.each(t.children,((t,n)=>{const i=getComputedStyle(t,null);if(""!==i.cssText)e.children[n].style.cssText=i.cssText;else{const t=Object.values(i).reduce(((e,t)=>`${e}${t}:${i.getPropertyValue(t)};`),"");e.children[n].style.cssText=t}}))})))),this.refs[`${this.datagridKey}-addRow`].forEach((e=>{this.addEventListener(e,"click",this.addRow.bind(this))})),this.refs[`${this.datagridKey}-removeRow`].forEach(((e,t)=>{this.addEventListener(e,"click",this.removeRow.bind(this,t))})),this.hasRowGroups()&&(this.refs.chunks=this.getRowChunks(this.getGroupSizes(),this.refs[`${this.datagridKey}-row`]),this.refs[`${this.datagridKey}-group-header`].forEach(((e,t)=>{this.addEventListener(e,"click",(()=>this.toggleGroup(e,t)))})));const t=this.getColumns(),n=t.length;return this.rows.forEach(((e,i)=>{let r=0;t.forEach((e=>{this.attachComponents(this.refs[this.datagridKey][i*n+r],[this.rows[i][e.key]],this.getComponentsContainer()),r++}))})),super.attach(e)}getComponentsContainer(){return this.component.components}onReorder(e,t,n,i){if(!e.dragInfo||i&&!i.dragInfo)return void console.warn("There is no Drag Info available for either dragged or sibling element");const r=e.dragInfo.index,o=i?i.dragInfo.index:this.dataValue.length,a=o>r,l=(0,s.fastCloneDeep)(this.dataValue),u=l[r];l.splice(o,0,u),l.splice(a?r:r+1,1),this.setValue(l,{isReordered:!0}),this.rebuild()}focusOnNewRowElement(e){Object.keys(e).find((t=>{const n=(0,s.getFocusableElements)(e[t].element);return!(!n||!n[0]||(n[0].focus(),0))}))}addRow(){const e=this.rows.length;let t;this.dataValue.length===e&&this.dataValue.push({});const n=this.dataValue,i=this.defaultValue;this.initEmpty&&i[e]?(t=i[e],n[e]=t):t=n[e],this.rows[e]=this.createRowComponents(t,e),this.emit("dataGridAddRow",{component:this.component,row:t}),this.checkConditions(),this.triggerChange(),this.redraw().then((()=>{this.focusOnNewRowElement(this.rows[e])}))}updateComponentsRowIndex(e,t){e.forEach(((e,n)=>{var i;if(null===(i=e.options)||void 0===i?void 0:i.name){const n=`[${this.key}][${t}]`;e.options.name=e.options.name.replace(`[${this.key}][${e.rowIndex}]`,n)}e.rowIndex=t,e.row=`${t}-${n}`,e.path=this.calculateComponentPath(e)}))}updateRowsComponents(e){this.rows.slice(e).forEach(((t,n)=>{this.updateComponentsRowIndex(Object.values(t),e+n)}))}removeRow(e){this.splice(e,{isReordered:!0}),this.emit("dataGridDeleteRow",{index:e});const[t]=this.rows.splice(e,1);this.removeRowComponents(t),this.updateRowsComponents(e),this.setValue(this.dataValue,{isReordered:!0}),this.redraw()}removeRowComponents(e){r.default.each(e,(e=>this.removeComponent(e)))}getRowValues(){return this.dataValue}setRowComponentsData(e,t){r.default.each(this.rows[e],(e=>{e.data=t}))}createRows(e,t){let n=!1;const i=this.getRowValues();i.forEach(((e,i)=>{!t&&this.rows[i]?this.setRowComponentsData(i,e):(this.rows[i]&&this.removeRowComponents(this.rows[i]),this.rows[i]=this.createRowComponents(e,i),n=!0)}));const r=this.rows.splice(i.length),o=!!r.length;return o&&r.forEach((e=>this.removeRowComponents(e))),e||!n&&!o||this.redraw(),n}createRowComponents(e,t){const n={};return this.tabIndex=0,this.component.components.map(((i,o)=>{const s=r.default.clone(this.options);let a;s.name+=`[${t}]`,s.row=`${t}-${o}`,this.builderMode?(i.id=i.id+t,a=i):a=Object.assign(Object.assign({},i),{id:i.id+t});const l=this.createComponent(a,s,e);l.parentDisabled=!!this.disabled,l.rowIndex=t,l.inDataGrid=!0,a.tabindex&&parseInt(a.tabindex)>this.tabIndex&&(this.tabIndex=parseInt(a.tabindex)),n[i.key]=l})),n}checkValidity(e,t,n,i){if(e=e||this.rootValue,n=n||this.data,!this.checkCondition(n,e))return this.setCustomValidity(""),!0;if(!this.checkComponentValidity(e,t,n,{silentCheck:i}))return!1;const r=this.checkRows("checkValidity",e,t,!0,i);return this.checkModal(r,t),r}checkColumns(e,t={}){e=e||this.rootValue;let n=!1;if(!this.rows||!this.rows.length)return{rebuild:!1,show:!1};if(this.builderMode)return{rebuild:!1,show:!0};const i={};let o=!1;const s=this.dataValue;this.rows.forEach(((n,a)=>{r.default.each(n,((n,l)=>{if(n&&"function"==typeof n.checkConditions){const u=void 0===i[l];if(i[l]=!!i[l]||n.checkConditions(e,t,s[a])&&"hidden"!==n.type,n.component.logic&&u){const e=r.default.findIndex(this.columns,["key",l]),t=r.default.isEqualWith(this.columns[e],n.component,((e,t,n)=>{if("id"===n)return!0}));t||(o=!0,this.columns[e]=n.component)}}}))}));const a=!r.default.isEqual(i,this.visibleColumns)||o;return r.default.each(i,(e=>{n|=e})),this.visibleColumns=i,{rebuild:a,show:n}}checkComponentConditions(e,t,n){const i=this.visible;if(!super.checkComponentConditions(e,t,n))return!1;const{rebuild:r,show:o}=this.checkColumns(e,t);return!r&&i||this.createRows(!1,r),o}setValue(e,t={}){if(!e)return this.dataValue=this.defaultValue,this.createRows(),!1;Array.isArray(e)||("object"==typeof e?e=[e]:(this.createRows(),e=[{}])),!e||e.length||this.initEmpty||e.push({});const n=t.fromSubmission&&!r.default.isEqual(e,this.emptyValue),i=this.hasChanged(e,this.dataValue);return this.dataValue=e,(this.initRows||n)&&!this.createRows()&&i&&this.redraw(),this.componentModal&&n&&this.componentModal.setValue(e),this.rows.forEach(((n,i)=>{e.length<=i||r.default.each(n,(n=>{n.rowIndex=i,this.setNestedValue(n,e[i],t)}))})),this.updateOnChange(t,i),i}restoreComponentsContext(){this.rows.forEach(((e,t)=>r.default.forIn(e,(e=>e.data=this.dataValue[t]))))}getComponent(e,t){e=Array.isArray(e)?e:[e];const[n,...i]=e;let o=[];if(r.default.isNumber(n)&&i.length){const e=i.pop();return o=this.rows[n][e],o||Object.entries(this.rows[n]).forEach((([,n])=>{if("getComponent"in n){const i=n.getComponent([e],t);i&&(o=i)}})),o&&r.default.isFunction(t)&&t(o,this.getComponents()),i.length&&"getComponent"in o?o.getComponent(i,t):o}return r.default.isString(n)?(this.everyComponent(((e,r)=>{if(e.component.key===n){let n=e;i.length>0&&"getComponent"in e?n=e.getComponent(i,t):t&&t(e,r),o=o.concat(n)}})),o.length>0?o:null):o}toggleGroup(e,t){e.classList.toggle("collapsed"),r.default.each(this.refs.chunks[t],(e=>{e.classList.toggle("hidden")}))}}t.default=a},43890:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0}]},60698:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"placeholder",ignore:!0},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:405,input:!0,clearOnHide:!1,customConditional:e=>!e.data.enableRowGroups,calculateValue:e=>!!e.data.enableRowGroups||e.data.disableAddingRemovingRows},{weight:406,type:"textarea",input:!0,key:"conditionalAddButton",label:"Conditional Add Button",placeholder:"show = ...",tooltip:"Specify condition when Add Button should be displayed.",editor:"ace",as:"javascript",wysiwyg:{minLines:3}},{type:"checkbox",label:"Allow Reorder",key:"reorder",weight:407,input:!0},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:e=>!e.data.disableAddingRemovingRows},{type:"select",label:"Add Another Position",key:"addAnotherPosition",dataSrc:"values",tooltip:"Position for Add Another button with respect to Data Grid Array.",defaultValue:"bottom",input:!0,data:{values:[{label:"Top",value:"top"},{label:"Bottom",value:"bottom"},{label:"Both",value:"both"}]},weight:411,customConditional:e=>!e.data.disableAddingRemovingRows},{type:"checkbox",label:"Equal column width",key:"layoutFixed",weight:430,input:!0},{key:"enableRowGroups",type:"checkbox",label:"Enable Row Groups",weight:440,input:!0},{label:"Groups",disableAddingRemovingRows:!1,defaultOpen:!1,addAnother:"",addAnotherPosition:"bottom",mask:!1,tableView:!0,alwaysEnabled:!1,type:"datagrid",input:!0,key:"rowGroups",reorder:!0,components:[{label:"Label",allowMultipleMasks:!1,showWordCount:!1,showCharCount:!1,tableView:!0,alwaysEnabled:!1,type:"textfield",input:!0,key:"label",widget:{type:""},row:"0-0"},{label:"Number of Rows",mask:!1,tableView:!0,alwaysEnabled:!1,type:"number",input:!0,key:"numberOfRows",row:"0-1"}],weight:441,conditional:{json:{var:"data.enableRowGroups"}}},{label:"Hide Group on Header Click",type:"checkbox",input:!0,key:"groupToggle",weight:442,conditional:{json:{var:"data.enableRowGroups"}}},{label:"Initialize Empty",type:"checkbox",input:!0,key:"initEmpty",tooltip:"The DataGrid will have no visible rows when initialized.",weight:450}]},44230:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{ignore:!0,key:"unique"},{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"textfield",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"textfield",tooltip:"The maximum length requirement this field must meet.",input:!0}]},43576:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(6173)),s=i(n(23974));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:o.default}],...e)}},45997:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(93977)),o=i(n(95680)),s=i(n(96486)),a=i(n(26729)),l=n(76286);class u extends o.default{static schema(...e){return r.default.schema({label:"Data Map",key:"dataMap",type:"datamap",clearOnHide:!0,addAnother:"Add Another",disableAddingRemovingRows:!1,keyBeforeValue:!0,valueComponent:{type:"textfield",key:"value",label:"Value",input:!0},input:!0,validate:{maxLength:0,minLength:0}},...e)}static get builderInfo(){return{title:"Data Map",icon:"th-list",group:"data",documentation:"/userguide/form-building/data-components#data-map",showPreview:!1,weight:20,schema:u.schema()}}get schema(){const e=super.schema;return this.components&&this.components.length>0&&(e.valueComponent=this.components[this.components.length-1].schema),s.default.omit(e,"components")}static savedValueTypes(e){return(0,l.getComponentSavedTypes)(e)||[l.componentValueTypes.object]}constructor(e,t,n){super(e,t,n),this.type="datamap"}init(){this.components=[],this.rows=[],this.createRows(),this.visibleColumns={key:!0,[this.valueKey]:!0},this.component.valueComponent.hideLabel=!0}get defaultSchema(){return u.schema()}get emptyValue(){return{}}get dataValue(){return!this.key||!this.visible&&this.component.clearOnHide?this.emptyValue:(!this.hasValue()&&this.shouldAddDefaultValue&&(this.dataValue=this.emptyValue),s.default.get(this.data,this.key))}set dataValue(e){super.dataValue=e}get defaultValue(){const e=super.defaultValue;return Array.isArray(e)?e[0]:this.emptyValue}get keySchema(){return{type:"textfield",input:!0,hideLabel:!0,label:this.component.keyLabel||"Key",key:"__key",disableBuilderActions:!0}}get valueKey(){return this.component.valueComponent.key}getRowValues(){const e=this.dataValue;return this.builderMode?[e]:s.default.isEmpty(e)?[]:Object.keys(e).map((()=>e))}getComponentsContainer(){return this.builderMode?this.getComponents().map((e=>e.component)):super.getComponentsContainer()}get iteratableRows(){return this.rows.map((e=>Object.keys(e).map((t=>({components:e[t],data:e[t].dataValue})))))}componentContext(e){return this.iteratableRows[e.row].find((t=>t.components.key===e.key)).data}hasHeader(){return!0}hasRemoveButtons(){return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode}getColumns(){const e=Object.assign({},this.keySchema),t=Object.assign({},this.component.valueComponent);return e.hideLabel=!1,t.hideLabel=!1,this.component.keyBeforeValue?[e,t]:[t,e]}getRowKey(e){const t=Object.keys(this.dataValue);return t[e]||(t[e]=(0,l.uniqueKey)(this.dataValue,this.defaultRowKey)),t[e]}get defaultRowKey(){return"key"}setRowComponentsData(e,t){s.default.each(this.rows[e],(n=>{"__key"===n.key?n.data={__key:Object.keys(t)[e]}:n.data=t}))}getValueAsString(e,t){if((null==t?void 0:t.email)&&this.visible&&!this.skipInEmail&&s.default.isObject(e)){let n='\n <table border="1" style="width:100%">\n <tbody>\n ';return n=Object.keys(e).reduce(((n,i)=>n+`\n <tr>\n <th style="padding: 5px 10px;">${i}</th>\n <td style="width:100%;padding:5px 10px;">${this.getView(e[i],t)}</td>\n </tr>\n `),n),n+="\n </tbody>\n </table>\n ",n}return s.default.isEmpty(e)?"":(null==t?void 0:t.modalPreview)?(delete t.modalPreview,this.getDataValueAsTable(e,t)):"object"==typeof e?"[Complex Data]":e}getDataValueAsTable(e,t){let n='\n <table border="1" style="width:100%">\n <tbody>\n ';return this.visible&&s.default.isObject(e)&&Object.keys(e).forEach((i=>{n+=`\n <tr>\n <th style="padding: 5px 10px;">${i}</th>\n <td style="width:100%;padding:5px 10px;">${this.getView(e[i],t)}</td>\n </tr>\n `})),n+="\n </tbody>\n </table>\n ",n}createRowComponents(e,t){let n=this.builderMode?this.valueKey:this.getRowKey(t);const i=s.default.clone(this.options);i.events=new a.default,i.name+=`[${t}]`,i.row=`${t}`;const r={};r.__key=this.createComponent(this.keySchema,i,{__key:this.builderMode?this.defaultRowKey:n}),r.__key.on("componentChange",(e=>{const t=this.dataValue,i=(0,l.uniqueKey)(t,e.value);t[i]=t[n],delete t[n];const o=r[this.valueKey];o.component.key=i,o.path=this.calculateComponentPath(o),n=i}));const o=s.default.clone(this.component.valueComponent);o.key=n;const u=this.options;return u.row=i.row,r[this.valueKey]=this.createComponent(o,u,this.dataValue),r}get canAddColumn(){return!1}addChildComponent(e){this.component.valueComponent=e}saveChildComponent(e){e.key!==this.keySchema.key&&(this.component.valueComponent=e)}removeChildComponent(){const e=u.schema();this.component.valueComponent=e.valueComponent}addRow(){const e=this.rows.length;this.rows[e]=this.createRowComponents(this.dataValue,e),this.redraw(),this.triggerChange()}removeRow(e){const t=Object.keys(this.dataValue);t[e]&&delete this.dataValue[t[e]],this.rows.splice(e,1),this.redraw(),this.triggerChange()}setValue(e,t={}){const n=this.hasChanged(e,this.dataValue);return this.dataValue=e,this.createRows(),this.updateOnChange(t,n),n}checkColumns(){return!this.builderMode&&this.dataValue&&Object.keys(this.dataValue).length&&Object.keys(this.dataValue).length>(this.rows||[]).length?{rebuild:!0,show:!0}:{rebuild:!1,show:!0}}}t.default=u},6173:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0}]},23974:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"placeholder",ignore:!0},{key:"tabindex",ignore:!0},{type:"textfield",label:"Label for Key column",key:"keyLabel",tooltip:"Provide a label text for Key column (otherwise 'Key' will be used)",weight:404,input:!0},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:405,input:!0},{type:"checkbox",label:"Show key column before value",key:"keyBeforeValue",tooltip:"Check if you would like to show the Key before the Value column.",weight:406,input:!0},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:e=>!e.data.disableAddingRemovingRows}]},46087:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(22261)),s=i(n(44637)),a=i(n(9234)),l=i(n(13280)),u=i(n(94089));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:a.default},{label:"Date",key:"date",weight:1,components:s.default},{label:"Time",key:"time",weight:2,components:l.default},{key:"data",components:o.default},{key:"validation",components:u.default}],...e)}},37897:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(30381)),s=i(n(83414)),a=n(76286),l=i(n(14297));class u extends l.default{static schema(...e){return l.default.schema({type:"datetime",label:"Date / Time",key:"dateTime",format:"yyyy-MM-dd hh:mm a",useLocaleSettings:!1,allowInput:!0,enableDate:!0,enableTime:!0,defaultValue:"",defaultDate:"",displayInTimezone:"viewer",timezone:"",datepickerMode:"day",datePicker:{showWeeks:!0,startingDay:0,initDate:"",minMode:"day",maxMode:"year",yearRows:4,yearColumns:5,minDate:null,maxDate:null},timePicker:{hourStep:1,minuteStep:1,showMeridian:!0,readonlyInput:!1,mousewheel:!0,arrowkeys:!0},customOptions:{}},...e)}static get builderInfo(){return{title:"Date / Time",group:"advanced",icon:"calendar",documentation:"/userguide/form-building/advanced-components#date-and-time",weight:40,schema:u.schema()}}static get serverConditionSettings(){return u.conditionOperatorsSettings}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{operators:["isDateEqual","isNotDateEqual","isEmpty","isNotEmpty","dateLessThan","dateGreaterThan","dateLessThanOrEqual","dateGreaterThanOrEqual"],valueComponent:e=>Object.assign(Object.assign({},e),{type:"datetime"})})}static savedValueTypes(e){return e=e||{},(0,a.getComponentSavedTypes)(e)||[a.componentValueTypes.date]}constructor(e,t,n){super(e,t,n);const i=this.component.timezone||this.options.timezone,o=!r.default.get(this.component,"timePicker.showMeridian",!0);this.component.enableDate?this.component.enableDate&&!/[yMd]/.test(this.component.format)&&this.builderMode&&(this.component.format=`yyyy-MM-dd ${this.component.format}`):this.component.format=this.component.format.replace(/yyyy-MM-dd /g,""),this.component.enableTime?this.component.enableTime&&!/[mhH]/.test(this.component.format)&&this.builderMode?this.component.format=`${this.component.format} hh:mm a`:this.component.format=o?this.component.format.replace(/hh:mm a$/g,"HH:mm"):this.component.format.replace(/HH:mm$/g,"hh:mm a"):this.component.format=this.component.format.replace(/ hh:mm a$/g,"");let s=this.component.customOptions||{};if("string"==typeof s)try{s=JSON.parse(s)}catch(e){console.warn(e.message),s={}}this.component.widget=Object.assign({type:"calendar",timezone:i,displayInTimezone:r.default.get(this.component,"displayInTimezone","viewer"),locale:this.options.language,useLocaleSettings:r.default.get(this.component,"useLocaleSettings",!1),allowInput:r.default.get(this.component,"allowInput",!0),mode:"single",enableTime:r.default.get(this.component,"enableTime",!0),noCalendar:!r.default.get(this.component,"enableDate",!0),format:this.component.format,hourIncrement:r.default.get(this.component,"timePicker.hourStep",1),minuteIncrement:r.default.get(this.component,"timePicker.minuteStep",5),time_24hr:o,readOnly:this.options.readOnly,minDate:r.default.get(this.component,"datePicker.minDate"),disabledDates:r.default.get(this.component,"datePicker.disable"),disableWeekends:r.default.get(this.component,"datePicker.disableWeekends"),disableWeekdays:r.default.get(this.component,"datePicker.disableWeekdays"),disableFunction:r.default.get(this.component,"datePicker.disableFunction"),maxDate:r.default.get(this.component,"datePicker.maxDate")},s),this.validators.push("date")}get defaultSchema(){return u.schema()}get defaultValue(){let e=super.defaultValue;return!e&&this.component.defaultDate&&(e=s.default.getDateSetting(this.component.defaultDate),e=e?e.toISOString():""),e}get emptyValue(){return""}get momentFormat(){return s.default.convertFormatToMoment(this.component.format)}isEmpty(e=this.dataValue){return!(!e||"Invalid Date"!==e.toString())||super.isEmpty(e)}formatValue(e){const t=o.default.utc(e).toISOString();return"Invalid date"===t?e:t}isEqual(e,t=this.dataValue){return this.isEmpty(e)&&this.isEmpty(t)||o.default.utc(e).format(this.momentFormat)===o.default.utc(t).format(this.momentFormat)}createWrapper(){return!1}checkValidity(e,t,n){return this.refs.input&&this.refs.input.forEach((e=>{e.widget&&e.widget.enteredDate&&(t=!0)})),super.checkValidity(e,t,n)}getValueAsString(e){let t=s.default.convertFormatToMoment(this.component.format);t+=t.match(/z$/)?"":" z";const n=this.timezone;return e&&!this.attached&&n?r.default.trim(s.default.momentDate(e,t,n).format(t)):(e?r.default.trim((0,o.default)(e).format(t)):e)||""}}t.default=u},22261:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"textfield",input:!0,key:"defaultDate",label:"Default Date",placeholder:"moment()",tooltip:"You can use Moment.js functions to set the default value to a specific date. For example: \n \n moment().subtract(10, 'days')",weight:6},{type:"textarea",as:"json",editor:"ace",weight:28,input:!0,key:"customOptions",label:"Flatpickr options",tooltip:"A raw JSON object to use as options for the Date / Time component (Flatpickr).",defaultValue:{}}]},44637:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(8128)),o=i(n(66140));t.default=[{type:"checkbox",input:!0,key:"enableDate",label:"Enable Date Input",weight:0,tooltip:"Enables date input for this field."},{type:"tags",input:!0,key:"datePicker.disable",label:"Disable specific dates or dates by range",placeholder:"(yyyy-MM-dd) or (yyyy-MM-dd - yyyy-MM-dd)",tooltip:"Add dates that you want to blacklist. For example: \n \n 2025-02-21",validate:{custom:"if (_.isEmpty(input)) {\n return true;\n}\nconst dates = _.isArray(input) ?\ninput : input.split(component.delimeter);\nconst isValid = _.every(dates, (data) => \n !!data.match(/\\d{4}-\\d{2}-\\d{2}/g));\nvalid = isValid || 'Invalid date';"},weight:21},{type:"panel",title:"Custom Disabled Dates",collapsible:!0,collapsed:!0,style:{"margin-bottom":"10px"},key:"panel-disable-function",customConditional:()=>!r.default.noeval||r.default.protectedEval,components:[o.default.logicVariablesTable("<tr><th>date</th><td>The date object.</td></tr>"),{type:"textarea",input:!0,editor:"ace",key:"datePicker.disableFunction",label:"Disabling dates by a function",description:'For more information check out the <a href="https://flatpickr.js.org/examples/#disabling-dates" target="_blank" rel="noopener noreferrer">Docs</a>',weight:22},{type:"htmlelement",tag:"div",content:"<h4>Example</h4><pre>// Disable all weekends<br>date.getDay() === 0 || date.getDay() === 6</pre>\n "}]},{type:"checkbox",input:!0,key:"datePicker.disableWeekends",label:"Disable weekends",tooltip:"Check to disable weekends",weight:23},{type:"checkbox",input:!0,key:"datePicker.disableWeekdays",label:"Disable weekdays",tooltip:"Check to disable weekdays",weight:23}]},9234:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"select",input:!0,key:"displayInTimezone",label:"Display in Timezone",tooltip:"This will display the captured date time in the select timezone.",weight:30,defaultValue:"viewer",dataSrc:"values",data:{values:[{label:"of Viewer",value:"viewer"},{label:"of Submission",value:"submission"},{label:"of Location",value:"location"},{label:"UTC",value:"utc"}]}},{type:"select",input:!0,key:"timezone",label:"Select Timezone",tooltip:"Select the timezone you wish to display this Date",weight:31,lazyLoad:!0,defaultValue:"",valueProperty:"name",dataSrc:"url",data:{url:"{{options.cdnUrl}}/timezones.json"},template:"<span>{{ item.label }}</span>",conditional:{json:{"===":[{var:"data.displayInTimezone"},"location"]}}},{type:"checkbox",input:!0,key:"useLocaleSettings",label:"Use Locale Settings",tooltip:"Use locale settings to display date and time.",weight:51},{type:"checkbox",input:!0,key:"allowInput",label:"Allow Manual Input",tooltip:"Check this if you would like to allow the user to manually enter in the date.",weight:51},{type:"textfield",input:!0,key:"format",label:"Format",placeholder:"Format",description:'Use formats provided by <a href="https://github.com/angular-ui/bootstrap/tree/master/src/dateparser/docs#uibdateparsers-format-codes" target="_blank" rel="noopener noreferrer">DateParser Codes</a>',tooltip:"The date format for displaying the datetime value.",weight:52},{type:"editgrid",input:!0,key:"shortcutButtons",label:"Shortcut Buttons",description:"You can specify few buttons which will be shown above the calendar. Use Label to specify the name of the button and onClick to specify which date/time will be set when user clicks the button. E.g, date = new Date()",templates:{header:'<div class="row">\n <div class="col-sm-3">Label</div>\n <div class="col-sm-6">onClick</div>\n</div>',row:'<div class="row">\n <div class="col-sm-3">\n {{ flattenedComponents.label.getView(row.label) }}\n </div>\n <div class="col-sm-6">\n {{ flattenedComponents.onClick.getView(row.onClick) }}\n </div>\n {% if (!instance.disabled) { %}\n <div class="col-sm-3">\n <div class="btn-group pull-right">\n <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass("edit") }}"></i></button>\n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n <button class="btn btn-danger btn-sm removeRow"><i class="{{ iconClass("trash") }}"></i></button>\n {% } %}\n </div>\n </div>\n {% } %}\n </div>'},components:[{label:"Label",key:"label",type:"textfield",input:!0,validate:{required:!0}},{label:"onClick",key:"onClick",type:"textarea",editor:"ace",input:!0,validate:{required:!0}}],defaultValue:[]}]},13280:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"checkbox",input:!0,key:"enableTime",label:"Enable Time Input",tooltip:"Enables time input for this field.",weight:0},{type:"number",input:!0,key:"timePicker.hourStep",label:"Hour Step Size",tooltip:"The number of hours to increment/decrement in the time picker.",weight:10},{type:"number",input:!0,key:"timePicker.minuteStep",label:"Minute Step Size",tooltip:"The number of minutes to increment/decrement in the time picker.",weight:20},{type:"checkbox",input:!0,key:"timePicker.showMeridian",label:"12 Hour Time (AM/PM)",tooltip:"Display time in 12 hour time with AM/PM.",weight:30}]},94089:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"checkbox",input:!0,key:"enableMinDateInput",label:"Use Input to add moment.js for minDate",persistent:!1,weight:10,tooltip:"Enables to use input for moment functions instead of calendar."},{type:"datetime",input:!0,key:"datePicker.minDate",label:"Use calendar to set minDate",skipMerge:!0,weight:10,tooltip:"Enables to use calendar to set date.",customConditional:({data:e,component:t})=>!(t.datePicker&&t.datePicker.minDate&&-1!==t.datePicker.minDate.indexOf("moment")||e.enableMinDateInput)},{type:"textfield",input:!0,enableTime:!1,key:"datePicker.minDate",skipMerge:!0,label:"Minimum Date",weight:10,tooltip:"The minimum date that can be picked. You can also use Moment.js functions. For example: \n \n moment().subtract(10, 'days')",customConditional:({data:e,component:t})=>!(!t.datePicker||!t.datePicker.minDate||-1===t.datePicker.minDate.indexOf("moment"))||e.enableMinDateInput},{type:"checkbox",input:!0,key:"enableMaxDateInput",label:"Use Input to add moment.js for maxDate",persistent:!1,weight:20,tooltip:"Enables to use input for moment functions instead of calendar."},{type:"datetime",input:!0,key:"datePicker.maxDate",skipMerge:!0,label:"Use calendar to set maxDate",weight:20,tooltip:"Enables to use calendar to set date.",customConditional:({data:e,component:t})=>!(t.datePicker&&t.datePicker.maxDate&&-1!==t.datePicker.maxDate.indexOf("moment")||e.enableMaxDateInput)},{type:"textfield",input:!0,enableTime:!1,key:"datePicker.maxDate",skipMerge:!0,label:"Maximum Date",tooltip:"The maximum date that can be picked. You can also use Moment.js functions. For example: \n \n moment().add(10, 'days')",weight:20,customConditional:({data:e,component:t})=>!(!t.datePicker||!t.datePicker.maxDate||-1===t.datePicker.maxDate.indexOf("moment"))||e.enableMaxDateInput}]},21180:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(8061)),s=i(n(55671)),a=i(n(74711)),l=i(n(68803)),u=i(n(33512)),c=i(n(72402));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:o.default},{key:"validation",components:a.default},{key:"day",label:"Day",weight:3,components:l.default},{key:"month",label:"Month",weight:3,components:u.default},{key:"year",label:"Year",weight:3,components:c.default}],...e)}},78430:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(30381)),s=i(n(24133)),a=n(76286);class l extends s.default{static schema(...e){return s.default.schema({type:"day",label:"Day",key:"day",fields:{day:{type:"number",placeholder:"",required:!1},month:{type:"select",placeholder:"",required:!1},year:{type:"number",placeholder:"",required:!1}},dayFirst:!1},...e)}static get builderInfo(){return{title:"Day",group:"advanced",icon:"calendar",documentation:"/userguide/form-building/advanced-components#day",weight:50,schema:l.schema()}}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{operators:["isDateEqual","isNotDateEqual","isEmpty","isNotEmpty","dateLessThan","dateGreaterThan","dateLessThanOrEqual","dateGreaterThanOrEqual"]})}static savedValueTypes(e){return e=e||{},(0,a.getComponentSavedTypes)(e)||[a.componentValueTypes.string]}constructor(e,t,n){e.maxDate&&(e.maxDate=(0,o.default)(e.maxDate,"YYYY-MM-DD").toISOString()),e.minDate&&(e.minDate=(0,o.default)(e.minDate,"YYYY-MM-DD").toISOString()),super(e,t,n)}static get serverConditionSettings(){return l.conditionOperatorsSettings}get emptyValue(){return"00/00/0000"}get valueMask(){return/^\d{2}\/\d{2}\/\d{4}$/}get dayRequired(){return this.showDay&&r.default.get(this.component,"fields.day.required",!1)}get showDay(){return!r.default.get(this.component,"fields.day.hide",!1)}get monthRequired(){return this.showMonth&&r.default.get(this.component,"fields.month.required",!1)}get showMonth(){return!r.default.get(this.component,"fields.month.hide",!1)}get yearRequired(){return this.showYear&&r.default.get(this.component,"fields.year.required",!1)}get showYear(){return!r.default.get(this.component,"fields.year.hide",!1)}get defaultSchema(){return l.schema()}get shouldDisabled(){return super.shouldDisabled||this.parentDisabled}get inputInfo(){const e=super.elementInfo();return e.type="input",e.attr.type="hidden",e.changeEvent="input",e}inputDefinition(e){let t,n;return"day"===e&&(t=1,n=31),"month"===e&&(t=1,n=12),"year"===e&&(t=r.default.get(this.component,"fields.year.minYear",1900)||1900,n=r.default.get(this.component,"fields.year.maxYear",2030)||1900),{type:"input",ref:e,attr:{id:`${this.component.key}-${e}`,class:`form-control ${this.transform("class",`formio-day-component-${e}`)}`,type:"select"===this.component.fields[e].type?"select":"number",placeholder:this.component.fields[e].placeholder,step:1,min:t,max:n}}}selectDefinition(e){return{multiple:!1,ref:e,widget:"html5",attr:{id:`${this.component.key}-${e}`,class:"form-control",name:e,lang:this.options.language}}}get days(){if(this._days)return this._days;this._days=[{value:"",label:r.default.get(this.component,"fields.day.placeholder","")}];for(let e=1;e<=31;e++)this._days.push({value:e,label:e.toString()});return this._days}get months(){return this._months||(this._months=[{value:"",label:r.default.get(this.component,"fields.month.placeholder")||(this.hideInputLabels?this.t("Month"):"")},{value:1,label:"January"},{value:2,label:"February"},{value:3,label:"March"},{value:4,label:"April"},{value:5,label:"May"},{value:6,label:"June"},{value:7,label:"July"},{value:8,label:"August"},{value:9,label:"September"},{value:10,label:"October"},{value:11,label:"November"},{value:12,label:"December"}]),this._months}get years(){if(this._years)return this._years;this._years=[{value:"",label:r.default.get(this.component,"fields.year.placeholder","")}];const e=r.default.get(this.component,"fields.year.minYear",1900)||1900,t=r.default.get(this.component,"fields.year.maxYear",2030)||2030;for(let n=e;n<=t;n++)this._years.push({value:n,label:n.toString()});return this._years}setErrorClasses(e,t,n){super.setErrorClasses(e,t,n),super.setErrorClasses([this.refs.day,this.refs.month,this.refs.year],t,n)}removeInputError(e){super.removeInputError([this.refs.day,this.refs.month,this.refs.year]),super.removeInputError(e)}init(){super.init(),this.validators=this.validators.concat(["day","maxDate","minDate","minYear","maxYear"]);const e=this.component.fields.year.minYear,t=this.component.fields.year.maxYear;this.component.maxYear=t,this.component.minYear=e;const n=(0,a.getLocaleDateFormatInfo)(this.options.language);this.dayFirst=this.component.useLocaleSettings?n.dayFirst:this.component.dayFirst}render(){return this.isHtmlRenderMode()?super.render(this.renderTemplate("input")):super.render(this.renderTemplate("day",{dayFirst:this.dayFirst,showDay:this.showDay,showMonth:this.showMonth,showYear:this.showYear,day:this.renderField("day"),month:this.renderField("month"),year:this.renderField("year")}))}renderField(e){return"select"===this.component.fields[e].type?this.renderTemplate("select",{input:this.selectDefinition(e),selectOptions:this[`${e}s`].reduce(((e,t)=>e+this.renderTemplate("selectOption",{option:t,selected:!1,attrs:{}})),"")}):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:this.inputDefinition(e)})}attach(e){this.loadRefs(e,{day:"single",month:"single",year:"single",input:"multiple"});const t=super.attach(e),n=(e,t)=>()=>{try{this.saveCaretPosition(e,t)}catch(e){console.warn("An error occurred while trying to save caret position",e)}this.updateValue(null,{modified:!0})};return this.shouldDisabled?(this.setDisabled(this.refs.day,!0),this.setDisabled(this.refs.month,!0),this.setDisabled(this.refs.year,!0),this.refs.input&&this.refs.input.forEach((e=>this.setDisabled(e,!0)))):(this.addEventListener(this.refs.day,"input",n(this.refs.day,"day")),this.addEventListener(this.refs.month,"input",(()=>{const e=this.refs.year?parseInt(new Date(this.refs.year.value,this.refs.month.value,0).getDate(),10):"",t=this.getFieldValue("day");!this.component.fields.day.hide&&e&&(this.refs.day.max=e),e&&t>e&&(this.refs.day.value=this.refs.day.max),n(this.refs.month,"month")()})),this.addEventListener(this.refs.year,"input",n(this.refs.year,"year")),this.addEventListener(this.refs.input,this.info.changeEvent,(()=>this.updateValue(null,{modified:!0}))),[this.refs.day,this.refs.month,this.refs.year].filter((e=>!!e)).forEach((e=>{super.addFocusBlurEvents(e)}))),this.setValue(this.dataValue),this.disabled=this.shouldDisabled,t}validateRequired(e,t){const{day:n,month:i,year:r}=this.parts;return!(this.dayRequired&&!n||this.monthRequired&&!i||this.yearRequired&&!r||(0,a.boolValue)(e)&&this.isEmpty(t))}set disabled(e){super.disabled=e,this.refs.year&&this.refs.month&&this.refs.day&&(e?(this.refs.year.setAttribute("disabled","disabled"),this.refs.month.setAttribute("disabled","disabled"),this.refs.day.setAttribute("disabled","disabled")):(this.refs.year.removeAttribute("disabled"),this.refs.month.removeAttribute("disabled"),this.refs.day.removeAttribute("disabled")))}normalizeValue(e){if(!e||this.valueMask.test(e))return e;const t=[],n=e.split("/"),[i,r,o]=this.component.dayFirst?[0,1,2]:[1,0,2],s=this.component.defaultValue?this.component.defaultValue.split("/"):"",a=(e,i)=>t.push(e?n.shift():i);return this.dayFirst&&a(this.showDay,s?s[i]:"00"),a(this.showMonth,s?s[r]:"00"),this.dayFirst||a(this.showDay,s?s[i]:"00"),a(this.showYear,s?s[o]:"0000"),t.join("/")}setValueAt(e,t){if(!t||"Invalid date"===t)return null;const n=t.split("/");let i;this.component.dayFirst&&(i=n.shift());const r=n.shift();this.component.dayFirst||(i=n.shift());const o=n.shift();this.refs.day&&this.showDay&&(this.refs.day.value="00"===i?"":parseInt(i,10)),this.refs.month&&this.showMonth&&(this.refs.month.value="00"===r?"":parseInt(r,10)),this.refs.year&&this.showYear&&(this.refs.year.value="0000"===o?"":parseInt(o,10))}getFieldValue(e){const t=this.dataValue?this.dataValue.split("/"):[];let n=0;switch(e){case"month":n=t[this.dayFirst?1:0];break;case"day":n=t[this.dayFirst?0:1];break;case"year":n=t[2]}return n=parseInt(n,10),!r.default.isNaN(n)&&r.default.isNumber(n)?n:0}get parts(){return{day:this.getFieldValue("day"),month:this.getFieldValue("month"),year:this.getFieldValue("year")}}get format(){let e="";return this.component.dayFirst&&this.showDay&&(e+="D/"),this.showMonth&&(e+="M/"),!this.component.dayFirst&&this.showDay&&(e+="D/"),this.showYear?(e+="YYYY",e):e.length?e.substring(0,e.length-1):e}getDate(e){let t,n,i,o=[];const[s,a,l]=this.component.dayFirst?[0,1,2]:[1,0,2],u=e||this.component.defaultValue;let c;return u&&(o=u.split("/").map((e=>parseInt(e,10)))),this.showDay&&this.refs.day&&(t=parseInt(this.refs.day.value,10)),(void 0===t||r.default.isNaN(t))&&(t=o[s]&&!r.default.isNaN(o[s])?o[s]:0),this.showMonth&&this.refs.month&&(n=parseInt(this.refs.month.value,10)),(void 0===n||r.default.isNaN(n))&&(n=o[a]&&!r.default.isNaN(o[a])?o[a]:0),this.showYear&&this.refs.year&&(i=parseInt(this.refs.year.value)),(void 0===i||r.default.isNaN(i))&&(i=o[l]&&!r.default.isNaN(o[l])?o[l]:0),t||n||i?(t=this.showDay?t.toString().padStart(2,0):"",n=this.showMonth?n.toString().padStart(2,0):"",i=this.showYear?i.toString().padStart(4,0):"",c=this.component.dayFirst?`${t}${this.showDay&&this.showMonth||this.showDay&&this.showYear?"/":""}${n}${this.showMonth&&this.showYear?"/":""}${i}`:`${n}${this.showDay&&this.showMonth||this.showMonth&&this.showYear?"/":""}${t}${this.showDay&&this.showYear?"/":""}${i}`,c):null}get date(){return this.getDate()}get validationValue(){return this.dataValue}getValue(){return super.getValue()||this.dataValue}getValueAt(e){const t=this.date||this.emptyValue;return t?(this.refs.input[e].value=t,this.refs.input[e].value):(this.refs.input[e].value="",null)}getValueAsString(e){return this.getDate(e)||""}focus(e){var t,n,i;e&&"string"==typeof e&&this.refs[e]?this.refs[e].focus():this.dayFirst&&this.showDay||!this.dayFirst&&!this.showMonth&&this.showDay?null===(t=this.refs.day)||void 0===t||t.focus():this.dayFirst&&!this.showDay&&this.showMonth||!this.dayFirst&&this.showMonth?null===(n=this.refs.month)||void 0===n||n.focus():this.showDay||this.showDay||!this.showYear||null===(i=this.refs.year)||void 0===i||i.focus()}restoreCaretPosition(){var e,t;if(null===(e=this.root)||void 0===e?void 0:e.currentSelection){const{selection:e,index:n}=this.root.currentSelection;if(this.refs[n]){const i=this.refs[n];/text|search|password|tel|url/i.test((null==(t=i)?void 0:t.type)||"")&&i.setSelectionRange(...e)}}}isPartialDay(e){if(!e)return!1;const[t,n,i]=this.component.dayFirst?[0,1,2]:[1,0,2],r=e.split("/");return"00"===r[t]||"00"===r[n]||"0000"===r[i]}getValidationFormat(){return this.dayFirst?"DD-MM-YYYY":"MM-DD-YYYY"}}t.default=l},8061:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0}]},68803:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.day.type",label:"Type",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:210,type:"textfield",input:!0,key:"fields.day.placeholder",label:"Placeholder",placeholder:"Day Placeholder",tooltip:"The placeholder text that will appear when Day field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Day part of the component.",key:"fields.day.hide",input:!0},{weight:214,type:"checkbox",label:"Day First",tooltip:"Display the Day field before the Month field.",key:"dayFirst",input:!0}]},55671:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{weight:15,type:"checkbox",label:"Hide Input Labels",tooltip:"Hide the labels of component inputs. This allows you to show the labels in the form builder, but not when it is rendered.",key:"hideInputLabels",input:!0},{type:"select",input:!0,key:"inputsLabelPosition",label:"Inputs Label Position",tooltip:"Position for the labels for inputs for this field.",weight:40,defaultValue:"top",dataSrc:"values",data:{values:[{label:"Top",value:"top"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Bottom",value:"bottom"}]}},{key:"placeholder",ignore:!0},{weight:213,type:"checkbox",label:"Use Locale Settings",tooltip:"Use locale settings to display day.",key:"useLocaleSettings",input:!0}]},33512:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.month.type",label:"Type of input",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:210,type:"textfield",input:!0,key:"fields.month.placeholder",label:"Placeholder",placeholder:"Month Placeholder",tooltip:"The placeholder text that will appear when Month field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Month part of the component.",key:"fields.month.hide",input:!0}]},74711:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validate.required",ignore:!0},{key:"validate.unique",ignore:!0},{weight:0,type:"checkbox",label:"Require Day",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.day.required",input:!0},{weight:10,type:"checkbox",label:"Require Month",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.month.required",input:!0},{weight:20,type:"checkbox",label:"Require Year",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.year.required",input:!0},{weight:40,type:"textfield",label:"Minimum Day",placeholder:"yyyy-MM-dd",tooltip:"A minimum date that can be set. You can also use Moment.js functions. For example: \n \n moment().subtract(10, 'days')",key:"minDate",input:!0},{weight:30,type:"textfield",label:"Maximum Day",placeholder:"yyyy-MM-dd",tooltip:"A maximum day that can be set. You can also use Moment.js functions. For example: \n \n moment().add(10, 'days')",key:"maxDate",input:!0}]},72402:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.year.type",label:"Type of input",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:203,type:"number",input:!0,key:"fields.year.minYear",label:"Minimum Year",placeholder:"1900",tooltip:"The minimum year that can be entered."},{weight:204,type:"number",input:!0,key:"fields.year.maxYear",label:"Maximum Year",placeholder:"2030",tooltip:"The maximum year that can be entered."},{weight:210,type:"textfield",input:!0,key:"fields.year.placeholder",label:"Placeholder",placeholder:"Year Placeholder",tooltip:"The placeholder text that will appear when Year field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Year part of the component.",key:"fields.year.hide",input:!0}]},82878:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(76790)),s=i(n(77005)),a=i(n(67174)),l=i(n(98222));t.default=function(...e){return r.default.baseEditForm([{label:"Templates",key:"templates",weight:5,components:a.default},{key:"display",components:s.default},{key:"data",components:o.default},{key:"validation",components:l.default}],...e)}},29623:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(87568)),s=i(n(93977)),a=i(n(49686)),l=n(76286),u=n(26625),c={New:"new",Editing:"editing",Saved:"saved",Viewing:"viewing",Removed:"removed",Draft:"draft"};class d extends o.default{static schema(...e){return o.default.schema({type:"editgrid",label:"Edit Grid",key:"editGrid",clearOnHide:!0,input:!0,tree:!0,removeRow:"Cancel",defaultOpen:!1,openWhenEmpty:!1,modal:!1,components:[],inlineEdit:!1,templates:{header:d.defaultHeaderTemplate,row:d.defaultRowTemplate,tableHeader:d.defaultTableHeaderTemplate,tableRow:d.defaultTableRowTemplate,footer:""}},...e)}static get builderInfo(){return{title:"Edit Grid",icon:"tasks",group:"data",documentation:"/userguide/form-building/data-components#edit-grid",showPreview:!1,weight:30,schema:d.schema()}}static get defaultHeaderTemplate(){return'<div class="row">\n {% util.eachComponent(components, function(component) { %}\n {% if (displayValue(component)) { %}\n <div class="col-sm-2">{{ t(component.label) }}</div>\n {% } %}\n {% }) %}\n </div>'}static get defaultTableHeaderTemplate(){return'\n <tr>\n {% util.eachComponent(components, function(component) { %}\n {% if (!component.hasOwnProperty(\'tableView\') || component.tableView) { %}\n <td class="editgrid-table-column">{{ component.label }}</td>\n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n <td class="editgrid-table-column">Actions</td>\n {% } %}\n </tr>\n '}static get defaultRowTemplate(){return'<div class="row">\n {% util.eachComponent(components, function(component) { %}\n {% if (displayValue(component)) { %}\n <div class="col-sm-2">\n {{ isVisibleInRow(component) ? getView(component, row[component.key]) : \'\'}}\n </div>\n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n <div class="col-sm-2">\n <div class="btn-group pull-right">\n <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass(\'edit\') }}"></i></button>\n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n <button class="btn btn-danger btn-sm removeRow"><i class="{{ iconClass(\'trash\') }}"></i></button>\n {% } %}\n </div>\n </div>\n {% } %}\n </div>'}static get defaultTableRowTemplate(){return'\n {% util.eachComponent(components, function(component) { %}\n {% if (!component.hasOwnProperty(\'tableView\') || component.tableView) { %}\n <td class="editgrid-table-column">\n {{ getView(component, row[component.key]) }}\n </td>\n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n <td class="editgrid-table-column">\n <div class="btn-group">\n <button class="btn btn-default btn-light btn-sm editRow" aria-label="{{ t(\'Edit row\') }}"><i class="{{ iconClass(\'edit\') }}"></i></button>\n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n <button class="btn btn-danger btn-sm removeRow" aria-label="{{ t(\'Remove row\') }}"><i class="{{ iconClass(\'trash\') }}"></i></button>\n {% } %}\n </div>\n </td>\n {% } %}\n '}get defaultDialogTemplate(){return`\n <h3 ref="dialogHeader">${this.t("Do you want to clear data?")}</h3>\n <div style="display:flex; justify-content: flex-end;">\n <button ref="dialogCancelButton" class="btn btn-secondary" aria-label="${this.t("Cancel")}">${this.t("Cancel")}</button>\n <button ref="dialogYesButton" class="btn btn-danger" aria-label="${this.t("Yes, delete it")}">${this.t("Yes, delete it")}</button>\n </div>\n `}get defaultRowTemplate(){return this.displayAsTable?d.defaultTableRowTemplate:d.defaultRowTemplate}get defaultHeaderTemplate(){return this.displayAsTable?d.defaultTableHeaderTemplate:d.defaultHeaderTemplate}get rowTemplate(){let e;return e=l.Evaluator.noeval?this.displayAsTable?u.editgrid.tableRow:u.editgrid.row:this.displayAsTable?r.default.get(this.component,"templates.tableRow",this.defaultRowTemplate):r.default.get(this.component,"templates.row",this.defaultRowTemplate),e}get headerTemplate(){let e;return e=l.Evaluator.noeval?this.displayAsTable?u.editgrid.tableHeader:u.editgrid.header:this.displayAsTable?r.default.get(this.component,"templates.tableHeader",this.defaultHeaderTemplate):r.default.get(this.component,"templates.header",this.defaultHeaderTemplate),e}get hasScopedChildren(){return!this.inlineEditMode}get defaultSchema(){return d.schema()}get emptyValue(){return[]}get editgridKey(){return`editgrid-${this.key}`}get rowRef(){return`${this.editgridKey}-row`}get rowElements(){return this.refs[this.rowRef]}get rowRefs(){return this.refs[`editgrid-${this.component.key}-row`]}get addRowRef(){return`${this.editgridKey}-addRow`}get addRowElements(){return this.refs[this.addRowRef]}get saveRowRef(){return`${this.editgridKey}-saveRow`}get saveRowElements(){return this.refs[this.saveRowRef]}get cancelRowRef(){return`${this.editgridKey}-cancelRow`}get cancelRowElements(){return this.refs[this.cancelRowRef]}get inlineEditMode(){return this.component.inlineEdit}get saveEditMode(){return!this.inlineEditMode}get minLength(){return this.builderMode?0:r.default.get(this.component,"validate.minLength",0)}get data(){return this._data}get dataValue(){return super.dataValue||[]}set dataValue(e){super.dataValue=e}get displayAsTable(){return this.component.displayAsTable}set data(e){this._data=e;const t=this.dataValue;(this.editRows||[]).forEach(((e,n)=>{t[n]||e.state===c.New||(t[n]={});const i=t[n]||{};e.data=i,e.components.forEach((e=>{e.data=i}))}))}get iteratableRows(){return this.editRows}get defaultValue(){const e=super.defaultValue,t=Array.isArray(e)?e:[];return r.default.times(this.minLength-t.length,(()=>t.push({}))),t}constructor(...e){super(...e),this.type="editgrid"}hasRemoveButtons(){return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&this.dataValue.length>r.default.get(this.component,"validate.minLength",0)}init(){if(this.builderMode)return this.editRows=[],super.init();this.components=this.components||[];const e=this.dataValue;if(!e.length&&this.component.openWhenEmpty){const e={};this.editRows=[],this.createRow(e,0)}else this.editRows=e.map(((e,t)=>({components:this.lazyLoad?[]:this.createRowComponents(e,t),data:e,state:c.Saved,backup:null,error:null,rowIndex:t})));this.prevHasAddButton=this.hasAddButton(),this.checkData(),this.setVariableTypeComponents(),this.variableTypeComponentsIndexes.length&&r.default.each(this.editRows||[],((e,t)=>this.checkRowVariableTypeComponents(e,t)))}checkRowVariableTypeComponents(e,t){const n=e.components;r.default.some(this.variableTypeComponentsIndexes,(e=>{const t=n[e];return t.type!==t.component.type}))&&(e.components=this.createRowComponents(e.data,t,!0))}setVariableTypeComponents(){this.variableTypeComponentsIndexes=[],r.default.each(this.component.components,((e,t)=>{e.typeChangeEnabled&&this.variableTypeComponentsIndexes.push(t)}))}isOpen(e){return[c.New,c.Editing,c.Viewing].includes(e.state)}isComponentVisibleInSomeRow(e){const t=this.editRows,n=[c.Saved,c.Editing,c.Draft],i=t.filter((e=>r.default.includes(n,e.state)));this.visibleInHeader=this.visibleInHeader||[];const o=(e,t)=>{t||r.default.remove(this.visibleInHeader,(t=>t===e.key)),t&&!r.default.includes(this.visibleInHeader,e.key)&&this.visibleInHeader.push(e.key)};if(r.default.isEmpty(t)){const t=this.createRowComponents({},0);let n;(0,l.eachComponent)(t,(t=>{t.component.key===e.key&&(n=t),t.checkConditions()}));const i=!n||n.visible;return[...this.components].forEach((e=>this.removeComponent(e,this.components))),o(e,i),i}const s=r.default.get(this.component,"openWhenEmpty")&&1===t.length&&t[0].state===c.New;return r.default.isEmpty(t)||!r.default.isEmpty(i)||s?r.default.some(s?t:i,((t,n)=>{let i;if(t.state===c.Editing)i=r.default.includes(this.visibleInHeader,e.key);else{const t=this.flattenComponents(n)[e.key];i=!t||t.visible,o(e,i)}return i})):r.default.includes(this.visibleInHeader,e.key)}render(e){if(this.builderMode)return super.render();const t=this.dataValue,n=this.headerTemplate,i=this.t.bind(this),o=this.displayAsTable?"editgridTable":"editgrid";return super.render(e||this.renderTemplate(o,{ref:{row:this.rowRef,addRow:this.addRowRef,saveRow:this.saveRowRef,cancelRow:this.cancelRowRef},header:this.renderString(n,{displayValue:e=>this.displayComponentValue(e,!0),components:this.component.components,value:t,t:i}),footer:this.renderString(r.default.get(this.component,"templates.footer"),{components:this.component.components,value:t,t:i}),rows:this.editRows.map(this.renderRow.bind(this)),openRows:this.editRows.map((e=>this.isOpen(e))),errors:this.editRows.map((e=>e.error)),hasAddButton:this.hasAddButton(),hasRemoveButtons:this.hasRemoveButtons()}))}renderComponents(e){const t=(e=e||this.getComponents()).map((e=>e.render())),n=this.displayAsTable&&this.prevHasAddButton?"tableComponents":"components";return this.renderTemplate(n,{children:t,components:e})}attach(e){if(this.builderMode)return super.attach(e);this.loadRefs(e,{[this.addRowRef]:"multiple",[this.saveRowRef]:"multiple",[this.cancelRowRef]:"multiple",[this.rowRef]:"multiple"}),this.addRowElements.forEach((e=>{this.addEventListener(e,"click",(()=>this.addRow()))}));let t=0;this.rowElements.forEach(((e,n)=>{const i=this.editRows[n];(null==i?void 0:i.isRowSelected)&&e.classList.add("selected"),this.isOpen(i)?(this.attachComponents(e,i.components),this.addEventListener(this.saveRowElements[t],"click",(()=>this.saveRow(n,!0))),this.addEventListener(this.cancelRowElements[t],"click",(()=>this.cancelRow(n))),t++):[{className:"removeRow",event:"click",action:()=>this.removeRow(n,!0)},{className:"editRow",event:"click",action:()=>{this.editRow(n).then((()=>{var e;if(this.component.rowDrafts){this.validateRow(i,!1);const t=i.errors&&!!i.errors.length;this.component.modal&&t&&(null===(e=this.root)||void 0===e?void 0:e.submitted)&&(this.alert.showErrors(i.errors,!1),i.alerts=!0)}}))}},{className:"row",event:"click",action:()=>{e.classList.toggle("selected");let t="editGridSelectRow";Array.from(e.classList).includes("selected")?i.isRowSelected=!0:(delete i.isRowSelected,t="editGridUnSelectRow"),this.emit(t,{component:this.component,data:this.dataValue[n]})}}].forEach((({className:t,event:n,action:i})=>{const o=e.getElementsByClassName(t);Array.prototype.forEach.call(o,(e=>{this.options.readOnly&&r.default.intersection(e.classList,["editRow","removeRow"]).length?e.style.display="none":this.addEventListener(e,n,i)}))}))})),t?this.addClass(this.refs.component,`formio-component-${this.component.type}-row-open`):this.removeClass(this.refs.component,`formio-component-${this.component.type}-row-open`);const n=super.attach(e);return this.loadRefs(e,{messageContainer:"single-scope"}),n}flattenRowDataValue(e){const t={};return Object.keys(e).forEach((n=>{r.default.isObject(e[n])&&!r.default.isNil(e[n])?Object.assign(t,this.flattenRowDataValue(e[n])):t[n]=e[n]})),t}isComponentVisibleInRow(e,t){const n=t[e.key];return!n||n.visible}displayComponentValue(e,t){return!!(e.hasOwnProperty("tableView")&&!e.tableView||!t?r.default.includes(this.visibleInHeader,e.key):this.isComponentVisibleInSomeRow(e))}renderRow(e,t){const n=this.dataValue;if(this.isOpen(e))return this.renderComponents(e.components);{const e=this.flattenComponents(t),i=this.rowTemplate;return this.renderString(i,{row:n[t]||{},data:this.data,rowIndex:t,components:this.component.components,flattenedComponents:e,displayValue:e=>this.displayComponentValue(e),isVisibleInRow:t=>this.isComponentVisibleInRow(t,e),getView:(t,n)=>{var i,r;const o=e[t.key],s=o?o.getView(n||o.dataValue):"",a=new RegExp("<(.*?)>");return"string"==typeof s&&s.length&&!(null===(i=o.component)||void 0===i?void 0:i.template)&&a.test(s)&&"html"!==(null===(r=o.component)||void 0===r?void 0:r.inputFormat)?`<input type="text" value="${s.replace(/"/g,"&quot;")}" readonly/>`:s},state:this.editRows[t].state,t:this.t.bind(this)})}}eachComponent(e,t){r.default.each(this.getComponents(t),((t,n)=>{if(!1===e(t,n))return!1}))}restoreComponentsContext(){this.getComponents().forEach((e=>{var t;const n=this.dataValue[e.rowIndex],i=null===(t=this.editRows[e.rowIndex])||void 0===t?void 0:t.data;e.data=n||i}))}flattenComponents(e){const t={};return this.everyComponent((e=>{t[e.component.flattenAs||e.key]=e}),e),t}getComponents(e){var t;return this.editRows=this.editRows||[],this.builderMode?super.getComponents():r.default.isNumber(e)?(null===(t=this.editRows[e])||void 0===t?void 0:t.components)||[]:this.editRows.reduce(((e,t)=>e.concat(t.components||[])),[])}destroyComponents(e=!1,t=0){if(this.builderMode)return super.destroyComponents(e);this.getComponents(t).slice().forEach((t=>this.removeComponent(t,this.components,e)))}createRow(e,t){const n={components:this.createRowComponents(e,t),data:e,state:c.New,backup:null,error:null,rowIndex:t};return this.editRows.push(n),this.inlineEditMode&&this.dataValue.push(e),n}addRow(){if(this.options.readOnly)return;const e=this.editRows.length,t=this.createRow({},e);return this.inlineEditMode&&this.triggerChange(),this.emit("editGridAddRow",{component:this.component,row:t}),this.checkRow("checkData",null,{},t.data,t.components),this.component.modal?this.addRowModal(e):this.redraw(),t}addRowModal(e){const t=this.ce("div"),n=this.editRows[e];n.willBeSaved=!1;const{components:i}=n;t.innerHTML=this.renderComponents(i);const r=this.component.modal?this.createModal(t,{},(()=>this.showDialog(e))):void 0;return r.classList.add(`editgrid-row-modal-${this.id}`),n.dialog=r,this.alert&&(this.alert.clear(),this.alert=null),this.alert=new a.default(r.refs.dialogContents,this),this.addEventListener(r,"close",(()=>{n.willBeSaved||(this.editRows[e]&&this.editRows[e].state!==c.New&&this.editRows[e].components.forEach((e=>{e.setPristine(!0)})),this.cancelRow(e)),this.alert&&(this.alert.clear(),this.alert=null),delete n.confirmationDialog,delete n.dialog})),r.refs.dialogContents.appendChild(this.ce("button",{class:"btn btn-primary",onClick:()=>{this.component.rowDrafts||n.components.forEach((e=>e.setPristine(!1))),this.validateRow(n,!0)||this.component.rowDrafts?(n.willBeSaved=!0,r.close(),this.saveRow(e,!0)):(this.alert.showErrors(n.errors,!1),n.alerts=!0)}},this.component.saveRow||"Save")),this.attachComponents(t,i)}showDialog(e){const t=this.editRows[e];if(r.default.isEqual(t.backup,t.data))return Promise.resolve();const n=this.ce("div",{ref:"confirmationDialog"}),i=this.component.dialogTemplate||this.defaultDialogTemplate;n.innerHTML=i,n.refs={},this.loadRefs.call(n,n,{dialogHeader:"single",dialogCancelButton:"single",dialogYesButton:"single"});const o=this.createModal(n);o.classList.add(`editgrid-row-modal-confirmation-${this.id}`);const s=e=>{e.preventDefault(),o.close()};let a;const l=new Promise(((e,t)=>{a={resolve:e,reject:t}}));return this.addEventListener(n.refs.dialogYesButton,"click",(e=>{s(e),a.resolve()})),this.addEventListener(n.refs.dialogCancelButton,"click",(e=>{s(e),a.reject()})),t.confirmationDialog=o,l}editRow(e){const t=this.editRows[e],n=t.state===c.Editing||t.state===c.New;if(!t||n)return Promise.resolve();t.prevState=t.state,t.state=this.options.readOnly?c.Viewing:c.Editing,this.lazyLoad&&0===t.components.length&&(t.components=this.createRowComponents(t.data,e));const i=(0,l.fastCloneDeep)(t.data);return this.inlineEditMode?t.backup=i:(t.backup=(0,l.fastCloneDeep)(t.data),t.data=i,this.restoreRowContext(t)),this.component.modal?this.addRowModal(e):this.redraw()}clearErrors(e){const t=this.editRows[e];t&&Array.isArray(t.components)&&t.components.forEach((e=>{e.setPristine(!0),e.setCustomValidity("")}))}cancelRow(e){if(this.options.readOnly)return;const t=this.editRows[e];switch(t.state){case c.New:t.state=c.Removed,this.clearErrors(e),this.destroyComponents(!1,e),this.inlineEditMode&&this.splice(e),this.editRows.splice(e,1),this.openWhenEmpty();break;case c.Editing:t.state=t.prevState,this.inlineEditMode&&(this.dataValue[e]=t.backup),t.data=t.backup,t.backup=null,this.restoreRowContext(t),this.clearErrors(e)}this.emit("editGridCancelRow",{instance:this,component:this.component,editRow:t}),this.checkValidity(null,!0),this.redraw(),this.component.rowDrafts&&this.checkValidity(this.data,!1)}saveRow(e,t){var n,i;const r=this.editRows[e];if(this.options.readOnly)return;this.component.rowDrafts||r.components.forEach((e=>e.setPristine(!1)));const o=this.validateRow(r,!0);if(!this.component.rowDrafts&&!o)return!1;if(this.saveEditMode){const t=this.dataValue;switch((null===(i=null===(n=this.root)||void 0===n?void 0:n.focusedComponent)||void 0===i?void 0:i.component.typeChangeEnabled)&&(this.root.focusedComponent=null),r.state){case c.New:{const n=t.length;t.push(r.data),r.components.forEach((e=>e.rowIndex=n)),e!==n&&(this.editRows.splice(e,1),this.editRows.splice(n,0,r));break}case c.Editing:t[e]=r.data}}return r.state=this.component.rowDrafts&&!o?c.Draft:c.Saved,r.backup=null,this.updateValue(),this.emit("editGridSaveRow",{component:this.component,row:r.data,instance:this}),this.triggerChange({modified:t,noPristineChangeOnModified:t&&this.component.rowDrafts,isolateRow:!0}),this.component.rowDrafts&&r.components.forEach((e=>e.setPristine(this.pristine))),this.checkValidity(null,!0),this.redraw(),r.alerts&&(r.alerts=!1),!0}beforeFocus(e){"beforeFocus"in this.parent&&this.parent.beforeFocus(this);const t=this.getRelativePath(e.path),n=(0,l.getArrayFromComponentPath)(t),i=n[0];let o=n[0];this.editRows.forEach(((e,t)=>{e.rowIndex===i&&(o=t)})),r.default.isNumber(o)&&this.editRow(o)}updateComponentsRowIndex(e,t){e.forEach(((e,n)=>{e.rowIndex=t,e.row=`${t}-${n}`}))}updateRowsComponents(e){this.editRows.slice(e).forEach(((t,n)=>{this.updateComponentsRowIndex(t.components,e+n)}))}baseRemoveRow(e){const t=this.editRows[e];return t.state=c.Removed,this.destroyComponents(!1,e),t}removeRow(e,t){this.options.readOnly||(this.clearErrors(e),this.baseRemoveRow(e),this.splice(e),this.emit("editGridDeleteRow",{index:e}),this.editRows.splice(e,1),this.openWhenEmpty(),this.updateRowsComponents(e),this.updateValue(),this.triggerChange({modified:t,noPristineChangeOnModified:t&&this.component.rowDrafts,isolateRow:!0}),this.checkValidity(null,!0),this.checkData(),this.redraw())}createRowComponents(e,t,n){if(this.components)for(let e=0;e<this.components.length;e++)this.components[e].rowIndex===t&&(this.components[e].destroy(),this.components.splice(e,1));const i=r.default.get(this.editRows,`[${t}].components`,null);return this.component.components.map(((o,s)=>{var a;if(n&&i&&this.variableTypeComponentsIndexes.length){const e=i[s];if(!r.default.includes(this.variableTypeComponentsIndexes,s)||(null==e?void 0:e.type)===(null===(a=null==e?void 0:e.component)||void 0===a?void 0:a.type))return e;o=e.component}const l=r.default.clone(o),u=r.default.clone(this.options);u.name+=`[${t}]`,u.row=`${t}-${s}`,u.onChange=(e={},n,i)=>{var r,o;if((null===(r=n.instance.root)||void 0===r?void 0:r.id)&&(null===(o=this.root)||void 0===o?void 0:o.id)!==n.instance.root.id?n.instance.root.triggerChange(e,n,i):this.component.modal||this.triggerRootChange(e,n,i),this.inlineEditMode)return;const s=this.editRows[t];if(null==s?void 0:s.alerts)this.checkData(null,Object.assign(Object.assign({},e),{changed:n,rowIndex:t}),this.data);else if(s){const t=this.component.rowDrafts&&!this.shouldValidateDraft(s);this.checkRow("checkData",null,Object.assign(Object.assign({},e),{changed:n,silentCheck:t}),s.data,s.components,t)}this.variableTypeComponentsIndexes.length&&(this.checkRowVariableTypeComponents(s,t),this.redraw())};const c=this.createComponent(r.default.assign({},l,{row:u.row}),u,e,null,n&&i?i[s]:null);return c.rowIndex=t,c.inEditGrid=!0,c}))}hasOpenRows(){return this.editRows.some((e=>this.isOpen(e)))}shouldValidateDraft(e){var t,n;return e.state===c.Draft&&!this.pristine&&!(null===(t=this.root)||void 0===t?void 0:t.pristine)&&!this.hasOpenRows()||(null===(n=this.root)||void 0===n?void 0:n.submitted)}shouldValidateRow(e,t){return this.shouldValidateDraft(e)||e.state===c.Editing||e.alerts||t}validateRow(e,t,n){var i;let r=!0;const o=[...this.errors];return this.shouldValidateRow(e,t)&&e.components.forEach((i=>{const o=this.component.rowDrafts&&!this.shouldValidateDraft(e)||n;r&=i.checkValidity(null,t,null,o)})),this.component.validate&&this.component.validate.row&&(r=this.evaluate(this.component.validate.row,{valid:r,row:e.data},"valid",!0),"true"!==r.toString()?(e.error=r,r=!1):e.error=null,null===r&&(r=`Invalid row validation for ${this.key}`)),e.errors=r?null:this.errors.filter((e=>!o.includes(e))),this.component.rowDrafts&&!(null===(i=this.root)||void 0===i?void 0:i.submitted)||this.showRowErrorAlerts(e,!!r),!!r}showRowErrorAlerts(e,t){var n;e.alerts&&this.alert&&((null===(n=e.errors)||void 0===n?void 0:n.length)&&!t?(this.alert.showErrors(e.errors,!1),e.alerts=!0):this.alert.clear())}checkValidity(e,t,n,i){return e=e||this.rootValue,n=n||this.data,this.checkCondition(n,e)?this.checkComponentValidity(e,t,n,{silentCheck:i}):(this.setCustomValidity(""),!0)}checkComponentValidity(e,t,n,i={}){var r,o,s;const{silentCheck:a}=i,l=this.errors.length,u=super.checkComponentValidity(e,t,n,i);if(!u&&!this.alert&&!this.hasOpenRows())return!1;if(this.shouldSkipValidation(e,t,n))return!0;let c=!0,d=!1;if(this.editRows.forEach(((e,n)=>{const i=this.validateRow(e,t,a);if(c&=i,this.rowRefs){const t=this.rowRefs[n];if(t){const n=t.querySelector(".editgrid-row-error");i||!n||this.component.rowDrafts&&!this.shouldValidateDraft(e)?n&&(n.textContent=""):(this.addClass(n,"help-block"),n.textContent=this.t(this.errorMessage("invalidRowError")))}}d|=t&&this.isOpen(e)})),!c)return a||this.component.rowDrafts&&!(null===(r=this.root)||void 0===r?void 0:r.submitted)||(this.setCustomValidity(this.t(this.errorMessage("invalidRowsError")),t),this.removeClass(this.element,"has-error")),!1;if(d&&this.saveEditMode)return this.setCustomValidity(this.t(this.errorMessage("unsavedRowsError")),t),!1;const h=this.invalid||this.invalidMessage(e,t);return(null===(o=this.errors)||void 0===o?void 0:o.length)!==l&&(null===(s=this.root)||void 0===s?void 0:s.submitted)&&!h?(this.setCustomValidity(h,t),this.root.showErrors()):this.setCustomValidity(h,t),u}changeState(e,t){e||t.resetValue&&this.component.modalEdit?this.rebuild():this.redraw()}setValue(e,t={}){if(e||(e=this.defaultValue),!Array.isArray(e)){if("object"!=typeof e)return!1;e=[e]}const n=this.hasChanged(e,this.dataValue);t.noValidate=!n,this.parent&&this.parent.checkComponentConditions(),this.dataValue=e,this.dataValue.forEach(((e,n)=>{const i=this.editRows[n];i?(i.data=e,this.restoreRowContext(i,t),i.state=c.Saved,i.backup=null,i.error=null):this.editRows[n]={components:this.lazyLoad?[]:this.createRowComponents(e,n),data:e,state:c.Saved,backup:null,error:null}}));let{length:i}=this.dataValue;return this.editRows[i]&&this.editRows[i].state===c.New&&(i+=1),this.editRows.slice(i).forEach(((e,t)=>this.baseRemoveRow(i+t))),this.editRows=this.editRows.slice(0,i),this.openWhenEmpty(),this.updateOnChange(t,n),this.checkData(),this.changeState(n,t),n}openWhenEmpty(){const e=!this.dataValue.length&&this.component.openWhenEmpty;if(!this.editRows.length&&e&&!this.builderMode){const e={};this.createRow(e,0)}}restoreRowContext(e,t={}){e.components.forEach((n=>{n.data=e.data,this.setNestedValue(n,e.data,t)}))}emptyRows(){this.editRows.forEach(((e,t)=>this.destroyComponents(!1,t))),this.editRows=[]}resetValue(){super.resetValue(),this.emptyRows()}}t.default=d,d.prototype.hasChanged=s.default.prototype.hasChanged},76790:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"checkbox",input:!0,weight:105,key:"inlineEdit",label:"Inline Editing",tooltip:"Check this if you would like your changes within 'edit' mode to be committed directly to the submission object as that row is being changed"},{key:"defaultValue",ignore:!0},{key:"multiple",ignore:!0}]},77005:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(8128));t.default=[{key:"placeholder",ignore:!0},{type:"checkbox",label:"Open First Row when Empty",key:"openWhenEmpty",tooltip:"Check this if you would like to open up the first row when the EditGrid is empty",weight:1e3,input:!0,conditional:{json:{"!==":[{var:"data.modal"},!0]}}},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:1001,input:!0,clearOnHide:!1,calculateValue:"value = data.disableAddingRemovingRows;"},{type:"checkbox",label:"Display EditGrid as Table",key:"displayAsTable",tooltip:"use Table Template",weight:1002,input:!1,customConditional:()=>!r.default.noeval},{weight:1010,type:"textarea",input:!0,key:"conditionalAddButton",label:"Conditional Add Button",placeholder:"show = ...",tooltip:"Specify condition when Add Button should be displayed.",editor:"ace",as:"javascript",wysiwyg:{minLines:3}}]},67174:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(8128));t.default=[{type:"textarea",label:"Header Template",key:"templates.header",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render the header of the Edit grid.",customConditional:({data:e})=>(!r.default.noeval||r.default.protectedEval)&&!e.displayAsTable},{type:"textarea",label:"Table Header Template",key:"templates.tableHeader",rows:6,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render the header of the Edit grid.",customConditional:({data:e})=>(!r.default.noeval||r.default.protectedEval)&&e.displayAsTable},{type:"textarea",label:"Row Template",key:"templates.row",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Three available variables. "row" is an object of one row\'s data, "components" is the array of components in the grid and "state" is current row\'s state (can be "draft" or "saved"). To add click events, add the classes "editRow" and "removeRow" to elements.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render each row of the Edit grid.",customConditional:({data:e})=>(!r.default.noeval||r.default.protectedEval)&&!e.displayAsTable},{type:"textarea",label:"Table Row Template",key:"templates.tableRow",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Three available variables. "row" is an object of one row\'s data, "components" is the array of components in the grid and "state" is current row\'s state (can be "draft" or "saved"). To add click events, add the classes "editRow" and "removeRow" to elements.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render each row of the Edit grid.",customConditional:({data:e})=>(!r.default.noeval||r.default.protectedEval)&&e.displayAsTable},{type:"textarea",label:"Footer Template",key:"templates.footer",rows:5,editor:"ace",as:"handlebars",input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render the footer of the Edit grid.",customConditional:()=>!r.default.noeval||r.default.protectedEval},{type:"textfield",input:!0,key:"rowClass",label:"Row CSS Class",placeholder:"Row CSS Class",tooltip:"CSS class to add to the edit row wrapper."},{type:"textfield",input:!0,key:"addAnother",label:"Add Another Text",placeholder:"Add Another",tooltip:"Set the text of the Add Another button."},{weight:70,type:"checkbox",label:"Display as Modal",tooltip:"Display a modal to add or edit entries in the table",key:"modal",input:!0},{type:"textfield",input:!0,key:"saveRow",label:"Save Row Text",placeholder:"Save",tooltip:"Set the text of the Save Row button."},{type:"textfield",input:!0,key:"removeRow",label:"Remove Row Text",placeholder:"Remove",tooltip:"Set the text of the remove Row button."}]},98222:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{ignore:!0,key:"unique"},{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"number",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"number",tooltip:"The maximum length requirement this field must meet.",input:!0},{type:"checkbox",input:!0,weight:105,key:"rowDrafts",label:"Enable Row Drafts",tooltip:"Allow save rows even if their data is invalid. Errors will occur when try to submit with invalid rows."}]},82511:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(72125)),o=i(n(96463)),s=i(n(67245));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default},{key:"validation",components:s.default}],...e)}},16263:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(4395));class o extends r.default{static schema(...e){return r.default.schema({type:"email",label:"Email",key:"email",inputType:"email",kickbox:{enabled:!1}},...e)}static get builderInfo(){return{title:"Email",group:"advanced",icon:"at",documentation:"/userguide/form-building/advanced-components#email",weight:10,schema:o.schema()}}init(){super.init(),this.validators.push("email")}get defaultSchema(){return o.schema()}get inputInfo(){const e=super.inputInfo;return e.attr.type=this.component.mask?"password":"email",e}normalizeValue(e,t={}){return e=super.normalizeValue(e,t),this.options.server&&e&&(e=Array.isArray(e)?e.map((e=>e.toLowerCase())):e.toLowerCase()),e}}t.default=o},96463:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},67245:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{type:"panel",label:"Kickbox",title:"Kickbox",weight:102,key:"kickbox",components:[{type:"checkbox",label:"Enable",tooltip:"Enable Kickbox validation for this email field.",description:"Validate this email using the Kickbox email validation service.",key:"kickbox.enabled"}]}]},93039:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(4219)),o=i(n(20350));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default}],...e)}},98463:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(99216));class o extends r.default{static schema(...e){return r.default.schema({label:"Field Set",key:"fieldSet",type:"fieldset",legend:"",components:[],input:!1,persistent:!1},...e)}static get builderInfo(){return{title:"Field Set",icon:"th-large",group:"layout",documentation:"/userguide/form-building/layout-components#field-set",showPreview:!1,weight:20,schema:o.schema()}}static savedValueTypes(){return[]}get defaultSchema(){return o.schema()}get className(){return`${this.transform("class","form-group")} ${super.className}`}get templateName(){return"fieldset"}constructor(...e){super(...e),this.noField=!0}}t.default=o},20350:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0},{key:"label",hidden:!0,calculateValue:e=>e.data.legend},{weight:1,type:"textfield",input:!0,key:"legend",label:"Legend",placeholder:"Legend",tooltip:"The legend for this Fieldset."}]},79407:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(31771)),s=i(n(96251)),a=i(n(97852)),l=i(n(23391));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:o.default},{label:"File",key:"file",weight:5,components:a.default},{key:"validation",components:l.default}],...e)}},38490:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(24133)),s=n(76286),a=r(n(33729)),l=r(n(96486)),u=r(n(47228)),c=r(n(354));let d,h,p="undefined"!=typeof window?navigator.camera:d;"undefined"!=typeof window?h=window.HTMLCanvasElement:void 0!==n.g&&(h=n.g.HTMLCanvasElement),h&&!h.prototype.toBlob&&Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,t,n){var i=this;setTimeout((function(){for(var r=atob(i.toDataURL(t,n).split(",")[1]),o=r.length,s=new Uint8Array(o),a=0;a<o;a++)s[a]=r.charCodeAt(a);e(new Blob([s],{type:t||"image/png"}))}))}});class f extends o.default{static schema(...e){return o.default.schema({type:"file",label:"Upload",key:"file",image:!1,privateDownload:!1,imageSize:"200",filePattern:"*",fileMinSize:"0KB",fileMaxSize:"1GB",uploadOnly:!1},...e)}static get builderInfo(){return{title:"File",group:"premium",icon:"file",documentation:"/userguide/form-building/premium-components#file",weight:100,schema:f.schema()}}static get serverConditionSettings(){return f.conditionOperatorsSettings}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{operators:["isEmpty","isNotEmpty"]})}static savedValueTypes(e){return e=e||{},(0,s.getComponentSavedTypes)(e)||[s.componentValueTypes.object]}init(){super.init(),p=navigator.camera||d;const e="undefined"!=typeof FileReader,t="undefined"!=typeof window&&Boolean(window.FormData),n=!("undefined"==typeof window||!window.XMLHttpRequest)&&"upload"in new XMLHttpRequest;this.support={filereader:e,formdata:t,hasWarning:!e||!t||!n,progress:n},this.cameraMode=!1,this.statuses=[],this.fileDropHidden=!1}get dataReady(){return this.filesReady||Promise.resolve()}get defaultSchema(){return f.schema()}loadImage(e){return this.component.privateDownload&&(e.private=!0),this.fileService.downloadFile(e).then((e=>e.url))}get emptyValue(){return[]}getValueAsString(e){return l.default.isArray(e)?l.default.map(e,"originalName").join(", "):l.default.get(e,"originalName","")}getValue(){return this.dataValue}get defaultValue(){const e=super.defaultValue;return Array.isArray(e)?e:[]}get hasTypes(){return this.component.fileTypes&&Array.isArray(this.component.fileTypes)&&0!==this.component.fileTypes.length&&(""!==this.component.fileTypes[0].label||""!==this.component.fileTypes[0].value)}get fileDropHidden(){return this._fileBrowseHidden}set fileDropHidden(e){"boolean"!=typeof e||this.component.multiple||(this._fileBrowseHidden=e)}render(){return super.render(this.renderTemplate("file",{fileSize:this.fileSize,files:this.dataValue||[],statuses:this.statuses,disabled:this.disabled,support:this.support,fileDropHidden:this.fileDropHidden}))}getVideoStream(e){return navigator.mediaDevices.getUserMedia({video:Object.assign({width:{min:640,ideal:1920},height:{min:360,ideal:1080},aspectRatio:{ideal:16/9}},e),audio:!1})}stopVideoStream(e){e.getVideoTracks().forEach((e=>e.stop()))}getFrame(e){return new Promise((t=>{const n=document.createElement("canvas");n.height=e.videoHeight,n.width=e.videoWidth,n.getContext("2d").drawImage(e,0,0),n.toBlob(t)}))}startVideo(){this.getVideoStream().then((e=>{this.videoStream=e;const{videoPlayer:t}=this.refs;if(!t)return console.warn("Video player not found in template."),this.cameraMode=!1,void this.redraw();t.srcObject=e;const n=parseInt(this.component.webcamSize)||320;t.setAttribute("width",n),t.play()})).catch((e=>{console.error(e),this.cameraMode=!1,this.redraw()}))}stopVideo(){this.videoStream&&(this.stopVideoStream(this.videoStream),this.videoStream=null)}takePicture(){const{videoPlayer:e}=this.refs;if(!e)return console.warn("Video player not found in template."),this.cameraMode=!1,void this.redraw();this.getFrame(e).then((e=>{e.name=`photo-${Date.now()}.png`,this.upload([e]),this.cameraMode=!1,this.redraw()}))}browseFiles(e={}){return new Promise((t=>{const n=this.ce("input",Object.assign({type:"file",style:"height: 0; width: 0; visibility: hidden;",tabindex:"-1"},e));document.body.appendChild(n),n.addEventListener("change",(()=>{t(n.files),document.body.removeChild(n)}),!0),"function"==typeof n.trigger?n.trigger("click"):n.click()}))}set cameraMode(e){this._cameraMode=e,e?this.startVideo():this.stopVideo()}get cameraMode(){return this._cameraMode}get useWebViewCamera(){return this.imageUpload&&p}get imageUpload(){return Boolean(this.component.image)}get browseOptions(){const e={};this.component.multiple&&(e.multiple=!0),this.component.capture&&(e.capture=this.component.capture);const t=this.component.filePattern.trim()||"";if(this.isMobile.any)this.component.capture&&(t.includes("video")?e.accept="video/*":t.includes("audio")?e.accept="audio/*":e.accept="image/*");else{const n="image/*";!this.imageUpload||t&&"*"!==t?this.imageUpload&&!t.includes(n)?e.accept=`${n},${t}`:e.accept=t:e.accept=n}return e}deleteFile(e){const{options:t={}}=this.component;if(e&&["url","indexeddb","s3","googledrive","azure"].includes(this.component.storage)){const{fileService:n}=this;if(n&&"function"==typeof n.deleteFile)n.deleteFile(e,t);else{const t=this.options.formio||this.root&&this.root.formio;t&&t.makeRequest("",e.url,"delete")}}}attach(e){this.loadRefs(e,{fileDrop:"single",fileBrowse:"single",galleryButton:"single",cameraButton:"single",takePictureButton:"single",toggleCameraMode:"single",videoPlayer:"single",fileLink:"multiple",removeLink:"multiple",fileStatusRemove:"multiple",fileImage:"multiple",fileType:"multiple",fileProcessingLoader:"single"}),this.refs.input=[];const t=super.attach(e);if(this.refs.fileDrop){this.statuses.length||this.refs.fileDrop.removeAttribute("hidden");const e=this;this.addEventListener(this.refs.fileDrop,"dragover",(function(e){this.className="fileSelector fileDragOver",e.preventDefault()})),this.addEventListener(this.refs.fileDrop,"dragleave",(function(e){this.className="fileSelector",e.preventDefault()})),this.addEventListener(this.refs.fileDrop,"drop",(function(t){this.className="fileSelector",t.preventDefault(),e.upload(t.dataTransfer.files)}))}if(this.refs.fileBrowse&&this.addEventListener(this.refs.fileBrowse,"click",(e=>{e.preventDefault(),this.browseFiles(this.browseOptions).then((e=>{this.upload(e)}))})),this.refs.fileLink.forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.getFile(this.dataValue[t])}))})),this.refs.removeLink.forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{const n=this.dataValue[t];this.deleteFile(n),e.preventDefault(),this.splice(t),this.redraw()}))})),this.refs.fileStatusRemove.forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault();const n=this.statuses[t];l.default.pull(this.filesUploading,n.originalName),n.abort&&n.abort(),this.statuses.splice(t,1),this.redraw()}))})),this.refs.galleryButton&&p&&this.addEventListener(this.refs.galleryButton,"click",(e=>{e.preventDefault(),p.getPicture((e=>{window.resolveLocalFileSystemURL(e,(e=>{e.file((e=>{const t=new FileReader;t.onloadend=t=>{const n=new Blob([new Uint8Array(t.target.result)],{type:e.type});n.name=e.name,this.upload([n])},t.readAsArrayBuffer(e)}))}))}),(e=>{console.error(e)}),{sourceType:p.PictureSourceType.PHOTOLIBRARY})})),this.refs.cameraButton&&p&&this.addEventListener(this.refs.cameraButton,"click",(e=>{e.preventDefault(),p.getPicture((e=>{window.resolveLocalFileSystemURL(e,(e=>{e.file((e=>{const t=new FileReader;t.onloadend=t=>{const n=new Blob([new Uint8Array(t.target.result)],{type:e.type});n.name=e.name,this.upload([n])},t.readAsArrayBuffer(e)}))}))}),(e=>{console.error(e)}),{sourceType:p.PictureSourceType.CAMERA,encodingType:p.EncodingType.PNG,mediaType:p.MediaType.PICTURE,saveToPhotoAlbum:!0,correctOrientation:!1})})),this.refs.takePictureButton&&this.addEventListener(this.refs.takePictureButton,"click",(e=>{e.preventDefault(),this.takePicture()})),this.refs.toggleCameraMode&&this.addEventListener(this.refs.toggleCameraMode,"click",(e=>{e.preventDefault(),this.cameraMode=!this.cameraMode,this.redraw()})),this.refs.fileType.forEach(((e,t)=>{this.dataValue[t].fileType=this.dataValue[t].fileType||this.component.fileTypes[0].label,this.addEventListener(e,"change",(e=>{e.preventDefault();const n=this.component.fileTypes.find((t=>t.value===e.target.value));this.dataValue[t].fileType=n.label}))})),this.fileService){const e=[];this.filesReady=new Promise(((e,t)=>{this.filesReadyResolve=e,this.filesReadyReject=t})),this.refs.fileImage.forEach(((t,n)=>{e.push(this.loadImage(this.dataValue[n]).then((e=>t.src=e)))})),e.length?Promise.all(e).then((()=>{this.filesReadyResolve()})).catch((()=>this.filesReadyReject())):this.filesReadyResolve()}return t}fileSize(e,t,n,i,r){return`${(t=Math,n=t.log,r=n(e)/n(1024)|0,e/t.pow(1024,r)).toFixed(2)} ${r?`${"kMGTPEZY"[--r]}B`:"Bytes"}`}globStringToRegex(e){let t="",n=[];if((e=e.replace(/\s/g,"")).length>2&&"/"===e[0]&&"/"===e[e.length-1])t=e.substring(1,e.length-1);else{const i=e.split(",");if(i.length>1)for(let e=0;e<i.length;e++){const r=this.globStringToRegex(i[e]);r.regexp?(t+=`(${r.regexp})`,e<i.length-1&&(t+="|")):n=n.concat(r.excludes)}else e.startsWith("!")?n.push(`^((?!${this.globStringToRegex(e.substring(1)).regexp}).)*$`):(e.startsWith(".")&&(e=`*${e}`),t=`^${e.replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&")}$`,t=t.replace(/\\\*/g,".*").replace(/\\\?/g,"."))}return{regexp:t,excludes:n}}translateScalars(e){if("string"==typeof e){if(e.search(/kb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2));if(e.search(/mb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2)*1024);if(e.search(/gb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2)*1024*1024);if(e.search(/b/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/s/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/m/i)===e.length-1)return parseFloat(60*e.substring(0,e.length-1));if(e.search(/h/i)===e.length-1)return parseFloat(3600*e.substring(0,e.length-1))}return e}validatePattern(e,t){if(!t)return!0;const n=this.globStringToRegex(t);let i=!0;if(n.regexp&&n.regexp.length){const t=new RegExp(n.regexp,"i");i=!l.default.isNil(e.type)&&t.test(e.type)||!l.default.isNil(e.name)&&t.test(e.name)}return i=n.excludes.reduce(((t,n)=>{const i=new RegExp(n,"i");return t&&(l.default.isNil(e.type)||!i.test(e.type))&&(l.default.isNil(e.name)||!i.test(e.name))}),i),i}validateMinSize(e,t){return e.size+.1>=this.translateScalars(t)}validateMaxSize(e,t){return e.size-.1<=this.translateScalars(t)}upload(e){this.component.multiple||(this.statuses.length&&(this.statuses=[]),e=Array.prototype.slice.call(e,0,1)),this.component.storage&&e&&e.length&&(this.fileDropHidden=!0,Array.prototype.forEach.call(e,(e=>i(this,void 0,void 0,(function*(){const t=(0,s.uniqueName)(e.name,this.component.fileNameTemplate,this.evalContext()),n=e.name?e.name.replaceAll("<","&lt;").replaceAll(">","&gt;"):e.name,i={abort:()=>null,originalName:n,name:t,size:e.size,status:"info",message:this.t("Processing file. Please wait..."),hash:""};if("true"===this.root.form.submissionRevisions){this.statuses.push(i),this.redraw();const t=new c.default,n=yield new Promise(((n,i)=>{this.emit("fileUploadingStart"),t.md5(e,((e,t)=>e?i(e):n(t)))}));this.emit("fileUploadingEnd"),i.hash=n}this.filesUploading||(this.filesUploading=[]);const r=this.filesUploading.some((t=>t===e.name));this.filesUploading.push(e.name);const o=this.dataValue.some((t=>t.originalName===e.name)),a=this.statuses.findIndex((t=>t.originalName===e.name&&"error"===t.status));(o||r)&&(i.status="error",i.message=this.t(`File with the same name is already ${r?"being ":""}uploaded`)),-1!==a&&(this.statuses.splice(a,1),this.redraw()),this.component.filePattern&&!this.validatePattern(e,this.component.filePattern)&&(i.status="error",i.message=this.t("File is the wrong type; it must be {{ pattern }}",{pattern:this.component.filePattern})),this.component.fileMinSize&&!this.validateMinSize(e,this.component.fileMinSize)&&(i.status="error",i.message=this.t("File is too small; it must be at least {{ size }}",{size:this.component.fileMinSize})),this.component.fileMaxSize&&!this.validateMaxSize(e,this.component.fileMaxSize)&&(i.status="error",i.message=this.t("File is too big; it must be at most {{ size }}",{size:this.component.fileMaxSize}));const d=this.interpolate(this.component.dir||""),{fileService:h}=this;if(h||(i.status="error",i.message=this.t("File Service not provided.")),"true"!==this.root.form.submissionRevisions&&(this.statuses.push(i),this.redraw()),"error"!==i.status){this.component.privateDownload&&(e.private=!0);const{storage:r,options:o={}}=this.component,s=this.interpolate(this.component.url,{file:i});let a=null,c=null;this.root.everyComponent((e=>{var t,n;((null===(t=e.component)||void 0===t?void 0:t.submissionAccess)||(null===(n=e.component)||void 0===n?void 0:n.defaultPermission))&&(c=e.component.submissionAccess?e.component.submissionAccess:[{type:e.component.defaultPermission,roles:[]}],c.forEach((t=>{a=["admin","write","create"].includes(t.type)?e.component.key:null})))}));const p=this.component.fileKey||"file",f=a?this.currentForm.submission.data[a]._id:null;let m=null;if(this.root.options.fileProcessor)try{this.refs.fileProcessingLoader&&(this.refs.fileProcessingLoader.style.display="block");const t=(0,u.default)(this.fileService,this.root.options.fileProcessor);m=yield t(e,this.component.properties)}catch(e){return i.status="error",i.message=this.t("File processing has been failed."),this.fileDropHidden=!1,void this.redraw()}finally{this.refs.fileProcessingLoader&&(this.refs.fileProcessingLoader.style.display="none")}i.message=this.t("Starting upload..."),this.redraw();const g=h.uploadFile(r,m||e,t,d,(e=>{i.status="progress",i.progress=parseInt(100*e.loaded/e.total),delete i.message,this.redraw()}),s,o,p,c,f,(()=>{this.emit("fileUploadingStart",g)}),(e=>i.abort=e)).then((e=>{const t=this.statuses.indexOf(i);-1!==t&&this.statuses.splice(t,1),e.originalName=n,e.hash=i.hash,this.hasValue()||(this.dataValue=[]),this.dataValue.push(e),l.default.pull(this.filesUploading,e.originalName),this.fileDropHidden=!1,this.redraw(),this.triggerChange(),this.emit("fileUploadingEnd",g)})).catch((t=>{i.status="error",i.message="string"==typeof t?t:t.toString(),delete i.progress,this.fileDropHidden=!1,l.default.pull(this.filesUploading,e.name),this.redraw(),this.emit("fileUploadingEnd",g)}))}else this.filesUploading.splice(this.filesUploading.indexOf(e.name),1)})))))}getFile(e){const{options:t={}}=this.component,{fileService:n}=this;if(!n)return alert("File Service not provided");this.component.privateDownload&&(e.private=!0),n.downloadFile(e,t).then((e=>{e&&(["base64","indexeddb"].includes(e.storage)?(0,a.default)(e.url,e.originalName||e.name,e.type):window.open(e.url,"_blank"))})).catch((e=>{alert(e)}))}focus(){"beforeFocus"in this.parent&&this.parent.beforeFocus(this),this.refs.fileBrowse&&this.refs.fileBrowse.focus()}destroy(e=!1){this.stopVideo(),super.destroy(e)}}t.default=f},31771:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"defaultValue",ignore:!0}]},96251:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"placeholder",ignore:!0}]},97852:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(61066),o=i(n(96486));t.default=[{type:"select",input:!0,key:"storage",label:"Storage",placeholder:"Select your file storage provider",weight:0,tooltip:"Which storage to save the files in.",valueProperty:"value",dataSrc:"custom",data:{custom:()=>o.default.map(r.Formio.Providers.getProviders("storage"),((e,t)=>({label:e.title,value:t})))}},{type:"textfield",input:!0,key:"url",label:"Url",weight:10,placeholder:"Enter the url to post the files to.",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#server-side' target='_blank'>https://github.com/danialfarid/ng-file-upload#server-side</a> for how to set up the server.",conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"options.indexeddb",label:"Database",weight:10,placeholder:"Enter the indexeddb database name",conditional:{json:{in:[{var:"data.storage"},["indexeddb"]]}}},{type:"textfield",input:!0,label:"Table",key:"options.indexeddbTable",weight:10,placeholder:"Enter the name for indexeddb table",conditional:{json:{in:[{var:"data.storage"},["indexeddb"]]}}},{type:"textarea",key:"options",label:"Custom request options",tooltip:"Pass your custom xhr options(optional)",rows:5,editor:"ace",input:!0,weight:15,placeholder:'{\n "withCredentials": true,\n "headers": {\n "Authorization": "Basic <key>"\n }\n }',conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"fileKey",label:"File form-data key",weight:17,placeholder:"Enter the key name of a file for form data.",tooltip:"Key name that you would like to modify for the file while calling API request.",conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"dir",label:"Directory",placeholder:"(optional) Enter a directory for the files",tooltip:"This will place all the files uploaded in this field in the directory",weight:20,conditional:{json:{"!==":[{var:"data.storage"},"googledrive"]}}},{type:"textfield",input:!0,key:"dir",label:"Folder ID",placeholder:"(optional) Enter an ID of the folder for the files",tooltip:"This will place all the files uploaded in this field in the folder",weight:20,conditional:{json:{"===":[{var:"data.storage"},"googledrive"]}}},{type:"textfield",input:!0,key:"fileNameTemplate",label:"File Name Template",placeholder:'(optional) { {name} }-{ {guid} }"',tooltip:"Specify template for name of uploaded file(s). Regular template variables are available (`data`, `component`, `user`, `value`, `moment` etc.), also `fileName`, `guid` variables are available. `guid` part must be present, if not found in template, will be added at the end.",weight:25},{type:"checkbox",input:!0,key:"image",label:"Display as image(s)",tooltip:"Instead of a list of linked files, images will be rendered in the view.",weight:30},{type:"checkbox",input:!0,key:"uploadOnly",label:"Upload Only",tooltip:"When this is checked, will only allow you to upload file(s) and consequently the download, in this component, will be unavailable.",weight:33},{type:"checkbox",input:!0,key:"privateDownload",label:"Private Download",tooltip:"When this is checked, the file download will send a POST request to the download URL with the x-jwt-token header. This will allow your endpoint to create a Private download system.",weight:31,conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"imageSize",label:"Image Size",placeholder:"100",tooltip:"The image size for previewing images.",weight:40,conditional:{json:{"==":[{var:"data.image"},!0]}}},{type:"checkbox",input:!0,key:"webcam",label:"Enable web camera",tooltip:"This will allow using an attached camera to directly take a picture instead of uploading an existing file.",weight:32},{type:"textfield",input:!0,key:"webcamSize",label:"Webcam Width",placeholder:"320",tooltip:"The webcam size for taking pictures.",weight:38,conditional:{json:{"==":[{var:"data.webcam"},!0]}}},{type:"radio",input:!0,key:"capture",label:"Enable device capture",tooltip:"This will allow a mobile device to open the camera or microphone directly in capture mode.",optionsLabelPosition:"right",inline:!0,defaultValue:!1,values:[{label:"Disabled",value:"false"},{label:"Environment (rear camera)",value:"environment"},{label:"User (front camera)",value:"user"}]},{type:"datagrid",input:!0,label:"File Types",key:"fileTypes",tooltip:"Specify file types to classify the uploads. This is useful if you allow multiple types of uploads but want to allow the user to specify which type of file each is.",weight:11,components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}]},{type:"textfield",input:!0,key:"filePattern",label:"File Pattern",placeholder:".jpg,video/*,application/pdf",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#full-reference' target='_blank'>https://github.com/danialfarid/ng-file-upload#full-reference</a> for how to specify file patterns.",weight:50},{type:"textfield",input:!0,key:"fileMinSize",label:"File Minimum Size",placeholder:"1MB",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#full-reference' target='_blank'>https://github.com/danialfarid/ng-file-upload#full-reference</a> for how to specify file sizes.",weight:60},{type:"textfield",input:!0,key:"fileMaxSize",label:"File Maximum Size",placeholder:"10MB",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#full-reference' target='_blank'>https://github.com/danialfarid/ng-file-upload#full-reference</a> for how to specify file sizes.",weight:70}]},23391:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"unique",ignore:!0},{key:"validateOn",ignore:!0}]},49086:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(4219)),o=i(n(16601)),s=i(n(44709)),a=i(n(83679));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default},{label:"Form",key:"form",weight:10,components:s.default},{label:"Data",key:"data",weight:10,components:a.default}],...e)}},1705:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(93977)),s=i(n(4372)),a=i(n(26729)),l=n(76286),u=n(61066),c=i(n(66088));class d extends o.default{static schema(...e){return o.default.schema({label:"Form",type:"form",key:"form",src:"",reference:!0,form:"",path:"",tableView:!0},...e)}static get builderInfo(){return{title:"Nested Form",icon:"wpforms",group:"premium",documentation:"/userguide/form-building/premium-components#nested-form",weight:110,schema:d.schema()}}static savedValueTypes(){return[l.componentValueTypes.object]}init(){if(super.init(),this.formObj={display:this.component.display,settings:this.component.settings,components:this.component.components},this.valueChanged=!1,this.subForm=null,this.formSrc="",this.component.src&&(this.formSrc=this.component.src),this.component.src||this.options.formio||!this.component.form&&!this.component.path||(this.component.project?(this.formSrc=u.Formio.getBaseUrl(),(0,l.isMongoId)(this.component.project)&&(this.formSrc+="/project"),this.formSrc+=`/${this.component.project}`,this.options.project=this.formSrc):(this.formSrc=u.Formio.getProjectUrl(),this.options.project=this.formSrc),this.component.form?(0,l.isMongoId)(this.component.form)?this.formSrc+=`/form/${this.component.form}`:this.formSrc+=`/${this.component.form}`:this.component.path&&(this.formSrc+=`/${this.component.path}`)),!this.formSrc&&this.options.formio){const e=this.options.formio.formsUrl;if(this.component.form&&(0,l.isMongoId)(this.component.form))this.formSrc=`${e}/${this.component.form}`;else{const t=this.component.path||this.component.form;this.formSrc=`${e.replace(/\/form$/,"")}/${t}`}}return this.builderMode&&this.component.hasOwnProperty("formRevision")&&(this.component.revision=this.component.formRevision,delete this.component.formRevision),(this.component.revision||0===this.component.revision||this.component.formRevision||0===this.component.formRevision||this.component.revisionId)&&this.setFormRevision(this.component.revisionId||this.component.revision||this.component.formRevision),this.createSubForm()}get dataReady(){return this.subFormReady||Promise.resolve()}get defaultValue(){return this.subForm?super.defaultValue:null}get defaultSchema(){return d.schema()}get emptyValue(){return{data:{}}}get ready(){return this.subFormReady||Promise.resolve()}get useOriginalRevision(){var e,t;return(null===(e=this.component)||void 0===e?void 0:e.useOriginalRevision)&&!!(null===(t=this.formObj)||void 0===t?void 0:t.revisions)}setFormRevision(e){this.formSrc=this.formSrc.replace(/\/v\/[0-9a-z]+/,"");const t=Number.parseInt(e);isNaN(t)?this.subFormRevision=void 0:(this.subFormRevision=e,this.formSrc+=`/v/${e}`)}getComponent(e,t){"data"===(e=(0,l.getArrayFromComponentPath)(e))[0]&&e.shift();const n=`${this.path}.data.${(0,l.getStringFromComponentPath)(e)}`;if(this.subForm)return this.subForm.getComponent(e,t,n)}getSubOptions(e={}){return e.parentPath=`${this.path}.data.`,e.events=this.createEmitter(),r.default.set(e,"buttonSettings.showSubmit",!1),this.options?(this.options.base&&(e.base=this.options.base),this.options.project&&(e.project=this.options.project),(this.options.readOnly||this.component.disabled)&&(e.readOnly=this.options.readOnly||this.component.disabled),this.options.breadcrumbSettings&&(e.breadcrumbSettings=this.options.breadcrumbSettings),this.options.buttonSettings&&(e.buttonSettings=r.default.clone(this.options.buttonSettings)),this.options.viewAsHtml&&(e.viewAsHtml=this.options.viewAsHtml),this.options.language&&(e.language=this.options.language),this.options.template&&(e.template=this.options.template),this.options.templates&&(e.templates=this.options.templates),this.options.renderMode&&(e.renderMode=this.options.renderMode),this.options.attachMode&&(e.attachMode=this.options.attachMode),this.options.iconset&&(e.iconset=this.options.iconset),this.options.fileService&&(e.fileService=this.options.fileService),this.options.onChange&&(e.onChange=this.options.onChange),e):e}render(){if(this.builderMode)return super.render(this.component.label||"Nested form");const e=this.subForm?this.subForm.render():this.renderTemplate("loading");return super.render(e)}asString(e){return this.getValueAsString(e)}getValueAsString(e){return e?!e.data&&e._id?e._id:e.data&&Object.keys(e.data).length?"[Complex Data]":"No data provided":"No data provided"}attach(e){return this.builderMode?super.attach(e):super.attach(e).then((()=>(!this.isSubFormLazyLoad()||this.hasLoadedForm||this.subFormLoading||this.createSubForm(!0),this.subFormReady.then((()=>{if(this.empty(e),this.options.builder)this.setContent(e,this.ce("div",{class:"text-muted text-center p-2"},this.text(this.formObj.title)));else{if(this.setContent(e,this.render()),this.subForm&&(this.isNestedWizard&&(e=this.root.element),this.subForm.attach(e),this.valueChanged=this.hasSetValue,this.valueChanged||"submitted"===this.dataValue.state?this.restoreValue():this.setDefaultValue()),!this.builderMode&&this.component.modalEdit){const t=!!this.componentModal&&this.componentModal.isOpened,n=t?this.componentModal.currentValue:this.dataValue;this.componentModal=new s.default(this,e,t,n),this.setOpenModalElement()}this.calculateValue()}})))))}detach(){this.subForm&&this.subForm.detach(),super.detach()}get currentForm(){return this._currentForm}get hasLoadedForm(){return this.formObj&&this.formObj.components&&Array.isArray(this.formObj.components)&&this.formObj.components.length}set currentForm(e){this._currentForm=e,this.subForm&&this.subForm.getComponents().forEach((e=>{e.currentForm=this}))}get isRevisionChanged(){return r.default.isNumber(this.subFormRevision)&&r.default.isNumber(this.formObj._vid)&&this.formObj._vid!==this.subFormRevision}destroy(e=!1){this.subForm&&(this.subForm.destroy(e),this.subForm=null,this.subFormReady=null),super.destroy(e)}redraw(){return this.subForm&&(this.subForm.form=this.formObj,this.setSubFormDisabled(this.subForm)),super.redraw()}everyComponent(...e){this.subForm&&this.subForm.everyComponent(...e)}setSubFormDisabled(e){e.disabled=this.disabled}updateSubWizards(e){var t,n;if(this.isNestedWizard&&(null===(t=this.root)||void 0===t?void 0:t.subWizards)&&"wizard"===(null===(n=null==e?void 0:e._form)||void 0===n?void 0:n.display)){const t=this.root.subWizards.findIndex((e=>e.component.form===this.component.form));-1!==t?this.root.subWizards[t]=this:this.root.subWizards.push(this),this.emit("subWizardsUpdated",e)}}createSubForm(e){return this.subFormReady=this.loadSubForm(e).then((e=>{if(e)return(0,l.eachComponent)(e.components,(e=>{this.hideSubmitButton(e)})),this.subForm&&this.subForm.destroy(),new c.default(e,this.getSubOptions()).ready.then((e=>(this.subForm=e,this.subForm.currentForm=this,this.subForm.parent=this,this.subForm.parentVisible=this.visible,this.subForm.on("change",(()=>{this.subForm&&(this.dataValue=this.subForm.getValue(),this.triggerChange({noEmit:!0}))})),this.subForm.url=this.formSrc,this.subForm.nosubmit=!0,this.subForm.root=this.root,this.subForm.localRoot=this.isNestedWizard?this.localRoot:this.subForm,this.restoreValue(),this.valueChanged=this.hasSetValue,this.onChange(),this.subForm)))})).then((e=>(this.updateSubWizards(e),e))),this.subFormReady}hideSubmitButton(e){"button"===e.type&&("submit"===e.action||!e.action)&&(e.hidden=!0)}loadSubForm(e){return this.builderMode||this.isHidden()||this.isSubFormLazyLoad()&&!e?Promise.resolve():!this.hasLoadedForm||this.isRevisionChanged||this.options.pdf&&this.useOriginalRevision&&r.default.isNull(this.subForm)&&!this.subFormLoading?this.formSrc?(this.subFormLoading=!0,new u.Formio(this.formSrc).loadForm({params:{live:1}}).then((e=>(this.formObj=e,this.subFormLoading=!1,e))).catch((e=>(console.log(e),null)))):Promise.resolve():(this.root&&this.root.form&&this.root.form.config&&!this.formObj.config&&(this.formObj.config=this.root.form.config),Promise.resolve(this.formObj))}get subFormData(){var e;return(null===(e=this.dataValue)||void 0===e?void 0:e.data)||{}}checkComponentValidity(e,t,n,i){const r=(i=i||{}).silentCheck||!1;return this.subForm?this.subForm.checkValidity(this.subFormData,t,null,r):super.checkComponentValidity(e,t,n,i)}checkComponentConditions(e,t,n){const i=super.checkComponentConditions(e,t,n);return i?this.subForm?this.subForm.checkConditions(this.subFormData):(this.subFormReady&&this.subFormReady.then((()=>{if(this.subForm)return this.subForm.checkConditions(this.subFormData)})),i):i}calculateValue(e,t,n){return this.subForm?this.subForm.calculateValue(this.subFormData,t):super.calculateValue(e,t,n)}setPristine(e){super.setPristine(e),this.subForm&&this.subForm.setPristine(e)}get shouldSubmit(){return this.subFormReady&&(!this.component.hasOwnProperty("reference")||this.component.reference)&&!this.isHidden()}getSubFormData(){return"pdf"===r.default.get(this.subForm,"form.display")?this.subForm.getSubmission():Promise.resolve(this.dataValue)}submitSubForm(e){return this.shouldSubmit?this.subFormReady.then((()=>this.subForm?(this.subForm.nosubmit=!1,this.subForm.submitForm().then((e=>(this.subForm.loading=!1,this.subForm.showAllErrors=!1,this.dataValue=e.submission,this.dataValue))).catch((t=>(this.subForm.showAllErrors=!0,e?(this.subForm.onSubmissionError(t),Promise.reject(t)):{})))):this.dataValue)):this.getSubFormData()}beforePage(e){return e?this.submitSubForm(!0).then((()=>super.beforePage(e))):super.beforePage(e)}beforeSubmit(){var e;const t=this.dataValue;return t&&t._id&&t.form&&!(null===(e=this.subForm)||void 0===e?void 0:e.wizard)?(this.dataValue=t,Promise.resolve(this.dataValue)):this.submitSubForm(!1).then((()=>this.dataValue)).then((()=>super.beforeSubmit()))}isSubFormLazyLoad(){var e,t;return"wizard"===(null===(t=null===(e=this.root)||void 0===e?void 0:e._form)||void 0===t?void 0:t.display)&&this.component.lazyLoad}isHidden(){return!this.visible||!super.checkConditions(this.rootValue)}setValue(e,t={}){var n;const i=super.setValue(e,t);if(this.valueChanged=!0,this.subForm){const i=e._frid?"_frid":"_vid";this.useOriginalRevision&&(r.default.isNumber(e[i])||r.default.isNumber(e._fvid))&&r.default.isNumber(null===(n=this.subForm.form)||void 0===n?void 0:n[i])&&e._fvid!==this.subForm.form[i]?(this.setFormRevision(e._frid||e._fvid),this.createSubForm().then((()=>{this.attach(this.element)}))):this.setSubFormValue(e,t)}return i}setSubFormValue(e,t){if(e&&e._id&&this.subForm.formio&&r.default.isEmpty(e.data)){const t=e.form||this.formObj.form||this.component.form,n=`${this.subForm.formio.formsUrl}/${t}/submission/${e._id}`;this.subForm.setUrl(n,this.options),this.subForm.loadSubmission()}else this.subForm.setValue(e,t)}isEmpty(e=this.dataValue){return null===e||r.default.isEqual(e,this.emptyValue)||this.areAllComponentsEmpty(e.data)&&!e._id}areAllComponentsEmpty(e){let t=!0;return this.subForm?this.subForm.everyComponent((n=>{const i=r.default.get(e,n.key);t&=n.isEmpty(i)})):t=!1,t}getValue(){return this.subForm?this.subForm.getValue():this.dataValue}get errors(){let e=super.errors;return this.subForm&&(e=e.concat(this.subForm.errors)),e}updateSubFormVisibility(){this.subForm&&(this.subForm.parentVisible=this.visible)}get isNestedWizard(){var e,t,n,i,r;return"wizard"===(null===(t=null===(e=this.subForm)||void 0===e?void 0:e._form)||void 0===t?void 0:t.display)&&"wizard"===(null===(r=null===(i=null===(n=this.parent)||void 0===n?void 0:n.parent)||void 0===i?void 0:i._form)||void 0===r?void 0:r.display)}get visible(){return super.visible}set visible(e){const t=this.isNestedWizard;if(this._visible!==e){if(this._visible=e,!this.subForm&&e)return this.createSubForm(),this.subFormReady.then((()=>{this.updateSubFormVisibility(),this.clearOnHide()})),void this.redraw();this.updateSubFormVisibility(),this.clearOnHide(),t?this.rebuild():this.redraw()}!e&&t&&this.root.redraw()}get parentVisible(){return super.parentVisible}set parentVisible(e){if(this._parentVisible!==e){if(this._parentVisible=e,this.clearOnHide(),!this.subForm&&e)return this.createSubForm(),this.subFormReady.then((()=>{this.updateSubFormVisibility()})),void this.redraw();this.updateSubFormVisibility(),this.redraw()}}isInternalEvent(e){switch(e){case"focus":case"blur":case"componentChange":case"componentError":case"error":case"formLoad":case"languageChanged":case"render":case"checkValidity":case"initialized":case"submit":case"submitButton":case"nosubmit":case"updateComponent":case"submitDone":case"submissionDeleted":case"requestDone":case"nextPage":case"prevPage":case"wizardNavigationClicked":case"updateWizardNav":case"restoreDraft":case"saveDraft":case"saveComponent":case"pdfUploaded":return!0;default:return!1}}createEmitter(){const e=new a.default,t=e.emit,n=this;return e.emit=function(e,...i){const r=e.replace(`${n.options.namespace}.`,"");t.call(this,e,...i),n.isInternalEvent(r)||n.emit(r,...i)},e}deleteValue(){super.setValue(null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}}t.default=d},83679:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(66140));t.default=[r.default.javaScriptValue("Custom Default Value","customDefaultValue","customDefaultValue",120,'<p><h4>Example:</h4><pre>value = data.firstName + " " + data.lastName;</pre></p>','<p><h4>Example:</h4><pre>{"cat": [{"var": "data.firstName"}, " ", {"var": "data.lastName"}]}</pre>'),r.default.javaScriptValue("Calculated Value","calculateValue","calculateValue",130,"<p><h4>Example:</h4><pre>value = data.a + data.b + data.c;</pre></p>",'<p><h4>Example:</h4><pre>{"+": [{"var": "data.a"}, {"var": "data.b"}, {"var": "data.c"}]}</pre><p><a href="http://formio.github.io/formio.js/app/examples/calculated.html" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>'),{weight:140,type:"checkbox",label:"Clear Value When Hidden",key:"clearOnHide",defaultValue:!0,tooltip:"When a field is hidden, clear the value.",input:!0}]},16601:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabIndex",ignore:!0},{key:"autofocus",ignore:!0}]},44709:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"select",input:!0,dataSrc:"url",data:{url:"/form?limit=1000000&select=_id,title,display"},searchField:"title__regex",template:"<span>{{ item.title }}</span>",valueProperty:"_id",authenticate:!0,label:"Form",key:"form",weight:10,lazyLoad:!1,tooltip:"The form to load within this form component.",validate:{required:!0}},{label:"Lazy Load",inputType:"checkbox",defaultValue:!0,clearOnHide:!0,errorLabel:"",key:"lazyLoad",type:"checkbox",tooltip:"if it is checked, the subform is loaded after navigation to the page with this component within the wizard.",input:!0,customConditional({instance:e,data:t}){var n,i,r,o;const s=null===(i=null===(n=e.root)||void 0===n?void 0:n.getComponent("form"))||void 0===i?void 0:i.defaultDownloadedResources.find((e=>e._id===t.form)),a="wizard";return(null===(o=null===(r=e.options)||void 0===r?void 0:r.editForm)||void 0===o?void 0:o.display)===a&&s&&s.display!==a}},{type:"select",input:!0,dataSrc:"url",data:{url:"/form/{{ data.form }}/v"},searchField:"title__regex",template:"<span>{{ item._vid }}</span>",valueProperty:"_id",authenticate:!0,label:"Form Revision",key:"revision",weight:10,lazyLoad:!0,tooltip:"You can lock the nested form to a specific revision by choosing the revision number here.",customConditional:"show = !!data.form"},{type:"checkbox",input:!0,weight:19,key:"useOriginalRevision",label:"Use Original Revision while Submissions Viewing",tooltip:"Using this option will make form load the original revision (the one which was used to make a submission) when viewing a submission."},{type:"checkbox",input:!0,weight:20,key:"reference",label:"Save as reference",tooltip:"Using this option will save this field as a reference and link its value to the value of the origin record."}]},59916:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(40403)),s=i(n(84583));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:o.default},{key:"data",components:s.default},{key:"validation",ignore:!0},{key:"conditional",ignore:!0}],...e)}},60284:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(14297));class o extends r.default{static schema(...e){return r.default.schema({type:"hidden",tableView:!1,inputType:"hidden"},...e)}static get builderInfo(){return{title:"Hidden",group:"data",icon:"user-secret",weight:0,documentation:"/userguide/form-building/data-components#hidden",showPreview:!1,schema:o.schema()}}get defaultSchema(){return o.schema()}get inputInfo(){const e=super.elementInfo();return e.type="input",e.attr.type="hidden",e.changeEvent="change",e}get skipInEmail(){return!0}validateMultiple(){return!1}labelIsHidden(){return!0}get emptyValue(){return""}setValue(e,t={}){return this.updateValue(e,t)}getValue(){return this.dataValue}}t.default=o},84583:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0},{key:"clearOnHide",ignore:!0},{key:"allowCalculateOverride",ignore:!0}]},40403:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0},{key:"hidden",ignore:!0},{key:"tableView",ignore:!0},{key:"disabled",ignore:!0}]},13262:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(23407)),s=i(n(55494));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:s.default}],...e)}},39618:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(93977)),o=i(n(96486));class s extends r.default{static schema(...e){return r.default.schema({label:"HTML",type:"htmlelement",tag:"p",attrs:[],content:"",input:!1,persistent:!1},...e)}static get builderInfo(){return{title:"HTML Element",group:"layout",icon:"code",weight:0,documentation:"/userguide/form-building/layout-components#html-element",showPreview:!1,schema:s.schema()}}static savedValueTypes(){return[]}get defaultSchema(){return s.schema()}get content(){if(this.builderMode)return this.component.content;if("select"===this.component.content.replace(/(<(\/?[^>]+)>)/g,"").trim())return` ${this.component.content} `;const e=o.default.get(this.root,"submission",{}),t=this.component.content?this.interpolate(this.component.content,{metadata:e.metadata||{},submission:e,data:this.rootValue,row:this.data}):"";return this.sanitize(t,this.shouldSanitizeValue)}get singleTags(){return["br","img","hr"]}checkRefreshOn(e){super.checkRefreshOn(e),!this.builderMode&&this.component.refreshOnChange&&this.element&&!o.default.isUndefined(e)&&(o.default.isBoolean(e)&&e||!o.default.isEmpty(e))&&this.conditionallyVisible(this.data,this.row)&&this.setContent(this.element,this.renderContent())}renderContent(){const e=o.default.get(this.root,"submission",{});return this.renderTemplate("html",{component:this.component,tag:this.component.tag,attrs:(this.component.attrs||[]).map((t=>({attr:t.attr,value:this.interpolate(t.value,{metadata:e.metadata||{},submission:e,data:this.rootValue,row:this.data})}))),content:this.content,singleTags:this.singleTags})}render(){return super.render(this.renderContent())}attach(e){return this.loadRefs(e,{html:"single"}),super.attach(e)}}t.default=s},23407:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"disabled",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0},{type:"textfield",input:!0,key:"tag",weight:50,label:"HTML Tag",placeholder:"HTML Element Tag",tooltip:"The tag of this HTML element."},{type:"textfield",input:!0,key:"className",weight:60,label:"CSS Class",placeholder:"CSS Class",tooltip:"The CSS class for this HTML element."},{type:"datagrid",input:!0,label:"Attributes",key:"attrs",tooltip:"The attributes for this HTML element. Only safe attributes are allowed, such as src, href, and title.",weight:70,components:[{label:"Attribute",key:"attr",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}]},{type:"textarea",input:!0,editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'<div class="well">Content</div>',key:"content",weight:80},{weight:85,type:"checkbox",label:"Refresh On Change",tooltip:"Rerender the field whenever a value on the form changes.",key:"refreshOnChange",input:!0}]},55494:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"logic",components:[{key:"actions",components:[{key:"actionPanel",components:[{data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"},{label:"Content",value:"content",type:"string",component:"content"}]},key:"property"},{type:"textarea",editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'<div class="well">Content</div>',key:"content",weight:30,input:!0,customConditional:e=>"property"===e.row.type&&e.row.hasOwnProperty("property")&&"string"===e.row.property.type&&"content"===e.row.property.component}]}]}]}]},3278:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(88233)),o=i(n(48658)),s=i(n(86563)),a=i(n(39835)),l=i(n(93977)),u=i(n(4372)),c=i(n(31252)),d=i(n(72381)),h=i(n(64155)),p=i(n(95680)),f=i(n(45997)),m=i(n(37897)),g=i(n(78430)),v=i(n(29623)),y=i(n(16263)),b=i(n(98463)),w=i(n(38490)),_=i(n(1705)),k=i(n(60284)),C=i(n(14297)),O=i(n(10257)),x=i(n(24133)),E=i(n(92094)),S=i(n(39618)),M=i(n(99216)),P=i(n(72048)),A=i(n(87568)),T=i(n(21616)),D=i(n(31587)),j=i(n(38725)),R=i(n(30434)),V=i(n(22586)),I=i(n(95288)),L=i(n(39216)),F=i(n(18707)),N=i(n(99745)),U=i(n(29305)),$=i(n(55337)),z=i(n(70975)),B=i(n(40276)),H=i(n(19191)),q=i(n(89559)),W=i(n(4395)),Y=i(n(51068)),K=i(n(17817)),G=i(n(33503)),J=i(n(99101)),Z=i(n(93009));t.default={address:r.default,base:l.default,component:l.default,componentmodal:u.default,button:o.default,checkbox:s.default,columns:a.default,container:c.default,content:d.default,currency:h.default,datagrid:p.default,datamap:f.default,datetime:m.default,day:g.default,editgrid:v.default,email:y.default,input:C.default,field:x.default,multivalue:O.default,list:E.default,fieldset:b.default,file:w.default,form:_.default,hidden:k.default,htmlelement:S.default,nested:M.default,nesteddata:P.default,nestedarray:A.default,number:T.default,panel:D.default,password:j.default,phoneNumber:R.default,radio:V.default,recaptcha:I.default,resource:L.default,select:N.default,selectboxes:F.default,signature:U.default,survey:$.default,table:z.default,tabs:B.default,tags:H.default,textarea:q.default,textfield:W.default,time:Y.default,tree:K.default,unknown:G.default,url:J.default,well:Z.default}},70367:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(72125)),o=i(n(56203)),s=i(n(2142)),a=i(n(19573));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default},{key:"data",components:s.default},{key:"validation",components:a.default}],...e)}},21616:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(43281),o=n(47853),s=i(n(96486)),a=i(n(14297)),l=n(76286);class u extends a.default{static schema(...e){return a.default.schema({type:"number",label:"Number",key:"number",validate:{min:"",max:"",step:"any",integer:""}},...e)}static get builderInfo(){return{title:"Number",icon:"hashtag",group:"basic",documentation:"/userguide/form-building/form-components#number",weight:30,schema:u.schema()}}static get serverConditionSettings(){return u.conditionOperatorsSettings}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{operators:[...super.conditionOperatorsSettings.operators,"lessThan","greaterThan","lessThanOrEqual","greaterThanOrEqual"],valueComponent:e=>Object.assign(Object.assign({},e),{type:"number"})})}static savedValueTypes(e){return e=e||{},(0,l.getComponentSavedTypes)(e)||[l.componentValueTypes.number]}constructor(...e){var t,n;super(...e),this.validators=this.validators.concat(["min","max"]);const i=(0,l.getNumberSeparators)(this.options.language||navigator.language),r=s.default.get(this.component,"requireDecimal",!1);if(this.component.delimiter?(this.options.hasOwnProperty("thousandsSeparator")&&console.warn("Property 'thousandsSeparator' is deprecated. Please use i18n to specify delimiter."),this.delimiter=(null===(t=this.options.properties)||void 0===t?void 0:t.thousandsSeparator)||this.options.thousandsSeparator||i.delimiter):this.delimiter="",this.decimalLimit=(0,l.getNumberDecimalLimit)(this.component,r?2:20),this.decimalSeparator=0!==this.decimalLimit?this.options.decimalSeparator||(null===(n=this.options.properties)||void 0===n?void 0:n.decimalSeparator)||i.decimalSeparator:"",s.default.has(this.options,`languageOverride.${this.options.language}`)){const e=s.default.get(this.options,`languageOverride.${this.options.language}`);this.decimalSeparator=e.decimalSeparator,this.delimiter=e.delimiter}this.numberMask=this.createNumberMask()}createNumberMask(){return(0,r.createNumberMask)({prefix:"",suffix:"",requireDecimal:s.default.get(this.component,"requireDecimal",!1),thousandsSeparatorSymbol:s.default.get(this.component,"thousandsSeparator",this.delimiter),decimalSymbol:s.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:s.default.get(this.component,"decimalLimit",this.decimalLimit),allowNegative:s.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}get defaultSchema(){return u.schema()}get defaultValue(){let e=super.defaultValue;return e||0!==this.component.defaultValue||(e=this.component.defaultValue),!this.component.multiple&&s.default.isArray(e)&&(e=e[0]||0===e[0]?e[0]:null),e}isDecimalAllowed(){return s.default.get(this.component,"allowDecimal",!(this.component.validate&&this.component.validate.integer))}parseNumber(e){return e=e.split(this.delimiter).join("").replace(this.decimalSeparator,"."),this.component.validate&&this.component.validate.integer?parseInt(e,10):parseFloat(e)}setInputMask(e){let t="[0-9";t+=this.decimalSeparator||"",t+=this.delimiter||"",t+="]*",e.setAttribute("pattern",t),e.mask=(0,o.maskInput)({inputElement:e,mask:this.numberMask,shadowRoot:this.root?this.root.shadowRoot:null})}get inputInfo(){const e=super.inputInfo;return this.component.mask?e.attr.type="password":e.attr.type="text",e.attr.inputmode=this.isDecimalAllowed()?"decimal":"numeric",e.changeEvent="input",e}getValueAt(e){if(!this.refs.input.length||!this.refs.input[e])return null;const t=this.refs.input[e].value;return t&&"-_"!==t?this.parseNumber(t):null}setValueAt(e,t,n={}){return super.setValueAt(e,this.formatValue(this.parseValue(t)),n)}parseValue(e){"string"==typeof e&&(e=e.split(this.delimiter).join("").replace(this.decimalSeparator,"."));let t=parseFloat(e);return t=s.default.isNaN(t)?null:String(t).replace(".",this.decimalSeparator),t}formatValue(e){return this.component.requireDecimal&&e&&!e.includes(this.decimalSeparator)?`${e}${this.decimalSeparator}${s.default.repeat("0",this.decimalLimit)}`:this.component.requireDecimal&&e&&e.includes(this.decimalSeparator)?`${e}${s.default.repeat("0",this.decimalLimit-e.split(this.decimalSeparator)[1].length)}`:e}focus(){const e=this.refs.input[0];e&&(super.focus.call(this),e.setSelectionRange(0,e.value.length))}getMaskedValue(e){return(e=null===e?"0":e.toString()).includes(".")&&"."!==this.decimalSeparator&&(e=e.replace(".",this.decimalSeparator)),(0,o.conformToMask)(this.formatValue(e),this.numberMask).conformedValue}getValueAsString(e,t){return e||0===e?(e=this.getWidgetValueAsString(e,t),Array.isArray(e)?e.map((e=>this.getMaskedValue(e))).join(", "):this.getMaskedValue(e)):""}addFocusBlurEvents(e){super.addFocusBlurEvents(e),this.addEventListener(e,"blur",(()=>{e.value=this.getValueAsString(this.formatValue(this.parseValue(e.value)))}))}}t.default=u},2142:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"checkbox",input:!0,weight:70,key:"delimiter",label:"Use Thousands Separator",tooltip:"Separate thousands by local delimiter."},{type:"number",input:!0,weight:80,key:"decimalLimit",label:"Decimal Places",tooltip:"The maximum number of decimal places."},{type:"checkbox",input:!0,weight:90,key:"requireDecimal",label:"Require Decimal",tooltip:"Always show decimals, even if trailing zeros."},{key:"case",ignore:!0}]},56203:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"spellcheck",ignore:!0},{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},19573:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"unique",ignore:!0},{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{key:"validate.pattern",ignore:!0},{type:"number",label:"Minimum Value",key:"validate.min",input:!0,placeholder:"Minimum Value",tooltip:"The minimum value this field must have before the form can be submitted.",weight:150},{type:"number",label:"Maximum Value",key:"validate.max",input:!0,placeholder:"Maximum Value",tooltip:"The maximum value this field can have before the form can be submitted.",weight:160}]},64947:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(4219)),o=i(n(34917)),s=i(n(6344));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default},{key:"conditional",components:s.default}],...e)}},31587:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(99216)),o=n(76286),s=i(n(1705));class a extends r.default{static schema(...e){return r.default.schema({label:"Panel",type:"panel",key:"panel",title:"Panel",theme:"default",breadcrumb:"default",components:[],clearOnHide:!1,input:!1,tableView:!1,persistent:!1},...e)}static get builderInfo(){return{title:"Panel",icon:"list-alt",group:"layout",documentation:"/userguide/form-building/layout-components#panel",weight:30,schema:a.schema()}}get defaultSchema(){return a.schema()}get templateName(){return"panel"}static savedValueTypes(){return[]}constructor(...e){super(...e),this.noField=!0,this.on("componentError",(()=>{(0,o.hasInvalidComponent)(this)&&this.collapsed&&(this.collapsed=!1)}))}getComponent(e,t,n){var i;return(null===(i=this.root)||void 0===i?void 0:i.parent)instanceof s.default&&(e=e.replace(this._parentPath,"")),super.getComponent(e,t,n)}}t.default=a},6344:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(66140)),o=i(n(18446)),s=i(n(57557)),a=i(n(91966)),l=i(n(3674)),u=r.default.javaScriptValue("Advanced Next Page","nextPage","nextPage",110,"\n <p>You must assign the <strong>next</strong> variable with the API key of the next page.</p>\n <p>The global variable <strong>data</strong> is provided, and allows you to access the data of any form component, by using its API key.</p>\n <p>Also <strong>moment</strong> library is available, and allows you to manipulate dates in a convenient way.</p>\n <h5>Example</h5><pre>next = data.addComment ? 'page3' : 'page4';</pre>\n","\n <p>Submission data is available as JsonLogic variables, with the same api key as your components.</p>\n");t.default=[Object.assign(Object.assign({},u),{customConditional(e){let t=!1;if("wizard"===e.instance.options.editForm.display){const{components:n}=e.instance.options.editForm,i=e.instance.options.editComponent;n&&i&&(t=n.some((e=>{const t=(0,a.default)((0,l.default)(e),(0,l.default)(i))||[];return t.push("components"),(0,o.default)((0,s.default)(e,t),(0,s.default)(i,t))})))}return t}})]},34917:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(18446)),o=i(n(57557)),s=i(n(91966)),a=i(n(3674));t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0},{key:"label",hidden:!0,calculateValue:e=>e.data.title},{key:"tabindex",hidden:!0},{weight:1,type:"textfield",input:!0,placeholder:"Panel Title",label:"Title",key:"title",tooltip:"The title text that appears in the header of this panel."},{weight:20,type:"textarea",input:!0,key:"tooltip",label:"Tooltip",placeholder:"To add a tooltip to this field, enter text here.",tooltip:"Adds a tooltip to the side of this field."},{weight:30,type:"select",input:!0,label:"Theme",key:"theme",dataSrc:"values",data:{values:[{label:"Default",value:"default"},{label:"Primary",value:"primary"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Danger",value:"danger"},{label:"Warning",value:"warning"}]}},{weight:40,type:"fieldset",input:!1,components:[{type:"select",input:!0,label:"Breadcrumb Type",key:"breadcrumb",dataSrc:"values",data:{values:[{label:"Default",value:"default"},{label:"Condensed",value:"condensed"},{label:"Hidden",value:"none"}]}},{input:!0,type:"checkbox",label:"Allow click on Breadcrumb",key:"breadcrumbClickable",defaultValue:!0,conditional:{json:{"!==":[{var:"data.breadcrumb"},"none"]}}},{input:!0,type:"checkbox",label:"Allow Previous",key:"allowPrevious",defaultValue:!1,tooltip:"Determines if the breadcrumb bar is clickable or not for visited tabs.",conditional:{json:{"===":[{var:"data.breadcrumbClickable"},!1]}}},{weight:50,label:"Panel Navigation Buttons",optionsLabelPosition:"right",values:[{label:"Previous",value:"previous"},{label:"Cancel",value:"cancel"},{label:"Next",value:"next"}],inline:!0,type:"selectboxes",key:"buttonSettings",input:!0,inputType:"checkbox",defaultValue:{previous:!0,cancel:!0,next:!0}},{weight:55,label:"Navigate Wizard on Enter",type:"checkbox",key:"navigateOnEnter",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Use the Enter key to go forward through pages."},{weight:56,label:"Save on Enter",type:"checkbox",key:"saveOnEnter",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Use the Enter key to submit form on last page."},{weight:60,label:"Scroll up on page opening",type:"checkbox",key:"scrollToTop",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Scroll to the top of the wizard page when user navigates to it"}],customConditional(e){let t=!1;if("wizard"===e.instance.options.editForm.display){const{components:n}=e.instance.options.editForm,i=e.instance.options.editComponent;n&&i&&(t=n.some((e=>{const t=(0,s.default)((0,a.default)(e),(0,a.default)(i))||[];return t.push("components"),(0,r.default)((0,o.default)(e,t),(0,o.default)(i,t))})))}return t}},{weight:650,type:"checkbox",label:"Collapsible",tooltip:"If checked, this will turn this Panel into a collapsible panel.",key:"collapsible",input:!0},{weight:651,type:"checkbox",label:"Initially Collapsed",tooltip:"Determines the initial collapsed state of this Panel.",key:"collapsed",input:!0,conditional:{json:{"===":[{var:"data.collapsible"},!0]}}}]},98406:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(72125)),o=i(n(49658)),s=i(n(58554)),a=i(n(5680));t.default=function(...e){return(0,r.default)([{key:"data",components:s.default},{key:"display",components:o.default},{key:"validation",components:a.default}],...e)}},38725:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(4395)),o=i(n(96486));class s extends r.default{static schema(...e){return r.default.schema({type:"password",label:"Password",key:"password",protected:!0,tableView:!1},...e)}static get builderInfo(){return{title:"Password",icon:"asterisk",group:"basic",documentation:"/userguide/form-building/form-components#password",weight:40,schema:s.schema()}}get defaultSchema(){return o.default.omit(s.schema(),["protected","tableView"])}get inputInfo(){const e=super.inputInfo;return e.attr.type="password",e}get autocompleteDisableAttrName(){return"new-password"}}t.default=s},58554:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"inputFormat",ignore:!0},{key:"persistent",ignore:!0},{key:"protected",ignore:!0},{key:"dbIndex",ignore:!0},{key:"encrypted",ignore:!0},{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0},{key:"customDefaultValuePanel",ignore:!0},{key:"calculateValuePanel",ignore:!0},{key:"passwordInfo",weight:0,type:"htmlelement",tag:"div",className:"alert alert-info",content:"Password fields are automatically encrypted using 1-way salted bcrypt hashes. These hashes are also protected and not returned in the API."}]},49658:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{ignore:!0,key:"mask"},{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0}]},5680:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"unique",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},75288:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(72125)),o=i(n(93154));t.default=function(...e){return(0,r.default)([{key:"display",components:[{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},{key:"data",components:[{key:"case",ignore:!0}]},{key:"validation",components:o.default}],...e)}},30434:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(4395));class o extends r.default{static schema(...e){return r.default.schema({type:"phoneNumber",label:"Phone Number",key:"phoneNumber",inputType:"tel",inputMask:"(999) 999-9999",inputMode:"decimal",displayMask:""},...e)}static get builderInfo(){return{title:"Phone Number",group:"advanced",icon:"phone-square",weight:30,documentation:"/userguide/form-building/advanced-components#phone-number",schema:o.schema()}}get defaultSchema(){return o.schema()}}t.default=o},93154:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.pattern",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},13352:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(28345)),o=i(n(84992)),s=i(n(51745)),a=i(n(47001));t.default=function(...e){return(0,r.default)([{key:"display",components:s.default},{key:"data",components:o.default},{key:"validation",components:a.default}],...e)}},22586:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(92094)),s=n(61066),a=n(76286);class l extends o.default{static schema(...e){return o.default.schema({type:"radio",inputType:"radio",label:"Radio",key:"radio",values:[{label:"",value:""}],data:{url:""},fieldSet:!1},...e)}static get builderInfo(){return{title:"Radio",group:"basic",icon:"dot-circle-o",weight:80,documentation:"/userguide/form-building/form-components#radio",schema:l.schema()}}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{valueComponent:e=>({type:"select",dataSrc:"custom",valueProperty:"value",dataType:e.dataType||"",data:{custom:()=>e.values}})})}static savedValueTypes(e){const{boolean:t,string:n,number:i,object:r,array:o}=a.componentValueTypes,{dataType:s}=e;return(0,a.getComponentSavedTypes)(e)||("object"===s?[r,o]:a.componentValueTypes[s]?[a.componentValueTypes[s]]:[t,n,i,r,o])}constructor(e,t,n){super(e,t,n),this.previousValue=this.dataValue||null}get defaultSchema(){return l.schema()}get defaultValue(){let e=super.defaultValue;return e||!1!==this.component.defaultValue||(e=this.component.defaultValue),e}get inputInfo(){var e;const t=super.elementInfo();return t.type="input",t.changeEvent="click",t.attr.class="form-check-input",t.attr.name=t.attr.name+=`[${null===(e=this.root)||void 0===e?void 0:e.id}-${this.id}]`,t}get emptyValue(){return""}get isRadio(){return"radio"===this.component.inputType}get optionSelectedClass(){return"radio-selected"}get listData(){const e=r.default.get(this.root,"submission.metadata.listData",{});return r.default.get(e,this.path)}init(){super.init(),this.templateData={},this.validators=this.validators.concat(["select","onlyAvailableItems","availableValueProperty"]);let e=[];const t=r.default.debounce(((...t)=>(e=[],this.updateItems.apply(this,t))),100);this.triggerUpdate=(...n)=>("function"==typeof this.itemsLoadedResolve&&this.itemsLoadedResolve(),this.itemsLoaded=new Promise((e=>{this.itemsLoadedResolve=e})),n.length&&(e=n),t(...e)),this.itemsLoaded=new Promise((e=>{this.itemsLoadedResolve=e})),this.optionsLoaded=!1,this.loadedOptions=[],this.getTemplateKeys()}render(){return super.render(this.renderTemplate("radio",{input:this.inputInfo,inline:this.component.inline,values:"values"===this.component.dataSrc?this.component.values:this.loadedOptions,value:this.dataValue,row:this.row}))}attach(e){return this.loadRefs(e,{input:"multiple",wrapper:"multiple"}),this.refs.input.forEach(((e,t)=>{if(this.addEventListener(e,this.inputInfo.changeEvent,(()=>{this.updateValue(null,{modified:!0})})),this.component.values[t]&&this.addShortcut(e,this.component.values[t].shortcut),this.isRadio){let n=this.dataValue;r.default.isString(this.dataValue)||(n=r.default.toString(this.dataValue)),this.isSelectURL&&r.default.isObject(this.loadedOptions[t].value)?e.checked=r.default.isEqual(this.loadedOptions[t].value,this.dataValue):e.checked=n===e.value&&(e.value||"url"!==this.component.dataSrc),this.addEventListener(e,"keyup",(t=>{" "===t.key&&n===e.value&&(t.preventDefault(),this.updateValue(null,{modified:!0}))}))}})),this.triggerUpdate(),this.setSelectedClasses(),super.attach(e)}detach(e){e&&this.refs.input&&this.refs.input.forEach(((e,t)=>{this.component.values[t]&&this.removeShortcut(e,this.component.values[t].shortcut)})),super.detach()}getValue(){if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;let e=this.dataValue;return this.refs.input.forEach(((t,n)=>{t.checked&&(e=this.isSelectURL&&r.default.isObject(this.loadedOptions[n].value)?this.loadedOptions[n].value:t.value)})),e}validateValueProperty(){return"values"===this.component.dataSrc||!r.default.some(this.refs.wrapper,((e,t)=>this.refs.input[t].checked&&this.loadedOptions[t].invalid))}validateValueAvailability(e,t){if(!(0,a.boolValue)(e)||!t)return!0;const n=this.component.values;return!!n&&-1!==n.findIndex((({value:e})=>this.normalizeValue(e)===t))}getValueAsString(e){if(r.default.isObject(e)?e=JSON.stringify(e):r.default.isString(e)||(e=r.default.toString(e)),"values"!==this.component.dataSrc)return e;const t=r.default.find(this.component.values,(t=>t.value===e));return r.default.get(t,"label","")}setValueAt(e,t){if(this.refs.input&&this.refs.input[e]&&null!=t){const n=this.refs.input[e].value;this.refs.input[e].checked=n===t.toString()}}loadItems(e,t,n,i,r,o){this.optionsLoaded||(this.shouldLoad||!this.listData?("GET"===(r=r||"GET").toUpperCase()&&(o=null),i.ignoreCache=this.component.ignoreCache,i.header=n,this.loading=!0,s.Formio.makeRequest(this.options.formio,"select",e,r,o,i).then((e=>{this.loading=!1,this.error=null,this.setItems(e),this.optionsLoaded=!0,this.redraw()})).catch((e=>{this.handleLoadingError(e)}))):this.loadItemsFromMetadata())}loadItemsFromMetadata(){this.listData.forEach(((e,t)=>{this.loadedOptions[t]={label:this.itemTemplate(e)},r.default.isEqual(e,this.selectData||r.default.pick(this.dataValue,r.default.keys(e)))&&(this.loadedOptions[t].value=this.dataValue)})),this.optionsLoaded=!0,this.redraw()}setItems(e){const t=[];if(null==e||e.forEach(((e,n)=>{this.loadedOptions[n]={value:this.component.valueProperty?e[this.component.valueProperty]:e,label:this.component.valueProperty?this.itemTemplate(e,e[this.component.valueProperty]):this.itemTemplate(e,e,n)},t.push(this.templateData[this.component.valueProperty?e[this.component.valueProperty]:n]),!this.component.valueProperty&&this.isRadio||!(r.default.isUndefined(e[this.component.valueProperty])||!this.isRadio&&r.default.isObject(e[this.component.valueProperty])||!this.isRadio&&r.default.isBoolean(e[this.component.valueProperty]))||(this.loadedOptions[n].invalid=!0)})),this.isSelectURL){const e=this.root.submission;e.metadata||(e.metadata={}),e.metadata.listData||(e.metadata.listData={}),r.default.set(e.metadata.listData,this.path,t)}}setSelectedClasses(){if(this.refs.wrapper){const e=this.dataValue;this.refs.wrapper.forEach(((t,n)=>{const i=this.refs.input[n];("checkbox"===i.type?e[i.value]:i.value.toString()===e.toString())?(this.addClass(t,this.optionSelectedClass),i.setAttribute("checked","true")):(this.removeClass(t,this.optionSelectedClass),i.removeAttribute("checked"))}))}}updateValue(e,t){const n=super.updateValue(e,t);return n&&this.setSelectedClasses(),t&&t.modified&&this.isRadio?(this.currentValue=this.dataValue,t&&t.modified&&!t.noUpdateEvent&&this.previousValue===this.currentValue&&(this.resetValue(),this.triggerChange(t),this.setSelectedClasses()),this.previousValue=this.dataValue,n):(n&&(this.previousValue=this.dataValue),n)}normalizeValue(e){if(e===this.emptyValue)return e;if(!isNaN(parseFloat(e))&&isFinite(e)&&(e=+e),"true"===e&&(e=!0),"false"===e&&(e=!1),this.isSelectURL&&this.templateData&&this.templateData[e]){const t=this.root.submission;t.metadata.selectData||(t.metadata.selectData={}),r.default.set(t.metadata.selectData,this.path,this.templateData[e])}return super.normalizeValue(e)}}t.default=l},84992:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(81290)),o=i(n(96486));t.default=[{key:"multiple",ignore:!0},{key:"dataSrc",data:{values:[{label:"Values",value:"values"},{label:"URL",value:"url"}]},validate:{required:!0},onChange(e){e&&e.flags&&e.flags&&e.flags.modified&&(e.data.values=[{label:"",value:""}])}},{type:"datagrid",input:!0,label:"Values",key:"values",tooltip:"The radio button values that can be picked for this field. Values are text submitted with the form data. Labels are text that appears next to the radio buttons on the form.",weight:10,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:"value = _.camelCase(row.label);",validate:{required:!0}},{type:"select",input:!0,weight:180,label:"Shortcut",key:"shortcut",tooltip:"The shortcut key for this option.",dataSrc:"custom",valueProperty:"value",customDefaultValue:()=>"",template:"{{ item.label }}",data:{custom:e=>r.default.getAvailableShortcuts(o.default.get(e,"instance.options.editForm",{}),o.default.get(e,"instance.options.editComponent",{}))}}],conditional:{json:{"===":[{var:"data.dataSrc"},"values"]}}},{key:"template",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}}]},51745:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"placeholder",ignore:!0},{type:"select",input:!0,label:"Options Label Position",key:"optionsLabelPosition",tooltip:"Position for the label for options for this field.",dataSrc:"values",weight:32,defaultValue:"right",data:{values:[{label:"Top",value:"top"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Bottom",value:"bottom"}]}},{type:"checkbox",input:!0,key:"inline",label:"Inline Layout",tooltip:"Displays the checkboxes/radios horizontally.",weight:650}]},47001:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validateOn",ignore:!0},{key:"unique",ignore:!0},{weight:52,type:"checkbox",label:"Allow only available values",tooltip:"Check this if you would like to perform a validation check to ensure the selected value is an available option.",key:"validate.onlyAvailableItems",input:!0}]},37132:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(82573));t.default=function(){return r.default.baseEditForm([{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"conditional",ignore:!0},{key:"logic",ignore:!0}])}},95288:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(93977)),o=n(61066),s=i(n(27361)),a=i(n(23279));class l extends r.default{static schema(...e){return r.default.schema({type:"recaptcha",key:"recaptcha",label:"reCAPTCHA"},...e)}static get builderInfo(){return{title:"reCAPTCHA",group:"premium",icon:"refresh",documentation:"/userguide/form-building/premium-components#recaptcha",weight:40,schema:l.schema()}}static savedValueTypes(){return[]}render(){return this.recaptchaResult=null,this.builderMode?super.render("reCAPTCHA"):super.render("",!0)}createInput(){if(this.builderMode)this.append(this.text(this.name));else{const e=(0,s.default)(this.root.form,"settings.recaptcha.siteKey");if(e){const t=`https://www.google.com/recaptcha/api.js?render=${e}`;this.recaptchaApiReady=o.Formio.requireLibrary("googleRecaptcha","grecaptcha",t,!0)}else console.warn("There is no Site Key specified in settings in form JSON")}}createLabel(){}verify(e){const t=(0,s.default)(this.root.form,"settings.recaptcha.siteKey");if(t){if(!this.recaptchaApiReady){const e=`https://www.google.com/recaptcha/api.js?render=${(0,s.default)(this.root.form,"settings.recaptcha.siteKey")}`;this.recaptchaApiReady=o.Formio.requireLibrary("googleRecaptcha","grecaptcha",e,!0)}this.recaptchaApiReady&&(this.recaptchaVerifiedPromise=new Promise(((n,i)=>{this.recaptchaApiReady.then((()=>{this.isLoading||(this.isLoading=!0,grecaptcha.ready((0,a.default)((()=>{grecaptcha.execute(t,{action:e}).then((e=>this.sendVerificationRequest(e).then((({verificationResult:e,token:t})=>(this.recaptchaResult=Object.assign(Object.assign({},e),{token:t}),this.updateValue(this.recaptchaResult),n(e)))))).catch((()=>{this.isLoading=!1}))}),1e3)))})).catch((()=>i()))})).then((()=>{this.isLoading=!1})))}else console.warn("There is no Site Key specified in settings in form JSON")}beforeSubmit(){return this.recaptchaVerifiedPromise?this.recaptchaVerifiedPromise.then((()=>super.beforeSubmit())):super.beforeSubmit()}sendVerificationRequest(e){return o.Formio.makeStaticRequest(`${o.Formio.projectUrl}/recaptcha?recaptchaToken=${e}`).then((t=>({verificationResult:t,token:e})))}checkComponentValidity(e,t,n,i={}){e=e||this.rootValue,n=n||this.data;const{async:r=!1}=i;if(!r)return super.checkComponentValidity(e,t,n,i);const o=n[this.component.key];return o&&o.token?o.success?this.hook("validateReCaptcha",o.token,(()=>Promise.resolve(!0))).then((e=>e)).catch((e=>(this.setCustomValidity(e.message||e),!1))):(this.setCustomValidity("ReCAPTCHA: Token validation error"),Promise.resolve(!1)):(this.setCustomValidity("ReCAPTCHA: Token is not specified in submission"),Promise.resolve(!1))}normalizeValue(e){return this.recaptchaResult?this.recaptchaResult:e}}t.default=l},82573:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(76286);t.default=[{key:"eventType",label:"Type of event",tooltip:"Specify type of event that this reCAPTCHA would react to",type:"radio",values:[{label:"Form Load",value:"formLoad"},{label:"Button Click",value:"buttonClick"}],weight:650},{type:"select",input:!0,label:"Button Key",key:"buttonKey",dataSrc:"custom",valueProperty:"value",tooltip:"Specify key of button on this form that this reCAPTCHA should react to",weight:660,customConditional:e=>"buttonClick"===e.data.eventType,data:{custom:e=>(0,i.getContextButtons)(e)}},{key:"label",ignore:!0},{key:"hideLabel",ignore:!0},{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"errorLabel",ignore:!0},{key:"customClass",ignore:!0},{key:"tabindex",ignore:!0},{key:"multiple",ignore:!0},{key:"clearOnHide",ignore:!0},{key:"hidden",ignore:!0},{key:"mask",ignore:!0},{key:"dataGridLabel",ignore:!0},{key:"disabled",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0}]},42548:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(51763));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:o.default}],...e)}},39216:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(99745));class o extends r.default{static schema(...e){return r.default.schema({type:"resource",label:"Resource",key:"resource",dataSrc:"resource",resource:"",project:"",template:"<span>{{ item.data }}</span>"},...e)}static get builderInfo(){return{title:"Resource",icon:"files-o",weight:90,documentation:"/userguide/form-building/form-components#resource",schema:o.schema()}}init(){super.init(),this.component.dataSrc="resource",this.component.data={resource:this.component.resource}}get defaultSchema(){return o.schema()}}t.default=o},51763:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"resourceInfo",weight:-10,type:"htmlelement",tag:"div",className:"alert alert-danger",content:"This component has been deprecated and will be removed in a future version of Formio.js."},{type:"select",input:!0,dataSrc:"url",data:{url:"/form?type=resource&limit=1000000&select=_id,title"},authenticate:!0,template:"<span>{{ item.title }}</span>",valueProperty:"_id",label:"Resource",key:"resource",weight:50,tooltip:"The resource to be used with this field."},{type:"tags",input:!0,key:"selectFields",label:"Select Fields",tooltip:"The properties on the resource to return as part of the options. If left blank, all properties will be returned.",placeholder:"Enter the fields to select.",weight:51},{type:"tags",input:!0,key:"searchFields",label:"Search Fields",tooltip:"A list of search filters based on the fields of the resource. See the <a target='_blank' href='https://github.com/travist/resourcejs#filtering-the-results'>Resource.js documentation</a> for the format of these filters.",placeholder:"The fields to query on the server",weight:52},{type:"textfield",input:!0,key:"filter",label:"Filter Query",weight:53,description:"The filter query for results.",tooltip:"Use this to provide additional filtering using query parameters."},{type:"textfield",input:!0,key:"sort",label:"Sort Query",weight:53,description:"The sort query for results",tooltip:"Use this to provide additional sorting using query parameters"},{type:"textarea",input:!0,key:"template",label:"Item Template",editor:"ace",as:"html",rows:3,weight:53,tooltip:"The HTML template for the result data items."},{type:"checkbox",input:!0,weight:54,key:"addResource",label:"Add Resource",tooltip:"Allows to create a new resource while entering a submission.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",label:"Add Resource Label",key:"addResourceLabel",tooltip:"Set the text of the Add Resource button.",placeholder:"Add Resource",weight:55,input:!0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!!":{var:"data.addResource"}}]}}}]},84543:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(28345)),o=i(n(60421)),s=i(n(54190)),a=i(n(1445));t.default=function(...e){return(0,r.default)([{key:"display",components:s.default},{key:"data",components:o.default},{key:"validation",components:a.default}],...e)}},99745:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=n(61066),s=i(n(92094)),a=i(n(14297)),l=i(n(66088)),u=n(76286),c=i(n(74915));class d extends s.default{static schema(...e){return s.default.schema({type:"select",label:"Select",key:"select",idPath:"id",data:{values:[{label:"",value:""}],json:"",url:"",resource:"",custom:""},clearOnRefresh:!1,limit:100,valueProperty:"",lazyLoad:!0,filter:"",searchEnabled:!0,searchDebounce:.3,searchField:"",minSearch:0,readOnlyValue:!1,selectFields:"",selectThreshold:.3,uniqueOptions:!1,tableView:!0,fuseOptions:{include:"score",threshold:.3},indexeddb:{filter:{}},customOptions:{},useExactSearch:!1},...e)}static get builderInfo(){return{title:"Select",group:"basic",icon:"th-list",weight:70,documentation:"/userguide/form-building/form-components#select",schema:d.schema()}}static get serverConditionSettings(){return d.conditionOperatorsSettings}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{valueComponent:e=>Object.assign(Object.assign({},e),{type:"select"})})}static savedValueTypes(e){const{boolean:t,string:n,number:i,object:r,array:o}=u.componentValueTypes,{dataType:s,reference:a}=e;return(0,u.getComponentSavedTypes)(e)||(a?[r]:"object"===s?[r,o]:u.componentValueTypes[s]?[u.componentValueTypes[s]]:[t,n,i,r,o])}init(){super.init(),this.templateData={},this.validators=this.validators.concat(["select","onlyAvailableItems"]);let e=[];const t=r.default.debounce(((...t)=>(e=[],this.updateItems.apply(this,t))),100);this.triggerUpdate=(...n)=>("function"==typeof this.itemsLoadedResolve&&this.itemsLoadedResolve(),this.itemsLoaded=new Promise((e=>{this.itemsLoadedResolve=e})),n.length&&(e=n),t(...e)),this.selectOptions=[],this.itemsFromUrl&&(this.isFromSearch=!1,this.searchServerCount=null,this.defaultServerCount=null,this.isScrollLoading=!1,this.searchDownloadedResources=[],this.defaultDownloadedResources=[]),this.activated=!1,this.itemsLoaded=new Promise((e=>{this.itemsLoadedResolve=e})),this.isHtmlRenderMode()&&this.activate(),this.getTemplateKeys()}get dataReady(){return this.root&&this.root.submissionSet&&!this.attached?Promise.resolve():this.itemsLoaded}get defaultSchema(){return d.schema()}get emptyValue(){if(this.component.multiple)return[];if("json"===this.component.dataSrc&&this.component.data.json){const e=this.component.data.json[0];let t;return t=this.valueProperty?r.default.get(e,this.valueProperty):e,t&&"string"==typeof t?"":{}}return this.valueProperty?"":{}}get valueProperty(){return this.component.valueProperty?this.component.valueProperty:"values"===this.component.dataSrc?"value":""}get inputInfo(){const e=super.elementInfo();return e.type="select",e.changeEvent="change",e}get isSelectResource(){return"resource"===this.component.dataSrc}get itemsFromUrl(){return this.isSelectResource||this.isSelectURL}get isInfiniteScrollProvided(){return this.itemsFromUrl}get shouldDisabled(){return super.shouldDisabled||this.parentDisabled}get shouldInitialLoad(){return!("html5"===this.component.widget&&this.isEntireObjectDisplay()&&this.component.searchField&&this.dataValue)&&super.shouldLoad}isEntireObjectDisplay(){return"resource"===this.component.dataSrc&&"data"===this.valueProperty}selectValueAndLabel(e){const t=this.getOptionValue(this.isEntireObjectDisplay()&&!this.itemValue(e)?e:this.itemValue(e));return{value:t,label:this.itemTemplate(this.isEntireObjectDisplay()&&!r.default.isObject(e.data)?{data:e}:e,t)}}itemTemplate(e,t){if(!r.default.isNumber(e)&&r.default.isEmpty(e))return"";if(this.options.readOnly&&this.component.readOnlyValue)return this.itemValue(e);if(e&&!this.component.template){const t=e.label||e,n="string"==typeof t?this.t(t,{_userInput:!0}):t;return this.sanitize(n,this.shouldSanitizeValue)}if(this.component.multiple&&r.default.isArray(this.dataValue)?this.dataValue.find((e=>t===e)):this.dataValue===t){const n=this.selectData;if(n){const i=this.component.reference&&(null==t?void 0:t._id)?t._id.toString():t;this.templateData&&this.templateData[i]||this.getOptionTemplate(e,t),this.component.multiple?n[i]&&(e=n[i]):e=n}}if("string"==typeof e||"number"==typeof e)return this.sanitize(this.t(e,{_userInput:!0}),this.shouldSanitizeValue);if(Array.isArray(e))return e.map((e=>"string"==typeof e||"number"==typeof e?this.sanitize(this.t(e,{_userInput:!0}),this.shouldSanitizeValue):e));if(e.data){const t=/item\.data\.\w*/g.test(this.component.template);e.data=this.isEntireObjectDisplay()&&r.default.isObject(e.data)&&!t?JSON.stringify(e.data):e.data}return super.itemTemplate(e,t)}addOption(e,t,n={},i=(0,u.getRandomComponentId)()){if(r.default.isNil(t))return;const o=this.component.idPath?this.component.idPath.split(".").reduceRight(((e,t)=>({[t]:e})),i):{},s=Object.assign({value:this.getOptionValue(e),label:t},o);if((!this.component.uniqueOptions||!this.selectOptions.find((e=>r.default.isEqual(e.value,s.value))))&&(e&&this.selectOptions.push(s),this.refs.selectContainer&&"html5"===this.component.widget)){s.value&&r.default.isObject(s.value)&&r.default.isEmpty(s.value)&&(s.value="");const t=document.createElement("div");t.innerHTML=this.sanitize(this.renderTemplate("selectOption",{selected:r.default.isEqual(this.getOptionValue(this.dataValue),s.value),option:s,attrs:n,id:i,useId:(""===this.valueProperty||this.isEntireObjectDisplay())&&r.default.isObject(e)&&i}),this.shouldSanitizeValue).trim(),s.element=t.firstChild,this.refs.selectContainer.appendChild(s.element)}}addValueOptions(e){e=e||[];let t=!1,n=this.dataValue;if(this.options.pdf&&!e.length&&"url"===this.component.dataSrc&&this.valueProperty&&(n=Array.isArray(n)?n.map((e=>r.default.set({},this.valueProperty,e))):r.default.set({},this.valueProperty,n)),!this.selectOptions.length){const i=Array.isArray(n)&&this.component.multiple?n:[n];t=this.addCurrentChoices(i,e),t||this.component.multiple||this.addPlaceholder()}return t}disableInfiniteScroll(){this.downloadedResources&&(this.downloadedResources.serverCount=this.downloadedResources.length,this.serverCount=this.downloadedResources.length)}setItems(e,t){var n,i;if("string"==typeof e)try{e=JSON.parse(e)}catch(t){console.warn(t.message),e=[]}if(this.component.onSetItems&&"function"==typeof this.component.onSetItems){const t=this.component.onSetItems(this,e);t&&(e=t)}let o;if(!this.choices&&this.refs.selectContainer&&this.empty(this.refs.selectContainer),this.component.selectValues&&(e=r.default.get(e,this.component.selectValues,e)||[]),this.itemsFromUrl){o=!!this.isSelectURL&&r.default.isEqual(e,this.downloadedResources);const t=this.component.limit>e.length,n=o&&this.downloadedResources&&this.downloadedResources.length===e.length;t?this.disableInfiniteScroll():n?this.selectOptions=[]:this.serverCount=e.serverCount}if(this.isScrollLoading&&e)o||(this.downloadedResources=this.downloadedResources?this.downloadedResources.concat(e):e),this.downloadedResources.serverCount=e.serverCount||this.downloadedResources.serverCount;else if(this.downloadedResources=e||[],this.selectOptions=[],!r.default.isEmpty(this.dataValue)&&this.component.idPath){const t=r.default.get(this.dataValue,this.component.idPath,null),n=!r.default.isNil(t)&&e.find((e=>r.default.get(e,this.component.idPath)===t));n&&this.setValue(n)}if(t||this.addValueOptions(e),"html5"!==this.component.widget||this.component.placeholder||this.addOption(null,""),r.default.each(e,((e,t)=>{if(this.root&&this.root.options.editForm&&this.root.options.editForm._id&&this.root.options.editForm._id===e._id)return;const n=this.selectValueAndLabel(e);this.addOption(n.value,n.label,{},r.default.get(e,this.component.idPath,String(t)))})),this.choices?this.choices.setChoices(this.selectOptions,"value","label",!0):this.loading,this.isScrollLoading=!1,this.loading=!1,!t||!(null===(i=null===(n=this.choices)||void 0===n?void 0:n.input)||void 0===i?void 0:i.isFocussed))if(!this.isEmpty()||this.isRemoveButtonPressed)this.setValue(this.dataValue,{noUpdateEvent:!0});else if(this.shouldAddDefaultValue&&!this.options.readOnly){const e=this.defaultValue;this.isEmpty(e)||this.setValue(e)}this.itemsLoadedResolve()}getSingleItemValueForHTMLMode(e){var t;const n=null===(t=this.selectOptions)||void 0===t?void 0:t.find((({value:t})=>r.default.isEqual(t,e)));return n&&n.label||e}itemValueForHTMLMode(e){return this.isHtmlRenderMode()?Array.isArray(e)?e.map((e=>Array.isArray(e)?this.itemValueForHTMLMode(e):this.getSingleItemValueForHTMLMode(e))).join(", "):this.getSingleItemValueForHTMLMode(e):super.itemValueForHTMLMode(e)}get defaultValue(){let e=super.defaultValue;return e||!1!==this.component.defaultValue&&0!==this.component.defaultValue||(e=this.component.defaultValue),e}get loadingError(){return!this.component.refreshOn&&!this.component.refreshOnBlur&&this.networkError}loadItems(e,t,n,i,s,a){if(i=i||{},!this.shouldLoad||!this.itemsFromUrl&&this.options.readOnly)return this.isScrollLoading=!1,this.loading=!1,void this.itemsLoadedResolve();const l=parseInt(this.component.minSearch,10);if(this.component.searchField&&l>0&&(!t||t.length<l))return this.setItems([]);"GET"===(s=s||"GET").toUpperCase()&&(a=null);const u=this.component.limit||100,c=this.isScrollLoading?this.selectOptions.length:0,d=this.component.disableLimit?{}:{limit:u,skip:c};if(e=this.interpolate(e,{formioBase:o.Formio.getBaseUrl(),search:t,limit:u,skip:c,page:Math.abs(Math.floor(c/u))}),this.component.searchField&&t){const e=Array.isArray(t)?t.join(","):"object"==typeof t?JSON.stringify(t):t;d[this.component.searchField]=this.component.searchField.endsWith("__regex")?r.default.escapeRegExp(e):e}this.component.selectFields&&(d.select=this.component.selectFields),this.component.sort&&(d.sort=this.component.sort),r.default.isEmpty(d)||(e+=(e.includes("?")?"&":"?")+o.Formio.serialize(d,(e=>this.interpolate(e)))),this.component.filter&&(e+=(e.includes("?")?"&":"?")+this.interpolate(this.component.filter)),i.ignoreCache=this.component.ignoreCache,i.header=n,this.loading=!0,o.Formio.makeRequest(this.options.formio,"select",e,s,a,i).then((e=>{this.loading=!1,this.error=null,this.setItems(e,!!t)})).catch((e=>{this.itemsFromUrl&&(this.setItems([]),this.disableInfiniteScroll()),this.isScrollLoading=!1,this.handleLoadingError(e)}))}handleLoadingError(e){this.loading=!1,e.networkError&&(this.networkError=!0),this.itemsLoadedResolve(),this.emit("componentError",{component:this.component,message:e.toString()}),console.warn(`Unable to load resources for ${this.key}`)}get requestHeaders(){const e=new o.Formio.Headers;if(this.component.data&&this.component.data.headers)try{r.default.each(this.component.data.headers,(t=>{t.key&&e.set(t.key,this.interpolate(t.value))}))}catch(e){console.warn(e.message)}return e}getCustomItems(){const e=this.evaluate(this.component.data.custom,{values:[]},"values");return this.asyncValues=(0,u.isPromise)(e),e}asyncCustomValues(){return r.default.isBoolean(this.asyncValues)||this.getCustomItems(),this.asyncValues}updateCustomItems(e){if(this.asyncCustomValues()){if(!e&&!this.active)return void this.itemsLoadedResolve();this.loading=!0,this.getCustomItems().then((e=>{this.loading=!1,this.setItems(e||[])})).catch((e=>{this.handleLoadingError(e)}))}else this.setItems(this.getCustomItems()||[])}isEmpty(e=this.dataValue){return super.isEmpty(e)||void 0===e}refresh(e,{instance:t}){this.component.clearOnRefresh&&t&&!t.pristine&&this.setValue(this.emptyValue),this.updateItems(null,!0)}get additionalResourcesAvailable(){return r.default.isNil(this.serverCount)||this.serverCount>this.downloadedResources.length}get serverCount(){return this.isFromSearch?this.searchServerCount:this.defaultServerCount}set serverCount(e){this.isFromSearch?this.searchServerCount=e:this.defaultServerCount=e}get downloadedResources(){return this.isFromSearch?this.searchDownloadedResources:this.defaultDownloadedResources}set downloadedResources(e){this.isFromSearch?this.searchDownloadedResources=e:this.defaultDownloadedResources=e}addPlaceholder(){this.component.placeholder&&this.addOption("",this.component.placeholder,{placeholder:!0})}activate(){!this.loading&&this.active||this.setLoadingItem(),this.active||(this.activated=!0,this.triggerUpdate())}setLoadingItem(e=!1){this.choices?e?this.choices.setChoices([{value:`${this.id}-loading`,label:"Loading...",disabled:!0}],"value","label"):this.choices.setChoices([{value:"",label:`<i class="${this.iconClass("refresh")}" style="font-size:1.3em;"></i>`,disabled:!0}],"value","label",!0):"url"!==this.component.dataSrc&&"resource"!==this.component.dataSrc||this.addOption("",this.t("loading..."))}get active(){return!this.component.lazyLoad||this.activated}render(){const e=this.inputInfo;return e.attr=e.attr||{},e.multiple=this.component.multiple,super.render(this.wrapElement(this.renderTemplate("select",{input:e,selectOptions:"",index:null})))}wrapElement(e){return this.component.addResource&&!this.options.readOnly?this.renderTemplate("resourceAdd",{element:e}):e}choicesOptions(){const e=!this.component.hasOwnProperty("searchEnabled")||this.component.searchEnabled,t=this.t(this.component.placeholder,{_userInput:!0});let n=this.component.customOptions||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){console.warn(e.message),n={}}const i={maxPatternLength:1e3,distance:1e3};return Object.assign({removeItemButton:!this.component.disabled&&r.default.get(this.component,"removeItemButton",!0),itemSelectText:"",classNames:{containerOuter:"choices form-group formio-choices",containerInner:this.transform("class","form-control ui fluid selection dropdown")},addItemText:!1,allowHTML:!0,placeholder:!!this.component.placeholder,placeholderValue:t,noResultsText:this.t("No results found"),noChoicesText:this.t("No choices to choose from"),searchPlaceholderValue:this.t("Type to search"),shouldSort:!1,position:this.component.dropdown||"auto",searchEnabled:e,searchChoices:!this.component.searchField,searchFields:r.default.get(this,"component.searchFields",["label"]),shadowRoot:this.root?this.root.shadowRoot:null,fuseOptions:this.component.useExactSearch?Object.assign({tokenize:!0,matchAllTokens:!0},i):Object.assign({},r.default.get(this,"component.fuseOptions",{}),Object.assign({include:"score",threshold:r.default.get(this,"component.selectThreshold",.3)},i)),valueComparer:r.default.isEqual,resetScrollPosition:!1},n)}attach(e){var t,n,i;const s=super.attach(e);this.loadRefs(e,{selectContainer:"single",addResource:"single",autocompleteInput:"single"});const u=this.refs.autocompleteInput;u&&this.addEventListener(u,"change",(e=>{this.setValue(e.target.value)}));const d=this.refs.selectContainer;if(!d)return;if(this.addEventListener(d,this.inputInfo.changeEvent,(()=>this.updateValue(null,{modified:!0}))),this.attachRefreshOnBlur(),"html5"===this.component.widget)return this.addFocusBlurEvents(d),this.triggerUpdate(null,!0),this.visible&&this.setItems(this.selectOptions||[]),this.focusableElement=d,this.addEventListener(d,"focus",(()=>this.update())),void this.addEventListener(d,"keydown",(e=>{const{key:t}=e;["Backspace","Delete"].includes(t)&&this.setValue(this.emptyValue)}));const h=d.tabIndex;this.addPlaceholder(),this.i18next&&d.setAttribute("dir",this.i18next.dir()),(null===(i=null===(n=null===(t=this.choices)||void 0===t?void 0:t.containerOuter)||void 0===n?void 0:n.element)||void 0===i?void 0:i.parentNode)&&this.choices.destroy();const p=this.choicesOptions();if(c.default&&(this.choices=new c.default(d,p),this.selectOptions&&this.selectOptions.length&&this.choices.setChoices(this.selectOptions,"value","label",!0),this.component.multiple?this.focusableElement=this.choices.input.element:(this.focusableElement=this.choices.containerInner.element,this.choices.containerOuter.element.setAttribute("tabIndex","-1"),this.addEventListener(this.choices.containerOuter.element,"focus",(()=>this.focusableElement.focus()))),a.default.prototype.addFocusBlurEvents.call(this,this.focusableElement),this.itemsFromUrl&&!this.component.noRefreshOnScroll&&(this.scrollList=this.choices.choiceList.element,this.addEventListener(this.scrollList,"scroll",(()=>this.onScroll()))),p.removeItemButton&&this.addEventListener(d,"removeItem",(()=>{this.isRemoveButtonPressed=!0}))),this.focusableElement.setAttribute("tabIndex",h),this.component.searchField){this.choices&&this.choices.input&&this.choices.input.element&&this.addEventListener(this.choices.input.element,"input",(e=>{this.isFromSearch=!!e.target.value,e.target.value?(this.serverCount=null,this.downloadedResources=[]):this.triggerUpdate()})),this.addEventListener(d,"choice",(()=>{this.component.multiple&&"resource"===this.component.dataSrc&&this.isFromSearch&&this.triggerUpdate(),this.isFromSearch=!1}));const e=this.component.searchField&&(this.isSelectResource||this.isSelectURL)?1e3*(0===this.component.searchDebounce?0:this.component.searchDebounce||this.defaultSchema.searchDebounce):0,t=e=>{this.triggerUpdate(e.detail.value)};this.addEventListener(d,"search",r.default.debounce(t,e)),this.addEventListener(d,"stopSearch",(()=>this.triggerUpdate())),this.addEventListener(d,"hideDropdown",(()=>{this.choices&&this.choices.input&&this.choices.input.element&&(this.choices.input.element.value=""),this.updateItems(null,!0)}))}return this.addEventListener(d,"showDropdown",(()=>this.update())),this.choices&&p.placeholderValue&&this.choices._isSelectOneElement&&(this.addPlaceholderItem(p.placeholderValue),this.addEventListener(d,"removeItem",(()=>{this.addPlaceholderItem(p.placeholderValue)}))),this.addValueOptions(),this.setChoicesValue(this.dataValue),this.isSelectResource&&this.refs.addResource&&this.addEventListener(this.refs.addResource,"click",(e=>{e.preventDefault();const t=this.ce("div"),n=this.createModal(t),i=`${r.default.get(this.root,"formio.projectUrl",o.Formio.getProjectUrl())}/form/${this.component.data.resource}`;new l.default(t,i,{}).ready.then((e=>{e.on("submit",(e=>{let t=this.valueProperty?r.default.get(e,this.valueProperty):e;this.component.multiple&&(t=[...this.dataValue,t]),this.setValue(t),this.triggerUpdate(),n.close()}))}))})),this.disabled=this.shouldDisabled,this.triggerUpdate(),s}get isLoadingAvailable(){return!this.isScrollLoading&&this.additionalResourcesAvailable}onScroll(){this.isLoadingAvailable&&(this.isScrollLoading=!0,this.setLoadingItem(!0),this.triggerUpdate(this.choices.input.element.value))}attachRefreshOnBlur(){this.component.refreshOnBlur&&this.on("blur",(e=>{this.checkRefreshOn([{instance:e,value:e.dataValue}],{fromBlur:!0})}))}addPlaceholderItem(e){this.choices._store.activeItems.length||this.choices._addItem({value:"",label:e,choiceId:0,groupId:-1,customProperties:null,placeholder:!0,keyCode:null})}update(){"custom"===this.component.dataSrc&&this.updateCustomItems(),this.activate()}set disabled(e){super.disabled=e,this.choices&&(e?(this.setDisabled(this.choices.containerInner.element,!0),this.focusableElement.removeAttribute("tabIndex"),this.choices.disable()):(this.setDisabled(this.choices.containerInner.element,!1),this.focusableElement.setAttribute("tabIndex",this.component.tabindex||0),this.choices.enable()))}get disabled(){return super.disabled}set visible(e){e&&!this._visible!=!e&&this.triggerUpdate(),super.visible=e}get visible(){return super.visible}addCurrentChoices(e,t,n){if(!e)return!1;const i=[],o=e.reduce(((e,o)=>{if(!o||r.default.isEmpty(o))return e;let s=!1;const a=t===this.selectOptions;return t&&t.length&&r.default.each(t,(e=>{if(e._id&&o._id&&e._id===o._id)return s=!0,!1;const t=n?e.value:this.itemValue(e,a);return s|=r.default.isEqual(t,o),!s})),s?s||e:(i.push(this.selectValueAndLabel(o)),!0)}),!1);return i.length&&(this.choices&&this.choices.setChoices(i,"value","label"),i.map((e=>{this.addOption(e.value,e.label)}))),o}getValueAsString(e){return this.component.multiple&&Array.isArray(e)?e.map(this.asString.bind(this)).join(", "):this.asString(e)}getValue(){if(this.viewOnly||this.loading||!this.component.lazyLoad&&!this.selectOptions.length||!this.element)return this.dataValue;let e=this.emptyValue;if(this.choices)e=this.choices.getValue(!0),!this.component.multiple&&this.component.placeholder&&e===this.t(this.component.placeholder,{_userInput:!0})&&(e=this.emptyValue);else if(this.refs.selectContainer){if(e=this.refs.selectContainer.value,""===this.valueProperty||this.isEntireObjectDisplay()){if(""===e)return{};const t=this.selectOptions[e]||this.selectOptions.find((t=>t.id===e));t&&r.default.isObject(t.value)&&(e=t.value)}}else e=this.dataValue;return null==e&&(e=""),e}redraw(){const e=super.redraw();return this.triggerUpdate(),e}normalizeSingleValue(e,t){var n;if(r.default.isNil(e))return;const i=r.default.isObject(e);if(i&&0===Object.keys(e).length)return e;if(t){const t=this.component.reference&&(null==e?void 0:e._id)?e._id.toString():e,o=!i||this.component.reference;if(t&&o&&this.templateData&&this.templateData[t]&&(null===(n=this.root)||void 0===n?void 0:n.submission)){const e=this.root.submission;e.metadata||(e.metadata={}),e.metadata.selectData||(e.metadata.selectData={});let n=this.templateData[t];if(this.component.multiple){n={};const e=this.dataValue;e&&r.default.isArray(e)&&e.length&&e.forEach((e=>{const t=this.component.reference?e._id.toString():e;n[t]=this.templateData[t]}))}r.default.set(e.metadata.selectData,this.path,n)}}const o=this.component.dataType||"auto",s={value:e,number(){const t=Number(this.value),n=e.toString()===t.toString();return!Number.isNaN(t)&&Number.isFinite(t)&&""!==e&&n&&(this.value=t),this},boolean(){return!r.default.isString(this.value)||"true"!==this.value.toLowerCase()&&"false"!==this.value.toLowerCase()||(this.value="true"===this.value.toLowerCase()),this},string(){return this.value=String(this.value),this},object(){return this},auto(){return r.default.isObject(this.value)?this.value=this.object().value:this.value=this.string().number().boolean().value,this}};try{return s[o]().value}catch(t){return console.warn("Failed to normalize value",t),e}}normalizeValue(e){return this.component.multiple&&Array.isArray(e)?e.map((e=>this.normalizeSingleValue(e,!0))):super.normalizeValue(this.normalizeSingleValue(e,!0))}setValue(e,t={}){const n=this.dataValue;if("html5"===this.component.widget&&(r.default.isEqual(e,n)||r.default.isEqual(n,{})&&r.default.isEqual(t,{}))&&!t.fromSubmission)return!1;const i=this.updateValue(e,t);e=this.dataValue;const o=!this.isEmpty(n),s=!this.isEmpty(e);if(this.component.multiple&&Array.isArray(e)?e=e.map((e=>"boolean"==typeof e||"number"==typeof e?e.toString():e)):"boolean"!=typeof e&&"number"!=typeof e||(e=e.toString()),this.isHtmlRenderMode()&&t&&t.fromSubmission&&i)return this.itemsLoaded.then((()=>{this.redraw()})),i;if(this.loading)return i;if(this.isInitApiCallNeeded(s)){this.loading=!0,this.lazyLoadInit=!0;const t=this.component.searchField||this.component.valueProperty;return this.triggerUpdate(r.default.get(e.data||e,t,e),!0),i}return this.itemsLoaded.then((()=>{this.addValueOptions(),this.setChoicesValue(e,o,t)})),i}isInitApiCallNeeded(e){return this.component.lazyLoad&&!this.lazyLoadInit&&!this.active&&!this.selectOptions.length&&e&&this.shouldInitialLoad&&this.visible&&(this.component.searchField||this.component.valueProperty)}setChoicesValue(e,t,n={}){const i=!this.isEmpty(e)||n.fromSubmission;if(t=void 0===t||t,this.choices)if(i){this.choices.removeActiveItems();const t=Array.isArray(e)&&this.component.multiple?e:[e];this.addCurrentChoices(t,this.selectOptions,!0)||this.choices.setChoices(this.selectOptions,"value","label",!0),this.choices.setChoiceByValue(t)}else(t||n.resetValue)&&this.choices.removeActiveItems();else if(i){const t=Array.isArray(e)?e:[e];if(!r.default.isEqual(this.dataValue,this.defaultValue)&&this.selectOptions.length<2||this.selectData&&n.fromSubmission){const{value:e,label:t}=this.selectValueAndLabel(this.dataValue);this.addOption(e,t)}r.default.each(this.selectOptions,(e=>{r.default.each(t,(t=>{if(""===e.value&&(e.value={}),r.default.isEqual(t,e.value)&&e.element)return e.element.selected=!0,e.element.setAttribute("selected","selected"),!1}))}))}else r.default.each(this.selectOptions,(e=>{e.element&&(e.element.selected=!1,e.element.removeAttribute("selected"))}))}get itemsLoaded(){return this._itemsLoaded||Promise.resolve()}set itemsLoaded(e){this._itemsLoaded=e}validateValueAvailability(e,t){if(!(0,u.boolValue)(e)||!t)return!0;const n=this.getOptionsValues();if(n){if(r.default.isObject(t)){const e=e=>{const n=this.normalizeSingleValue(e,!0);if(!r.default.isObject(n))return!1;try{return JSON.stringify(n)===JSON.stringify(t)}catch(e){return console.warn.error("Error while comparing items",e),!1}};return-1!==n.findIndex((t=>e(t)))}return-1!==n.findIndex((e=>this.normalizeSingleValue(e)===t))}return!1}getOptionValue(e){return r.default.isObject(e)&&this.isEntireObjectDisplay()?this.normalizeSingleValue(e):r.default.isObject(e)&&(this.valueProperty||"resource"!==this.component.key)?e:r.default.isObject(e)&&!this.valueProperty?this.interpolate(this.component.template,{item:e}).replace(/<\/?[^>]+(>|$)/g,""):r.default.isNull(e)?this.emptyValue:String(this.normalizeSingleValue(e))}getOptionsValues(){let e=[];switch(this.component.dataSrc){case"values":e=this.component.data.values;break;case"json":e=this.component.data.json;break;case"custom":e=this.getCustomItems()}if("string"==typeof e)try{e=JSON.parse(e)}catch(t){console.warn(t.message),e=[]}if(Array.isArray(e))return e.map((e=>this.getOptionValue(this.itemValue(e))))}deleteValue(){this.setValue("",{noUpdateEvent:!0}),this.unset()}validateMultiple(){return!1}isBooleanOrNumber(e){return"number"==typeof e||"boolean"==typeof e}getNormalizedValues(){if(this.component&&this.component.data&&this.component.data.values)return this.component.data.values.map((e=>({label:e.label,value:String(this.normalizeSingleValue(e.value))})))}asString(e){var t;const n=(e,t)=>t?(Array.isArray(e)?e.forEach((e=>e[t]=e[t].toString())):e[t]=e[t].toString(),e):(this.isBooleanOrNumber(e)&&(e=e.toString()),Array.isArray(e)&&e.some((e=>this.isBooleanOrNumber(e)))&&(e=e.map((e=>{this.isBooleanOrNumber(e)&&(e=e.toString())}))),e);if(e=n(e=null!=e?e:this.getValue()),["values","custom"].includes(this.component.dataSrc)&&!this.asyncCustomValues()){const{items:i,valueProperty:o}="values"===this.component.dataSrc?{items:n(this.getNormalizedValues(),"value"),valueProperty:"value"}:{items:n(this.getCustomItems(),this.valueProperty),valueProperty:this.valueProperty},s=()=>{const t=r.default.find(i,[o,e]),n=this.defaultSchema.data.values||[];return r.default.isEqual(t,n[0])?"-":t};e=this.component.multiple&&Array.isArray(e)?r.default.filter(i,(t=>e.includes(t.value))):o?null!==(t=s())&&void 0!==t?t:{value:e,label:e}:e}if(r.default.isString(e))return e;if(Array.isArray(e)){const t=[];return e.forEach((e=>t.push(this.itemTemplate(e)))),"resource"===this.component.dataSrc&&t.length>0?t.join(", "):t.length>0?t.join("<br />"):"-"}return r.default.isNil(e)?"-":this.itemTemplate(e)}detach(){var e,t;this.off("blur"),this.choices&&((null===(t=null===(e=this.choices.containerOuter)||void 0===e?void 0:e.element)||void 0===t?void 0:t.parentNode)&&this.choices.destroy(),this.choices=null),super.detach()}focus(){this.focusableElement&&(super.focus.call(this),this.focusableElement.focus())}setErrorClasses(e,t,n,i,r=this.element){super.setErrorClasses(e,t,n,i,r),this.choices?super.setErrorClasses([this.choices.containerInner.element],t,n,i,r):super.setErrorClasses([this.refs.selectContainer],t,n,i,r)}}t.default=d},60421:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(76286);t.default=[{key:"dataSrc",data:{values:[{label:"Values",value:"values"},{label:"URL",value:"url"},{label:"Resource",value:"resource"},{label:"Custom",value:"custom"},{label:"Raw JSON",value:"json"}]}},{type:"textfield",weight:10,input:!0,key:"indexeddb.database",label:"Database name",tooltip:"The name of the indexeddb database.",conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textfield",input:!0,key:"indexeddb.table",label:"Table name",weight:16,tooltip:"The name of table in the indexeddb database.",conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textarea",as:"json",editor:"ace",weight:18,input:!0,key:"indexeddb.filter",label:"Row Filter",tooltip:"Filter table items that match the object.",defaultValue:{},conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"data.json",label:"Data Source Raw JSON",tooltip:"A valid JSON array to use as a data source.",description:'<div>Example: <pre>["apple", "banana", "orange"].</pre></div> <div>Example 2: <pre>[{"name": "John", "email": "john.doe@test.com"}, {"name": "Jane", "email": "jane.doe@test.com"}].</pre></div>',conditional:{json:{"===":[{var:"data.dataSrc"},"json"]}}},{type:"checkbox",input:!0,label:"Lazy Load Data",key:"lazyLoad",tooltip:"When set, this will not fire off the request to the URL until this control is within focus. This can improve performance if you have many Select dropdowns on your form where the API's will only fire when the control is activated.",weight:11,conditional:{json:{and:[{in:[{var:"data.dataSrc"},["resource","url"]]},{"!==":[{var:"data.widget"},"html5"]}]}}},{type:"datagrid",input:!0,label:"Data Source Values",key:"data.values",tooltip:"Values to use as the data source. Labels are shown in the select field. Values are the corresponding values saved with the submission.",weight:10,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:"value = _.camelCase(row.label);"}],conditional:{json:{"===":[{var:"data.dataSrc"},"values"]}}},{type:"select",input:!0,dataSrc:"url",data:{url:"/form?type=resource&limit=1000000&select=_id,title"},authenticate:!0,template:"<span>{{ item.title }}</span>",valueProperty:"_id",clearOnHide:!1,label:"Resource",key:"data.resource",lazyLoad:!1,weight:10,tooltip:"The resource to be used with this field.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",input:!0,label:"Data Path",key:"selectValues",weight:12,description:"The object path to the iterable items.",tooltip:"The property within the source data, where iterable items reside. For example: results.items or results[0].items",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"select",input:!0,label:"Value Property",key:"valueProperty",skipMerge:!0,clearOnHide:!0,tooltip:"The field to use as the value.",weight:11,refreshOn:"data.resource",template:"<span>{{ item.label }}</span>",valueProperty:"key",dataSrc:"url",lazyLoad:!1,onSetItems(e,t){const n="resource"===t.type?[{label:"{Entire Object}",key:"data"}]:[];return(0,i.eachComponent)(t.components,((e,t)=>{e.input&&n.push({label:e.label||e.key,key:`data.${t}`})})),n},onChange(e){if(e&&e.flags&&e.flags.modified){const t=e.instance.data.valueProperty,n=`<span>{{ item.${t||"data"} }}</span>`,i=t?`${t}__regex`:"";e.instance.root.getComponent("template").setValue(n),e.instance.root.getComponent("searchField").setValue(i)}},data:{url:"/form/{{ data.data.resource }}"},conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!==":[{var:"data.reference"},!0]},{var:"data.data.resource"}]}}},{type:"select",input:!0,label:"Storage Type",key:"dataType",clearOnHide:!0,tooltip:"The type to store the data. If you select something other than autotype, it will force it to that type.",weight:12,template:"<span>{{ item.label }}</span>",dataSrc:"values",data:{values:[{label:"Autotype",value:"auto"},{label:"String",value:"string"},{label:"Number",value:"number"},{label:"Boolean",value:"boolean"},{label:"Object",value:"object"}]}},{type:"textfield",input:!0,key:"idPath",weight:12,label:"ID Path",placeholder:"id",tooltip:"Path to the select option id."},{type:"textfield",input:!0,label:"Select Fields",key:"selectFields",tooltip:"The properties on the resource to return as part of the options. Separate property names by commas. If left blank, all properties will be returned.",placeholder:"Comma separated list of fields to select.",weight:14,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"===":[{var:"data.valueProperty"},""]}]}}},{type:"checkbox",input:!0,key:"disableLimit",label:"Disable limiting response",tooltip:"When enabled the request will not include the limit and skip options in the query string",weight:15,conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"textfield",input:!0,key:"searchField",label:"Search Query Name",weight:16,description:"Name of URL query parameter",tooltip:"The name of the search querystring parameter used when sending a request to filter results with. The server at the URL must handle this query parameter.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"searchDebounce",label:"Search request delay",weight:16,description:"The delay (in seconds) before the search request is sent.",tooltip:"The delay in seconds before the search request is sent, measured from the last character input in the search field.",validate:{min:0,customMessage:"",json:"",max:1},delimiter:!1,requireDecimal:!1,encrypted:!1,defaultValue:.3,conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"minSearch",weight:17,label:"Minimum Search Length",tooltip:"The minimum amount of characters they must type before a search is made.",defaultValue:0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"url"]},{"!=":[{var:"data.searchField"},""]}]}}},{type:"textfield",input:!0,key:"filter",label:"Filter Query",weight:18,description:"The filter query for results.",tooltip:"Use this to provide additional filtering using query parameters.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"textfield",input:!0,key:"sort",label:"Sort Query",weight:18,description:"The sort query for results",tooltip:"Use this to provide additional sorting using query parameters",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"limit",label:"Limit",weight:18,description:"Maximum number of items to view per page of results.",tooltip:"Use this to limit the number of items to request or view.",clearOnHide:!1,conditional:{json:{and:[{in:[{var:"data.dataSrc"},["url","resource"]]},{"!==":[{var:"data.disableLimit"},!0]}]}}},{type:"textarea",input:!0,key:"data.custom",label:"Custom Values",editor:"ace",rows:10,weight:14,placeholder:"values = data['mykey'] or values = Promise.resolve(['myValue'])",tooltip:"Write custom code to return the value options or a promise with value options. The form data object is available.",conditional:{json:{"===":[{var:"data.dataSrc"},"custom"]}}},{type:"select",input:!0,key:"refreshOn",label:"Refresh Options On",weight:19,tooltip:"Refresh data when another field changes.",dataSrc:"custom",valueProperty:"value",data:{custom(e){var t=[];return t.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,(function(n,i){n.key!==e.data.key&&t.push({label:n.label||n.key,value:i})})),t}},conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values","custom"]]}}},{type:"select",input:!0,key:"refreshOnBlur",label:"Refresh Options On Blur",weight:19,tooltip:"Refresh data when another field is blured.",dataSrc:"custom",valueProperty:"value",data:{custom(e){var t=[];return t.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,(function(n,i){n.key!==e.data.key&&t.push({label:n.label||n.key,value:i})})),t}},conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values"]]}}},{type:"checkbox",input:!0,weight:20,key:"clearOnRefresh",label:"Clear Value On Refresh Options",defaultValue:!1,tooltip:"When the Refresh On field is changed, clear this components value.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values","custom"]]}}},{type:"checkbox",input:!0,weight:21,key:"searchEnabled",label:"Enable Static Search",defaultValue:!0,tooltip:"When checked, the select dropdown will allow for searching within the static list of items provided."},{type:"checkbox",input:!0,weight:21,key:"noRefreshOnScroll",label:"Disable Options Refresh When Scrolling",defaultValue:!1,tooltip:"When checked, the select with search input won't perform new api requests when scrolling through the list of options.",conditional:{json:{and:[{in:[{var:"data.dataSrc"},["url","resource"]]},{"===":[{var:"data.searchEnabled"},!0]}]}}},{label:"Search Threshold",mask:!1,tableView:!0,alwaysEnabled:!1,type:"number",input:!0,key:"selectThreshold",validate:{min:0,customMessage:"",json:"",max:1},delimiter:!1,requireDecimal:!1,encrypted:!1,defaultValue:.3,weight:22,tooltip:"At what point does the match algorithm give up. A threshold of 0.0 requires a perfect match, a threshold of 1.0 would match anything."},{type:"checkbox",input:!0,weight:23,key:"addResource",label:"Add Resource",tooltip:"Allows to create a new resource while entering a submission.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",label:"Add Resource Label",key:"addResourceLabel",tooltip:"Set the text of the Add Resource button.",placeholder:"Add Resource",weight:24,input:!0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!!":{var:"data.addResource"}}]}}},{type:"checkbox",input:!0,weight:25,key:"reference",label:"Save as reference",tooltip:"Using this option will save this field as a reference and link its value to the value of the origin record.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"checkbox",input:!0,weight:27,key:"readOnlyValue",label:"Read Only Value",tooltip:"Check this if you would like to show just the value when in Read Only mode."},{type:"textarea",as:"json",editor:"ace",weight:28,input:!0,key:"customOptions",label:"Choices.js options",tooltip:"A raw JSON object to use as options for the Select component (Choices JS).",defaultValue:{}},{type:"checkbox",input:!0,weight:29,key:"useExactSearch",label:"Use exact search",tooltip:"Disables search algorithm threshold."}]},54190:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"select",input:!0,weight:20,tooltip:"Select the type of widget you'd like to use.",key:"widget",defaultValue:"choicesjs",label:"Widget Type",dataSrc:"values",data:{values:[{label:"ChoicesJS",value:"choicesjs"},{label:"HTML 5",value:"html5"}]}},{weight:1230,type:"checkbox",label:"Unique Options",tooltip:"Display only unique dropdown options.",key:"uniqueOptions",input:!0}]},1445:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{weight:50,type:"checkbox",label:"Perform server validation of remote value",tooltip:"Check this if you would like for the server to perform a validation check to ensure the selected value is an available option. This requires a Search query to ensure a record is found.",key:"validate.select",input:!0,conditional:{json:{var:"data.searchField"}}},{weight:52,type:"checkbox",label:"Allow only available values",tooltip:"Check this if you would like to perform a validation check to ensure the selected value is an available option (only for synchronous values).",key:"validate.onlyAvailableItems",input:!0,conditional:{json:{in:[{var:"data.dataSrc"},["values","json","custom"]]}}}]},15052:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(13352)),o=i(n(86767));t.default=function(...e){return(0,r.default)([{key:"data",components:[{key:"dataType",ignore:!0}]},{key:"validation",components:o.default}],...e)}},18707:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=n(76286),s=i(n(22586));class a extends s.default{static schema(...e){return s.default.schema({type:"selectboxes",label:"Select Boxes",key:"selectBoxes",inline:!1},...e)}static get builderInfo(){return{title:"Select Boxes",group:"basic",icon:"plus-square",weight:60,documentation:"/userguide/form-building/form-components#select-box",schema:a.schema()}}static get serverConditionSettings(){return a.conditionOperatorsSettings}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{valueComponent:e=>({type:"select",dataSrc:"custom",valueProperty:"value",valueType:"string",data:{custom:`values = ${e&&e.values?JSON.stringify(e.values):[]}`}})})}static savedValueTypes(e){return(0,o.getComponentSavedTypes)(e)||[o.componentValueTypes.object]}constructor(...e){super(...e),this.validators=this.validators.concat("minSelectedCount","maxSelectedCount","availableValueProperty")}init(){super.init(),this.component.inputType="checkbox"}get defaultSchema(){return a.schema()}get inputInfo(){const e=super.elementInfo();return e.attr.name+="[]",e.attr.type="checkbox",e.attr.class="form-check-input",e}get emptyValue(){return this.component.values.reduce(((e,t)=>(t.value&&(e[t.value]=!1),e)),{})}get defaultValue(){let e=this.emptyValue;return r.default.isEmpty(this.component.defaultValue)||(e=this.component.defaultValue),this.component.customDefaultValue&&!this.options.preview&&(e=this.evaluate(this.component.customDefaultValue,{value:""},"value")),e}isEmpty(e=this.dataValue){let t=!0;for(const n in e)if(e.hasOwnProperty(n)&&e[n]){t=!1;break}return t}getValue(){if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;const e={};return r.default.each(this.refs.input,(t=>{e[t.value]=!!t.checked})),e}normalizeValue(e){"object"!=typeof(e=e||{})&&(e="string"==typeof e?{[e]:!0}:{}),Array.isArray(e)&&r.default.each(e,(t=>{e[t]=!0}));const t=r.default.keys(r.default.pickBy(e,(e=>e)));if(this.isSelectURL&&this.templateData&&r.default.every(t,(e=>this.templateData[e]))){const e=this.root.submission;e.metadata.selectData||(e.metadata.selectData={});const n=[];t.forEach((e=>n.push(this.templateData[e]))),r.default.set(e.metadata.selectData,this.path,n)}return e}setValue(e,t={}){const n=this.updateValue(e,t);return e=this.dataValue,this.isHtmlRenderMode()?n&&this.redraw():r.default.each(this.refs.input,(t=>{r.default.isUndefined(e[t.value])&&(e[t.value]=!1),t.checked=!!e[t.value]})),n}getValueAsString(e){return e?this.isSelectURL?(0,r.default)(e).pickBy((e=>e)).keys().join(", "):(0,r.default)(this.component.values||[]).filter((t=>e[t.value])).map("label").join(", "):""}setSelectedClasses(){if(this.refs.wrapper){const e=this.dataValue,t=Object.keys(e);this.refs.wrapper.forEach(((n,i)=>{let o=t[i];const s=this.refs.input[i];(null==s?void 0:s.value.toString())!==o&&(o=t.find((e=>(null==s?void 0:s.value.toString())===e)));const a=e[o];a&&o||this.isSelectURL&&!this.shouldLoad&&this.listData&&-1!==r.default.findIndex(this.selectData,this.listData[i])?(this.addClass(n,this.optionSelectedClass),s.setAttribute("checked","true")):!a&&o&&(this.removeClass(n,this.optionSelectedClass),s.removeAttribute("checked"))}))}}setInputsDisabled(e,t){this.refs.input&&this.refs.input.forEach((n=>{(t&&!n.checked||!t)&&(n.disabled=e)}))}checkComponentValidity(e,t,n,i){const r=this.component.validate.minSelectedCount,o=this.component.validate.maxSelectedCount;if(!this.shouldSkipValidation(e,t,n)){const n=this.isValid(e,t);if(o||r){const e=Object.keys(this.validationValue).reduce(((e,t)=>(this.validationValue[t]&&e++,e)),0);if(o&&e>=o?this.setInputsDisabled(!0,!0):o&&!this.shouldDisabled&&this.setInputsDisabled(!1),!n&&o&&e>o){const e=this.t(this.component.maxSelectedCountMessage||"You can only select up to {{maxCount}} items.",{maxCount:o});return this.setCustomValidity(e,t),!1}if(!n&&r&&e<r){this.setInputsDisabled(!1);const e=this.t(this.component.minSelectedCountMessage||"You must select at least {{minCount}} items.",{minCount:r});return this.setCustomValidity(e,t),!1}}}return super.checkComponentValidity(e,t,n,i)}validateValueAvailability(e,t){if(!(0,o.boolValue)(e)||!t)return!0;const n=(this.component.values||[]).map((({value:e})=>e));return Object.keys(t).every((e=>n.includes(e)))}}t.default=a},86767:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"number",input:!0,key:"validate.minSelectedCount",label:"Minimum checked number",tooltip:"Minimum checkboxes required before form can be submitted.",weight:250},{type:"number",input:!0,key:"validate.maxSelectedCount",label:"Maximum checked number",tooltip:"Maximum checkboxes possible before form can be submitted.",weight:250},{type:"textfield",input:!0,key:"minSelectedCountMessage",label:"Minimum checked error message",tooltip:"Error message displayed if minimum number of items not checked.",weight:250},{type:"textfield",input:!0,key:"maxSelectedCountMessage",label:"Maximum checked error message",tooltip:"Error message displayed if maximum number of items checked.",weight:250}]},29650:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(32626)),s=i(n(11855)),a=i(n(22574));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:o.default},{key:"validation",components:a.default}],...e)}},29305:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(17672)),o=i(n(14297)),s=i(n(96486)),a=n(76286);class l extends o.default{static schema(...e){return o.default.schema({type:"signature",label:"Signature",key:"signature",footer:"Sign above",width:"100%",height:"150px",penColor:"black",backgroundColor:"rgb(245,245,235)",minWidth:"0.5",maxWidth:"2.5",keepOverlayRatio:!0},...e)}static get builderInfo(){return{title:"Signature",group:"advanced",icon:"pencil",weight:120,documentation:"/developers/integrations/esign/esign-integrations#signature-component",schema:l.schema()}}static get serverConditionSettings(){return l.conditionOperatorsSettings}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{operators:["isEmpty","isNotEmpty"]})}static savedValueTypes(e){return e=e||{},(0,a.getComponentSavedTypes)(e)||[a.componentValueTypes.string]}init(){var e,t,n,i,r;super.init(),this.currentWidth=0,this.scale=1,this.component.width||(this.component.width="100%"),this.component.height||(this.component.height="200px"),this.component.keepOverlayRatio&&"pdf"===(null===(e=this.options)||void 0===e?void 0:e.display)&&(null===(t=this.component.overlay)||void 0===t?void 0:t.width)&&(null===(n=this.component.overlay)||void 0===n?void 0:n.height)&&(this.ratio=(null===(i=this.component.overlay)||void 0===i?void 0:i.width)/(null===(r=this.component.overlay)||void 0===r?void 0:r.height),this.component.width="100%",this.component.height="auto")}get emptyValue(){return""}get defaultSchema(){return l.schema()}get inputInfo(){const e=super.inputInfo;return e.type="input",e.attr.type="hidden",e}get className(){return`${super.className} signature-pad`}labelIsHidden(){return this.component.hideLabel}setValue(e,t={}){const n=super.setValue(e,t);return this.refs.signatureImage&&(this.options.readOnly||this.disabled)&&(this.refs.signatureImage.setAttribute("src",e),this.showCanvas(!1)),this.signaturePad&&(e?n&&this.triggerChange():this.signaturePad.clear()),this.signaturePad&&this.dataValue&&this.signaturePad.isEmpty()&&this.setDataToSigaturePad(),n}showCanvas(e){e?(this.refs.canvas&&(this.refs.canvas.style.display="inherit"),this.refs.signatureImage&&(this.refs.signatureImage.style.display="none")):(this.refs.canvas&&(this.refs.canvas.style.display="none"),this.refs.signatureImage&&(this.refs.signatureImage.style.display="inherit",this.refs.signatureImage.style.maxHeight="100%"))}onDisabled(){this.showCanvas(!super.disabled),this.signaturePad&&(super.disabled?(this.signaturePad.off(),this.refs.refresh&&this.refs.refresh.classList.add("disabled"),this.refs.signatureImage&&this.dataValue&&this.refs.signatureImage.setAttribute("src",this.dataValue)):(this.signaturePad.on(),this.refs.refresh&&this.refs.refresh.classList.remove("disabled")))}checkSize(e,t){if(this.refs.padBody&&(e||this.refs.padBody&&this.refs.padBody.offsetWidth!==this.currentWidth)){this.scale=e?t:this.scale,this.currentWidth=this.refs.padBody.offsetWidth;const n=this.currentWidth*this.scale,i=this.ratio?n/this.ratio:this.refs.padBody.offsetHeight*this.scale,r=this.ratio?i:this.refs.padBody.offsetHeight*this.scale;this.refs.canvas.width=n,this.refs.canvas.height=i>r?r:i,this.refs.canvas.style.maxWidth=this.currentWidth*this.scale+"px",this.refs.canvas.style.maxHeight=`${r}px`;const o=this.refs.canvas.getContext("2d");o.setTransform(1,0,0,1,0,0),o.scale(1/this.scale,1/this.scale),o.fillStyle=this.signaturePad.backgroundColor,o.fillRect(0,0,this.refs.canvas.width,this.refs.canvas.height),this.signaturePad.clear(),this.dataValue&&this.setDataToSigaturePad(),this.showCanvas(!0)}}renderElement(e,t){return this.renderTemplate("signature",{element:super.renderElement(e,t),required:s.default.get(this.component,"validate.required",!1)})}get hasModalSaveButton(){return!1}getModalPreviewTemplate(){return this.renderTemplate("modalPreview",{previewText:this.dataValue?`<img src=${this.dataValue} ref='openModal' style="width: 100%;height: 100%;" />`:this.t("Click to Sign")})}attach(e){this.loadRefs(e,{canvas:"single",refresh:"single",padBody:"single",signatureImage:"single"});const t=super.attach(e);return this.refs.refresh&&this.options.readOnly&&this.refs.refresh.classList.add("disabled"),this.refs.canvas&&(this.signaturePad=new r.default(this.refs.canvas,{minWidth:this.component.minWidth,maxWidth:this.component.maxWidth,penColor:this.component.penColor,backgroundColor:this.component.backgroundColor}),this.signaturePad.addEventListener("endStroke",(()=>this.setValue(this.signaturePad.toDataURL()))),this.refs.signatureImage.setAttribute("src",this.signaturePad.toDataURL()),this.onDisabled(),this.refs.padBody&&(this.refs.padBody.style.maxWidth||(this.refs.padBody.style.maxWidth="100%"),this.builderMode||this.options.preview||(this.observer=new ResizeObserver((()=>{this.checkSize()})),this.observer.observe(this.refs.padBody)),this.addEventListener(window,"resize",s.default.debounce((()=>this.checkSize()),10)),setTimeout(function e(){this.refs.padBody&&this.refs.padBody.offsetWidth?this.checkSize():setTimeout(e.bind(this),20)}.bind(this),20))),this.addEventListener(this.refs.refresh,"click",(e=>{e.preventDefault(),this.showCanvas(!0),this.signaturePad.clear(),this.setValue(this.defaultValue)})),this.setValue(this.dataValue),t}detach(){this.observer&&(this.observer.disconnect(),this.observer=null),this.signaturePad&&this.signaturePad.off(),this.signaturePad=null,this.currentWidth=0,super.detach()}getValueAsString(e){return s.default.isUndefined(e)&&this.inDataTable?"":e?"Yes":"No"}focus(){this.refs.padBody.focus()}setDataToSigaturePad(){this.signaturePad.fromDataURL(this.dataValue,{ratio:1,width:this.refs.canvas.width,height:this.refs.canvas.height})}}t.default=l},32626:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0},{key:"dbIndex",ignore:!0}]},11855:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"textfield",input:!0,key:"footer",label:"Footer Label",tooltip:"The footer text that appears below the signature area.",placeholder:"Footer Label",weight:10},{type:"textfield",input:!0,key:"width",label:"Width",tooltip:"The width of the signature area.",placeholder:"Width",conditional:{json:{"!":[{var:"data.keepOverlayRatio"}]}},weight:50},{type:"textfield",input:!0,key:"height",label:"Height",tooltip:"The height of the signature area.",placeholder:"Height",conditional:{json:{"!":[{var:"data.keepOverlayRatio"}]}},weight:51},{weight:52,type:"checkbox",label:"Keep Overlay Aspect Ratio",tooltip:"If checked, the field will have the same aspect ratio as its preview.",key:"keepOverlayRatio",customConditional:({options:e})=>{var t;return"pdf"===(null===(t=null==e?void 0:e.editForm)||void 0===t?void 0:t.display)},input:!0},{type:"textfield",input:!0,key:"backgroundColor",label:"Background Color",tooltip:"The background color of the signature area.",placeholder:"Background Color",weight:52},{type:"textfield",input:!0,key:"penColor",label:"Pen Color",tooltip:"The ink color for the signature area.",placeholder:"Pen Color",weight:53},{key:"placeholder",ignore:!0},{key:"autofocus",ignore:!0}]},22574:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"unique",ignore:!0},{key:"validateOn",ignore:!0}]},78433:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(43927)),s=i(n(29974)),a=i(n(44760));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:o.default},{key:"validation",components:a.default}],...e)}},55337:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(24133)),s=n(76286);class a extends o.default{static schema(...e){return o.default.schema({type:"survey",label:"Survey",key:"survey",questions:[],values:[]},...e)}static get builderInfo(){return{title:"Survey",group:"advanced",icon:"list",weight:110,documentation:"/userguide/form-building/advanced-components#survey",schema:a.schema()}}static get serverConditionSettings(){return a.conditionOperatorsSettings}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{operators:["isEmpty","isNotEmpty"]})}static savedValueTypes(e){return(0,s.getComponentSavedTypes)(e)||[s.componentValueTypes.object]}get defaultSchema(){return a.schema()}render(){return super.render(this.renderTemplate("survey"))}attach(e){this.loadRefs(e,{input:"multiple"});const t=super.attach(e);return this.refs.input.forEach((e=>{this.disabled?e.setAttribute("disabled","disabled"):this.addEventListener(e,"change",(()=>this.updateValue(null,{modified:!0})))})),this.setValue(this.dataValue),t}setValue(e,t={}){if(!e)return!1;r.default.each(this.component.questions,(t=>{r.default.each(this.refs.input,(n=>{n.name===this.getInputName(t)&&(n.checked=n.value===e[t.value])}))}));const n=this.updateValue(e,t);return n&&this.isHtmlRenderMode()&&this.redraw(),n}get emptyValue(){return{}}get defaultValue(){const e=super.defaultValue;if(e&&!r.default.isObject(e)&&this.component.values.some((t=>t.value===e))){const t={};return this.component.questions.forEach((n=>{t[n.value]=e})),t}return e}getValue(){if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;const e={};return r.default.each(this.component.questions,(t=>{r.default.each(this.refs.input,(n=>{if(n.checked&&n.name===this.getInputName(t))return e[t.value]=n.value,!1}))})),e}set disabled(e){super.disabled=e,r.default.each(this.refs.input,(e=>{e.disabled=!0}))}get disabled(){return super.disabled}validateRequired(e,t){return!(0,s.boolValue)(e)||this.component.questions.reduce(((e,n)=>e&&Boolean(t[n.value])),!0)}getInputName(e){return`${this.options.name}[${e.value}]`}getValueAsString(e,t){if(null==t?void 0:t.email){let t='\n <table border="1" style="width:100%">\n <thead>\n <tr>\n <th>Question</th>\n <th>Value</th>\n </tr>\n </thead>\n <tbody>\n ';return r.default.forIn(e,((e,n)=>{const i=r.default.find(this.component.questions,["value",n]),o=r.default.find(this.component.values,["value",e]);i&&o&&(t+=`\n <tr>\n <td style="text-align:center;padding: 5px 10px;">${i.label}</td>\n <td style="text-align:center;padding: 5px 10px;">${o.label}</td>\n </tr>\n `)})),t+="</tbody></table>",t}return super.getValueAsString(e,t)}}t.default=a},43927:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0},{type:"datagrid",input:!0,label:"Questions",key:"questions",tooltip:"The questions you would like to ask in this survey question.",weight:0,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}},{label:"Tooltip",key:"tooltip",input:!0,type:"textfield"}]},{type:"datagrid",input:!0,label:"Values",key:"values",tooltip:"The values that can be selected per question. Example: 'Satisfied', 'Very Satisfied', etc.",weight:1,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}},{label:"Tooltip",key:"tooltip",input:!0,type:"textfield"}]}]},29974:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"placeholder",ignore:!0}]},44760:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validateOn",ignore:!0}]},6914:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(4219)),o=i(n(78354));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default}],...e)}},70975:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(81290)),s=i(n(99216));class a extends s.default{static emptyTable(e,t){const n=[];for(let i=0;i<e;i++){const e=[];for(let n=0;n<t;n++)e.push({components:[]});n.push(e)}return n}static schema(...e){return s.default.schema({label:"Table",type:"table",input:!1,key:"table",numRows:3,numCols:3,rows:a.emptyTable(3,3),header:[],caption:"",cloneRows:!1,striped:!1,bordered:!1,hover:!1,condensed:!1,persistent:!1},...e)}static get builderInfo(){return{title:"Table",group:"layout",icon:"table",weight:40,documentation:"/userguide/form-building/layout-components#table",showPreview:!1,schema:a.schema()}}static savedValueTypes(){return[]}get defaultSchema(){return a.schema()}get schema(){const e=r.default.omit(super.schema,"components");return e.rows=[],this.eachComponent((t=>{e.rows&&e.rows.length||(e.rows=a.emptyTable(this.component.numRows,this.component.numCols)),e.rows[t.tableRow]||(e.rows[t.tableRow]=[]),e.rows[t.tableRow][t.tableColumn]||(e.rows[t.tableRow][t.column]={components:[]}),e.rows[t.tableRow][t.tableColumn].components.push(t.schema)})),e.rows.length||(e.rows=a.emptyTable(this.component.numRows,this.component.numCols)),e}get className(){let e=`table-responsive ${super.className}`;return this.component.bordered||(e+=" no-top-border-table"),e}get cellClassName(){let e="";return this.component.cellAlignment&&(e=`cell-align-${this.component.cellAlignment}`),e}get tableKey(){return`table-${this.key}`}get colWidth(){const{numCols:e}=this.component;return e&&"number"==typeof e?Math.floor(12/e).toString():""}constructor(...e){super(...e),this.noField=!0}init(){super.init();for(let e=0;e<this.component.numRows;e++){this.component.rows[e]=this.component.rows[e]||[];for(let t=0;t<this.component.numCols;t++)this.component.rows[e][t]=this.component.rows[e][t]||{components:[]};this.component.rows[e]=this.component.rows[e].slice(0,this.component.numCols)}this.component.rows=this.component.rows.slice(0,this.component.numRows);const e=[];this.table=[],r.default.each(this.component.rows,((t,n)=>{this.table[n]=[],r.default.each(t,((t,i)=>{this.table[n][i]=[],this.component.cloneRows&&(t.components.length?e[i]=t:e[i]&&(t.components=r.default.cloneDeep(e[i].components),o.default.uniquify(this.root._form.components,t))),r.default.each(t.components,(e=>{let t;this.builderMode?(e.id=e.id+n,t=e):t=Object.assign(Object.assign({},e),{id:e.id+n});const r=this.createComponent(t);r.tableRow=n,r.tableColumn=i,this.table[n][i].push(r)}))}))}))}render(){return super.render(this.renderTemplate("table",{cellClassName:this.cellClassName,tableKey:this.tableKey,colWidth:this.colWidth,tableComponents:this.table.map((e=>e.map((e=>this.renderComponents(e)))))}))}attach(e){const t=this.table.reduce(((e,t,n)=>(e[`${this.tableKey}-${n}`]="multiple",e)),{});this.loadRefs(e,t);const n=super.attach(e);return this.table.forEach(((e,t)=>{e.forEach(((e,n)=>{this.attachComponents(this.refs[`${this.tableKey}-${t}`][n],this.table[t][n],this.component.rows[t][n].components)}))})),n}destroy(e=!1){super.destroy(e),delete this.table}}t.default=a},78354:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{type:"number",label:"Number of Rows",key:"numRows",input:!0,weight:1,placeholder:"Number of Rows",tooltip:"Enter the number or rows that should be displayed by this table."},{type:"number",label:"Number of Columns",key:"numCols",input:!0,weight:2,placeholder:"Number of Columns",tooltip:"Enter the number or columns that should be displayed by this table."},{type:"checkbox",label:"Clone Row Components",key:"cloneRows",input:!0,weight:3,tooltip:"Check this if you would like to 'clone' the first row of components to all additional empty rows of the table."},{type:"select",label:"Cell Alignment",key:"cellAlignment",input:!0,tooltip:"Horizontal alignment for cells of the table.",dataSrc:"values",data:{values:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}]},defaultValue:"left",weight:3},{type:"checkbox",label:"Striped",key:"striped",tooltip:"This will stripe the table if checked.",input:!0,weight:701},{type:"checkbox",label:"Bordered",key:"bordered",input:!0,tooltip:"This will border the table if checked.",weight:702},{type:"checkbox",label:"Hover",key:"hover",input:!0,tooltip:"Highlight a row on hover.",weight:703},{type:"checkbox",label:"Condensed",key:"condensed",input:!0,tooltip:"Condense the size of the table.",weight:704}]},96111:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(4219)),o=i(n(38036));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default}],...e)}},40276:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(99216));class s extends o.default{static schema(...e){return o.default.schema({label:"Tabs",type:"tabs",input:!1,key:"tabs",persistent:!1,tableView:!1,components:[{label:"Tab 1",key:"tab1",components:[]}],verticalLayout:!1},...e)}static get builderInfo(){return{title:"Tabs",group:"layout",icon:"folder-o",weight:50,documentation:"/userguide/form-building/layout-components#tabs",showPreview:!1,schema:s.schema()}}static savedValueTypes(){return[]}get defaultSchema(){return s.schema()}get schema(){const e=super.schema,t=r.default.cloneDeep(this.component.components);return e.components=t.map(((e,t)=>(e.components=this.tabs[t].map((e=>e.schema)),e))),e}get tabKey(){return`tab-${this.key}`}get tabLikey(){return`tabLi-${this.key}`}get tabLinkKey(){return`tabLink-${this.key}`}constructor(...e){super(...e),this.currentTab=0,this.noField=!0}init(){this.components=[],this.tabs=[],r.default.each(this.component.components,((e,t)=>{this.tabs[t]=[],e.components=e.components||[],r.default.each(e.components,(e=>{const n=this.createComponent(e);n.tab=t,this.tabs[t].push(n)}))}))}render(){return super.render(this.renderTemplate("tab",{tabKey:this.tabKey,tabLikey:this.tabLikey,tabLinkKey:this.tabLinkKey,currentTab:this.currentTab,tabComponents:this.tabs.map((e=>this.renderComponents(e)))},this.options.flatten||this.options.pdf?"flat":null))}attach(e){this.loadRefs(e,{[this.tabLinkKey]:"multiple",[this.tabKey]:"multiple",[this.tabLikey]:"multiple"}),["change","error"].forEach((e=>this.on(e,this.handleTabsValidation.bind(this))));const t=super.attach(e);return this.refs[this.tabLinkKey].forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.setTab(t)}))})),this.refs[this.tabKey].forEach(((e,t)=>{this.attachComponents(e,this.tabs[t],this.component.components[t].components)})),t}detach(e){super.detach(e)}setTab(e){this.tabs&&this.tabs[e]&&this.refs[this.tabKey]&&this.refs[this.tabKey][e]&&(this.currentTab=e,r.default.each(this.refs[this.tabKey],(e=>{this.removeClass(e,"formio-tab-panel-active"),e.style.display="none"})),this.addClass(this.refs[this.tabKey][e],"formio-tab-panel-active"),this.refs[this.tabKey][e].style.display="block",r.default.each(this.refs[this.tabLinkKey],((e,t)=>{this.refs[this.tabLinkKey][t]&&(this.removeClass(e,"active"),this.removeClass(e,"formio-tab-link-active")),this.refs[this.tabLikey][t]&&(this.removeClass(this.refs[this.tabLikey][t],"active"),this.removeClass(this.refs[this.tabLikey][t],"formio-tab-link-container-active"))})),this.refs[this.tabLikey][e]&&(this.addClass(this.refs[this.tabLikey][e],"active"),this.addClass(this.refs[this.tabLikey][e],"formio-tab-link-container-active")),this.refs[this.tabLinkKey][e]&&(this.addClass(this.refs[this.tabLinkKey][e],"active"),this.addClass(this.refs[this.tabLinkKey][e],"formio-tab-link-active")),this.triggerChange())}beforeFocus(e){"beforeFocus"in this.parent&&this.parent.beforeFocus(this);const t=this.tabs.findIndex((t=>t.some((t=>t===e))));-1!==t&&this.currentTab!==t&&this.setTab(t)}setErrorClasses(e,t,n,i,r=this.element){this.component.modalEdit&&super.setErrorClasses(e,t,n,i,r),e.forEach((e=>{this.addClass(e,"is-invalid"),"openModal"!==e.getAttribute("ref")&&(this.options.highlightErrors?this.addClass(e,"tab-error"):this.addClass(e,"has-error"))}))}clearErrorClasses(e){if(!this.options.server&&this.rendered){if(this.component.modalEdit){const t=Array.isArray(e)||e instanceof NodeList?this.element:e;super.clearErrorClasses(t)}(e=Array.isArray(e)||e instanceof NodeList?e:[e]).forEach((e=>{this.removeClass(e,"is-invalid"),this.removeClass(e,"tab-error"),this.removeClass(e,"has-error")}))}}handleTabsValidation(){if(!this.refs[this.tabLinkKey]||!this.refs[this.tabLinkKey].length||!this.tabs.length)return;this.clearErrorClasses(this.refs[this.tabLinkKey]);const e=this.tabs.reduce(((e,t,n)=>t.some((e=>!!e.error))?[...e,n]:e),[]);if(!e.length)return;const t=[...this.refs[this.tabLinkKey]].filter(((t,n)=>e.includes(n)));this.setErrorClasses(t)}}t.default=s},38036:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{key:"components",type:"datagrid",input:!0,label:"Tabs",weight:50,reorder:!0,components:[{type:"textfield",input:!0,key:"label",label:"Label"},{type:"textfield",input:!0,key:"key",label:"Key",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}}]},{weight:1100,type:"checkbox",label:"Vertical Layout",tooltip:"Make this field display in vertical orientation.",key:"verticalLayout",input:!0}]},74285:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(73420));t.default=function(...e){return r.default.baseEditForm([{key:"data",components:o.default}],...e)}},19191:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(76286),o=i(n(14297)),s=i(n(57062));class a extends o.default{static schema(...e){return o.default.schema({type:"tags",label:"Tags",key:"tags",delimeter:",",storeas:"string",maxTags:0},...e)}static get builderInfo(){return{title:"Tags",icon:"tags",group:"advanced",documentation:"/userguide/form-building/advanced-components#tags",weight:30,schema:a.schema()}}static get serverConditionSettings(){return a.conditionOperatorsSettings}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{operators:[...super.conditionOperatorsSettings.operators,"includes","notIncludes"]})}static savedValueTypes(e){return e=e||{},(0,r.getComponentSavedTypes)(e)||[r.componentValueTypes[e.storeas]||r.componentValueTypes.string]}init(){super.init()}get emptyValue(){return"string"===this.component.storeas?"":[]}get defaultSchema(){return a.schema()}get inputInfo(){const e=super.inputInfo;return e.type="input",e.attr.type="text",e.changeEvent="change",e}get delimiter(){return this.component.delimeter||","}attachElement(e,t){if(super.attachElement(e,t),!e)return;if(this.i18next&&e.setAttribute("dir",this.i18next.dir()),this.choices&&this.choices.destroy(),!s.default)return;const n=!!this.component.placeholder;this.choices=new s.default(e,{delimiter:this.delimiter,editItems:!0,allowHTML:!0,maxItemCount:this.component.maxTags,removeItemButton:!0,duplicateItemsAllowed:!1,shadowRoot:this.root?this.root.shadowRoot:null,placeholder:n,placeholderValue:n?this.t(this.component.placeholder,{_userInput:!0}):null}),this.choices.itemList.element.tabIndex=e.tabIndex,this.addEventListener(this.choices.input.element,"blur",(()=>{e.dispatchEvent(new Event("blur"));const t=this.choices.input.value,n=this.component.maxTags,i=this.choices.getValue(!0).length,r=this.choices.getValue(!0).some((e=>e.trim()===t.trim()));t&&(n&&i===n?(this.choices.addItems=!1,this.choices.clearInput()):r?this.choices.clearInput():(this.choices.setValue([t]),this.choices.clearInput(),this.choices.hideDropdown(!0),this.updateValue(null,{modified:!0})))}))}detach(){this.choices&&(this.choices.destroy(),this.choices=null),super.detach()}normalizeValue(e){return"string"===this.component.storeas&&Array.isArray(e)?e.join(this.delimiter):"array"===this.component.storeas&&"string"==typeof e?e.split(this.delimiter).filter((e=>e)):e}setValue(e,t={}){const n=super.setValue(e,t);if(this.choices){let e=this.dataValue;if(this.choices.removeActiveItems(),e){"string"==typeof e&&(e=e.split(this.delimiter).filter((e=>e)));const t=Array.isArray(e)?e:[e];this.choices.setValue(t.map((e=>this.sanitize(e,this.shouldSanitizeValue))))}}return n}set disabled(e){super.disabled=e,this.choices&&(e?this.choices.disable():this.choices.enable())}get disabled(){return super.disabled}focus(){this.refs.input&&this.refs.input.length&&this.refs.input[0].parentNode.lastChild.focus()}getValueAsString(e){if(!e)return"";if(Array.isArray(e))return e.join(`${this.delimiter||","} `);const t=e.toString();return this.sanitize(t,this.shouldSanitizeValue)}}t.default=a},73420:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0},{weight:20,type:"textfield",input:!0,key:"delimeter",label:"Delimiter",tooltip:"What is used to separate the tags.</a>"},{weight:22,type:"number",input:!0,key:"maxTags",label:"Max Tags",defaultValue:0,tooltip:"The maximum amount of tags that can be added. 0 for infinity."},{weight:24,type:"select",input:!0,key:"storeas",label:"Store As",dataSrc:"values",data:{values:[{label:"String (CSV)",value:"string"},{label:"Array of Tags",value:"array"}]}}]},85854:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(72125)),o=i(n(79334)),s=i(n(80470));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default},{key:"validation",components:s.default}],...e)}},89559:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(4395)),o=i(n(96486)),s=n(76286);class a extends r.default{static schema(...e){return r.default.schema({type:"textarea",label:"Text Area",key:"textArea",rows:3,wysiwyg:!1,editor:"",fixedSize:!0,inputFormat:"html",validate:{minWords:"",maxWords:""}},...e)}static get builderInfo(){return{title:"Text Area",group:"basic",icon:"font",documentation:"/userguide/form-building/form-components#text-area",weight:20,schema:a.schema()}}init(){super.init(),this.editors=[],this.editorsReady=[],this.updateSizes=[],this.options.submitOnEnter=!1}get defaultSchema(){return a.schema()}get inputInfo(){const e=super.inputInfo;return e.type=this.component.wysiwyg?"div":"textarea",this.component.rows&&(e.attr.rows=this.component.rows),e}validateMultiple(){return!this.isJsonValue}renderElement(e,t){const n=this.inputInfo;if(n.attr=n.attr||{},n.content=e,(this.options.readOnly||this.disabled)&&!this.isHtmlRenderMode()){const t=this.info.attr.style||"",n=`<div ref="input" class="formio-editor-read-only-content" ${t?`style='${t}'`:""}></div>`;return this.renderTemplate("well",{children:n,nestedKey:this.key,value:e})}return this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:n,value:e,index:t})}get autoExpand(){return this.component.autoExpand}updateEditorValue(e,t){t=this.getConvertedValue(this.trimBlanks(t));const n=this.dataValue;if(this.component.multiple&&Array.isArray(n)){const i=o.default.clone(n);i[e]=t,t=i}o.default.isEqual(t,n)||o.default.isEmpty(t)&&o.default.isEmpty(n)||this.updateValue(t,{modified:!this.autoModified},e),this.autoModified=!1}attachElement(e,t){if(this.autoExpand&&(this.isPlain||this.options.readOnly||this.options.htmlView)&&"TEXTAREA"===e.nodeName&&this.addAutoExpanding(e,t),this.options.readOnly)return e;this.component.wysiwyg&&!this.component.editor&&(this.component.editor="ckeditor");let n=o.default.isEmpty(this.component.wysiwyg)?this.wysiwygDefault[this.component.editor]||this.wysiwygDefault.default:this.component.wysiwyg;return this.editorsReady[t]=new Promise((i=>{switch(this.component.editor){case"ace":n||(n={}),n.mode=this.component.as?`ace/mode/${this.component.as}`:"ace/mode/javascript",this.addAce(e,n,(e=>this.updateEditorValue(t,e))).then((e=>{this.editors[t]=e;let n=this.dataValue;return n=this.component.multiple&&Array.isArray(n)?n[t]:n,e.setValue(this.setConvertedValue(n,t)),i(e),e})).catch((e=>console.warn(e)));break;case"quill":(n.hasOwnProperty("toolbarGroups")||n.hasOwnProperty("toolbar"))&&(console.warn("The WYSIWYG settings are configured for CKEditor. For this renderer, you will need to use configurations for the Quill Editor. See https://quilljs.com/docs/configuration for more information."),n=this.wysiwygDefault.quill),this.addQuill(e,n,(()=>this.updateEditorValue(t,this.editors[t].root.innerHTML))).then((e=>{if(this.editors[t]=e,this.component.isUploadEnabled){const t=this;e.getModule("uploader").options.handler=function(...e){t.imageHandler.call(t,this,...e)}}e.root.spellcheck=this.component.spellcheck,(this.options.readOnly||this.disabled)&&e.disable();let n=this.dataValue;return n=this.component.multiple&&Array.isArray(n)?n[t]:n,e.setContents(e.clipboard.convert({html:this.setConvertedValue(n,t)})),i(e),e})).catch((e=>console.warn(e)));break;case"ckeditor":n=n||{},n.rows=this.component.rows,this.addCKE(e,n,(e=>this.updateEditorValue(t,e))).then((e=>{this.editors[t]=e;let n=this.dataValue;n=this.component.multiple&&Array.isArray(n)?n[t]:n;const r=this.setConvertedValue(n,t),a=this.options.readOnly||this.disabled;if((0,s.getBrowserInfo)().ie)e.on("instanceReady",(()=>{e.setReadOnly(a),e.setData(r)}));else{const t=parseInt(this.component.rows,10);if(o.default.isFinite(t)&&o.default.has(e,"ui.view.editable.editableElement")){const n=31*t+14;e.ui.view.editable.editableElement.style.height=`${n}px`}e.isReadOnly=a,e.data.set(r)}return i(e),e}));break;default:super.attachElement(e,t)}})),e}attach(e){const t=super.attach(e);return this.restoreValue(),t}imageHandler(e,t,n){const i=e.quill;if(!n||!n.length)return void console.warn("No files selected");i.enable(!1);const{uploadStorage:r,uploadUrl:o,uploadOptions:a,uploadDir:l,fileKey:u}=this.component;let c;this.fileService.uploadFile(r,n[0],(0,s.uniqueName)(n[0].name),l||"",null,o,a,u).then((e=>(c=e,this.fileService.downloadFile(e)))).then((e=>{i.enable(!0);const n=Quill.import("delta");i.updateContents((new n).retain(t.index).delete(t.length).insert({image:e.url},{alt:JSON.stringify(c)}),Quill.sources.USER)})).catch((e=>{console.warn("Quill image upload failed"),console.warn(e),i.enable(!0)}))}get isPlain(){return!this.component.wysiwyg&&!this.component.editor}get htmlView(){return this.options.readOnly&&(this.component.editor||this.component.wysiwyg)}setValueAt(e,t,n={}){if(super.setValueAt(e,t,n),this.editorsReady[e]){const i=n=>i=>{if(!n.skipWysiwyg)switch(this.autoModified=!0,this.component.editor){case"ace":i.setValue(this.setConvertedValue(t,e));break;case"quill":if(this.component.isUploadEnabled)this.setAsyncConvertedValue(t).then((e=>{const t=i.clipboard.convert({html:e});i.setContents(t)}));else{const n=this.setConvertedValue(t,e),r=i.clipboard.convert({html:n});i.setContents(r)}break;case"ckeditor":i.data.set(this.setConvertedValue(t,e))}};this.editorsReady[e].then(i(o.default.clone(n)))}}setValue(e,t={}){return this.isPlain||this.options.readOnly||this.disabled?(e=this.component.multiple&&Array.isArray(e)?e.map(((e,t)=>this.setConvertedValue(e,t))):this.setConvertedValue(e),super.setValue(e,t)):(t.skipWysiwyg=(""!==e||!t.resetValue)&&o.default.isEqual(e,this.getValue()),super.setValue(e,t))}setContent(e,t,n){super.setContent(e,t,n,{addAttr:["allow","allowfullscreen","frameborder","scrolling"],addTags:["iframe"]})}setReadOnlyValue(e,t){t=t||0,(this.options.readOnly||this.disabled)&&this.refs.input&&this.refs.input[t]&&("plain"===this.component.inputFormat?this.refs.input[t].innerText=this.interpolate(e,{},{noeval:!0}):this.setContent(this.refs.input[t],this.interpolate(e,{},{noeval:!0}),this.shouldSanitizeValue))}get isJsonValue(){return this.component.as&&"json"===this.component.as}setConvertedValue(e,t){if(this.isJsonValue&&!o.default.isNil(e))try{e=JSON.stringify(e,null,2)}catch(e){console.warn(e)}return o.default.isString(e)||(e=""),this.setReadOnlyValue(e,t),e}setAsyncConvertedValue(e){if(this.isJsonValue&&e)try{e=JSON.stringify(e,null,2)}catch(e){console.warn(e)}o.default.isString(e)||(e="");const t=(new DOMParser).parseFromString(e,"text/html"),n=t.getElementsByTagName("img");return n.length?this.setImagesUrl(n).then((()=>e=t.getElementsByTagName("body")[0].innerHTML)):Promise.resolve(e)}setImagesUrl(e){return Promise.all(o.default.map(e,(e=>{let t;try{t=JSON.parse(e.getAttribute("alt"))}catch(e){console.warn(e)}return this.fileService.downloadFile(t).then((t=>{e.setAttribute("src",t.url)}))})))}addAutoExpanding(e,t){let n=null,i=null;const r=t=>{const n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t},s=()=>{0!==e.scrollHeight&&((t,i)=>{const r=[];for(;t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&r.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode;e.style.height="",e.style.height=`${e.scrollHeight+n}px`,r.forEach((e=>{e.node.scrollTop=e.scrollTop}))})(e)},a=o.default.debounce((()=>{s();const t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null);let o=e.offsetHeight;o<t&&"hidden"===n.overflowY?r("scroll"):"hidden"!==n.overflowY&&r("hidden"),s(),o=e.offsetHeight,i!==o&&(i=o,a())}),200),l=window.getComputedStyle(e,null);e.style.resize="none",n=parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth)||0,window&&this.addEventListener(window,"resize",a),this.addEventListener(e,"input",a),this.on("initialized",a),this.updateSizes[t]=a,a()}trimBlanks(e){if(!e||this.isPlain)return e;const t=e=>{const t="<p>&nbsp;</p>",n="<p><br></p>",i="<p><br>&nbsp;</p>",r=new RegExp(`^${t}|${t}$|^${n}|${n}$|^${i}|${i}$`,"g");return"string"==typeof e?e.replace(r,""):e};return Array.isArray(e)?e.forEach(((n,i)=>{e[i]=t(n)})):e=t(e),e}onChange(e,t){const n=super.onChange(e,t);return this.updateSizes.forEach((e=>e())),n}hasChanged(e,t){return super.hasChanged(this.trimBlanks(e),this.trimBlanks(t))}isEmpty(e=this.dataValue){return super.isEmpty(this.trimBlanks(e))}get defaultValue(){let e=super.defaultValue;return"quill"!==this.component.editor||e||(e="<p><br></p>"),e}getConvertedValue(e){if(this.isJsonValue&&e)try{e=JSON.parse(e)}catch(e){}return e}detach(){this.editors.forEach((e=>{e.destroy&&e.destroy()})),this.editors=[],this.editorsReady=[],this.updateSizes.forEach((e=>this.removeEventListener(window,"resize",e))),this.updateSizes=[],super.detach()}getValue(){return this.isPlain?this.getConvertedValue(super.getValue()):this.dataValue}focus(){var e,t,n;switch(super.focus(),this.component.editor){case"ckeditor":null===(e=this.editorsReady[0])||void 0===e||e.then((()=>{var e,t;(null===(t=null===(e=this.editors[0].editing)||void 0===e?void 0:e.view)||void 0===t?void 0:t.focus)&&this.editors[0].editing.view.focus(),this.element.scrollIntoView()})).catch((e=>{console.warn("An editor did not initialize properly when trying to focus:",e)}));break;case"ace":null===(t=this.editorsReady[0])||void 0===t||t.then((()=>{this.editors[0].focus(),this.element.scrollIntoView()})).catch((e=>{console.warn("An editor did not initialize properly when trying to focus:",e)}));break;case"quill":null===(n=this.editorsReady[0])||void 0===n||n.then((()=>{this.editors[0].focus()})).catch((e=>{console.warn("An editor did not initialize properly when trying to focus:",e)}))}}}t.default=a},79334:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=n(61066);t.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"mask",ignore:!0},{type:"number",input:!0,key:"rows",label:"Rows",weight:210,tooltip:"This allows control over how many rows are visible in the text area.",placeholder:"Enter the amount of rows"},{weight:1350,type:"checkbox",input:!0,key:"spellcheck",defaultValue:!0,label:"Allow Spellcheck"},{type:"select",input:!0,key:"editor",label:"Editor",tooltip:"Select the type of WYSIWYG editor to use for this text area.",dataSrc:"values",data:{values:[{label:"None",value:""},{label:"ACE",value:"ace"},{label:"CKEditor",value:"ckeditor"},{label:"Quill",value:"quill"}]},weight:415},{type:"checkbox",input:!0,key:"autoExpand",label:"Auto Expand",tooltip:"This will make the TextArea auto expand it's height as the user is typing into the area.",weight:415,conditional:{json:{"==":[{var:"data.editor"},""]}}},{type:"checkbox",input:!0,key:"isUploadEnabled",label:"Enable Image Upload",weight:415.1,conditional:{json:{or:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.editor"},"ckeditor"]}]}}},{type:"select",input:!0,key:"uploadStorage",label:"Image Upload Storage",placeholder:"Select your file storage provider",weight:415.2,tooltip:"Which storage to save the files in.",valueProperty:"value",dataSrc:"custom",data:{custom:()=>r.default.map(o.Formio.Providers.getProviders("storage"),((e,t)=>({label:e.title,value:t})))},conditional:{json:{"===":[{var:"data.isUploadEnabled"},!0]}}},{type:"textfield",input:!0,key:"uploadUrl",label:"Image Upload Url",weight:415.3,placeholder:"Enter the url to post the files to.",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#server-side' target='_blank'>https://github.com/danialfarid/ng-file-upload#server-side</a> for how to set up the server.",conditional:{json:{"===":[{var:"data.uploadStorage"},"url"]}}},{type:"textarea",key:"uploadOptions",label:"Image Upload Custom request options",tooltip:"Pass your custom xhr options(optional)",rows:5,editor:"ace",input:!0,weight:415.4,placeholder:'{\n "withCredentials": true\n }',conditional:{json:{"===":[{var:"data.uploadStorage"},"url"]}}},{type:"textfield",input:!0,key:"uploadDir",label:"Image Upload Directory",placeholder:"(optional) Enter a directory for the files",tooltip:"This will place all the files uploaded in this field in the directory",weight:415.5,conditional:{json:{"===":[{var:"data.isUploadEnabled"},!0]}}},{type:"textfield",key:"fileKey",input:!0,label:"File form-data Key",tooltip:"Key name that you would like to modify for the file while calling API request.",rows:5,weight:415.6,placeholder:"Enter the key name of a file for form data.",conditional:{json:{and:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.isUploadEnabled"},!0]},{"===":[{var:"data.uploadStorage"},"url"]}]}}},{type:"select",input:!0,key:"as",label:"Save As",dataSrc:"values",tooltip:"This setting determines how the value should be entered and stored in the database.",clearOnHide:!0,data:{values:[{label:"String",value:"string"},{label:"JSON",value:"json"},{label:"HTML",value:"html"}]},conditional:{json:{or:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.editor"},"ace"]}]}},weight:416},{type:"textarea",input:!0,editor:"ace",rows:10,as:"json",label:"Editor Settings",tooltip:"Enter the WYSIWYG editor JSON configuration.",key:"wysiwyg",customDefaultValue:(e,t,n,i,r)=>r?r.wysiwygDefault:"",conditional:{json:{or:[{"===":[{var:"data.editor"},"ace"]},{"===":[{var:"data.editor"},"ckeditor"]},{"===":[{var:"data.editor"},"quill"]}]}},weight:417}]},80470:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{weight:125,key:"validate.minWords",label:"Minimum Word Length",placeholder:"Minimum Word Length",type:"number",tooltip:"The minimum amount of words that can be added to this field.",input:!0},{weight:126,key:"validate.maxWords",label:"Maximum Word Length",placeholder:"Maximum Word Length",type:"number",tooltip:"The maximum amount of words that can be added to this field.",input:!0}]},72125:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(85950)),o=i(n(8749)),s=i(n(12220)),a=i(n(73940));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:o.default},{key:"validation",components:a.default}],...e)}},4395:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=s(n(14297)),l=n(47853),u=o(n(76286));class c extends a.default{static schema(...e){return a.default.schema({label:"Text Field",key:"textField",type:"textfield",mask:!1,inputType:"text",inputFormat:"plain",inputMask:"",displayMask:"",tableView:!0,spellcheck:!0,truncateMultipleSpaces:!1,validate:{minLength:"",maxLength:"",pattern:""}},...e)}static get builderInfo(){return{title:"Text Field",icon:"terminal",group:"basic",documentation:"/userguide/form-building/form-components#text-field",weight:0,schema:c.schema()}}static get serverConditionSettings(){return c.conditionOperatorsSettings}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{operators:[...super.conditionOperatorsSettings.operators,"includes","notIncludes","endsWith","startsWith"]})}static savedValueTypes(e){return u.getComponentSavedTypes(e)||[u.componentValueTypes.string]}get defaultSchema(){return c.schema()}get inputInfo(){const e=super.inputInfo;return e.type="input",this.component.hasOwnProperty("spellcheck")&&(e.attr.spellcheck=this.component.spellcheck),this.component.mask?e.attr.type="password":e.attr.type="password"===this.component.inputType?"password":"text",e.changeEvent="blur"===this.component.applyMaskOn?"blur":"input",e}get emptyValue(){return""}constructor(e,t,n){var i,r,o;super(e,t,n);const s=(null===(i=this.component.widget)||void 0===i?void 0:i.timezone)||this.options.timezone,a=(null===(r=this.component.widget)||void 0===r?void 0:r.displayInTimezone)||"viewer";"calendar"===(null===(o=this.component.widget)||void 0===o?void 0:o.type)&&(this.component.widget=Object.assign(Object.assign({},this.component.widget),{readOnly:this.options.readOnly,timezone:s,displayInTimezone:a,locale:this.component.widget.locale||this.options.language,saveAs:"text"}))}attach(e){return this.loadRefs(e,{valueMaskInput:"single"}),super.attach(e)}maskValue(e,t={}){if(e&&"object"==typeof e||(e={value:e,maskName:this.component.inputMasks[0].label}),!e.value){const n=t.noDefault?this.emptyValue:this.defaultValue;e.value=Array.isArray(n)?n[0]:n}return e}normalizeValue(e,t={}){return this.isMultipleMasksField?Array.isArray(e)?super.normalizeValue(e.map((e=>this.maskValue(e,t)))):super.normalizeValue(this.maskValue(e,t)):super.normalizeValue(e)}setValueAt(e,t,n={}){if(!this.isMultipleMasksField)return super.setValueAt(e,t,n);const i=(t=this.maskValue(t,n)).value||"",r=this.refs.mask?this.refs.mask[e]:null,o=this.refs.select?this.refs.select[e]:null,s=this.getMaskPattern(t.maskName);if(!(r&&o&&s))return super.setValueAt(e,i,n);{const e=this.placeholderChar;r.value=(0,l.conformToMask)(i,u.getInputMask(s),{placeholderChar:e}).conformedValue,o.value=t.maskName}}unmaskValue(e,t=this.component.displayMask){const n=u.getInputMask(t,this.placeholderChar);return u.unmaskValue(e,n,this.placeholderChar)}getValueAt(e){var t,n;if(!this.isMultipleMasksField){const i=super.getValueAt(e),r=this.component.inputMask,o=this.component.displayMask;return r&&!o||o===r?i:o&&!r?this.unmaskValue(i,o):(null===(t=this.refs.valueMaskInput)||void 0===t?void 0:t.mask)?(this.refs.valueMaskInput.mask.textMaskInputElement.update(i),null===(n=this.refs.valueMaskInput)||void 0===n?void 0:n.value):i}const i=this.refs.mask?this.refs.mask[e]:null,r=this.refs.select?this.refs.select[e]:null;return{value:i?i.value:void 0,maskName:r?r.value:void 0}}getValueAsString(e,t){return e&&"plain"===this.component.inputFormat&&/<[^<>]+>/g.test(e)&&(e=e.replaceAll("<","&lt;").replaceAll(">","&gt;")),super.getValueAsString(e,t)}isHtmlRenderMode(){return super.isHtmlRenderMode()||(this.options.readOnly||this.disabled)&&"html"===this.component.inputFormat&&"textfield"===this.type}isEmpty(e=this.dataValue){return this.isMultipleMasksField?super.isEmpty(e)||(this.component.multiple?0===e.length:!e.maskName||!e.value):super.isEmpty((e||"").toString().trim())}truncateMultipleSpaces(e){return e?e.trim().replace(/\s{2,}/g," "):e}get validationValue(){const e=super.validationValue;return e&&this.component.truncateMultipleSpaces?this.truncateMultipleSpaces(e):e}beforeSubmit(){let e=this.dataValue;return this.component.truncateMultipleSpaces&&e?(e=this.truncateMultipleSpaces(e),this.dataValue=e,Promise.resolve(e).then((()=>super.beforeSubmit()))):Promise.resolve(e)}}t.default=c},8749:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"select",label:"Input Format",key:"inputFormat",weight:105,placeholder:"Input Format",tooltip:"Force the output of this field to be sanitized in a specific format.",template:"<span>{{ item.label }}</span>",data:{values:[{value:"plain",label:"Plain"},{value:"html",label:"HTML"},{value:"raw",label:"Raw (Insecure)"}]},defaultValue:"plain",input:!0},{weight:200,type:"radio",label:"Text Case",key:"case",tooltip:"When data is entered, you can change the case of the value.",input:!0,values:[{value:"mixed",label:"Mixed (Allow upper and lower case)"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"}]},{weight:205,type:"checkbox",input:!0,key:"truncateMultipleSpaces",label:"Truncate Multiple Spaces"}]},12220:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(94554)),o=i(n(96486));t.default=[{weight:400,type:"select",input:!0,key:"widget.type",label:"Widget",placeholder:"Select a widget",tooltip:"The widget is the display UI used to input the value of the field.",defaultValue:"input",onChange:e=>{e.data.widget=o.default.pick(e.data.widget,"type")},dataSrc:"values",data:{values:[{label:"Input Field",value:"input"},{label:"Calendar Picker",value:"calendar"}]},conditional:{json:{"===":[{var:"data.type"},"textfield"]}}},{weight:405,type:"textarea",key:"widget",label:"Widget Settings",refreshOn:"wiget.type",clearOnHide:!1,calculateValue:e=>{const{calculatedValue:t}=e.instance,{type:n}=e.data.widget;if(o.default.isEmpty(o.default.omit(e.data.widget,"type"))||o.default.isEmpty(o.default.omit(t,"type"))){if(t&&!t.type)return e.data.widget;const i=e.instance._currentForm.options.editComponent.widget;if(i&&!o.default.isEmpty(o.default.omit(i,"type"))&&n===i.type)return o.default.omit(i,"language");if(n)return o.default.omit(r.default[n].defaultSettings,"language")}return e.data.widget},input:!0,rows:5,editor:"ace",as:"json",conditional:{json:{"!==":[{var:"data.widget.type"},"input"]}}},{weight:410,type:"textfield",input:!0,key:"inputMask",label:"Input Mask",tooltip:"An input mask helps the user with input by ensuring a predefined format.<br><br>9: numeric<br>a: alphabetical<br>*: alphanumeric<br><br>Example telephone mask: (999) 999-9999<br><br>See the <a target='_blank' href='https://github.com/RobinHerbots/jquery.inputmask'>jquery.inputmask documentation</a> for more information.</a>",customConditional:e=>!e.data.allowMultipleMasks},{weight:410,type:"textfield",input:!0,key:"displayMask",label:"Display Mask",tooltip:"A display mask helps to display the input in a readable way, this won't affect the value which will be saved (to affect both view and saved value, delete Display Mask and use Input Mask).<br><br>9: numeric<br>a: alphabetical<br>*: alphanumeric<br><br>Example telephone mask: (999) 999-9999<br><br>See the <a target='_blank' href='https://github.com/RobinHerbots/jquery.inputmask'>jquery.inputmask documentation</a> for more information.</a>",customConditional:e=>!e.data.allowMultipleMasks},{weight:410,type:"select",input:!0,key:"applyMaskOn",label:"Apply Mask On",tooltip:"Select the type of applying mask.",defaultValue:"change",dataSrc:"values",data:{values:[{label:"Change",value:"change"},{label:"Blur",value:"blur"}]},customConditional:e=>!e.data.allowMultipleMasks},{weight:411,type:"textfield",input:!0,key:"inputMaskPlaceholderChar",label:"Input Mask Placeholder Char",tooltip:"You can specify a char which will be used as a placeholder in the field. <br>E.g., ˍ<br>Make note that placeholder char will be replaced by a space if it is used inside the mask",validation:{maxLength:1},customConditional:e=>e.data.inputMask||e.data.displayMask},{weight:413,type:"checkbox",input:!0,key:"allowMultipleMasks",label:"Allow Multiple Masks"},{weight:1350,type:"checkbox",input:!0,key:"spellcheck",defaultValue:!0,label:"Allow Spellcheck"},{weight:417,type:"datagrid",input:!0,key:"inputMasks",label:"Input Masks",customConditional:e=>!0===e.data.allowMultipleMasks,reorder:!0,components:[{type:"textfield",key:"label",label:"Label",input:!0},{type:"textfield",key:"mask",label:"Mask",input:!0}]},{weight:320,type:"textfield",input:!0,key:"prefix",label:"Prefix"},{weight:330,type:"textfield",input:!0,key:"suffix",label:"Suffix"},{weight:700,type:"textfield",input:!0,key:"autocomplete",label:"Autocomplete",placeholder:"on",tooltip:"Indicates whether input elements can by default have their values automatically completed by the browser. See the <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete'>MDN documentation</a> on autocomplete for more information."},{weight:1300,type:"checkbox",label:"Hide Input",tooltip:"Hide the input in the browser. This does not encrypt on the server. Do not use for passwords.",key:"mask",input:!0},{weight:1200,type:"checkbox",label:"Show Word Counter",tooltip:"Show a live count of the number of words.",key:"showWordCount",input:!0},{weight:1201,type:"checkbox",label:"Show Character Counter",tooltip:"Show a live count of the number of characters.",key:"showCharCount",input:!0}]},73940:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"number",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"number",tooltip:"The maximum length requirement this field must meet.",input:!0},{weight:125,key:"validate.minWords",label:"Minimum Word Length",placeholder:"Minimum Word Length",type:"number",tooltip:"The minimum amount of words that can be added to this field.",input:!0},{weight:126,key:"validate.maxWords",label:"Maximum Word Length",placeholder:"Maximum Word Length",type:"number",tooltip:"The maximum amount of words that can be added to this field.",input:!0},{weight:130,key:"validate.pattern",label:"Regular Expression Pattern",placeholder:"Regular Expression Pattern",type:"textfield",tooltip:"The regular expression pattern test that the field value must pass before the form can be submitted.",input:!0}]},23803:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(83095)),o=i(n(56819)),s=i(n(4680));t.default=function(...e){return(0,r.default)([{key:"data",components:o.default},{key:"display",components:s.default}],...e)}},51068:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(30381)),o=i(n(4395)),s=n(76286),a="HH:mm:ss";class l extends o.default{static schema(...e){return o.default.schema({type:"time",label:"Time",key:"time",inputType:"time",format:"HH:mm",dataFormat:a},...e)}static get serverConditionSettings(){return Object.assign(Object.assign({},super.serverConditionSettings),{valueComponent:e=>Object.assign(Object.assign({},e),{type:"time"})})}constructor(e,t,n){super(e,t,n);const{edge:i,version:r}=(0,s.getBrowserInfo)();this.component.inputMask=this.getInputMaskFromFormat(this.component.format),this.component.inputType=i&&r<=18?"text":this.component.inputType||"time",this.rawData=this.component.multiple?[]:this.emptyValue}init(){super.init(),"text"===this.component.inputType&&this.validators.push("time")}static get builderInfo(){return{title:"Time",icon:"clock-o",group:"advanced",documentation:"/userguide/form-building/advanced-components#time-1",weight:55,schema:l.schema()}}get dataFormat(){return this.component.dataFormat||a}get defaultSchema(){return l.schema()}get defaultValue(){let e=super.defaultValue;return this.component.multiple&&Array.isArray(e)?e=e.map((e=>e?this.getStringAsValue(e):e)):e&&(e=this.getStringAsValue(e)),e}get validationValue(){return Array.isArray(this.rawData)&&!this.rawData.length||!this.rawData?this.dataValue:this.rawData}get inputInfo(){const e=super.inputInfo;return e.attr.type=this.component.inputType,e}get skipMaskValidation(){return!0}isNotCompleteInput(e){return e.includes("_")}removeValue(e){this.rawData=Array.isArray(this.rawData)?[...this.rawData.slice(0,e),...this.rawData.slice(e+1)]:this.emptyValue,super.removeValue(e)}resetRawData(e){e?this.setRawValue(this.emptyValue,e):this.rawData=[]}setRawValue(e,t){Array.isArray(this.rawData)?this.rawData[t]=e:this.rawData=e}getRawValue(e){return e&&Array.isArray(this.rawData)?this.rawData[e]||this.emptyValue:this.rawData}getValueAt(e){if(!this.refs.input.length||!this.refs.input[e])return this.emptyValue;const{value:t}=this.refs.input[e];return t?(this.setRawValue(t,e),this.getStringAsValue(t)):(this.resetRawData(e),this.emptyValue)}setValueAt(e,t){this.setRawValue(t?this.getValueAsString(t):t,e),this.refs.input[e].value=this.getRawValue(e)}getStringAsValue(e){return e?(0,r.default)(e,this.component.format).format(this.component.dataFormat):e}getValueAsString(e){return(e?(0,r.default)(e,this.component.dataFormat).format(this.component.format):e)||""}getInputMaskFromFormat(e){return"LT"===e?"99:99 AA":"LTS"===e?"99:99:99 AA":e.replace(/[hHmMsSk]/g,"9").replace(/[aA]/,"AA")}addFocusBlurEvents(e){super.addFocusBlurEvents(e),this.addEventListener(e,"blur",(()=>{e.value=this.getValueAsString(e.value)}))}}t.default=l},56819:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"textfield",input:!0,key:"dataFormat",label:"Data Format",placeholder:"HH:mm:ss",tooltip:"The moment.js format for saving the value of this field.",weight:25}]},4680:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"select",input:!0,weight:40,tooltip:"Select the type of widget you'd like to use.",key:"inputType",defaultValue:"time",label:"Input Type",dataSrc:"values",data:{values:[{label:"HTML5 Time Input",value:"time"},{label:"Text Input with Mask",value:"text"}]}},{type:"textfield",input:!0,key:"format",label:"Format",placeholder:"Format",tooltip:"The moment.js format for showing the value of this field.",weight:50,defaultValue:"HH:mm",conditional:{json:{"===":[{var:"data.inputType"},"text"]}}},{key:"placeholder",ignore:!0}]},93457:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486));class o{constructor(e,{data:t={},children:n=[]}={},{checkNode:i,createComponents:s,isNew:a=!0,removeComponents:l,parentPath:u=""}={}){this.parent=e,this.previousData={},this.persistentData=r.default.cloneDeep(t),this.new=a,this.createComponents=s,this.checkNode=i,this.removeComponents=l,this.revertAvailable=!1,this.editing=!1,this.collapsed=!1,this.components=[],this.children=[],this.parentPath=u,this.resetData(),this.children=n.map(((e,t)=>new o(this,e,{checkNode:i,createComponents:s,isNew:!1,removeComponents:l,parentPath:this.getChildrenPath(t)})))}get value(){return this.new?null:{data:r.default.cloneDeep(this.persistentData),children:this.children.filter((e=>!e.new)).map((e=>e.value))}}get isRoot(){return null===this.parent}get changing(){return this.new||this.editing}get hasChangingChildren(){return this.changin||this.children.some((e=>e.hasChangingChildren))}get hasData(){return!r.default.isEmpty(this.persistentData)}get hasChildren(){return Array.isArray(this.children)&&this.children.length>0}getChildrenPath(e){return this.parentPath?`${this.parentPath}.children[${e}]`:""}eachChild(e){return e(this),this.children.forEach((t=>t.eachChild(e))),this}getComponents(){return this.children.reduce(((e,t)=>e.concat(t.getComponents())),this.components)}validateNode(){let e=!0;return this.getComponents().forEach((t=>{t.setPristine(!1),e&=t.checkValidity(null,!1,this.persistentData)})),e}addChild(){if(this.new)return null;const e=new o(this,{},{checkNode:this.checkNode,createComponents:this.createComponents,isNew:!0,removeComponents:this.removeComponents,parentPath:this.getChildrenPath(this.children.length)});return this.children=this.children.concat(e),e}removeChild(e){return this.new||(this.children=this.children.filter((t=>t!==e))),this}edit(){return this.new?this:(this.editing=!0,this.resetData())}save(){const e=this.validateNode();return this.changing&&e&&(this.new?this.new=!1:(this.editing=!1,this.revertAvailable=!0),this.commitData()),e}cancel(){return this.new?this.remove():this.editing&&(this.editing=!1,this.resetData()),this}remove(){return this.parent.removeChild(this),this.parent=null,this.clearComponents(),this}revert(){return this.revertAvailable?(this.data=this.previousData,this.commitData()):this}commitData(){return this.previousData=this.persistentData,this.persistentData=r.default.cloneDeep(this.data),this.clearComponents(),this}resetData(){return this.data=r.default.cloneDeep(this.persistentData),this.updateComponentsContext(),this}updateComponentsContext(){return this.changing?this.instantiateComponents():this.clearComponents(),this}instantiateComponents(){this.components=this.createComponents(this.data,this),this.components.forEach((e=>{if(this.parentPath){const t=this.calculateComponentPath(e);e.path=t}})),this.checkNode(this)}clearComponents(){this.removeComponents(this.components),this.components=[]}calculateComponentPath(e){let t="";return e.component.key&&(t=`${this.parentPath}.data.${e.component.key}`),t}}t.default=o},95606:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(83095)),o=i(n(67118)),s=i(n(14559));t.default=function(...e){return(0,r.default)([{key:"display",components:s.default},{key:"data",components:o.default}],...e)}},17817:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(93977)),s=i(n(85950)),a=i(n(72048)),l=i(n(93457));class u extends a.default{static schema(...e){return a.default.schema({label:"Tree",key:"tree",type:"tree",clearOnHide:!0,input:!0,tree:!0,components:[],multiple:!1},...e)}static get builderInfo(){return{title:"Tree",icon:"indent",weight:40,documentation:"/userguide/form-building/data-components#tree",showPreview:!1,schema:u.schema()}}constructor(...e){super(...e),this.type="tree"}get emptyValue(){return{}}get viewComponents(){return this.viewComponentsInstantiated||(this.viewComponentsInstantiated=!0,this._viewComponents=this.createComponents({})),this._viewComponents}init(){if(this.builderMode)return super.init();this.components=[],this.componentOptions=Object.assign(Object.assign({},this.options),{parent:this,root:this.root||this}),this.disabled=this.shouldDisabled,this.setRoot(),this.viewComponentsInstantiated=!1,this._viewComponents=[]}get disabled(){return super.disabled}set disabled(e){super.disabled=e,this.viewComponents.forEach((t=>t.parentDisabled=e))}get isDefaultValueComponent(){return!!this.options.editComponent&&!!this.options.editForm&&"defaultValue"===this.component.key}destroy(e=!1){this.builderMode||this.removeComponents(this._viewComponents,e),super.destroy(e)}createComponents(e,t){const n=this.componentComponents.map((t=>{const n=s.default.create(t,this.componentOptions,e);return n.init(),n.parentDisabled=this.disabled,n}));return t&&this.checkNode(this.data,t),n}removeComponents(e,t=!1){return e.map((e=>e.destroy(t)))}render(){return this.builderMode?super.render():super.render(this.renderTree(this.treeRoot))}renderTree(e={},t=!0){const n=e.hasChildren&&!e.collapsed?this.renderChildNodes(e.children,!t):[],i=e.changing?this.renderEdit(e):this.renderView(e);return this.renderTemplate("tree",{odd:t,childNodes:n,content:i,node:e})}renderChildNodes(e=[],t){return e.map((e=>this.renderTree(e,t)))}renderEdit(e={}){return this.renderTemplate("treeEdit",{children:this.renderComponents(e.components),node:e})}renderView(e={}){return this.renderTemplate("treeView",{values:this.viewComponents.map((t=>(t.data=e.data,t.checkComponentConditions(e.data),t.getView(t.dataValue)))),nodeData:e.data,node:e})}attach(e){return this.builderMode?super.attach(e):(this.loadRefs(e,{root:"single"}),Promise.all([super.attach(e),this.attachNode(this.refs.root,this.treeRoot)]))}attachNode(e,t){if(!e)return Promise.resolve();let n=Promise.resolve(),i=Promise.resolve();return t.refs=r.default.reduce(e.children,((e,t)=>t.hasAttribute("ref")?Object.assign(Object.assign({},e),{[t.getAttribute("ref")]:t}):e),{}),t.refs.content&&(this.attachActions(t),n=this.attachComponents(t)),t.refs.childNodes&&(i=this.attachChildren(t)),Promise.all([n,i])}attachActions(e){var t;e.editing||this.loadRefs.call(e,e.refs.content,{addChild:"single",editNode:"single",removeNode:"single",revertNode:"single",toggleNode:"single"}),this.loadRefs.call(e,(null===(t=e.refs.content.children[0])||void 0===t?void 0:t.children[1])||e.refs.content,{cancelNode:"single",saveNode:"single"}),e.refs.addChild&&this.addEventListener(e.refs.addChild,"click",(()=>{this.addChild(e)})),e.refs.cancelNode&&this.addEventListener(e.refs.cancelNode,"click",(()=>{this.cancelNode(e)})),e.refs.editNode&&this.addEventListener(e.refs.editNode,"click",(()=>{this.editNode(e)})),e.refs.removeNode&&this.addEventListener(e.refs.removeNode,"click",(()=>{this.removeNode(e)})),e.refs.revertNode&&this.addEventListener(e.refs.revertNode,"click",(()=>{this.revertNode(e)})),e.refs.saveNode&&this.addEventListener(e.refs.saveNode,"click",(()=>{this.saveNode(e)})),e.refs.toggleNode&&this.addEventListener(e.refs.toggleNode,"click",(()=>{this.toggleNode(e)}))}attachComponents(e,...t){return this.builderMode?super.attachComponents.call(this,e,...t):(this.loadRefs.call(e,e.refs.content,{nodeEdit:"single"}),e.refs.nodeEdit?super.attachComponents(e.refs.nodeEdit,e.components):Promise.resolve())}attachChildren(e){const t=e.refs.childNodes.children;return Promise.all(r.default.map(t,((t,n)=>this.attachNode(t,e.children[n]))))}setValue(e,t={}){const n=this.updateValue(e,t);return this.setRoot(),n}addChild(e){this.options.readOnly||e.new||this.hook("tree.addChild",{parent:e,component:this},(()=>{const t=e.addChild();return this.redraw(),t}))}cancelNode(e){this.options.readOnly||this.hook("tree.cancelNode",{node:e,component:this},(()=>(e.isRoot?e.persistentData&&!r.default.isEmpty(e.persistentData)?(e.cancel(),this.redraw()):this.removeRoot():(e.cancel(),this.redraw()),e)))}editNode(e){this.options.readOnly||e.new||this.hook("tree.editNode",{node:e,component:this},(()=>(e.edit(),this.redraw(),e)))}removeNode(e){this.options.readOnly||e.new||this.hook("tree.removeNode",{node:e,component:this},(()=>(e.isRoot?this.removeRoot():(e.remove(),this.updateTree()),e)))}revertNode(e){!this.options.readOnly&&e.revertAvailable&&this.hook("tree.revertNode",{node:e,component:this},(()=>(e.revert(),this.updateTree(),e)))}saveNode(e){this.options.readOnly||this.hook("tree.saveNode",{node:e,component:this},(()=>(e.save()&&this.updateTree(),e)))}toggleNode(e){this.hook("tree.toggleNode",{node:e,component:this},(()=>(e.collapsed=!e.collapsed,this.redraw(),e)))}removeRoot(){this.options.readOnly||(this.dataValue=this.defaultValue,this.setRoot(),this.redraw())}setRoot(){const e=this.getValue();this.treeRoot=new l.default(null,e,{isNew:!!this.builderMode||!e.data,createComponents:this.createComponents.bind(this),checkNode:this.checkNode.bind(this,this.data),removeComponents:this.removeComponents,parentPath:this.isDefaultValueComponent?this.path||this.component.key:null}),this.hook("tree.setRoot",{root:this.treeRoot,component:this}),this.redraw()}getValue(){return this.dataValue||{}}updateTree(){this.updateValue(this.treeRoot.value),this.redraw()}checkData(e,t,n){return this.checkNode(e,this.treeRoot,t,n)}checkNode(e,t,n,i){return t.children.reduce(((t,r)=>this.checkNode(e,r,n,i)&&t),super.checkData(e,n,t.data,t.components)&&!t.editing&&!t.new)}getComponents(){return this.treeRoot&&(this.isDefaultValueComponent||!this.isDefaultValueComponent&&!this.builderMode)?this.treeRoot.getComponents():super.getComponents()}}t.default=u,u.prototype.hasChanged=o.default.prototype.hasChanged},67118:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0}]},14559:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"treeInfo",weight:-10,type:"htmlelement",tag:"div",className:"alert alert-danger",content:"This component has been deprecated and will be removed in a future version of Formio.js."}]},65915:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(38723));t.default=function(){return{components:[{type:"tabs",key:"tabs",components:[{label:"Custom",key:"display",weight:0,components:r.default}]}]}}},33503:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(93977));class o extends r.default{static schema(){return{type:"custom",key:"custom",protected:!1,persistent:!0}}static get builderInfo(){return{title:"Custom",icon:"cubes",group:"premium",documentation:"/userguide/form-building/premium-components#custom",weight:120,schema:o.schema()}}get defaultSchema(){return o.schema()}}t.default=o},38723:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"customComponentDescription",label:"Custom component description",input:!1,tag:"p",content:'Custom components can be used to render special fields or widgets inside your app. For information on how to display in an app, see <a href="http://help.form.io/userguide/#custom" target="_blank" rel="noopener noreferrer">custom component documentation</a>.',type:"htmlelement",weight:5},{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"componentJson",label:"Custom Element JSON",tooltip:"Enter the JSON for this custom element."}]},41603:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(72125)),o=i(n(56657)),s=i(n(75763)),a=i(n(83548));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default},{key:"data",components:s.default},{key:"validation",components:a.default}],...e)}},99101:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(4395));class o extends r.default{static schema(...e){return r.default.schema({type:"url",label:"Url",key:"url",inputType:"url"},...e)}static get builderInfo(){return{title:"Url",group:"advanced",icon:"link",documentation:"/userguide/form-building/advanced-components#url",weight:20,schema:o.schema()}}constructor(e,t,n){super(e,t,n),this.validators.push("url")}get defaultSchema(){return o.schema()}elementInfo(){const e=super.elementInfo();return e.attr.type=this.component.mask?"password":"url",e}}t.default=o},75763:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"case",ignore:!0}]},56657:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},83548:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},39534:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(4219)),o=i(n(1679));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default}],...e)}},93009:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(99216));class o extends r.default{static schema(...e){return r.default.schema({type:"well",key:"well",input:!1,persistent:!1,components:[]},...e)}static get builderInfo(){return{title:"Well",icon:"square-o",group:"layout",documentation:"/userguide/form-building/layout-components#well",showPreview:!1,weight:60,schema:o.schema()}}static savedValueTypes(){return[]}get defaultSchema(){return o.schema()}get className(){return`${this.component.customClass}`}get templateName(){return"well"}constructor(...e){super(...e),this.noField=!0}}t.default=o},1679:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0}]},33372:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(68603)),s=i(n(22114)),a=i(n(29022));class l{static addDisplay(e,t){l.displays[e]=t}static addDisplays(e){l.displays=r.default.merge(l.displays,e)}static getDisplay(e){return l.displays[e]}static getDisplays(){return l.displays}}l.displays={pdf:o.default,webform:s.default,wizard:a.default},t.default=l},44718:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(33372));t.default=r.default},9267:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Licenses=t.Formio=t.Form=t.Utils=t.ValueSources=t.Transformers=t.QuickRules=t.Operators=t.Conjunctions=t.Templates=t.Widgets=t.Rules=t.Providers=t.Displays=t.Components=t.useModule=t.registerModule=void 0;const r=i(n(96486)),o=n(61066);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return o.Formio}});const s=i(n(3278)),a=i(n(85950));t.Components=a.default;const l=i(n(33372));t.Displays=l.default;const u=i(n(40170));t.Templates=u.default;const c=i(n(29256));t.Providers=c.default;const d=i(n(49451));t.Rules=d.default;const h=i(n(63196));t.Conjunctions=h.default;const p=i(n(19969));t.Operators=p.default;const f=i(n(88685));t.QuickRules=f.default;const m=i(n(66477));t.Transformers=m.default;const g=i(n(46386));t.ValueSources=g.default;const v=i(n(94554));t.Widgets=v.default;const y=i(n(66088));t.Form=y.default;const b=i(n(83414));t.Utils=b.default;const w=i(n(8128)),_=i(n(8344));function k(e,t=null,n={}){if("object"==typeof e)for(const i of Object.keys(e)){const s=e.framework||o.Formio.Templates.framework||"bootstrap";switch(i){case"options":o.Formio.options=r.default.merge(o.Formio.options,e.options);break;case"templates":for(const t of Object.keys(e.templates))o.Formio.Templates.extendTemplate(t,e.templates[t]);e.templates[s]&&(o.Formio.Templates.current=e.templates[s]);break;case"components":o.Formio.Components.setComponents(e.components);break;case"framework":o.Formio.Templates.framework=e.framework;break;case"fetch":for(const t of Object.keys(e.fetch))o.Formio.registerPlugin(e.fetch[t],t);break;case"providers":for(const t of Object.keys(e.providers))o.Formio.Providers.addProviders(t,e.providers[t]);break;case"displays":o.Formio.Displays.addDisplays(e.displays);break;case"rules":o.Formio.Rules.addRules(e.rules);break;case"evaluator":o.Formio.Evaluator.registerEvaluator(e.evaluator);break;case"conjunctions":o.Formio.Conjunctions.addConjunctions(e.conjunctions);break;case"operators":o.Formio.Operators.addOperators(e.operators);break;case"quickRules":o.Formio.QuickRules.addQuickRules(e.quickRules);break;case"transformers":o.Formio.Transformers.addTransformers(e.transformers);break;case"valueSources":o.Formio.ValueSources.addValueSources(e.valueSources);break;case"library":n.license?o.Formio.Licenses.addLicense(e.library,e.license):o.Formio.Licenses.removeLicense(e.library);break;default:if(t){t(i,e)||console.warn("Unknown module option",i);break}console.log("Unknown module option",i)}}}function C(e=null){return(t,n={})=>{(t=r.default.isArray(t)?t:[t]).forEach((t=>{Array.isArray(t)?t.forEach((t=>k(t,e,n))):k(t,e,n)}))}}t.Licenses=_.default,o.Formio.loadModules=(e=`${o.Formio.getApiUrl()}/externalModules.js`,t="externalModules")=>{o.Formio.requireLibrary(t,t,e,!0).then((e=>{o.Formio.use(e)}))},o.Formio.Components=a.default,o.Formio.Templates=u.default,o.Formio.Utils=b.default,o.Formio.Form=y.default,o.Formio.Displays=l.default,o.Formio.Providers=c.default,o.Formio.Rules=d.default,o.Formio.Widgets=v.default,o.Formio.Evaluator=w.default,o.Formio.Conjunctions=h.default,o.Formio.Operators=p.default,o.Formio.QuickRules=f.default,o.Formio.Transformers=m.default,o.Formio.ValueSources=g.default,o.Formio.AllComponents=s.default,o.Formio.Licenses=_.default,o.Formio.Formio=o.Formio,o.Formio.Components.setComponents(s.default),t.registerModule=k,t.useModule=C,o.Formio.use=C()},52225:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(92569)),o=n(76286);t.default={lng:"en",nsSeparator:"::",keySeparator:".|.",pluralSeparator:"._.",contextSeparator:"._.",resources:{en:{translation:(0,o.fastCloneDeep)(r.default)}}}},82973:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Builders=t.FormBuilder=void 0;const s=o(n(31454));t.FormBuilder=s.default;const a=o(n(51413));t.Builders=a.default;const l=n(9267);l.Formio.Builders=a.default,l.Formio.use=(0,l.useModule)(((e,t)=>"builders"===e&&(l.Formio.Builders.addBuilders(t.builders),!0))),r(n(9267),t)},94446:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486));class o{static addLicense(e,t){o.licenses[e]=t}static getLicense(e){return o.licenses[e]}static removeLicense(e){r.default.unset(o.licenses,e)}static getLicenses(){return o.licenses}}o.licenses={},t.default=o},8344:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(94446));t.default=r.default},56994:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(29122)),s=i(n(7849)),a=i(n(74874));class l{static addProvider(e,t,n){l.providers[e]=l.providers[e]||{},l.providers[e][t]=n}static addProviders(e,t){l.providers[e]=r.default.merge(l.providers[e],t)}static getProvider(e,t){if(l.providers[e]&&l.providers[e][t])return l.providers[e][t]}static getProviders(e){if(l.providers[e])return l.providers[e]}}l.providers={address:o.default,auth:s.default,storage:a.default},t.default=l},10406:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AddressProvider=void 0;const r=i(n(96486)),o=n(61066);t.AddressProvider=class{static get name(){return"address"}static get displayName(){return"Address"}constructor(e={}){this.beforeMergeOptions(e),this.options=r.default.merge({},this.defaultOptions,e)}beforeMergeOptions(){}get defaultOptions(){return{}}get queryProperty(){return"query"}get responseProperty(){return null}get displayValueProperty(){return null}serialize(e){return r.default.toPairs(e).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&")}getRequestOptions(e={}){return r.default.merge({},this.options,e)}getRequestUrl(e={}){throw new Error("Method AddressProvider#getRequestUrl(options) is abstract.")}makeRequest(e={}){return o.Formio.makeStaticRequest(this.getRequestUrl(e),"GET",null,{noToken:!0})}search(e,t={}){const n=this.getRequestOptions(t);return(n.params=n.params||{})[this.queryProperty]=e,this.makeRequest(n).then((e=>this.responseProperty?r.default.get(e,this.responseProperty,[]):e))}getDisplayValue(e){return this.displayValueProperty?r.default.get(e,this.displayValueProperty,""):String(e)}}},65090:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureAddressProvider=void 0;const i=n(10406);class r extends i.AddressProvider{static get name(){return"azure"}static get displayName(){return"Azure Maps"}get defaultOptions(){return{params:{"api-version":"1.0",typeahead:"true"}}}get responseProperty(){return"results"}get displayValueProperty(){return"address.freeformAddress"}getRequestUrl(e={}){const{params:t}=e;return`https://atlas.microsoft.com/search/address/json?${this.serialize(t)}`}}t.AzureAddressProvider=r},9480:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomAddressProvider=void 0;const i=n(10406);class r extends i.AddressProvider{static get name(){return"custom"}static get displayName(){return"Custom"}get queryProperty(){return this.options.queryProperty||super.queryProperty}get responseProperty(){return this.options.responseProperty||super.responseProperty}get displayValueProperty(){return this.options.displayValueProperty||super.displayValueProperty}getRequestUrl(e={}){const{params:t,url:n}=e;return`${n}?${this.serialize(t)}`}}t.CustomAddressProvider=r},80918:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAddressProvider=void 0;const r=n(61066),o=i(n(96486)),s=n(10406);class a extends s.AddressProvider{static get name(){return"google"}static get displayName(){return"Google Maps"}constructor(e={}){var t;super(e),this.setAutocompleteOptions();let n="https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&callback=googleMapsCallback";(null===(t=e.params)||void 0===t?void 0:t.key)&&(n+=`&key=${e.params.key}`),r.Formio.requireLibrary(this.getLibraryName(),"google.maps.places",n)}get displayValueProperty(){return"formattedPlace"}get alternativeDisplayValueProperty(){return"formatted_address"}set autocompleteOptions(e){this._autocompleteOptions=e}get autocompleteOptions(){return this._autocompleteOptions}setAutocompleteOptions(){let e=o.default.get(this.options,"params.autocompleteOptions",{});o.default.isObject(e)||(e={}),this.addRequiredProviderOptions(e),this.autocompleteOptions=e}beforeMergeOptions(e){this.convertRegionToAutocompleteOption(e)}getLibraryName(){return"googleMaps"}convertRegionToAutocompleteOption(e){const t=e;let n=o.default.get(t,"params.region","");if(n&&!o.default.has(e,"params.autocompleteOptions")){n=n.toUpperCase().trim();const e={UK:"GB"};e[n]&&(n=e[n]),o.default.set(t,"params.autocompleteOptions.componentRestrictions.country",[n])}}getRequiredAddressProperties(){return["address_components","formatted_address","geometry","place_id","plus_code","types"]}addRequiredProviderOptions(e){const t=this.getRequiredAddressProperties();o.default.isArray(e.fields)&&e.fields.length>0&&e.fields.forEach((e=>{t.some((t=>e===t))||t.push(e)})),e.fields=t}filterPlace(e){e=e||{};const t={};return this.autocompleteOptions&&this.autocompleteOptions.fields.forEach((n=>{e[n]&&(t[n]=e[n])})),t}attachAutocomplete(e,t,n){r.Formio.libraryReady(this.getLibraryName()).then((()=>{const i=new google.maps.places.Autocomplete(e,this.autocompleteOptions);i.addListener("place_changed",(()=>{const r=this.filterPlace(i.getPlace());r.formattedPlace=o.default.get(i,"gm_accessors_.place.se.formattedPrediction",r[this.alternativeDisplayValueProperty]),n(r,e,t)}))}))}search(){return Promise.resolve()}makeRequest(){return Promise.resolve()}getDisplayValue(e){const t=o.default.has(e,this.displayValueProperty)?this.displayValueProperty:this.alternativeDisplayValueProperty;return o.default.get(e,t,"")}}t.GoogleAddressProvider=a},89674:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NominatimAddressProvider=void 0;const i=n(10406);class r extends i.AddressProvider{static get name(){return"nominatim"}static get displayName(){return"OpenStreetMap Nominatim"}get defaultOptions(){return{params:{addressdetails:"1",format:"json"}}}get queryProperty(){return"q"}get displayValueProperty(){return"display_name"}getRequestUrl(e={}){const{params:t}=e;return`https://nominatim.openstreetmap.org/search?${this.serialize(t)}`}}t.NominatimAddressProvider=r},29122:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(65090),r=n(9480),o=n(80918),s=n(89674);t.default={[i.AzureAddressProvider.name]:i.AzureAddressProvider,[r.CustomAddressProvider.name]:r.CustomAddressProvider,[o.GoogleAddressProvider.name]:o.GoogleAddressProvider,[s.NominatimAddressProvider.name]:s.NominatimAddressProvider}},7849:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={}},29256:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(56994));t.default=r.default},47228:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>(n,i)=>new Promise(((r,o)=>{const s=new XMLHttpRequest;s.onerror=e=>{e.networkError=!0,o(e)},s.onabort=e=>{e.networkError=!0,o(e)},s.onload=()=>{if(s.status>=200&&s.status<300){const e=s.getResponseHeader("Content-Type")||n.type;r(new File([s.response],n.name,{type:e}))}else o(s.response||"Unable to process file")},s.onabort=o,s.open("POST",t.url);const a=e.getToken();a&&s.setRequestHeader("x-jwt-token",a),s.responseType="arraybuffer";const l=new FormData;l.append("file",n),l.append("processorOptions",JSON.stringify(t.options||{})),l.append("options",JSON.stringify(i||{})),s.send(l)}))},34248:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96721)),o=e=>({uploadFile:(t,n,i,o,s,a,l,u,c,d)=>r.default.upload(e,"azure",((e,n)=>(e.openAndSetHeaders("PUT",n.url),e.setRequestHeader("Content-Type",t.type),e.setRequestHeader("x-ms-blob-type","BlockBlob"),t)),t,n,i,o,u,c,d).then((e=>({storage:"azure",name:r.default.path([i,n]),size:t.size,type:t.type,groupPermissions:u,groupId:c,key:e.pathFile}))),downloadFile:t=>e.makeRequest("file",`${e.formUrl}/storage/azure?name=${r.default.trim(t.name)}`,"GET"),deleteFile:function(t){var n=`${e.formUrl}/storage/azure?name=${r.default.trim(t.name)}&key=${r.default.trim(t.key)}`;return e.makeRequest("",n,"delete")}});o.title="Azure File Services",t.default=o},72059:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=()=>({title:"Base64",name:"base64",uploadFile(e,t){const n=new FileReader;return new Promise(((i,r)=>{n.onload=n=>{const r=n.target.result;i({storage:"base64",name:t,url:r,size:e.size,type:e.type})},n.onerror=()=>r(this),n.readAsDataURL(e)}))},downloadFile:e=>Promise.resolve(e)});n.title="Base64",t.default=n},30347:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(96721),r=e=>({uploadFile:(t,n,r,o,s,a,l,u,c,d)=>new Promise(((s,a)=>{const l=new XMLHttpRequest;"function"==typeof o&&(l.upload.onprogress=o),"function"==typeof d&&d((()=>l.abort()));const h=new FormData;h.append("name",n),h.append("dir",r),h.append("file",t),l.onerror=e=>{e.networkError=!0,a(e)},l.onload=()=>{if(l.status>=200&&l.status<300){const e=JSON.parse(l.response);e.storage="googledrive",e.size=t.size,e.type=t.type,e.groupId=c,e.groupPermissions=u,s(e)}else a(l.response||"Unable to upload file")},l.onabort=a,l.open("POST",`${e.formUrl}/storage/gdrive`),(0,i.setXhrHeaders)(e,l);const p=e.getToken();p&&l.setRequestHeader("x-jwt-token",p),l.send(h)})),downloadFile(t){const n=e.getToken();return t.url=`${e.formUrl}/storage/gdrive?fileId=${t.id}&fileName=${t.originalName}${n?`&x-jwt-token=${n}`:""}`,Promise.resolve(t)},deleteFile:function(t){var n="".concat(e.formUrl,`/storage/gdrive?id=${t.id}&name=${t.originalName}`);return e.makeRequest("",n,"delete")}});r.title="Google Drive",t.default=r},74874:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(72059)),o=i(n(32911)),s=i(n(34248)),a=i(n(85184)),l=i(n(77721)),u=i(n(30347));t.default={base64:r.default,s3:o.default,url:a.default,azure:s.default,indexeddb:l.default,googledrive:u.default}},77721:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(67429),r=()=>({title:"indexedDB",name:"indexeddb",uploadFile(e,t,n,r,o,s){if("indexedDB"in window)return new Promise((e=>{const t=indexedDB.open(s.indexeddb);t.onsuccess=function(t){const n=t.target.result;e(n)},t.onupgradeneeded=function(e){e.target.result.createObjectStore(s.indexeddbTable)}})).then((t=>{const n=new FileReader;return new Promise(((r,a)=>{n.onload=()=>{const n=new Blob([e],{type:e.type}),a=(0,i.v4)(n),l={id:a,data:n,name:e.name,size:e.size,type:e.type,url:o},u=t.transaction([s.indexeddbTable],"readwrite");u.objectStore(s.indexeddbTable).put(l,a).onerror=function(e){console.log("error storing data"),console.error(e)},u.oncomplete=function(){r({storage:"indexeddb",name:e.name,size:e.size,type:e.type,url:o,id:a})}},n.onerror=()=>a(this),n.readAsDataURL(e)}))}));console.log("This browser doesn't support IndexedDB")},downloadFile(e,t){return new Promise((e=>{indexedDB.open(t.indexeddb).onsuccess=function(t){const n=t.target.result;e(n)}})).then((n=>new Promise(((i,r)=>{const o=n.transaction([t.indexeddbTable],"readonly"),s=o.objectStore(t.indexeddbTable).get(e.id);s.onsuccess=()=>{o.oncomplete=()=>{const t=s.result,n=new File([s.result.data],e.name,{type:s.result.type}),o=new FileReader;o.onload=n=>{t.url=n.target.result,t.storage=e.storage,i(t)},o.onerror=()=>r(this),o.readAsDataURL(n)}},s.onerror=()=>r(this)}))))},deleteFile(e,t){return new Promise((e=>{indexedDB.open(t.indexeddb).onsuccess=function(t){const n=t.target.result;e(n)}})).then((n=>new Promise(((i,r)=>{const o=n.transaction([t.indexeddbTable],"readwrite"),s=o.objectStore(t.indexeddbTable).delete(e.id);s.onsuccess=()=>{o.oncomplete=()=>{const e=s.result;i(e)}},s.onerror=()=>r(this)}))))}});r.title="IndexedDB",t.default=r},32911:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96721)),o=e=>({uploadFile:(t,n,i,o,s,a,l,u,c,d)=>r.default.upload(e,"s3",((e,o)=>{if(o.data.fileName=n,o.data.key=r.default.path([o.data.key,i,n]),o.signed)return e.openAndSetHeaders("PUT",o.signed),e.setRequestHeader("Content-Type",t.type),t;{const n=new FormData;for(const e in o.data)n.append(e,o.data[e]);return n.append("file",t),e.openAndSetHeaders("POST",o.url),n}}),t,n,i,o,u,c,d).then((e=>({storage:"s3",name:n,bucket:e.bucket,key:e.data.key,url:r.default.path([e.url,e.data.key]),acl:e.data.acl,size:t.size,type:t.type}))),downloadFile:t=>"public-read"!==t.acl?e.makeRequest("file",`${e.formUrl}/storage/s3?bucket=${r.default.trim(t.bucket)}&key=${r.default.trim(t.key)}`,"GET"):Promise.resolve(t),deleteFile(t){const n=`${e.formUrl}/file/${r.default.trim(t.name)}?bucket=${r.default.trim(t.bucket)}&key=${r.default.trim(t.key)}`;return e.makeRequest("",n,"delete")}});o.title="S3",t.default=o},89678:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFormioUploadAdapterPlugin=void 0;const i=n(76286);class r{constructor(e,t,n){this.loader=e,this.fileService=t,this.component=n}upload(){return this.loader.file.then((e=>new Promise(((t,n)=>{const{uploadStorage:r,uploadUrl:o,uploadOptions:s,uploadDir:a,fileKey:l}=this.component.component,u=[r,e,(0,i.uniqueName)(e.name),a||"",e=>this.onUploadProgress(e),o,s,l,null,null],c=this.fileService.uploadFile(...u,(()=>this.component.emit("fileUploadingStart",c))).then((e=>this.fileService.downloadFile(e))).then((e=>t({default:e.url}))).catch((e=>{console.warn("An Error occured while uploading file",e),n(e)})).finally((()=>{this.component.emit("fileUploadingEnd",c)}))}))))}abort(){}onUploadProgress(e){e.lengthComputable&&(this.loader.uploadTotal=e.total,this.loader.uploaded=e.loaded)}}t.getFormioUploadAdapterPlugin=(e,t)=>n=>{n.plugins.get("FileRepository").createUploadAdapter=n=>new r(n,e,t)}},85184:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e=>{const t=(t,n,i,r,o,s,a)=>new Promise(((l,u)=>{const c=new XMLHttpRequest,d="string"==typeof r,h=new FormData;if("function"==typeof s&&(c.upload.onprogress=s),"function"==typeof a&&a((()=>c.abort())),!d)for(const e in r)h.append(e,r[e]);c.onload=()=>{if(c.status>=200&&c.status<300){let e={};try{e="string"==typeof c.response?JSON.parse(c.response):{},e=e&&e.data?e.data:e}catch(t){e={}}let i=e.hasOwnProperty("url")?e.url:`${c.responseURL}/${n}`;i&&"/"===i[0]&&(i=`${t}${i}`),l({url:i,data:e})}else u(c.response||"Unable to upload file")},c.onerror=()=>u(c),c.onabort=()=>u(c);let p=t+(t.indexOf("?")>-1?"&":"?");for(const e in i)p+=`${e}=${i[e]}&`;"&"===p[p.length-1]&&(p=p.substr(0,p.length-1)),c.open("POST",p),d&&c.setRequestHeader("Content-Type","application/json");const f=e.getToken();if(f&&c.setRequestHeader("x-jwt-token",f),o){const e="string"==typeof o?JSON.parse(o):o;for(const t in e)if("headers"===t){const t=e.headers;for(const e in t)c.setRequestHeader(e,t[e])}else c[t]=e[t]}c.send(d?r:h)}));return{title:"Url",name:"url",uploadFile(n,i,r,o,s,a,l,u,c,d){const h=function(u){return t(s,i,{baseUrl:encodeURIComponent(e.projectUrl),project:u?u.project:"",form:u?u._id:""},{[l]:n,name:i,dir:r},a,o,d).then((t=>(t.data=t.data||{},t.data.baseUrl=e.projectUrl,t.data.project=u?u.project:"",t.data.form=u?u._id:"",{storage:"url",name:i,url:t.url,size:n.size,type:n.type,data:t.data})))};return n.private&&e.formId?e.loadForm().then((e=>h(e))):h()},deleteFile:e=>new Promise(((t,n)=>{const i=new XMLHttpRequest;i.open("DELETE",e.url,!0),i.onload=()=>{i.status>=200&&i.status<300?t("File deleted"):n(i.response||"Unable to delete file")},i.send(null)})),downloadFile:n=>n.private?(e.submissionId&&n.data&&(n.data.submission=e.submissionId),t(n.url,n.name,{},JSON.stringify(n)).then((e=>e.data))):Promise.resolve(n)}};n.title="Url",t.default=n},96721:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setXhrHeaders=void 0;const r=i(n(92742));t.setXhrHeaders=(e,t)=>{const{headers:n}=e.options;if(n){const e={"Content-Disposition":!0,Authorization:!0};for(const i in n)e[i]&&t.setRequestHeader(i,n[i])}};const o={trim:e=>(0,r.default)(e,"/"),path:e=>e.filter((e=>!!e)).map(o.trim).join("/"),upload:(e,n,i,r,s,a,l,u,c,d)=>new Promise(((h,p)=>{const f=new XMLHttpRequest;f.onerror=e=>{e.networkError=!0,p(e)},f.onabort=p,f.onload=()=>{if(f.status>=200&&f.status<300){const n=JSON.parse(f.response),r=new XMLHttpRequest;"function"==typeof l&&(r.upload.onprogress=l),"function"==typeof d&&d((()=>r.abort())),r.openAndSetHeaders=(...n)=>{r.open(...n),(0,t.setXhrHeaders)(e,r)},r.onerror=e=>{e.networkError=!0,p(e)},r.onabort=e=>{e.networkError=!0,p(e)},r.onload=()=>{r.status>=200&&r.status<300?h(n):p(r.response||"Unable to upload file")},r.onabort=p,r.send(i(r,n))}else p(f.response||"Unable to sign file")},f.open("POST",`${e.formUrl}/storage/${n}`),f.setRequestHeader("Accept","application/json"),f.setRequestHeader("Content-Type","application/json; charset=UTF-8");const m=e.getToken();m&&f.setRequestHeader("x-jwt-token",m),f.send(JSON.stringify({name:o.path([a,s]),size:r.size,type:r.type,groupPermissions:u,groupId:c}))}))};t.default=o},40170:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(22989));class s{static get templates(){return s._templates||(s._templates=o.default),s._templates}static addTemplate(e,t){s.templates[e]=t}static extendTemplate(e,t){s.templates[e]=r.default.merge({},s.templates[e],t)}static setTemplate(e,t){s.addTemplate(e,t)}static set current(e){const t=s.current;s._current=r.default.merge({},t,e)}static get current(){return s._current?s._current:s.defaultTemplates}static get defaultTemplates(){return s.templates.hasOwnProperty("bootstrap")?s.templates.bootstrap:{}}static set framework(e){s.templates.hasOwnProperty(e)&&(s._framework=e,s._current=s.templates[e])}static get framework(){return s._framework}}t.default=s},22989:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(47412));t.default={bootstrap:r.default.templates.bootstrap5}},92569:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={unsavedRowsError:"Please save all rows before proceeding.",invalidRowsError:"Please correct invalid rows before proceeding.",invalidRowError:"Invalid row. Please correct it or delete.",alertMessageWithLabel:"{{label}}: {{message}}",alertMessage:"{{message}}",complete:"Submission Complete",error:"Please fix the following errors before submitting.",errorListHotkey:"Press Ctrl + Alt + X to go back to the error list.",errorsListNavigationMessage:"Click to navigate to the field with following error.",submitError:"Please check the form and correct all errors before submitting.",required:"{{field}} is required",unique:"{{field}} must be unique",array:"{{field}} must be an array",array_nonempty:"{{field}} must be a non-empty array",nonarray:"{{field}} must not be an array",select:"{{field}} contains an invalid selection",pattern:"{{field}} does not match the pattern {{pattern}}",minLength:"{{field}} must have at least {{length}} characters.",maxLength:"{{field}} must have no more than {{length}} characters.",minWords:"{{field}} must have at least {{length}} words.",maxWords:"{{field}} must have no more than {{length}} words.",min:"{{field}} cannot be less than {{min}}.",max:"{{field}} cannot be greater than {{max}}.",maxDate:"{{field}} should not contain date after {{- maxDate}}",minDate:"{{field}} should not contain date before {{- minDate}}",maxYear:"{{field}} should not contain year greater than {{maxYear}}",minYear:"{{field}} should not contain year less than {{minYear}}",invalid_email:"{{field}} must be a valid email.",invalid_url:"{{field}} must be a valid url.",invalid_regex:"{{field}} does not match the pattern {{regex}}.",invalid_date:"{{field}} is not a valid date.",invalid_day:"{{field}} is not a valid day.",mask:"{{field}} does not match the mask.",valueIsNotAvailable:"{{ field }} is an invalid value.",stripe:"{{stripe}}",month:"Month",day:"Day",year:"Year",january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December",next:"Next",previous:"Previous",cancel:"Cancel",submit:"Submit Form",confirmCancel:"Are you sure you want to cancel?",saveDraftInstanceError:"Cannot save draft because there is no formio instance.",saveDraftAuthError:"Cannot save draft unless a user is authenticated.",restoreDraftInstanceError:"Cannot restore draft because there is no formio instance.",time:"Invalid time",cancelButtonAriaLabel:"Cancel button. Click to reset the form",previousButtonAriaLabel:"Previous button. Click to go back to the previous tab",nextButtonAriaLabel:"Next button. Click to go to the next tab",submitButtonAriaLabel:"Submit Form button. Click to submit the form"}},74915:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KEY_CODES=void 0;const r=i(n(57062));r.default.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){const{placeholderOption:e}=this.passedElement;return!!e&&e.text}const{placeholder:e,placeholderValue:t}=this.config,{element:{dataset:n}}=this.passedElement;if(e){if(t)return t;if(n.placeholder)return n.placeholder}return!1},t.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,TAB_KEY:9,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34};class o extends r.default{constructor(...e){super(...e),this._onTabKey=this._onTabKey.bind(this),this.isDirectionUsing=!1,this.shouldOpenDropDown=!0}_onTouchEnd(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&((t===this.containerOuter.element||t===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&(this.input.focus(),this.showDropdown())),e.stopPropagation()),this._wasTap=!0}_handleButtonAction(e,t){if(!this._isSelectOneElement)return super._handleButtonAction(e,t);e&&t&&this.config.removeItems&&this.config.removeItemButton&&super._handleButtonAction(e,t)}_onEnterKey(e){"choices__button"===e.event.target.className&&(this.shouldOpenDropDown=!1),super._onEnterKey(e)}_onDirectionKey(...e){if(!this._isSelectOneElement)return super._onDirectionKey(...e);this.isDirectionUsing=!0,super._onDirectionKey(...e),this.onSelectValue(...e),clearTimeout(this.timeout),this.timeout=setTimeout((()=>{this.isDirectionUsing=!1}),250)}_onTabKey({activeItems:e,hasActiveDropdown:t}){t&&this._selectHighlightedChoice(e)}_selectHighlightedChoice(e){const t=this.dropdown.getChild(`.${this.config.classNames.highlightedState}`);t&&this._handleChoiceAction(e,t),event.preventDefault()}_onKeyDown(e){if(!this._isSelectOneElement)return super._onKeyDown(e);const{target:n,keyCode:i,ctrlKey:r,metaKey:o}=e;if(n!==this.input.element&&!this.containerOuter.element.contains(n))return;const s=this._store.activeItems,a=this.input.isFocussed,l=this.dropdown.isActive,u=this.itemList.hasChildren,c=String.fromCharCode(i),{BACK_KEY:d,DELETE_KEY:h,TAB_KEY:p,ENTER_KEY:f,A_KEY:m,ESC_KEY:g,UP_KEY:v,DOWN_KEY:y,PAGE_UP_KEY:b,PAGE_DOWN_KEY:w}=t.KEY_CODES,_=r||o;if(!l&&!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(c)){const e=this.input.element.value;this.input.element.value=e?`${e}${c}`:c,this.showDropdown()}const k={[m]:this._onAKey,[p]:this._onTabKey,[f]:this._onEnterKey,[g]:this._onEscapeKey,[v]:this._onDirectionKey,[b]:this._onDirectionKey,[y]:this._onDirectionKey,[w]:this._onDirectionKey,[h]:this._onDeleteKey,[d]:this._onDeleteKey};k[i]&&k[i]({event:e,target:n,keyCode:i,metaKey:o,activeItems:s,hasFocusedInput:a,hasActiveDropdown:l,hasItems:u,hasCtrlDownKeyPressed:_})}onSelectValue({event:e,activeItems:t,hasActiveDropdown:n}){n?this._selectHighlightedChoice(t):this._isSelectOneElement&&(this.showDropdown(),e.preventDefault())}showDropdown(...e){this.shouldOpenDropDown?super.showDropdown(...e):this.shouldOpenDropDown=!0}hideDropdown(...e){this.isDirectionUsing||super.hideDropdown(...e)}_onBlur(...e){this._isScrollingOnIe||super._onBlur(...e)}}t.default=o},8128:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(69887)),s=n(36808),a={noeval:!1,protectedEval:!1,cache:{},templateSettings:s.Evaluator.templateSettings,evaluator:s.Evaluator.evaluator,template(e,t){if(t=t||(0,o.default)(e),a.cache[t])return a.cache[t];try{return e=e.replace(/ctx\./g,""),a.cache[t]=r.default.template(e,a.templateSettings)}catch(t){console.warn("Error while processing template",t,e)}},interpolate(e,t,n){const i=r.default.isObject(n)?n:{noeval:n};if("function"==typeof e)try{return e(t)}catch(e){return console.warn("Error interpolating template",e,t),e.message}let o;if(e=String(e),a.noeval||i.noeval)return s.Evaluator.interpolateString(e,t,n);if(o=a.template(e),"function"==typeof o)try{return o(t)}catch(n){return console.warn("Error interpolating template",n,e,t),n.message}return o},evaluate:(e,t)=>Array.isArray(t)?e(...t):e(t),registerEvaluator:e=>{Object.keys(e).forEach((t=>{a[t]=e[t]}))}};t.default=a},81290:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=n(76286);t.default={uniquify(e,t){let n=!1;const i={};return(0,o.eachComponent)(e,(e=>{if(i[e.key]=!0,["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree)return!0}),!0),(0,o.eachComponent)([t],(e=>{if(!e.key)return;const t=(0,o.uniqueKey)(i,e.key);return t!==e.key&&(e.key=t,n=!0),i[t]=!0,!!(["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree)||void 0}),!0),n},additionalShortcuts:{button:["Enter","Esc"]},getAlphaShortcuts:()=>r.default.range("A".charCodeAt(),"Z".charCodeAt()+1).map((e=>String.fromCharCode(e))),getAdditionalShortcuts(e){return this.additionalShortcuts[e]||[]},getBindedShortcuts(e,t){const n=[];return(0,o.eachComponent)(e,(e=>{e!==t&&(e.shortcut&&n.push(e.shortcut),e.values&&e.values.forEach((e=>{e.shortcut&&n.push(e.shortcut)})))}),!0),n},getAvailableShortcuts(e,t){return t?[""].concat(r.default.difference(this.getAlphaShortcuts().concat(this.getAdditionalShortcuts(t.type)),this.getBindedShortcuts(e.components,t))).map((e=>({label:e,value:e}))):[]}}},1622:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.checkInvalidDate=t.lessOrGreater=t.CALENDAR_ERROR_MESSAGES=void 0;const r=i(n(30381)),o=i(n(96486));function s(e,t){return{message:e,result:t}}function a(e,n,i,o){let s="",a=!0;if(i&&e.isValid()){const o=(0,r.default)(i,n);e>o&&(s=t.CALENDAR_ERROR_MESSAGES.greater(o,n),a=!1)}if(o&&e.isValid()){const i=(0,r.default)(o,n);e<i&&(s=t.CALENDAR_ERROR_MESSAGES.less(i,n),a=!1)}return{message:s,result:a}}t.CALENDAR_ERROR_MESSAGES={INVALID:"You entered the Invalid Date",INCOMPLETE:"You entered an incomplete date.",greater:(e,t)=>`The entered date is greater than ${e.format(t)}`,less:(e,t)=>`The entered date is less than ${e.format(t)}`},t.lessOrGreater=a,t.checkInvalidDate=function(e,n,i,l){const u=(0,r.default)(e,n,!0),c=u.isValid();if(!c){const u=e.match(/[^a-z0-9_]/gi),c=new RegExp(u.join("|"),"gi"),d=e.replace(/_*/gi,"").split(c),h=n[1]?n[1].split(c):n[0].split(c),p=o.default.findIndex(h,((e,t)=>1===e.length&&t===h.length-1));if(d[o.default.findIndex(h,(e=>e.match(/yyyy/gi)))]/1e3<1)return s(t.CALENDAR_ERROR_MESSAGES.INVALID,!1);if(d[0].length===h[0].length){const e=d.map(((e,t)=>{let n=e;return e||t!==p?e||(n="01"):n="AM",u[t]&&(n=`${n}${u[t]}`),n})),o=(0,r.default)(e.join(""),n,!0);if(o.isValid()){const e=a(o,n[0],l,i);if(!e.result){const{message:t,result:n}=e;return s(t,n)}return s(t.CALENDAR_ERROR_MESSAGES.INCOMPLETE,!1)}return s(t.CALENDAR_ERROR_MESSAGES.INVALID,!1)}return s(t.CALENDAR_ERROR_MESSAGES.INVALID,!1)}if(c&&-1===e.indexOf("_")){const e=a(u,n[0],l,i);if(!e.result){const{message:t,result:n}=e;return s(t,n)}}return s("",!0)}},5384:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486));t.default=class{static get operatorKey(){return""}static get displayedName(){return""}static get requireValue(){return!0}execute(e){return!0}getResult(e={}){const{value:t}=e;return r.default.isArray(t)?r.default.some(t,(t=>this.execute(Object.assign(Object.assign({},e),{value:t})))):this.execute(e)}}},81709:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(5384)),o=i(n(30381));class s extends r.default{static get operatorKey(){return"dateGreaterThan"}static get displayedName(){return"Greater Than"}getFormattedDates({value:e,comparedValue:t,conditionTriggerComponent:n}){const i=n?n.getValidationFormat:null;return{date:i?(0,o.default)(e,n.getValidationFormat()):(0,o.default)(e),comparedDate:i?(0,o.default)(t,n.getValidationFormat()):(0,o.default)(t)}}execute(e,t="isAfter"){const{value:n,instance:i,conditionComponentPath:r}=e;if(!n)return!1;let o=null;if(i&&i.root&&(o=i.root.getComponent(r)),o&&o.isPartialDay&&o.isPartialDay(n))return!1;const{date:s,comparedDate:a}=this.getFormattedDates(Object.assign(Object.assign({},e),{conditionTriggerComponent:o}));return s[t](a)}}t.default=s},17624:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(81709));class o extends r.default{static get operatorKey(){return"dateGreaterThanOrEqual"}static get displayedName(){return"Greater Than Or Equal To"}execute(e){return super.execute(e,"isSameOrAfter")}}t.default=o},81046:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(81709));class o extends r.default{static get operatorKey(){return"dateLessThan"}static get displayedName(){return"Less Than"}execute(e){return super.execute(e,"isBefore")}}t.default=o},22087:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(81709));class o extends r.default{static get operatorKey(){return"dateLessThanOrEqual"}static get displayedName(){return"Less Than Or Equal To"}execute(e){return super.execute(e,"isSameOrBefore")}}t.default=o},2441:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(5384)),o=i(n(96486));class s extends r.default{static get operatorKey(){return"endsWith"}static get displayedName(){return"Ends With"}execute({value:e,comparedValue:t}){return o.default.endsWith(e,t)}}t.default=s},74047:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(5384)),o=i(n(96486));class s extends r.default{static get operatorKey(){return"greaterThan"}static get displayedName(){return"Greater Than"}execute({value:e,comparedValue:t}){return o.default.isNumber(e)&&e>t}}t.default=s},53804:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(5384)),o=i(n(96486));class s extends r.default{static get operatorKey(){return"greaterThanOrEqual"}static get displayedName(){return"Greater Than Or Equal To"}execute({value:e,comparedValue:t}){return o.default.isNumber(e)&&(e>t||o.default.isEqual(e,t))}}t.default=s},41737:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(5384)),o=i(n(96486));class s extends r.default{static get operatorKey(){return"includes"}static get displayedName(){return"Includes"}execute({value:e,comparedValue:t}){return o.default.includes(e,t)}}t.default=s},7593:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(81709));class o extends r.default{static get operatorKey(){return"isDateEqual"}static get displayedName(){return"Is Equal To"}execute(e){return super.execute(e,"isSame")}}t.default=o},57587:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(5384)),o=i(n(96486));class s extends r.default{static get operatorKey(){return"isEmpty"}static get displayedName(){return"Is Empty"}static get requireValue(){return!1}execute({value:e,instance:t,conditionComponentPath:n}){const i=o.default.isEmpty(e);if(t&&t.root){const e=t.root.getComponent(n);return e?e.isEmpty():i}return i}getResult(e){return this.execute(e)}}t.default=s},79648:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(5384)),o=i(n(96486));class s extends r.default{static get operatorKey(){return"isEqual"}static get displayedName(){return"Is Equal To"}execute({value:e,comparedValue:t}){if(e&&t&&typeof e!=typeof t&&o.default.isString(t))try{t=JSON.parse(t)}catch(e){}return o.default.isObject(e)&&t&&o.default.isString(t)?e[t]:o.default.isEqual(e,t)}}t.default=s},33023:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(81709));class o extends r.default{static get operatorKey(){return"isNotDateEqual"}static get displayedName(){return"Is Not Equal To"}execute(e){return!super.execute(e,"isSame")}}t.default=o},27140:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(57587));class o extends r.default{static get operatorKey(){return"isNotEmpty"}static get displayedName(){return"Is Not Empty"}getResult(e){return!super.getResult(e)}}t.default=o},7302:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(5384)),o=i(n(96486));class s extends r.default{static get operatorKey(){return"isNotEqual"}static get displayedName(){return"Is Not Equal To"}execute({value:e,comparedValue:t}){return!o.default.isEqual(e,t)}}t.default=s},93695:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(5384)),o=i(n(96486));class s extends r.default{static get operatorKey(){return"lessThan"}static get displayedName(){return"Less Than"}execute({value:e,comparedValue:t}){return o.default.isNumber(e)&&e<t}}t.default=s},99436:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(5384)),o=i(n(96486));class s extends r.default{static get operatorKey(){return"lessThanOrEqual"}static get displayedName(){return"Less Than Or Equal To"}execute({value:e,comparedValue:t}){return o.default.isNumber(e)&&(e<t||o.default.isEqual(e,t))}}t.default=s},80763:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(41737));class o extends r.default{static get operatorKey(){return"notIncludes"}static get displayedName(){return"Not Includes"}execute(e){return!super.execute(e)}}t.default=o},72988:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(5384)),o=i(n(96486));class s extends r.default{static get operatorKey(){return"startsWith"}static get displayedName(){return"Starts With"}execute({value:e,comparedValue:t}){return o.default.startsWith(e,t)}}t.default=s},2861:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(7302)),o=i(n(57587)),s=i(n(27140)),a=i(n(93695)),l=i(n(74047)),u=i(n(79648)),c=i(n(81709)),d=i(n(81046)),h=i(n(41737)),p=i(n(72988)),f=i(n(80763)),m=i(n(2441)),g=i(n(17624)),v=i(n(22087)),y=i(n(99436)),b=i(n(53804)),w=i(n(7593)),_=i(n(33023)),k={[`${r.default.operatorKey}`]:r.default,[`${u.default.operatorKey}`]:u.default,[`${o.default.operatorKey}`]:o.default,[`${s.default.operatorKey}`]:s.default,[`${a.default.operatorKey}`]:a.default,[`${l.default.operatorKey}`]:l.default,[`${c.default.operatorKey}`]:c.default,[`${d.default.operatorKey}`]:d.default,[`${h.default.operatorKey}`]:h.default,[`${p.default.operatorKey}`]:p.default,[`${m.default.operatorKey}`]:m.default,[`${f.default.operatorKey}`]:f.default,[`${g.default.operatorKey}`]:g.default,[`${v.default.operatorKey}`]:v.default,[`${y.default.operatorKey}`]:y.default,[`${b.default.operatorKey}`]:b.default,[`${w.default.operatorKey}`]:w.default,[`${_.default.operatorKey}`]:_.default};t.default=k},49386:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getStrings=t.getValue=t.escapeRegExCharacters=t.formatAsCurrency=t.parseFloatExt=t.hasCondition=t.flattenComponents=t.applyFormChanges=t.generateFormChange=t.removeComponent=t.findComponent=t.findComponents=t.searchComponents=t.getComponent=t.matchComponent=t.eachComponent=t.isLayoutComponent=void 0;const r=i(n(27361)),o=i(n(36968)),s=i(n(18721)),a=i(n(66678)),l=i(n(2525)),u=i(n(47037)),c=i(n(7654)),d=i(n(14293)),h=i(n(68630)),p=i(n(59854)),f=i(n(8400)),m=i(n(45245)),g=n(34901),v=i(n(96486));function y(e,t,n,i,r,o){if(e){if(i=i||"",o){if(e.noRecurse)return void delete e.noRecurse;e.noRecurse=!0}e.forEach((o=>{if(!o)return;const s=o.columns&&Array.isArray(o.columns),l=o.rows&&Array.isArray(o.rows),u=o.components&&Array.isArray(o.components);let c=!1;const d=o.key?i?`${i}.${o.key}`:o.key:"";r&&(o.parent=(0,a.default)(r),delete o.parent.components,delete o.parent.componentMap,delete o.parent.columns,delete o.parent.rows);const h=s||l||u&&!o.input||["htmlelement","content"].indexOf(o.type)>-1;(n||o.tree||!h)&&(c=t(o,d,e));const p=()=>o.key&&!["panel","table","well","columns","fieldset","tabs","form"].includes(o.type)&&(["datagrid","container","editgrid","address","dynamicWizard","datatable","tagpad"].includes(o.type)||o.tree)?d:o.key&&"form"===o.type?`${d}.data`:i;c||(s?o.columns.forEach((e=>y(e.components,t,n,p(),r?o:null)),!0):l?o.rows.forEach((e=>{Array.isArray(e)&&e.forEach((e=>y(e.components,t,n,p(),r?o:null)),!0)})):u&&y(o.components,t,n,p(),r?o:null,!0))})),e.noRecurse&&delete e.noRecurse}}function b(e,t){if((0,u.default)(t))return e.key===t||e.path===t;{let n=!1;return(0,l.default)(t,((t,i)=>{if(n=(0,r.default)(e,i)===t,!n)return!1})),n}}function w(e,t){const n=[];return y(e,(e=>{b(e,t)&&n.push(e)}),!0),n}function _(e,t,n,i){if(e){if(n=n||[],!t)return i(e);e.forEach((function(r,o){var s=n.slice();s.push(o),r&&(r.hasOwnProperty("columns")&&Array.isArray(r.columns)&&(s.push("columns"),r.columns.forEach((function(e,n){var r=s.slice();r.push(n),r.push("components"),_(e.components,t,r,i)}))),r.hasOwnProperty("rows")&&Array.isArray(r.rows)&&(s.push("rows"),r.rows.forEach((function(e,n){var r=s.slice();r.push(n),e.forEach((function(e,n){var o=r.slice();o.push(n),o.push("components"),_(e.components,t,o,i)}))}))),r.hasOwnProperty("components")&&Array.isArray(r.components)&&(s.push("components"),_(r.components,t,s,i)),r.key===t&&i(r,s,e))}))}}function k(e,t){var n=t.pop();0!==t.length&&(e=(0,r.default)(e,t)),e.splice(n,1)}function C(e){return parseFloat((0,u.default)(e)?e.replace(/[^\de.+-]/gi,""):e)}t.isLayoutComponent=function(e){return Boolean(e.columns&&Array.isArray(e.columns)||e.rows&&Array.isArray(e.rows)||e.components&&Array.isArray(e.components))},t.eachComponent=y,t.matchComponent=b,t.getComponent=function(e,t,n){let i;return y(e,((e,n)=>{if(n===t||e.path===t)return i=e,!0}),n),i},t.searchComponents=w,t.findComponents=function(e,t){return console.warn("formio.js/utils findComponents is deprecated. Use searchComponents instead."),w(e,t)},t.findComponent=_,t.removeComponent=k,t.generateFormChange=function(e,t){let n;switch(e){case"add":n={op:"add",key:t.component.key,container:t.parent.key,path:t.path,index:t.index,component:t.component};break;case"edit":n={op:"edit",key:t.originalComponent.key,patches:(0,g.compare)(t.originalComponent,t.component)},n.patches.length||(n=null);break;case"remove":n={op:"remove",key:t.component.key}}return n},t.applyFormChanges=function(e,t){const n=[];return t.forEach((function(t){var i=!1;switch(t.op){case"add":var s=t.component;_(e.components,t.container,null,(function(n){t.container||(n=e),_(e.components,t.key,null,(function(t,n){s=t,k(e.components,n)})),i=!0,(0,r.default)(n,t.path).splice(t.index,0,s)}));break;case"remove":_(e.components,t.key,null,(function(t,n){i=!0,(0,r.default)(e.components,n).key!==t.key&&n.pop(),k(e.components,n)}));break;case"edit":_(e.components,t.key,null,(function(s,a){i=!0;try{const n=(0,r.default)(e.components,a),i=(0,g.applyPatch)(s,t.patches).newDocument;n.key!==i.key&&a.pop(),(0,o.default)(e.components,a,i)}catch(e){n.push(t)}}))}i||n.push(t)})),{form:e,failed:n}},t.flattenComponents=function(e,t){const n={};return y(e,((e,t)=>{n[t]=e}),t),n},t.hasCondition=function(e){return Boolean(e.customConditional||e.conditional&&(e.conditional.when||v.default.some(e.conditional.conditions||[],(e=>e.component&&e.operator))||e.conditional.json||e.conditional.condition))},t.parseFloatExt=C,t.formatAsCurrency=function(e){const t=C(e);if((0,c.default)(t))return"";const n=(0,p.default)(t,2).toString().split(".");return n[0]=(0,f.default)(Array.from(n[0]).reverse(),3).reverse().map((e=>e.reverse().join(""))).join(","),n[1]=(0,m.default)(n[1],2,"0"),n.join(".")},t.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},t.getValue=function(e,t){const n=e=>{if((0,h.default)(e)){if((0,s.default)(e,t))return v.default.get(e,t);let i=null;return(0,l.default)(e,(e=>{const t=n(e);if(!(0,d.default)(t))return i=t,!1})),i}return null};return n(e.data)},t.getStrings=function(e){const t=["label","title","legend","tooltip","description","placeholder","prefix","suffix","errorLabel","content","html"],n=[];return y(e.components,(e=>{if(t.forEach((t=>{e.hasOwnProperty(t)&&e[t]&&n.push({key:e.key,type:e.type,property:t,string:e[t]})})),(!e.dataSrc||"values"===e.dataSrc)&&e.hasOwnProperty("values")&&Array.isArray(e.values)&&e.values.length&&e.values.forEach(((t,i)=>{n.push({key:e.key,property:`value[${i}].label`,string:e.values[i].label})})),"day"===e.type&&(["day","month","year","Day","Month","Year","january","february","march","april","may","june","july","august","september","october","november","december"].forEach((t=>{n.push({key:e.key,property:"day",string:t})})),e.fields.day.placeholder&&n.push({key:e.key,property:"fields.day.placeholder",string:e.fields.day.placeholder}),e.fields.month.placeholder&&n.push({key:e.key,property:"fields.month.placeholder",string:e.fields.month.placeholder}),e.fields.year.placeholder&&n.push({key:e.key,property:"fields.year.placeholder",string:e.fields.year.placeholder})),"editgrid"===e.type){const t=e.addAnother||"Add Another";e.addAnother&&n.push({key:e.key,property:"addAnother",string:t})}"select"===e.type&&["loading...","Type to search"].forEach((t=>{n.push({key:e.key,property:"select",string:t})}))}),!0),n}},11390:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.I18n=void 0;const r=n(36808),o=i(n(52225)),s={};for(const e in o.default.resources)o.default.resources.hasOwnProperty(e)&&(s[e]=o.default.resources[e].translation);class a{constructor(e={}){this.languages=s,this.language="en",this.currentLanguage=s.en,this.setLanguages(e),this.changeLanguage(this.language)}setLanguages(e){if(e.resources){for(const t in e.resources)e.resources.hasOwnProperty(t)&&(e[t]=e.resources[t].translation);delete e.resources}e.lng&&(e.language=e.lng,delete e.lng),delete e.nsSeparator,delete e.keySeparator,delete e.pluralSeparator,delete e.contextSeparator,e.language&&(this.language=e.language);for(const t in e)"language"!==t&&e.hasOwnProperty(t)&&(this.languages[t]||(this.languages[t]={}),this.languages[t]=Object.assign(Object.assign({},this.languages[t]),e[t]))}static init(e={}){return new a(e)}dir(e=""){return e=e||this.language,["ar","he","fa","ps","ur"].includes(e)?"rtl":"ltr"}static createInstance(){return new a}changeLanguage(e,t=null){this.languages[e]||(e="en"),this.language=e,this.currentLanguage=this.languages[e]?this.languages[e]:{},t&&t()}addResourceBundle(e,t,n){this.languages[e]=n}t(e,...t){return this.currentLanguage[e]?r.Evaluator.interpolateString(this.currentLanguage[e],...t):r.Evaluator.interpolateString(e,...t)}}t.I18n=a},83414:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const s=o(n(76286));"object"==typeof n.g&&(n.g.FormioUtils=s),t.default=s},62841:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lodashOperators=void 0,t.lodashOperators=["chunk","compact","concat","difference","differenceBy","differenceWith","drop","dropRight","dropRightWhile","dropWhile","findIndex","findLastIndex","first","flatten","flattenDeep","flattenDepth","fromPairs","head","indexOf","initial","intersection","intersectionBy","intersectionWith","join","last","lastIndexOf","nth","slice","sortedIndex","sortedIndexBy","sortedIndexOf","sortedLastIndex","sortedLastIndexBy","sortedLastIndexOf","sortedUniq","sortedUniqBy","tail","take","takeRight","takeRightWhile","takeWhile","union","unionBy","unionWith","uniq","uniqBy","uniqWith","unzip","unzipWith","without","xor","xorBy","xorWith","zip","zipObject","zipObjectDeep","zipWith","countBy","every","filter","find","findLast","flatMap","flatMapDeep","flatMapDepth","groupBy","includes","invokeMap","keyBy","map","orderBy","partition","reduce","reduceRight","reject","sample","sampleSize","shuffle","size","some","sortBy","now","flip","negate","overArgs","partial","partialRight","rearg","rest","spread","castArray","clone","cloneDeep","cloneDeepWith","cloneDeep","conformsTo","eq","gt","gte","isArguments","isArray","isArrayBuffer","isArrayLike","isArrayLikeObject","isBoolean","isBuffer","isDate","isElement","isEmpty","isEqual","isEqualWith","isError","isFinite","isFunction","isInteger","isLength","isMap","isMatch","isMatchWith","isNaN","isNative","isNil","isNull","isNumber","isObject","isObjectLike","isPlainObject","isRegExp","isSafeInteger","isSet","isString","isSymbol","isTypedArray","isUndefined","isWeakMap","isWeakSet","lt","lte","toArray","toFinite","toInteger","toLength","toNumber","toPlainObject","toSafeInteger","toString","add","ceil","divide","floor","max","maxBy","mean","meanBy","min","minBy","multiply","round","subtract","sum","sumBy","clamp","inRange","random","at","entries","entriesIn","findKey","findLastKey","functions","functionsIn","get","has","hasIn","invert","invertBy","invoke","keys","keysIn","mapKeys","mapValues","omit","omitBy","pick","pickBy","result","toPairs","toPairsIn","transform","values","valuesIn","camelCase","capitalize","deburr","endsWith","escape","escapeRegExp","kebabCase","lowerCase","lowerFirst","pad","padEnd","padStart","parseInt","repeat","replace","snakeCase","split","startCase","startsWith","toLower","toUpper","trim","trimEnd","trimStart","truncate","unescape","upperCase","upperFirst","words","cond","conforms","constant","defaultTo","flow","flowRight","identity","iteratee","matches","matchesProperty","method","methodOf","nthArg","over","overEvery","overSome","property","propertyOf","range","rangeRight","stubArray","stubFalse","stubObject","stubString","stubTrue","times","toPath","uniqueId"]},76286:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.observeOverload=t.withSwitch=t.firstNonNil=t.unfold=t.bootstrapVersion=t.uniqueKey=t.iterateKey=t.delay=t.fieldData=t.getCurrencyAffixes=t.getNumberDecimalLimit=t.getNumberSeparators=t.matchInputMask=t.unmaskValue=t.getInputMask=t.convertFormatToMask=t.convertFormatToMoment=t.convertFormatToFlatpickr=t.getLocaleDateFormatInfo=t.formatOffset=t.formatDate=t.momentDate=t.loadZones=t.shouldLoadZones=t.zonesLoaded=t.offsetDate=t.currentTimezone=t.isValidDate=t.getDateSetting=t.guid=t.uniqueName=t.convertStringToHTMLElement=t.unescapeHTML=t.setActionProperty=t.checkTrigger=t.checkCondition=t.checkJsonConditional=t.checkCustomConditional=t.getComponentActualValue=t.checkSimpleConditional=t.checkCalculated=t.isMongoId=t.boolValue=t.getElementRect=t.getPropertyValue=t.getRandomComponentId=t.evaluate=t.moment=t.ConditionOperators=t.jsonLogic=void 0,t.getComponentSavedTypes=t.componentValueTypes=t._=t.getFocusableElements=t.isInsideScopingComponent=t.isPromise=t.getDataParentComponent=t.getComponentPath=t.getComponentPathWithoutIndicies=t.getBrowserInfo=t.getIEBrowserVersion=t.round=t.getStringFromComponentPath=t.hasInvalidComponent=t.getArrayFromComponentPath=t.isInputComponent=t.interpolate=t.Evaluator=t.fastCloneDeep=t.sanitize=t.translateHTMLTemplate=t.getContextButtons=t.getContextComponents=void 0;const l=a(n(96486));t._=l.default;const u=a(n(87559)),c=a(n(40962));t.jsonLogic=c.default;const d=a(n(85177)),h=a(n(55586)),p=n(62841),f=a(n(27856)),m=n(49386),g=a(n(8128));t.Evaluator=g.default;const v=a(n(2861));t.ConditionOperators=v.default;const y=g.default.interpolate;t.interpolate=y;const{fetch:b}=(0,u.default)({Promise});function w(e,t,n,i){let r=null;const o=t.component?t.component:{key:"unknown"};!t.form&&t.instance&&(t.form=l.default.get(t.instance,"root._form",{}));const s=o.key;if("string"==typeof e){n&&(e+=`;return ${n}`),i&&(e=e.replace(/({{\s+(.*)\s+}})/,((e,n,i)=>0===i.indexOf("data.")?l.default.get(t.data,i.replace("data.","")):0===i.indexOf("row.")?l.default.get(t.row,i.replace("row.","")):l.default.get(t.data,i))));try{e=g.default.evaluator(e,t),t=l.default.values(t)}catch(t){console.warn(`An error occured within the custom function for ${s}`,t),r=null,e=!1}}if("function"==typeof e)try{r=g.default.evaluate(e,t)}catch(e){r=null,console.warn(`An error occured within custom function for ${s}`,e)}else if("object"==typeof e)try{r=c.default.apply(e,t)}catch(e){r=null,console.warn(`An error occured within custom function for ${s}`,e)}else e&&console.warn(`Unknown function type for ${s}`);return r}function _(e,t){let n=e.getPropertyValue(t);return n=n?n.replace(/[^0-9.]/g,""):"0",parseFloat(n)}function k(e,t,n,i,r){if(t.when){const e=C(t.when,i,n),r=String(t.eq),o=String(t.show);return l.default.isObject(e)&&l.default.has(e,t.eq)?String(e[t.eq])===o:Array.isArray(e)&&e.map(String).includes(r)?"true"===o:String(e)===r==("true"===o)}{const{conditions:o=[],conjunction:s="all",show:a=!0}=t;if(!o.length)return!0;const u=l.default.map(o,(t=>{const{value:o,operator:s,component:a}=t;if(!a)return!0;const l=C(a,i,n),u=v.default[s];return!u||(new u).getResult({value:l,comparedValue:o,instance:r,component:e,conditionComponentPath:a})}));let c=!1;return c="any"===s?l.default.some(u,(e=>!!e)):l.default.every(u,(e=>!!e)),a?c:!c}}function C(e,t,n){let i=null;return n&&(i=(0,m.getValue)({data:n},e)),t&&l.default.isNil(i)&&(i=(0,m.getValue)({data:t},e)),(l.default.isNil(i)||l.default.isObject(i)&&l.default.isEmpty(i))&&(i=""),i}function O(e,t,n,i,r,o,s,a){"string"==typeof t&&(t=`var ${o} = true; ${t}; return ${o};`);const l=a&&a.evaluate?a.evaluate(t,{row:n,data:i,form:r}):w(t,{row:n,data:i,form:r});return null===l?s:l}function x(e,t,n,i,r,o){try{return c.default.apply(t,{data:i,row:n,form:r,_:l.default})}catch(t){return console.warn(`An error occurred in jsonLogic advanced condition for ${e.key}`,t),o}}function E(e,t,n,i){var r;const o=i||e.conditional;n||function(e){e.path=N(e);const t=U(e);t&&"object"==typeof t&&(t.path=N(t))}(n=l.default.cloneDeep(e));const s=U(n),a=s?N(s):null,u=o.when||!o.conditions?null===(r=o.when)||void 0===r?void 0:r.startsWith(a):l.default.some(o.conditions,(e=>e.component.startsWith(a)));if(s&&u){const e={};l.default.set(e,a,t),t=e}return t}function S(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function M(){return d.default.currentTimezone||(d.default.currentTimezone=h.default.determine().name()),d.default.currentTimezone}function P(e,t){if("UTC"===t)return{date:new Date(e.getTime()+6e4*e.getTimezoneOffset()),abbr:"UTC"};const n=(0,d.default)(e).tz(t);return{date:new Date(e.getTime()+6e4*(n.utcOffset()+e.getTimezoneOffset())),abbr:n.format("z")}}function A(e){return e!==M()&&"UTC"!==e}function T(e,t){return t&&!A(t)?new Promise(l.default.noop):d.default.zonesPromise?d.default.zonesPromise:d.default.zonesPromise=b(e).then((e=>e.json().then((e=>{if(d.default.tz.load(e),d.default.zonesLoaded=!0,document&&document.createEvent&&document.body&&document.body.dispatchEvent){var t=document.createEvent("Event");t.initEvent("zonesLoaded",!0,!0),document.body.dispatchEvent(t)}}))))}function D(e){return e.replace(/y/g,"Y").replace(/d/g,"D").replace(/E/g,"d").replace(/a/g,"A").replace(/U/g,"X")}function j(e){return e.match(/(\d+)$/)?e.replace(/(\d+)$/,(function(e){return Number(e)+1})):`${e}1`}function R(e){return"function"==typeof e?e():e}o(n(49386),t),p.lodashOperators.forEach((e=>c.default.add_operation(`_${e}`,l.default[e]))),c.default.add_operation("getDate",(e=>(0,d.default)(e).toISOString())),c.default.add_operation("relativeMinDate",(e=>(0,d.default)().subtract(e,"days").toISOString())),c.default.add_operation("relativeMaxDate",(e=>(0,d.default)().add(e,"days").toISOString())),t.moment=s(n(85177)),t.evaluate=w,t.getRandomComponentId=function(){return`e${Math.random().toString(36).substring(7)}`},t.getPropertyValue=_,t.getElementRect=function(e){const t=window.getComputedStyle(e,null);return{x:_(t,"left"),y:_(t,"top"),width:_(t,"width"),height:_(t,"height")}},t.boolValue=function(e){return l.default.isBoolean(e)?e:l.default.isString(e)?"true"===e.toLowerCase():!!e},t.isMongoId=function(e){return e.toString().match(/^[0-9a-fA-F]{24}$/)},t.checkCalculated=function(e,t,n){e.calculateValue&&l.default.set(n,e.key,w(e.calculateValue,{value:void 0,data:t?t.data:n,row:n,util:this,component:e},"value"))},t.checkSimpleConditional=k,t.getComponentActualValue=C,t.checkCustomConditional=O,t.checkJsonConditional=x,t.checkCondition=function(e,t,n,i,r){const{customConditional:o,conditional:s}=e;return o?O(0,o,t,n,i,"show",!0,r):s&&(s.when||l.default.some(s.conditions||[],(e=>e.component&&e.operator)))?k(e,s,t=E(e,t,r),n,r):!s||!s.json||x(e,s.json,t,n,i,!0)},t.checkTrigger=function(e,t,n,i,r,o){if(!t||!t[t.type])return!1;switch(t.type){case"simple":return n=E(e,n,o,t.simple),k(e,t.simple,n,i,o);case"javascript":return O(0,t.javascript,n,i,r,"result",!1,o);case"json":return x(e,t.json,n,i,r,!1)}return!1},t.setActionProperty=function(e,t,n,i,r,o){const s=t.property.value;switch(t.property.type){case"boolean":{const n=l.default.get(e,s,!1).toString(),i=t.state.toString();n!==i&&l.default.set(e,s,"true"===i);break}case"string":{const a={data:r,row:i,component:e,result:n},u=t.property.component?t[t.property.component]:t.text,c=l.default.get(e,s,""),d=o&&o.interpolate?o.interpolate(u,a):g.default.interpolate(u,a);d!==c&&l.default.set(e,s,d);break}}return e},t.unescapeHTML=function(e){return"undefined"!=typeof window&&"DOMParser"in window?(new window.DOMParser).parseFromString(e,"text/html").documentElement.textContent:e},t.convertStringToHTMLElement=function(e,t){return(new window.DOMParser).parseFromString(e,"text/html").body.querySelector(t)},t.uniqueName=function(e,t,n){(t=t||"{{fileName}}-{{guid}}").includes("{{guid}}")||(t=`${t}-{{guid}}`);const i=e.split(".");let r=i.slice(0,i.length-1).join(".");const o=i.length>1?`.${l.default.last(i)}`:"";return r=r.substr(0,100),n=Object.assign(n||{},{fileName:r,guid:S()}),`${g.default.interpolate(t,n)}${o}`.replace(/[^0-9a-zA-Z.\-_ ]/g,"-")},t.guid=S,t.getDateSetting=function(e){if(l.default.isNil(e)||l.default.isNaN(e)||""===e)return null;if(e instanceof Date)return e;if("function"==typeof e.toDate)return e.isValid()?e.toDate():null;let t="string"!=typeof e||-1===e.indexOf("moment(")?(0,d.default)(e):null;if(t&&t.isValid())return t.toDate();t=null;try{const n=g.default.evaluator(`return ${e};`,"moment")(d.default);"string"==typeof n?t=(0,d.default)(n):"function"==typeof n.toDate?t=(0,d.default)(n.toDate().toUTCString()):n instanceof Date&&(t=(0,d.default)(n))}catch(e){return null}return t&&t.isValid()?t.toDate():null},t.isValidDate=function(e){return l.default.isDate(e)&&!l.default.isNaN(e.getDate())},t.currentTimezone=M,t.offsetDate=P,t.zonesLoaded=function(){return d.default.zonesLoaded},t.shouldLoadZones=A,t.loadZones=T,t.momentDate=function(e,t,n){const i=(0,d.default)(e);return n?("UTC"===n&&(n="Etc/UTC"),(n!==M()||t&&t.match(/\s(z$|z\s)/))&&d.default.zonesLoaded?i.tz(n):i):i},t.formatDate=function(e,t,n,i,r){const o=(0,d.default)(t,r||void 0);if(i===M())return n.match(/\s(z$|z\s)/)?(T(e),d.default.zonesLoaded?o.tz(i).format(D(n)):o.format(D(n.replace(/\s(z$|z\s)/,"")))):o.format(D(n));if("UTC"===i){const e=P(o.toDate(),"UTC");return`${(0,d.default)(e.date).format(D(n))} UTC`}return T(e),d.default.zonesLoaded&&i?o.tz(i).format(`${D(n)} z`):o.format(D(n))},t.formatOffset=function(e,t,n,i,r){if(r===M())return t(n,i);if("UTC"===r)return`${t(P(n,"UTC").date,i)} UTC`;if(T(e),d.default.zonesLoaded){const e=P(n,r);return`${t(e.date,i)} ${e.abbr}`}return t(n,i)},t.getLocaleDateFormatInfo=function(e){const t={},n=new Date(2017,11,21).toLocaleDateString(e);return t.dayFirst=n.slice(0,2)===21..toString(),t},t.convertFormatToFlatpickr=function(e){return e.replace(/Z/g,"").replace(/y/g,"Y").replace("YYYY","Y").replace("YY","y").replace("MMMM","F").replace(/M/g,"n").replace("nnn","M").replace("nn","m").replace(/d/g,"j").replace(/jj/g,"d").replace("EEEE","l").replace("EEE","D").replace("HH","H").replace("hh","G").replace("mm","i").replace("ss","S").replace(/a/g,"K")},t.convertFormatToMoment=D,t.convertFormatToMask=function(e){return e.replace(/M{4}/g,"MM").replace(/M{3}/g,"***").replace(/e/g,"Q").replace(/[ydhmsHMG]/g,"9").replace(/a/g,"AA")},t.getInputMask=function(e,t){if(e instanceof Array)return e;const n=[];n.numeric=!0;for(let i=0;i<e.length;i++)switch(e[i]){case"9":n.push(/\d/);break;case"A":n.numeric=!1,n.push(/[a-zA-Z]/);break;case"a":n.numeric=!1,n.push(/[a-z]/);break;case"*":n.numeric=!1,n.push(/[a-zA-Z0-9]/);break;case t:n.numeric=!1,n.push(" ");break;default:n.numeric=!1,n.push(e[i])}return n},t.unmaskValue=function(e,t,n){if(!t||!e||e.length>t.length)return e;let i=e.split("");for(let n=0;n<t.length;n++){const r=e[n]||"",o=t[n];l.default.isRegExp(o)||r!==o||(i[n]="")}return i=i.join("").replace(n,""),i},t.matchInputMask=function(e,t){if(!t)return!0;if(e.length>t.length)return!1;for(let n=0;n<t.length;n++){const i=e[n]||"",r=t[n];if(!(l.default.isRegExp(r)&&r.test(i)||r===i))return!1}return!0},t.getNumberSeparators=function(e="en"){const t=12345.6789.toLocaleString(e).match(/..(.)...(.)../);return t?{delimiter:t.length>1?t[1]:",",decimalSeparator:t.length>2?t[2]:"."}:{delimiter:",",decimalSeparator:"."}},t.getNumberDecimalLimit=function(e,t){if(l.default.has(e,"decimalLimit"))return l.default.get(e,"decimalLimit");let n=t||20;const i=l.default.get(e,"validate.step","any");if("any"!==i){const e=i.toString().split(".");e.length>1&&(n=e[1].length)}return n},t.getCurrencyAffixes=function({currency:e,decimalLimit:t,decimalSeparator:n,lang:i}){let r=`(.*)?${100..toLocaleString(i)}`;t&&(r+=`${"."===n?"\\.":n}${(0).toLocaleString(i)}{${t}}`),r+="(.*)?";const o=100..toLocaleString(i,{style:"currency",currency:e||"USD",useGrouping:!0,maximumFractionDigits:t||0,minimumFractionDigits:t||0}).replace(".",n).match(new RegExp(r));return{prefix:(null==o?void 0:o[1])||"",suffix:(null==o?void 0:o[2])||""}},t.fieldData=function(e,t){if(!e)return"";if(!t||!t.key)return e;if(t.key.includes(".")){let n=e;const i=t.key.split(".");let r="";for(let e=0;e<i.length;e++){if(r=i[e],n.hasOwnProperty("_id")&&(n=n.data),!n.hasOwnProperty(r))return;r===i[i.length-1]&&t.multiple&&!Array.isArray(n[r])&&(n[r]=[n[r]]),n=n[r]}return n}return t.multiple&&!Array.isArray(e[t.key])&&(e[t.key]=[e[t.key]]),"checkbox"===t.type&&"radio"===t.inputType?e[t.name]===t.value:e[t.key]},t.delay=function(e,t=0,...n){const i=setTimeout(e,t,...n);function r(){clearTimeout(i)}function o(){return r(),e(...n)}return o.timer=i,o.cancel=r,o},t.iterateKey=j,t.uniqueKey=function(e,t){let n=t;for(;e.hasOwnProperty(n);)n=j(n);return n},t.bootstrapVersion=function(e){return e.bootstrap?e.bootstrap:"function"==typeof jQuery&&"function"==typeof jQuery().collapse?parseInt(jQuery.fn.collapse.Constructor.VERSION.split(".")[0],10):window.bootstrap&&window.bootstrap.Collapse?parseInt(window.bootstrap.Collapse.VERSION.split(".")[0],10):0},t.unfold=R,t.firstNonNil=l.default.flow([l.default.partialRight(l.default.map,R),l.default.partialRight(l.default.find,(e=>!l.default.isUndefined(e)))]),t.withSwitch=function(e,t){let n=e,i=t;return[function(){return n},function(){const e=n;n=i,i=e}]},t.observeOverload=function(e,t={}){const{limit:n=50,delay:i=500}=t;let r=0,o=0;const s=()=>r=0;return()=>{if(0!==o&&(clearTimeout(o),o=0),o=setTimeout(s,i),r+=1,r>=n)return clearTimeout(o),s(),e()}},t.getContextComponents=function(e,t,n=[]){const i=[];return e.utils.eachComponent(e.instance.options.editForm.components,((r,o)=>{const s=!t||!r.tree;r.key!==e.data.key&&s&&!l.default.includes(n,r.type)&&i.push({label:`${r.label||r.key} (${o})`,value:o})})),i},t.getContextButtons=function(e){const t=[];return e.utils.eachComponent(e.instance.options.editForm.components,(e=>{"button"===e.type&&t.push({label:`${e.key} (${e.label})`,value:e.key})})),t};const V=["#text","A","B","EM","I","SMALL","STRONG","SUB","SUP","INS","DEL","MARK","CODE"];function I(e,t){if(!e.innerText)return e.innerHTML;const n=e.innerText.replace(g.default.templateSettings.interpolate,"").replace(/\s\s+/g," ").trim(),i=t(n);if(n!==i){const r=e.innerHTML.match(/<a[^>]*>(.*?)<\/a>/g);return r&&r.length?1===r.length&&r[0].length===e.innerHTML.length?e.innerHTML.replace(n,i):`${i} (${r.map((e=>{const n=document.createElement("a");return n.innerHTML=e,I(n,t)})).join(", ")})`:e.innerText.replace(n,i)}return e.innerHTML}function L(e,t){const n=e.children.length&&[...e.children],i=n&&n.every((e=>0===e.children.length&&V.some((t=>e.nodeName===t))));!n||i?e.innerHTML=I(e,t):n.forEach((e=>L(e,t)))}function F(){const e={};if("undefined"==typeof window)return e;const t=window.navigator.userAgent.toLowerCase(),n=/(edge|edg)\/([\w.]+)/.exec(t)||/(opr)[/]([\w.]+)/.exec(t)||/(yabrowser)[ /]([\w.]+)/.exec(t)||/(chrome)[ /]([\w.]+)/.exec(t)||/(iemobile)[/]([\w.]+)/.exec(t)||/(version)(applewebkit)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(t)||/(webkit)[ /]([\w.]+).*(version)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(t)||/(webkit)[ /]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[],i={browser:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0"};return i.browser&&(e[i.browser]=!0,e.version=parseInt(i.version,10)),(e.chrome||e.opr||e.safari||e.edg||e.yabrowser)&&(e.isWebkit=!0),(e.rv||e.iemobile)&&(e.ie=!0),e.edg&&(e.edge=!0),e.opr&&(e.opera=!0),e}function N(e,t=""){var n;return e&&e.key&&"wizard"!==(null===(n=null==e?void 0:e._form)||void 0===n?void 0:n.display)?(t=e.isInputComponent||!0===e.input?`${e.key}${t?".":""}${t}`:t,N(e.parent,t)):t}function U(e){if(!e)return;const{parent:t}=e;return t&&(t.isInputComponent||t.input)?t:U(t)}t.translateHTMLTemplate=function(e,t){if(!/<[^>]*>/.test(e))return t(e);const n=document.createElement("div");return n.innerHTML=e,n.innerText&&n.children.length?(L(n,t),n.innerHTML):e},t.sanitize=function(e,t){if("function"!=typeof f.default.sanitize)return e;const n={ADD_ATTR:["ref","target"],USE_PROFILES:{html:!0}};return t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addAttr)&&t.sanitizeConfig.addAttr.length>0&&t.sanitizeConfig.addAttr.forEach((e=>{n.ADD_ATTR.push(e)})),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addTags)&&t.sanitizeConfig.addTags.length>0&&(n.ADD_TAGS=t.sanitizeConfig.addTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedTags)&&t.sanitizeConfig.allowedTags.length>0&&(n.ALLOWED_TAGS=t.sanitizeConfig.allowedTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedAttrs)&&t.sanitizeConfig.allowedAttrs.length>0&&(n.ALLOWED_ATTR=t.sanitizeConfig.allowedAttrs),t.sanitizeConfig&&t.sanitizeConfig.allowedUriRegex&&(n.ALLOWED_URI_REGEXP=t.sanitizeConfig.allowedUriRegex),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addUriSafeAttr)&&t.sanitizeConfig.addUriSafeAttr.length>0&&(n.ADD_URI_SAFE_ATTR=t.sanitizeConfig.addUriSafeAttr),f.default.sanitize(e,n)},t.fastCloneDeep=function(e){return e?JSON.parse(JSON.stringify(e)):e},t.isInputComponent=function(e){if(!1===e.input||!0===e.input)return e.input;switch(e.type){case"htmlelement":case"content":case"columns":case"fieldset":case"panel":case"table":case"tabs":case"well":case"button":return!1;default:return!0}},t.getArrayFromComponentPath=function(e){return e&&l.default.isString(e)?e.replace(/[[\]]/g,".").replace(/\.\./g,".").replace(/(^\.)|(\.$)/g,"").split(".").map((e=>l.default.defaultTo(l.default.toNumber(e),e))):l.default.isArray(e)?e:[e]},t.hasInvalidComponent=function e(t){return t.getComponents().some((t=>l.default.isArray(t.components)?e(t):t.error))},t.getStringFromComponentPath=function(e){if(!l.default.isArray(e))return e;let t="";return e.forEach(((e,n)=>{l.default.isNumber(e)?t+=`[${e}]`:t+=0===n?e:`.${e}`})),t},t.round=function(e,t){return l.default.isNumber(e)?e.toFixed(t):e},t.getIEBrowserVersion=function(){const{ie:e,version:t}=F();return e?t:null},t.getBrowserInfo=F,t.getComponentPathWithoutIndicies=function(e=""){return e.replace(/\[\d+\]/,"")},t.getComponentPath=N,t.getDataParentComponent=U,t.isPromise=function(e){return e&&e.then&&"function"==typeof e.then&&"[object Promise]"===Object.prototype.toString.call(e)},t.isInsideScopingComponent=function e(t,n=!0){if(!n&&(null==t?void 0:t.hasScopedChildren))return!0;const i=U(t);return!!(null==i?void 0:i.hasScopedChildren)||!!(null==i?void 0:i.parent)&&e(i.parent,!1)},t.getFocusableElements=function(e){return e.querySelectorAll("button:not([disabled]), input:not([disabled]), select:not([disabled]),\n textarea:not([disabled]), button:not([disabled]), [href]")},t.componentValueTypes={number:"number",string:"string",boolean:"boolean",array:"array",object:"object",date:"date",any:"any"},t.getComponentSavedTypes=function(e){const n=e||{};return!0!==n.persistent?[]:n.multiple?[t.componentValueTypes.array]:null}},49451:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(56099));class o{static addRule(e,t){o.rules[e]=t}static addRules(e){o.rules=Object.assign(Object.assign({},o.rules),e)}static getRule(e){return o.rules[e]}static getRules(){return o.rules}}o.rules=r.default,t.default=o},90783:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationChecker=t.default=void 0;const r=i(n(96486)),o=n(76286),s=i(n(30381)),a=i(n(87559)),{fetch:l,Headers:u,Request:c}=(0,a.default)({Promise}),d=n(1622),h=i(n(49451));class p{constructor(e={}){this.config=r.default.defaults(e,p.config),this.validators={required:{key:"validate.required",method:"validateRequired",hasLabel:!0,message:e=>e.t(e.errorMessage("required"),{field:e.errorLabel,data:e.data}),check(e,t,n){if(!(0,o.boolValue)(t)||e.isValueHidden())return!0;const i=e.validators.some((e=>"calendar"===e));return!n&&i&&e.widget.enteredDate?!this.validators.calendar.check.call(this,e,t,n):!e.isEmpty(n)}},onlyAvailableItems:{key:"validate.onlyAvailableItems",method:"validateValueAvailability",hasLabel:!0,message:e=>e.t(e.errorMessage("valueIsNotAvailable"),{field:e.errorLabel,data:e.data}),check:(e,t)=>!(0,o.boolValue)(t)},unique:{key:"validate.unique",hasLabel:!0,message:e=>e.t(e.errorMessage("unique"),{field:e.errorLabel,data:e.data}),check(e,t,n){return!(0,o.boolValue)(t)||!!(!n||r.default.isObjectLike(n)&&r.default.isEmpty(n))||!this.config.db||new Promise((t=>{var i;const s=this.config.form,a=this.config.submission,l=`data.${e.path}`,u=(e,t,n)=>{const i=n.split(/\[\d+\]?./);let o=n;if(i.length>1){o=i.shift();const n={};r.default.reduce(i,((t,o,s)=>{const a=s===i.length-1,l=r.default.get(n,t,n),u=`$elemMatch['${o}']`;return r.default.set(l,u,a?e:{}),t?`${t}.${u}`:u}),""),t[o]=n}else t[o]=e},c={form:s._id};let d={};r.default.isString(n)?e.component.dbIndex?u(n,c,l):"email"===e.component.type||"textfield"===e.component.type&&"[A-Za-z0-9]+"===(null===(i=e.component.validate)||void 0===i?void 0:i.pattern)?(u(n,c,l),d={collation:{locale:"en",strength:2}}):u({$regex:new RegExp(`^${(0,o.escapeRegExCharacters)(n)}$`),$options:"i"},c,l):r.default.isPlainObject(n)&&n.address&&n.address.address_components&&n.address.place_id?u({$regex:new RegExp(`^${(0,o.escapeRegExCharacters)(n.address.place_id)}$`),$options:"i"},c,`${l}.address.place_id`):r.default.isArray(n)?u({$all:n},c,l):(r.default.isObject(n)||r.default.isNumber(n))&&u({$eq:n},c,l),c.deleted={$eq:null},c.state="submitted";const h=(n,i)=>n?t(!1):i?a._id&&i._id.toString()===a._id?void t(!0):(e.conflictId=i._id.toString(),t(!1)):t(!0);this.config.db.findOne(c,null,d,((e,t)=>{if(!e||!d.collation)return h(e,t);delete c[l],u({$regex:new RegExp(`^${(0,o.escapeRegExCharacters)(n)}$`),$options:"i"},c,l),this.config.db.findOne(c,h)}))})).catch((()=>!1))}},multiple:{key:"validate.multiple",hasLabel:!0,message(e){const t=(0,o.boolValue)(e.component.multiple)||Array.isArray(e.emptyValue),n=e.component.validate.required,i=t?n?"array_nonempty":"array":"nonarray";return e.t(e.errorMessage(i),{field:e.errorLabel,data:e.data})},check(e,t,n){if(!e.validateMultiple())return!0;const i=(0,o.boolValue)(t),s=Array.isArray(e.emptyValue),a=Array.isArray(n),l=e.component.validate.required;return i?a?!l||!!n.length:!!r.default.isNil(n)&&!l:s||!a}},select:{key:"validate.select",hasLabel:!0,message:e=>e.t(e.errorMessage("select"),{field:e.errorLabel,data:e.data}),check(e,t,n,i,s,a,d){if(!(0,o.boolValue)(t))return!0;if(!n||r.default.isEmpty(n))return!0;if(!d)return!0;const h=e.component,p={url:t,method:"GET",qs:{},json:!0,headers:{}};if(r.default.isBoolean(p.url)){if(p.url=!!p.url,!p.url||"url"!==h.dataSrc||!h.data.url||!h.searchField)return!0;p.url=h.data.url,p.qs[h.searchField]=n,h.filter&&(p.url+=(p.url.includes("?")?"&":"?")+h.filter),h.selectFields&&(p.qs.select=h.selectFields)}return!p.url||(p.url=(0,o.interpolate)(p.url,{data:e.data}),p.url+=(p.url.includes("?")?"&":"?")+r.default.chain(p.qs).map(((e,t)=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`)).join("&").value(),h.data&&h.data.headers&&r.default.each(h.data.headers,(e=>{e.key&&(p.headers[e.key]=e.value)})),h.authenticate&&this.config.token&&(p.headers["x-jwt-token"]=this.config.token),l(new c(p.url,{headers:new u(p.headers)})).then((e=>!!e.ok&&e.json())).then((e=>e&&e.length)).catch((()=>!1)))}},min:{key:"validate.min",hasLabel:!0,message:(e,t)=>e.t(e.errorMessage("min"),{field:e.errorLabel,min:parseFloat(t),data:e.data}),check(e,t,n){const i=parseFloat(t),r=parseFloat(n);return!(!Number.isNaN(i)&&!Number.isNaN(r))||r>=i}},max:{key:"validate.max",hasLabel:!0,message:(e,t)=>e.t(e.errorMessage("max"),{field:e.errorLabel,max:parseFloat(t),data:e.data}),check(e,t,n){const i=parseFloat(t),r=parseFloat(n);return!(!Number.isNaN(i)&&!Number.isNaN(r))||r<=i}},minSelectedCount:{key:"validate.minSelectedCount",message:(e,t)=>e.component.minSelectedCountMessage?e.component.minSelectedCountMessage:e.t(e.errorMessage("minSelectedCount"),{minCount:parseFloat(t),data:e.data}),check(e,t,n){const i=parseFloat(t);if(!i)return!0;const r=Object.keys(n).reduce(((e,t)=>(n[t]&&e++,e)),0);return!r||r>=i}},maxSelectedCount:{key:"validate.maxSelectedCount",message:(e,t)=>e.component.maxSelectedCountMessage?e.component.maxSelectedCountMessage:e.t(e.errorMessage("maxSelectedCount"),{minCount:parseFloat(t),data:e.data}),check(e,t,n){const i=parseFloat(t);return!i||Object.keys(n).reduce(((e,t)=>(n[t]&&e++,e)),0)<=i}},minLength:{key:"validate.minLength",hasLabel:!0,message:(e,t)=>e.t(e.errorMessage("minLength"),{field:e.errorLabel,length:t,data:e.data}),check(e,t,n){const i=parseInt(t,10);return!(n&&i&&"string"==typeof n&&!e.isEmpty(n))||n.length>=i}},maxLength:{key:"validate.maxLength",hasLabel:!0,message:(e,t)=>e.t(e.errorMessage("maxLength"),{field:e.errorLabel,length:t,data:e.data}),check(e,t,n){const i=parseInt(t,10);return!i||"string"!=typeof n||n.length<=i}},maxWords:{key:"validate.maxWords",hasLabel:!0,message:(e,t)=>e.t(e.errorMessage("maxWords"),{field:e.errorLabel,length:t,data:e.data}),check(e,t,n){const i=parseInt(t,10);return!i||"string"!=typeof n||n.trim().split(/\s+/).length<=i}},minWords:{key:"validate.minWords",hasLabel:!0,message:(e,t)=>e.t(e.errorMessage("minWords"),{field:e.errorLabel,length:t,data:e.data}),check(e,t,n){const i=parseInt(t,10);return!i||!n||"string"!=typeof n||n.trim().split(/\s+/).length>=i}},email:{hasLabel:!0,message:e=>e.t(e.errorMessage("invalid_email"),{field:e.errorLabel,data:e.data}),check:(e,t,n)=>!n||/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n)},url:{hasLabel:!0,message:e=>e.t(e.errorMessage("invalid_url"),{field:e.errorLabel,data:e.data}),check:(e,t,n)=>!n||/^(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(n)&&!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n)},date:{hasLabel:!0,message:e=>e.t(e.errorMessage("invalid_date"),{field:e.errorLabel,data:e.data}),check:(e,t,n)=>!n||"Invalid date"!==n&&"Invalid Date"!==n&&("string"==typeof n&&(n=new Date(n)),n instanceof Date==1&&"Invalid Date"!==n.toString())},day:{hasLabel:!0,message:e=>e.t(e.errorMessage("invalid_day"),{field:e.errorLabel,data:e.data}),check(e,t,n){if(!n)return!0;const[i,r,o]=e.dayFirst?[0,1,2]:[1,0,2],s=n.split("/").map((e=>parseInt(e,10))),a=s[i],l=s[r],u=s[o],c=function(e,t){switch(e){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:return 31;case 4:case 6:case 9:case 11:return 30;case 2:return function(e){return!(e%400&&(!(e%100)||e%4))}(t)?29:28}}(l,u);return!(a<0||a>c||l<0||l>12||u<0||u>9999)}},pattern:{key:"validate.pattern",hasLabel:!0,message:(e,t)=>e.t(r.default.get(e,"component.validate.patternMessage",e.errorMessage("pattern")),{field:e.errorLabel,pattern:t,data:e.data}),check:(e,t,n)=>!!e.isEmpty(n)||(!t||new RegExp(`^${t}$`).test(n))},json:{key:"validate.json",check(e,t,n,i,r,o){if(!t)return!0;const s=e.evaluate(t,{data:i,row:o,rowIndex:r,input:n});return null===s||s}},mask:{key:"inputMask",hasLabel:!0,message:e=>e.t(e.errorMessage("mask"),{field:e.errorLabel,data:e.data}),check(e,t,n){let i;if(e.isMultipleMasksField){const t=n?n.maskName:void 0,r=e.getMaskByName(t);r&&(i=r),n=n?n.value:n}else i=t;return i=i?(0,o.getInputMask)(i):null,!(n&&i&&!e.skipMaskValidation)||(i=i.map((t=>t===e.placeholderChar?" ":t)),(0,o.matchInputMask)(n,i))}},custom:{key:"validate.custom",message:e=>e.t(e.errorMessage("custom"),{field:e.errorLabel,data:e.data}),check(e,t,n,i,r,o){if(!t)return!0;const s=e.evaluate(t,{valid:!0,data:i,rowIndex:r,row:o,input:n},"valid",!0);return null===s||s}},maxDate:{key:"maxDate",hasLabel:!0,message(e,t){const n=(0,o.getDateSetting)(t);return e.t(e.errorMessage("maxDate"),{field:e.errorLabel,maxDate:(0,s.default)(n).format(e.format)})},check(e,t,n){if(e.isPartialDay&&e.isPartialDay(n))return!0;const i=e.getValidationFormat?(0,s.default)(n,e.getValidationFormat()):(0,s.default)(n),a=(0,o.getDateSetting)(t);return!!r.default.isNull(a)||(a.setHours(0,0,0,0),i.isBefore(a)||i.isSame(a))}},minDate:{key:"minDate",hasLabel:!0,message(e,t){const n=(0,o.getDateSetting)(t);return e.t(e.errorMessage("minDate"),{field:e.errorLabel,minDate:(0,s.default)(n).format(e.format)})},check(e,t,n){if(e.isPartialDay&&e.isPartialDay(n))return!0;const i=e.getValidationFormat?(0,s.default)(n,e.getValidationFormat()):(0,s.default)(n),a=(0,o.getDateSetting)(t);return!!r.default.isNull(a)||(a.setHours(0,0,0,0),i.isAfter(a)||i.isSame(a))}},minYear:{key:"minYear",hasLabel:!0,message:(e,t)=>e.t(e.errorMessage("minYear"),{field:e.errorLabel,minYear:t}),check(e,t,n){const i=t;let r=/\d{4}$/.exec(n);return r=r?r[0]:null,!+i||!+r||+r>=+i}},maxYear:{key:"maxYear",hasLabel:!0,message:(e,t)=>e.t(e.errorMessage("maxYear"),{field:e.errorLabel,maxYear:t}),check(e,t,n){const i=t;let r=/\d{4}$/.exec(n);return r=r?r[0]:null,!+i||!+r||+r<=+i}},calendar:{key:"validate.calendar",messageText:"",hasLabel:!0,message(e){return e.t(e.errorMessage(this.validators.calendar.messageText),{field:e.errorLabel,maxDate:(0,s.default)(e.dataValue).format(e.format)})},check(e,t,n,i,r){this.validators.calendar.messageText="";const a=e.getWidget(r);if(!a)return!0;const{settings:l,enteredDate:u}=a,{minDate:c,maxDate:h,format:p}=l,f=[(0,o.convertFormatToMoment)(p)];if(f[0].match(/M{3,}/g)&&f.push(f[0].replace(/M{3,}/g,"MM")),!n&&u){const{message:e,result:t}=(0,d.checkInvalidDate)(u,f,c,h);if(!t)return this.validators.calendar.messageText=e,t}return n&&u?(0,s.default)(n).format()!==(0,s.default)(u,f,!0).format()&&u.match(/_/gi)?(this.validators.calendar.messageText=d.CALENDAR_ERROR_MESSAGES.INCOMPLETE,!1):(a.enteredDate="",!0):void 0}},time:{key:"validate.time",messageText:"Invalid time",hasLabel:!0,message(e){return e.t(e.errorMessage(this.validators.time.messageText),{field:e.errorLabel})},check:(e,t,n)=>!!e.isEmpty(n)||(0,s.default)(n,e.component.format).isValid()},availableValueProperty:{key:"validate.availableValueProperty",method:"validateValueProperty",messageText:"Invalid Value Property",hasLabel:!0,message(e){return e.t(e.errorMessage(this.validators.availableValueProperty.messageText),{field:e.errorLabel})},check:(e,t,n)=>"url"!==e.component.dataSrc||!r.default.isUndefined(n)&&!r.default.isObject(n)}}}checkValidator(e,t,n,i,r,o,s,a){let l=null;l=t.method&&"function"==typeof e[t.method]?e[t.method](n,i,r,o,s,a):t.check.call(this,e,n,i,r,o,s,a);const u=i=>"string"==typeof i?i:!i&&t.message?t.message.call(this,e,n,o,s):"";return a?Promise.resolve(l).then(u):u(l)}validate(e,t,n,i,s,a,l,u,c){if(!u)return!1;const d=this.validators[t],h=r.default.get(c||e.component,d.key,null),p=this.checkValidator(e,d,h,n,i,s,a,l),f=i=>{var a;if(i){const l={message:(0,o.unescapeHTML)(r.default.get(i,"message",i)),level:"warning"===r.default.get(i,"level")?"warning":"error",path:(0,o.getArrayFromComponentPath)(e.path||""),context:{validator:t,hasLabel:d.hasLabel,setting:h,key:e.key,label:e.label,value:n,index:s,input:null===(a=e.refs.input)||void 0===a?void 0:a[s]}};return"unique"===t&&e.conflictId&&(l.conflictId=e.conflictId),l}return!1};return l?Promise.resolve(p).then(f):f(p)}checkComponent(e,t,n,i=!1,o=!1){var s;if("undefined"!=typeof process&&"node"===r.default.get(process,"release.name")&&!r.default.defaultTo(e.component.persistent,!0)||!1===e.component.validate)return o?Promise.resolve([]):[];t=t||e.rootValue,n=n||e.data;const a=e.component.multiple&&Array.isArray(e.validationValue)?e.validationValue:[e.validationValue],l=e.conditionallyVisible(),u=[];(null===(s=null==e?void 0:e.addons)||void 0===s?void 0:s.length)&&a.forEach((t=>{e.addons.forEach((e=>{e.checkValidity(t)||u.push(...e.errors||[])}))}));const c=r.default.get(e,"component.validations");let d=[];if(c&&Array.isArray(c)&&c.length){const s=r.default.chain(c).groupBy((e=>e.mode)).value();if(e.calculateCondition){i=!0;const t=r.default.chain(s.ui).filter("active").groupBy((e=>e.group||null)).value(),n=t.null||[];delete t.null,n.forEach((({condition:t,message:n,severity:i})=>{e.calculateCondition(t)||d.push({level:i||"error",message:e.t(n),componentInstance:e})})),r.default.forEach(t,(t=>{r.default.forEach(t,(({condition:t,message:n,severity:i})=>{if(!e.calculateCondition(t))return d.push({level:i||"error",message:e.t(n),componentInstance:e}),!1}))}))}else d=this.checkValidations(e,c,t,n,a,o);e.validators.includes("custom")&&s.js&&r.default.each(s.js,(i=>{d.push(r.default.map(a,((r,s)=>this.validate(e,"custom",r,t,s,n,o,l,i))))})),e.validators.includes("json")&&s.json&&r.default.each(s.json,(i=>{d.push(r.default.map(a,((r,s)=>this.validate(e,"json",r,t,s,n,o,l,i))))}))}const h=r.default.get(e,"component.validate.custom"),p=r.default.get(e,"component.validate.customMessage"),f=(0,r.default)(e.validators).chain().map((i=>this.validators.hasOwnProperty(i)?"required"!==i||a.length?r.default.map(a,((r,s)=>this.validate(e,i,r,t,s,n,o,l))):[this.validate(e,i,null,t,0,n,o,l)]:{message:`Validator for "${i}" is not defined`,level:"warning",context:{validator:i,key:e.key,label:e.label}})).flatten().value();e.component.validate=e.component.validate||{},e.component.validate.unique=e.component.unique,f.push(this.validate(e,"unique",e.validationValue,t,0,t,o,l)),e.component.validate.multiple=e.component.multiple,f.push(this.validate(e,"multiple",e.validationValue,t,0,t,o,l)),f.push(...u),f.push(...d);const m=o=>(o=(0,r.default)(o).chain().flatten().compact().value(),(p||h)&&r.default.each(o,(i=>{i.message=e.t(p||i.message,{field:e.errorLabel,data:t,row:n,error:i}),i.context.hasLabel=!1})),i?o:r.default.reject(o,(e=>"warning"===e.level)));return o?Promise.all(f).then(m):m(f)}checkValidations(e,t,n,i,r,o){const s=t.map((t=>this.checkRule(e,t,n,i,r,o))).reduce(((e,t)=>t?[...e,...t]:e),[]).filter((e=>e)).reduce(((e,t)=>(e[t.context.validator]=t,e)),{});return Object.values(s)}checkRule(e,t,n,i,r,o){const s=h.default.getRule(t.rule),a=[];if(s){const l=new s(e,t.settings,this.config);r.map(((r,s)=>{const u=l.check(r,n,i,o);!0!==u&&a.push({level:t.level||"error",message:e.t(t.message||l.defaultMessage,{settings:t.settings,field:e.errorLabel,data:n,row:i,error:u}),context:{key:e.key,index:s,label:e.label,validator:t.rule}})}))}return 0!==a.length&&a}get check(){return this.checkComponent}get(){r.default.get.call(this,arguments)}each(){r.default.each.call(this,arguments)}has(){r.default.has.call(this,arguments)}}t.ValidationChecker=p,p.config={db:null,token:null,form:null,submission:null};const f=new p;t.default=f},63196:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{static addConjunction(e,t){n.conjunctions[e]=t}static addConjunctions(e){n.conjunctions=Object.assign(Object.assign({},n.conjunctions),e)}static getConjunction(e){return n.conjunctions[e]}static getConjunctions(){return n.conjunctions}}n.conjunctions={},t.default=n},19969:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{static addOperator(e,t){n.operators[e]=t}static addOperators(e){n.operators=Object.assign(Object.assign({},n.operators),e)}static getOperator(e){return n.operators[e]}static getOperators(){return n.operators}}n.operators={},t.default=n},88685:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{static addQuickRule(e,t){n.quickRules[e]=t}static addQuickRules(e){n.quickRules=Object.assign(Object.assign({},n.quickRules),e)}static getQuickRule(e){return n.quickRules[e]}static getQuickRules(){return n.quickRules}}n.quickRules={},t.default=n},23923:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(20699));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{error}}"}check(e,t,n,i){const r=this.settings.custom;if(!r)return!0;const o=this.component.evaluate(r,{valid:!0,data:t,row:n,rowIndex:i,input:e},"valid",!0);return null===o||o}}t.default=o},28959:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(20699));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} is not a valid date."}check(e){return!e||"Invalid date"!==e&&"Invalid Date"!==e&&("string"==typeof e&&(e=new Date(e)),e instanceof Date==1&&"Invalid Date"!==e.toString())}}t.default=o},93098:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(20699));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} is not a valid day."}check(e){if(!e)return!0;if("string"!=typeof e)return!1;const[t,n,i]=this.component.dayFirst?[0,1,2]:[1,0,2],r=e.split("/").map((e=>parseInt(e,10))),o=r[t],s=r[n],a=r[i],l=function(e,t){switch(e){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:return 31;case 4:case 6:case 9:case 11:return 30;case 2:return function(e){return!(e%400&&(!(e%100)||e%4))}(t)?29:28}}(s,a);return!(isNaN(o)||o<0||o>l||isNaN(s)||s<0||s>12||isNaN(a)||a<0||a>9999)}}t.default=o},13679:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(20699));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} must be a valid email."}check(e){return!e||/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}}t.default=o},42620:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(20699));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{error}}"}check(e,t,n,i){const{json:r}=this.settings;if(!r)return!0;const o=this.component.evaluate(r,{data:t,row:n,rowIndex:i,input:e});return null===o||o}}t.default=o},18908:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(76286),o=i(n(20699));class s extends o.default{constructor(){super(...arguments),this.defaultMessage="{{field}} does not match the mask."}check(e){let t;if(this.component.isMultipleMasksField){const n=e?e.maskName:void 0,i=this.component.getMaskByName(n);i&&(t=(0,r.getInputMask)(i)),e=e?e.value:e}else t=(0,r.getInputMask)(this.settings.mask);return!e||!t||(0,r.matchInputMask)(e,t)}}t.default=s},72793:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(20699));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} cannot be greater than {{settings.limit}}."}check(e){const t=parseFloat(this.settings.limit),n=parseFloat(e);return!(!Number.isNaN(t)&&!Number.isNaN(n))||n<=t}}t.default=o},83662:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(76286),o=i(n(30381)),s=i(n(96486)),a=i(n(20699));class l extends a.default{constructor(){super(...arguments),this.defaultMessage="{{field}} should not contain date after {{settings.dateLimit}}"}check(e){if(!e)return!0;if(e===this.settings.dateLimit)return!0;const t=(0,o.default)(e),n=(0,r.getDateSetting)(this.settings.dateLimit);return!!s.default.isNull(n)||(n.setHours(0,0,0,0),t.isBefore(n)||t.isSame(n))}}t.default=l},45539:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(20699));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} must have no more than {{- settings.length}} characters."}check(e){const t=parseInt(this.settings.length,10);return!(e&&t&&e.hasOwnProperty("length"))||e.length<=t}}t.default=o},80023:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(20699));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} must have no more than {{- settings.length}} words."}check(e){const t=parseInt(this.settings.length,10);return!t||"string"!=typeof e||e.trim().split(/\s+/).length<=t}}t.default=o},43702:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(20699));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} should not contain year greater than {{maxYear}}"}check(e){const t=this.settings;let n=/\d{4}$/.exec(e);return n=n?n[0]:null,!+t||!+n||+n<=+t}}t.default=o},38213:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(20699));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} cannot be less than {{settings.limit}}."}check(e){const t=parseFloat(this.settings.limit),n=parseFloat(e);return!(!Number.isNaN(t)&&!Number.isNaN(n))||n>=t}}t.default=o},49496:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(76286),o=i(n(30381)),s=i(n(96486)),a=i(n(20699));class l extends a.default{constructor(){super(...arguments),this.defaultMessage="{{field}} should not contain date before {{settings.dateLimit}}"}check(e){if(!e)return!0;const t=(0,o.default)(e),n=(0,r.getDateSetting)(this.settings.dateLimit);return!!s.default.isNull(n)||(n.setHours(0,0,0,0),t.isAfter(n)||t.isSame(n))}}t.default=l},46276:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(20699));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} must have no more than {{- settings.length}} characters."}check(e){const t=parseInt(this.settings.length,10);return!(t&&e&&e.hasOwnProperty("length")&&!this.component.isEmpty(e))||e.length>=t}}t.default=o},96998:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(20699));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} must have at least {{- settings.length}} words."}check(e){const t=parseInt(this.settings.length,10);return!t||!e||"string"!=typeof e||e.trim().split(/\s+/).length>=t}}t.default=o},63518:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(20699));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} should not contain year less than {{minYear}}"}check(e){const t=this.settings;let n=/\d{4}$/.exec(e);return n=n?n[0]:null,!+t||!+n||+n>=+t}}t.default=o},93310:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(20699));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} does not match the pattern {{settings.pattern}}"}check(e){const{pattern:t}=this.settings;return!t||new RegExp(`^${t}$`).test(e)}}t.default=o},80538:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(20699));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} is required"}check(e){return!this.component.isValueHidden()&&!this.component.isEmpty(e)}}t.default=o},20699:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e,t,n){this.component=e,this.settings=t,this.config=n}check(){}}},23743:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(76286),o=i(n(87559)),{fetch:s,Headers:a,Request:l}=(0,o.default)({Promise}),u=i(n(96486)),c=i(n(20699));class d extends c.default{constructor(){super(...arguments),this.defaultMessage="{{field}} contains an invalid selection"}check(e,t,n,i){if(!e||u.default.isEmpty(e))return!0;if(!i)return!0;const o=this.component.component,c={url:this.settings.url,method:"GET",qs:{},json:!0,headers:{}};if(u.default.isBoolean(c.url)){if(c.url=!!c.url,!c.url||"url"!==o.dataSrc||!o.data.url||!o.searchField)return!0;c.url=o.data.url,c.qs[o.searchField]=e,o.filter&&(c.url+=(c.url.includes("?")?"&":"?")+o.filter),o.selectFields&&(c.qs.select=o.selectFields)}return!c.url||(c.url=(0,r.interpolate)(c.url,{data:this.component.data}),c.url+=(c.url.includes("?")?"&":"?")+u.default.chain(c.qs).map(((e,t)=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`)).join("&").value(),o.data&&o.data.headers&&u.default.each(o.data.headers,(e=>{e.key&&(c.headers[e.key]=e.value)})),o.authenticate&&this.config.token&&(c.headers["x-jwt-token"]=this.config.token),s(new l(c.url,{headers:new a(c.headers)})).then((e=>!!e.ok&&e.json())).then((e=>e&&e.length)).catch((()=>!1)))}}t.default=d},28602:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(20699)),o=i(n(30381));class s extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} must contain valid time"}check(e){return!!this.component.isEmpty(e)||(0,o.default)(e,this.component.component.format).isValid()}}t.default=s},29971:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(76286),o=i(n(96486)),s=i(n(20699));class a extends s.default{constructor(){super(...arguments),this.defaultMessage="{{field}} must be unique"}check(e){return!!(!e||o.default.isObjectLike(e)&&o.default.isEmpty(e))||!this.config.db||new Promise((t=>{const n=this.config.form,i=this.config.submission,s=`data.${this.component.path}`,a={form:n._id};o.default.isString(e)?a[s]={$regex:new RegExp(`^${(0,r.escapeRegExCharacters)(e)}$`),$options:"i"}:o.default.isPlainObject(e)&&e.address&&e.address.address_components&&e.address.place_id?a[`${s}.address.place_id`]={$regex:new RegExp(`^${(0,r.escapeRegExCharacters)(e.address.place_id)}$`),$options:"i"}:o.default.isArray(e)?a[s]={$all:e}:(o.default.isObject(e)||o.default.isNumber(e))&&(a[s]={$eq:e}),a.deleted={$eq:null},this.config.db.findOne(a,((e,n)=>t(!e&&(!n||i._id&&n._id.toString()===i._id))))})).catch((()=>!1))}}t.default=a},38474:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(20699));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} must be a valid url."}check(e){return!e||/^(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)&&!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}}t.default=o},56099:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(23923)),o=i(n(28959)),s=i(n(93098)),a=i(n(13679)),l=i(n(42620)),u=i(n(18908)),c=i(n(72793)),d=i(n(83662)),h=i(n(45539)),p=i(n(80023)),f=i(n(38213)),m=i(n(49496)),g=i(n(46276)),v=i(n(96998)),y=i(n(93310)),b=i(n(80538)),w=i(n(23743)),_=i(n(29971)),k=i(n(38474)),C=i(n(63518)),O=i(n(43702)),x=i(n(28602));t.default={custom:r.default,date:o.default,day:s.default,email:a.default,json:l.default,mask:u.default,max:c.default,maxDate:d.default,maxLength:h.default,maxWords:p.default,min:f.default,minDate:m.default,minLength:g.default,minWords:v.default,pattern:y.default,required:b.default,select:w.default,unique:_.default,url:k.default,minYear:C.default,maxYear:O.default,time:x.default}},66477:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{static addTransformer(e,t){n.transformers[e]=t}static addTransformers(e){n.transformers=Object.assign(Object.assign({},n.transformers),e)}static getTransformer(e){return n.transformers[e]}static getTransformers(){return n.transformers}}n.transformers={},t.default=n},46386:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{static addValueSource(e,t){n.valueSources[e]=t}static addValueSources(e){n.valueSources=Object.assign(Object.assign({},n.valueSources),e)}static getValueSource(e){return n.valueSources[e]}static getValueSources(){return n.valueSources}}n.valueSources={},t.default=n},8734:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(61066),o=i(n(46181)),s=n(76286),a=i(n(30381)),l=i(n(96486)),u="yyyy-MM-dd hh:mm a",c="yyyy-MM-ddTHH:mm:ssZ",d=(0,s.getBrowserInfo)().ie;class h extends o.default{static get defaultSettings(){return{type:"calendar",altInput:!0,allowInput:!0,clickOpens:!0,enableDate:!0,enableTime:!0,mode:"single",noCalendar:!1,format:u,dateFormat:c,useLocaleSettings:!1,language:"us-en",hourIncrement:1,minuteIncrement:5,time_24hr:!1,saveAs:"date",displayInTimezone:"",timezone:"",disable:[],minDate:"",maxDate:""}}constructor(e,t,n,i){super(e,t,n,i),this.settings.noCalendar&&(this.settings.format=this.settings.format.replace(/yyyy-MM-dd /g,"")),this.settings.enableTime?this.settings.time_24hr&&(this.settings.format=this.settings.format.replace(/hh:mm a$/g,"HH:mm")):this.settings.format=this.settings.format.replace(/ hh:mm a$/g,""),this.zoneLoading=!1,this.timezonesUrl=`${r.Formio.cdn["moment-timezone"]}/data/packed/latest.json`}loadZones(){const e=this.timezone;return!!this.zoneLoading||!((0,s.zonesLoaded)()||!(0,s.shouldLoadZones)(e))&&(this.zoneLoading=!0,(0,s.loadZones)(this.timezonesUrl,e).then((()=>{this.zoneLoading=!1,this.emit("redraw")})),!0)}attach(e){var t;const n=super.attach(e),i=(0,s.getLocaleDateFormatInfo)(this.settings.language);this.defaultFormat={date:i.dayFirst?"d/m/Y ":"m/d/Y ",time:"G:i K"},this.closedOn=0,this.valueFormat="date"===this.settings.saveAs?c:this.settings.dateFormat||c,this.valueMomentFormat=(0,s.convertFormatToMoment)(this.valueFormat);const o=this.settings.readOnly;return this.settings.minDate=o?null:(0,s.getDateSetting)(this.settings.minDate),this.settings.maxDate=o?null:(0,s.getDateSetting)(this.settings.maxDate),this.settings.disable=this.disabledDates,this.settings.disableWeekends&&this.settings.disable.push(this.disableWeekends),this.settings.disableWeekdays&&this.settings.disable.push(this.disableWeekdays),this.settings.disableFunction&&this.settings.disable.push(this.disableFunction),this.settings.wasDefaultValueChanged=!1,this.settings.defaultValue="",this.settings.manualInputValue="",this.settings.isManuallyOverriddenValue=!1,this.settings.currentValue="",this.settings.altFormat=(0,s.convertFormatToFlatpickr)(this.settings.format),this.settings.dateFormat=(0,s.convertFormatToFlatpickr)(this.settings.dateFormat),this.settings.position="auto center",this.settings.onChange=()=>{this.settings.allowInput&&(this.settings.isManuallyOverriddenValue&&this.settings.enableTime?this.calendar._input.value=this.settings.manualInputValue:this.settings.manualInputValue="",this.settings.isManuallyOverriddenValue=!1),this.emit("update")},this.settings.onOpen=()=>this.hook("onCalendarOpen"),this.settings.onClose=()=>{this.hook("onCalendarClose"),this.closedOn=Date.now(),this.settings.allowInput&&this.settings.enableTime&&(this.calendar._input.value=this.settings.manualInputValue||this.calendar._input.value,this.settings.isManuallyOverriddenValue=!1,this.emit("update")),this.settings.wasDefaultValueChanged&&(this.calendar._input.value=this.settings.defaultValue,this.settings.wasDefaultValueChanged=!1),this.calendar&&this.emit("blur")},r.Formio.requireLibrary("flatpickr-css","flatpickr",[{type:"styles",src:`${r.Formio.cdn["flatpickr-formio"]}/flatpickr.min.css`}],!0),this.component.shortcutButtons&&(this.component.shortcutButtons=this.component.shortcutButtons.filter((e=>e.label&&e.onClick))),(null===(t=this.component.shortcutButtons)||void 0===t?void 0:t.length)&&r.Formio.requireLibrary("shortcut-buttons-flatpickr-css","ShortcutButtonsPlugin",[{type:"styles",src:`${r.Formio.cdn["shortcut-buttons-flatpickr"]}/themes/light.min.css`}],!0),n.then((()=>{var e;if(null===(e=this.component.shortcutButtons)||void 0===e?void 0:e.length)return r.Formio.requireLibrary("shortcut-buttons-flatpickr","ShortcutButtonsPlugin",`${r.Formio.cdn["shortcut-buttons-flatpickr"]}/shortcut-buttons-flatpickr.min.js`,!0)})).then((e=>r.Formio.requireLibrary("flatpickr","flatpickr",`${r.Formio.cdn["flatpickr-formio"]}/flatpickr.min.js`,!0).then((t=>{var n;if((null===(n=this.component.shortcutButtons)||void 0===n?void 0:n.length)&&e&&this.initShortcutButtonsPlugin(e),this.settings.formatDate=this.getFlatpickrFormatDate(t),this._input){const{locale:e}=this.settings;if(e&&e.length>=2&&"en"!==e)return r.Formio.requireLibrary(`flatpickr-${e}`,`flatpickr-${e}`,`${r.Formio.cdn["flatpickr-formio"]}/l10n/flatpickr-${e}.js`,!0).then((()=>this.initFlatpickr(t)));this.initFlatpickr(t)}})))).catch((e=>{console.warn(e)}))}get disableWeekends(){return function(e){return 0===e.getDay()||6===e.getDay()}}get disableWeekdays(){return e=>!this.disableWeekends(e)}get disableFunction(){return e=>this.evaluate(`return ${this.settings.disableFunction}`,{date:e})}get timezone(){return this.componentInstance.getTimezone(this.settings)}get defaultSettings(){return h.defaultSettings}addSuffix(e){return this.addEventListener(e,"click",(()=>{setTimeout((()=>{this.calendar&&(!this.calendar.isOpen&&Date.now()-this.closedOn>200?this.calendar.open():this.calendar.isOpen&&this.calendar.close())}),0)})),e}set disabled(e){super.disabled=e,this.calendar&&(e?this.calendar._input.setAttribute("disabled","disabled"):this.calendar._input.removeAttribute("disabled"),this.calendar.close(),this.calendar.redraw())}get input(){return this.calendar?this.calendar.altInput:null}get disabledDates(){return this.settings.disabledDates?this.settings.disabledDates.split(",").map((e=>{const t=/\d{4}-\d{2}-\d{2}/g,n=e.match(t);if(n&&n.length)return 1===n.length?e.match(t)[0]:{from:e.match(t)[0],to:e.match(t)[1]}})):[]}get localeFormat(){let e="";return this.settings.enableDate&&(e+=this.defaultFormat.date),this.settings.enableTime&&(e+=this.defaultFormat.time),e}get dateTimeFormat(){return this.settings.useLocaleSettings?this.localeFormat:(0,s.convertFormatToFlatpickr)(this.dateFormat)}get dateFormat(){return l.default.get(this.settings,"format",u)}getDateValue(e,t,n){return n?(0,s.momentDate)(e,this.valueFormat,this.timezone).format((0,s.convertFormatToMoment)(t)):(0,a.default)(e).format((0,s.convertFormatToMoment)(t))}getValue(){if(!this.calendar)return super.getValue();const e=this.calendar.selectedDates;return e&&e.length?e[0]instanceof Date?this.getDateValue(e[0],this.valueFormat,"date"===this.settings.saveAs):"Invalid Date":super.getValue()}isValueISO8601(e){return e&&"string"==typeof e&&e.match(/-[0-9]{2}T[0-9]{2}:/)}setValue(e){const t="text"===this.settings.saveAs;if(!this.calendar)return e=e?(0,s.formatDate)(this.timezonesUrl,e,(0,s.convertFormatToMoment)(this.settings.format),this.timezone,(0,s.convertFormatToMoment)(this.valueMomentFormat)):e,super.setValue(e);const n=this.loadZones();e?t||!this.settings.readOnly||n?this.isValueISO8601(e)?this.calendar.setDate(e,!1):this.calendar.setDate((0,a.default)(e,this.valueMomentFormat).toDate(),!1):this.calendar.setDate((0,s.momentDate)(e,this.valueFormat,this.timezone).format(),!1):this.calendar.clear(!1)}getValueAsString(e,t){const n=t||this.dateFormat,i=this.calendar?this.valueFormat:this.settings.dateFormat;return"text"===this.settings.saveAs&&this.componentInstance.parent&&!this.settings.readOnly?(0,a.default)(e,(0,s.convertFormatToMoment)(i)).format((0,s.convertFormatToMoment)(i)):(0,s.formatDate)(this.timezonesUrl,e,n,this.timezone,(0,s.convertFormatToMoment)(i))}setErrorClasses(e){this.input&&(e?(this.addClass(this.input,"is-invalid"),this.input.setAttribute("aria-invalid","true")):(this.removeClass(this.input,"is-invalid"),this.input.setAttribute("aria-invalid","false")))}validationValue(e){return"string"==typeof e?new Date(e):e.map((e=>new Date(e)))}isCalendarElement(e){var t,n,i,r,o;return!e||!!(null===(i=null===(n=null===(t=this.calendar)||void 0===t?void 0:t.config)||void 0===n?void 0:n.appendTo)||void 0===i?void 0:i.contains(e))||(null===(o=null===(r=this.calendar)||void 0===r?void 0:r.calendarContainer)||void 0===o?void 0:o.contains(e))}initFlatpickr(e){if(this.calendar=new e(this._input,Object.assign(Object.assign({},this.settings),{disableMobile:!0})),this.calendar.altInput.addEventListener("input",(e=>{this.settings.allowInput&&this.settings.currentValue!==e.target.value&&(this.settings.manualInputValue=e.target.value,this.settings.isManuallyOverriddenValue=!0,this.settings.currentValue=e.target.value),""===e.target.value&&this.calendar.selectedDates.length>0?(this.settings.wasDefaultValueChanged=!0,this.settings.defaultValue=e.target.value,this.calendar.clear()):this.settings.wasDefaultValueChanged=!1})),this.settings.readOnly||l.default.some(["MMMM"],(e=>l.default.includes(this.settings.format,e)))||this.setInputMask(this.calendar._input,(0,s.convertFormatToMask)(this.settings.format)),d){const e=this.calendar._handlers.find((({event:e,element:t})=>"blur"===e&&t===this.calendar._input));this.calendar._input.removeEventListener("blur",e.handler),this.addEventListener(this.calendar._input,"blur",(e=>{const t=this.settings.shadowRoot?this.settings.shadowRoot.activeElement:document.activeElement,n=e.relatedTarget?e.relatedTarget:t;e.target===this.calendar._input&&!this.isCalendarElement(n)&&this.calendar.setDate(this.calendar._input.value,!0,e.target===this.calendar.altInput?this.calendar.config.altFormat:this.calendar.config.dateFormat)}))}this.addEventListener(this.calendar._input,"blur",(e=>{var t,n,i,r;const o=this.settings.shadowRoot?this.settings.shadowRoot.activeElement:document.activeElement,l=e.relatedTarget?e.relatedTarget:o;if(d&&!l||this.isCalendarElement(l)){if(!this.calendar.input.value&&this.calendar.config.noCalendar){const e=(0,a.default)({hour:null===(n=null===(t=this.calendar)||void 0===t?void 0:t.config)||void 0===n?void 0:n.defaultHour,minute:null===(r=null===(i=this.calendar)||void 0===i?void 0:i.config)||void 0===r?void 0:r.defaultMinute}).toDate();this.calendar.setDate(e,!0,this.settings.format)}}else{const e=this.calendar.input.value,t=e?(0,a.default)(this.calendar.input.value,(0,s.convertFormatToMoment)(this.valueFormat)).toDate():e;this.calendar.setDate(t,!0,this.settings.altFormat)}})),this.addEventListener(this.calendar.altInput,"keydown",(e=>{13===e.keyCode&&this.calendar.isOpen&&(this.calendar.close(),e.stopPropagation())})),this.setValue(this.componentValue)}initShortcutButtonsPlugin(e){this.settings.plugins=[e({button:this.component.shortcutButtons.map((e=>({label:e.label,attributes:e.attribute}))),onClick:e=>{const t=this.component.shortcutButtons[e].onClick,n=this.evaluate(t,{date:new Date},"date");this.calendar.setDate(n,!0)}})]}get componentValue(){let e=this.componentInstance.dataValue;return Array.isArray(e)&&(e=e[this.valueIndex]),e}getFlatpickrFormatDate(e){return(t,n)=>this.settings.readOnly&&n===this.settings.altFormat?this.loadZones()?e.formatDate(t,n):new Date(this.getValue()).toString()===t.toString()?(0,s.formatOffset)(this.timezonesUrl,e.formatDate.bind(e),new Date(this.componentValue),n,this.timezone):(0,s.formatOffset)(this.timezonesUrl,e.formatDate.bind(e),t,n,this.timezone):e.formatDate(t,n)}destroy(e=!1){this.calendar&&this.calendar.destroy(),super.destroy(e)}}t.default=h},46181:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96486)),o=i(n(32197));class s extends o.default{static get defaultSettings(){return{type:"input"}}constructor(e,t,n,i){super(e),this.valueIndex=i||0,this.componentInstance=n,this.namespace="formio.widget",this.component=t||{},this.settings=r.default.merge({},this.defaultSettings,e||{})}attach(e){return this._input=e,Promise.resolve()}get defaultSettings(){return{}}set disabled(e){e?this._input.setAttribute("disabled","disabled"):this._input.removeAttribute("disabled")}get input(){return this._input}getValue(){return this._input.value}getValueAsString(e){return e}validationValue(e){return e}addPrefix(){return null}addSuffix(){return null}setValue(e){this._input.value=e}evalContext(e){return super.evalContext(Object.assign({component:this.component,row:this.componentInstance.data,rowIndex:this.componentInstance.rowIndex,data:this.componentInstance.rootValue,value:this.componentInstance.dataValue,t:this.t.bind(this),submission:this.componentInstance.root?this.componentInstance.root._submission:{data:this.componentInstance.rootValue},form:this.componentInstance.root?this.componentInstance.root._form:{},options:this.options},e))}}t.default=s},94554:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(46181)),o=i(n(8734));t.default={input:r.default,calendar:o.default}},47412:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(91371);t.default={framework:"bootstrap5",templates:{bootstrap5:i.default}}},2408:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";if(Array.prototype.join,e.mode.autocomplete){for(var i in n+='\n <div class="address-autocomplete-container">\n <input\n ref="'+(null==(t=e.ref.searchInput)?"":t)+'"\n ',e.inputAttributes)n+="\n "+(null==(t=i)?"":t)+'="'+(null==(t=e.inputAttributes[i])?"":t)+'"\n ';n+='\n value="'+(null==(t=e.displayValue)?"":t)+'"\n autocomplete="off"\n aria-label="'+(null==(t=e.t("autocomplete"))?"":t)+'"\n >\n ',e.component.disableClearIcon||(n+='\n <i\n class="address-autocomplete-remove-value-icon fa fa-times"\n tabindex="'+(null==(t=e.inputAttributes.tabindex)?"":t)+'"\n ref="'+(null==(t=e.ref.removeValueIcon)?"":t)+'"\n ></i>\n '),n+="\n </div>\n"}return n+="\n",e.self.manualModeEnabled&&(n+='\n <div class="form-check checkbox">\n <label class="form-check-label">\n <input\n ref="'+(null==(t=e.ref.modeSwitcher)?"":t)+'"\n type="checkbox"\n class="form-check-input"\n tabindex="'+(null==(t=e.inputAttributes.tabindex)?"":t)+'"\n ',e.mode.manual&&(n+="checked=true"),n+="\n ",e.disabled&&(n+="disabled=true"),n+="\n >\n <span>"+(null==(t=e.component.switchToManualModeLabel)?"":t)+"</span>\n </label>\n </div>\n"),n+="\n",e.self.manualMode&&(n+='\n <div ref="'+(null==(t=e.nestedKey)?"":t)+'">\n '+(null==(t=e.children)?"":t)+"\n </div>\n"),n+"\n"}},52335:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div ref="value">',e.displayValue?n+=null==(t=e.displayValue)?"":t:n+="-",n+"</div>\n"}},8503:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2408),r=n(52335);t.default={form:i.default,html:r.default}},65326:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var i in Array.prototype.join,n+="<div\n ",e.attrs)n+="\n "+(null==(t=i)?"":t)+'="'+(null==(t=e.attrs[i])?"":t)+'"\n ';return n+="\n>\n "+(null==(t=e.message)?"":t)+"\n ",e.options.vpat&&(n+='\n <span class="visually-hidden" id="hotkey-i-'+(null==(t=e.form._id)?"":t)+'">'+(null==(t=e.t("errorListHotkey"))?"":t)+"</span>\n "),n+"\n</div>\n"}},1599:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(65326);t.default={form:i.default}},12335:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="formio builder row formbuilder">\n <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n '+(null==(t=e.sidebar)?"":t)+'\n </div>\n <div class="col-xs-8 col-sm-9 col-md-10 formarea" ref="form">\n '+(null==(t=e.form)?"":t)+"\n </div>\n</div>\n"}},54802:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(12335);t.default={form:i.default}},50127:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="builder-component" ref="dragComponent" tabindex="-1">\n ',e.disableBuilderActions||(n+='\n <div class="component-btn-group" data-noattach="true">\n <div\n role="button"\n aria-label="Remove button. Click to remove component from the form"\n tabindex="-1"\n class="btn btn-xxs btn-danger component-settings-button component-settings-button-remove"\n ref="removeComponent"\n >\n <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'"></i>\n </div>\n <div\n role="button"\n aria-label="Copy button. Click to copy component"\n tabindex="-1"\n class="btn btn-xxs btn-default component-settings-button component-settings-button-copy"\n ref="copyComponent"\n >\n <i class="'+(null==(t=e.iconClass("copy"))?"":t)+'"></i>\n </div>\n <div\n role="button"\n aria-label="Paste below button. Click to paste component below the current component"\n tabindex="-1"\n class="btn btn-xxs btn-default component-settings-button component-settings-button-paste"\n ref="pasteComponent"\n >\n <i class="'+(null==(t=e.iconClass("save"))?"":t)+'"></i>\n </div>\n <div\n role="button"\n aria-label="Edit json button. Click to edit json of the current component"\n tabindex="-1"\n class="btn btn-xxs btn-default component-settings-button component-settings-button-edit-json" \n ref="editJson"\n >\n <i class="'+(null==(t=e.iconClass("wrench"))?"":t)+'"></i>\n </div>\n <div\n role="button"\n aria-label="Move button"\n tabindex="-1"\n class="btn btn-xxs btn-default component-settings-button component-settings-button-move"\n ref="moveComponent"\n >\n <i class="'+(null==(t=e.iconClass("move"))?"":t)+'"></i>\n </div>\n <div\n role="button"\n aria-label="Edit button. Click to open component settings modal window"\n tabindex="-1"\n class="btn btn-xxs btn-secondary component-settings-button component-settings-button-edit"\n ref="editComponent"\n >\n <i class="'+(null==(t=e.iconClass("cog"))?"":t)+'"></i>\n </div>\n </div>\n '),n+"\n "+(null==(t=e.html)?"":t)+"\n</div>\n"}},49774:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(50127);t.default={form:i.default}},83862:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="builder-components drag-container formio-builder-'+(null==(t=e.type)?"":t)+'" ref="'+(null==(t=e.key)?"":t)+'-container">\n '+(null==(t=e.html)?"":t)+"\n</div>\n"}},93021:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(83862);t.default={form:i.default}},13853:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="row">\n <div class="col col-sm-6">\n <p class="lead">'+(null==(t=e.t(e.componentInfo.title,{_userInput:!0}))?"":t)+" "+(null==(t=e.t("Component"))?"":t)+"</p>\n </div>\n ",e.helplinks&&(n+='\n <div class="col col-sm-6">\n <div class="float-end" style="margin-right: 20px; margin-top: 10px">\n <a href="'+(null==(t=e.t(e.helplinks+e.componentInfo.documentation))?"":t)+'" target="_blank" rel="noopener noreferrer">\n <i class="'+(null==(t=e.iconClass("new-window"))?"":t)+'"></i> '+(null==(t=e.t("Help"))?"":t)+"\n </a>\n </div>\n </div>\n "),n+='\n</div>\n<div class="row">\n <div class="col component-edit-tabs '+(null==(t=e.preview&&e.showPreview?"col-sm-6":"col-sm-12")?"":t)+'">\n <div ref="editForm">\n '+(null==(t=e.editForm)?"":t)+"\n </div>\n ",e.showPreview||(n+='\n <div style="margin-top: 10px;">\n <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(t=e.t("Save"))?"":t)+'</button>\n <button class="btn btn-secondary" style="margin-right: 10px;" ref="cancelButton">'+(null==(t=e.t("Cancel"))?"":t)+'</button>\n <button class="btn btn-danger" ref="removeButton">'+(null==(t=e.t("Remove"))?"":t)+"</button>\n ",e.preview&&(n+='\n <button class="btn btn-primary float-right" ref="previewButton">'+(null==(t=e.t("Show preview"))?"":t)+"</button>\n "),n+="\n </div>\n "),n+="\n </div>\n ",e.showPreview&&e.preview&&(n+='\n <div class="col col-sm-6">\n <div class="card panel preview-panel">\n <div class="card-header">\n <h4 class="card-title mb-0">'+(null==(t=e.t("Preview"))?"":t)+'</h4>\n </div>\n <div class="card-body">\n <div class="component-preview" ref="preview">\n '+(null==(t=e.preview)?"":t)+"\n </div>\n </div>\n </div>\n ",e.componentInfo.help&&(n+='\n <div class="card card-body bg-light formio-settings-help">\n '+(null==(t=e.t(e.componentInfo.help))?"":t)+"\n </div>\n "),n+='\n <div style="margin-top: 10px;">\n <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(t=e.t("Save"))?"":t)+'</button>\n <button class="btn btn-secondary" style="margin-right: 10px;" ref="cancelButton">'+(null==(t=e.t("Cancel"))?"":t)+'</button>\n <button class="btn btn-danger" ref="removeButton">'+(null==(t=e.t("Remove"))?"":t)+'</button>\n <button class="btn btn-primary float-right" ref="previewButton">'+(null==(t=e.t("Hide preview"))?"":t)+"</button>\n </div>\n </div>\n "),n+"\n</div>\n"}},87752:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(13853);t.default={form:i.default}},44756:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div\n class="drag-and-drop-alert alert alert-info no-drag"\n style="text-align:center;"\n role="alert"\n data-noattach="true"\n data-position="'+(null==(t=e.position)?"":t)+'"\n>\n '+(null==(t=e.t("Drag and Drop a form component"))?"":t)+"\n</div>\n"}},31811:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(44756);t.default={form:i.default}},31753:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div id="'+(null==(t=e.groupId)?"":t)+'" class="accordion builder-sidebar'+(null==(t=e.scrollEnabled?" builder-sidebar_scroll":"")?"":t)+'" ref="sidebar" role="tablist">\n <input class="form-control builder-sidebar_search" type="search" ref="sidebar-search" placeholder="Search field(s)" />\n ',e.groups.forEach((function(e){n+="\n "+(null==(t=e)?"":t)+"\n "})),n+="\n</div>\n"}},80750:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(31753);t.default={form:i.default}},79083:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="card form-builder-panel accordion-item" ref="group-panel-'+(null==(t=e.groupKey)?"":t)+'">\n <div class="card-header form-builder-group-header" id="heading-'+(null==(t=e.groupKey)?"":t)+'">\n <h5 class="mb-0 mt-0 d-grid accordion-header">\n <button\n class="btn builder-group-button"\n type="button"\n data-bs-toggle="collapse"\n data-bs-target="#group-'+(null==(t=e.groupKey)?"":t)+'"\n data-bs-parent="#'+(null==(t=e.groupId)?"":t)+'"\n aria-expanded="'+(null==(t=e.group.default)?"":t)+'"\n aria-controls="group-'+(null==(t=e.groupKey)?"":t)+'"\n ref="sidebar-anchor"\n >\n '+(null==(t=e.t(e.group.title,{_userInput:!0}))?"":t)+'\n </button>\n </h5>\n </div>\n <div\n id="group-'+(null==(t=e.groupKey)?"":t)+'"\n class="accordion-collapse collapse '+(null==(t=e.group.default?" show":"")?"":t)+'"\n data-bs-parent="#'+(null==(t=e.groupId)?"":t)+'"\n data-default="'+(null==(t=e.group.default)?"":t)+'"\n aria-labelledby="heading-'+(null==(t=e.groupKey)?"":t)+'"\n ref="sidebar-group"\n >\n <div id="group-container-'+(null==(t=e.groupKey)?"":t)+'" class="d-grid gap-1 no-drop p-2 w-100" ref="sidebar-container">\n ',e.group.componentOrder.length||e.subgroups.length?(n+="\n ",!e.group.componentOrder||e.group.componentOrder.forEach((function(i){n+='\n <span\n ref="sidebar-component"\n data-group="'+(null==(t=e.groupKey)?"":t)+'"\n data-key="'+(null==(t=e.group.components[i].key)?"":t)+'"\n data-type="'+(null==(t=e.group.components[i].schema.type)?"":t)+'"\n class="btn btn-outline-primary btn-sm formcomponent drag-copy m-0"\n tabindex="'+(null==(t=e.keyboardActionsEnabled?-1:0)?"":t)+'"\n >\n ',e.group.components[i].icon&&(n+='\n <i class="'+(null==(t=e.iconClass(e.group.components[i].icon))?"":t)+'" style="margin-right: 5px;"></i>\n '),n+="\n "+(null==(t=e.t(e.group.components[i].title,{_userInput:!0}))?"":t)+"\n </span>\n "})),n+="\n "+(null==(t=e.subgroups.join(""))?"":t)+"\n "):n+="\n <div>"+(null==(t=e.t("No Matches Found"))?"":t)+"</div>\n ",n+="\n </div>\n </div>\n</div>\n"}},194:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(79083);t.default={form:i.default}},486:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="formio builder row formbuilder">\n <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n '+(null==(t=e.sidebar)?"":t)+'\n </div>\n <div class="col-xs-8 col-sm-9 col-md-10 formarea">\n <ol class="breadcrumb wizard-pages">\n ',e.pages.forEach((function(i,r){n+='\n <li>\n <span title="'+(null==(t=i.title)?"":t)+'" class="me-2 badge ',r===e.self.page?n+="bg-primary":n+="bg-info",n+=' wizard-page-label" ref="gotoPage">'+(null==(t=i.title)?"":t)+"</span>\n </li>\n "})),n+='\n <li class="wizard-add-page">\n <span title="'+(null==(t=e.t("Create Page"))?"":t)+'" class="me-2 badge bg-success wizard-page-label" ref="addPage">\n <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t("Page"))?"":t)+'\n </span>\n </li>\n </ol>\n <div ref="form">\n '+(null==(t=e.form)?"":t)+"\n </div>\n </div>\n</div>\n"}},48989:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(486);t.default={form:i.default}},2788:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var i in Array.prototype.join,n+="<"+(null==(t=e.input.type)?"":t)+'\n ref="button"\n ',e.input.attr)n+="\n "+(null==(t=i)?"":t)+'="'+(null==(t=e.input.attr[i])?"":t)+'"\n ';return n+="\n ",e.component.description&&(n+='\n aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n '),n+="\n>\n",e.component.leftIcon&&(n+='<span class="'+(null==(t=e.component.leftIcon)?"":t)+'"></span>&nbsp;'),n+="\n"+(null==(t=e.input.content)?"":t)+"\n",e.component.tooltip&&(n+='\n <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n'),n+="\n",e.component.rightIcon&&(n+='&nbsp;<span class="'+(null==(t=e.component.rightIcon)?"":t)+'"></span>'),n+"\n</"+(null==(t=e.input.type)?"":t)+'>\n<div ref="buttonMessageContainer">\n <span class="help-block" ref="buttonMessage"></span>\n</div>\n'}},89504:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"\n"}},7501:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2788),r=n(89504);t.default={form:i.default,html:r.default}},22077:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var i in Array.prototype.join,n+='<div class="form-check checkbox">\n <'+(null==(t=e.input.type)?"":t)+'\n ref="input"\n ',e.input.attr)n+="\n "+(null==(t=i)?"":t)+'="'+(null==(t=e.input.attr[i])?"":t)+'"\n ';return n+="\n ",e.checked&&(n+="checked=true"),n+='\n aria-required="'+(null==(t=e.component.validate.required)?"":t)+'"\n ',e.component.description&&(n+='\n aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n '),n+="\n >\n ",e.self.labelIsHidden()||(n+='\n <label class="'+(null==(t=e.input.labelClass)?"":t)+' form-check-label"><span>'+(null==(t=e.input.label)?"":t)+"</span></label>\n "),n+="\n ",e.component.tooltip&&(n+='\n <i ref="tooltip" tabindex="0" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n '),n+"\n</div>\n"}},23080:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<label class="'+(null==(t=e.input.labelClass)?"":t)+'">\n '+(null==(t=e.input.content)?"":t)+"\n ",e.self.labelIsHidden()||(n+="<span>"+(null==(t=e.input.label)?"":t)+"</span>"),n+='\n</label>\n<div ref="value">',e.checked?n+="True":n+="False",n+"</div>\n"}},10633:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(22077),r=n(23080);t.default={form:i.default,html:r.default}},13100:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.component.columns.forEach((function(i,r){n+='\n<div class="\n col-'+(null==(t=i.size)?"":t)+"-"+(null==(t=i.currentWidth)?"":t)+"\n col-"+(null==(t=i.size)?"":t)+"-offset-"+(null==(t=i.offset)?"":t)+"\n col-"+(null==(t=i.size)?"":t)+"-push-"+(null==(t=i.push)?"":t)+"\n col-"+(null==(t=i.size)?"":t)+"-pull-"+(null==(t=i.pull)?"":t)+'\n " ref="'+(null==(t=e.columnKey)?"":t)+'">\n '+(null==(t=e.columnComponents[r])?"":t)+"\n</div>\n"})),n+="\n"}},4856:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(13100);t.default={form:i.default}},95012:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div id="'+(null==(t=e.id)?"":t)+'" class="'+(null==(t=e.classes)?"":t)+'"',e.styles&&(n+=' style="'+(null==(t=e.styles)?"":t)+'"'),n+=' ref="component">\n ',e.visible&&(n+="\n "+(null==(t=e.children)?"":t)+'\n <div ref="messageContainer" class="formio-errors invalid-feedback"></div>\n '),n+"\n</div>\n"}},24959:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(95012);t.default={form:i.default}},1324:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="formio-component-modal-wrapper formio-component-modal-wrapper-'+(null==(t=e.component.type)?"":t)+'" ref="componentModalWrapper">\n <div ref="openModalWrapper"></div>\n <div class="formio-dialog formio-dialog-theme-default component-rendering-hidden" ref="modalWrapper">\n <div class="formio-dialog-overlay" ref="modalOverlay"></div>\n <div class="formio-dialog-content" aria-labelledby="ml-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'" ',e.self.isIE()||(n+=' role="dialog" '),n+=' ref="modalContents">\n <label class="visually-hidden" id="ml-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'">'+(null==(t=e.t(e.component.label))?"":t)+(null==(t=e.self.isIE()?", dialog":"")?"":t)+"</label>\n ",e.options.vpat?n+='\n <button class="formio-dialog-close float-end" title="Close" aria-label="Close button. Click to get back to the form" ref="modalCloseButton"></button>\n ':n+='\n <button class="formio-dialog-close float-end btn btn-secondary btn-sm" aria-label="Close button. Click to get back to the form" ref="modalClose"></button>\n ',n+='\n <div ref="modalContents">\n ',e.visible&&(n+="\n "+(null==(t=e.children)?"":t)+"\n "),n+='\n <div class="formio-dialog-buttons">\n ',e.options.vpat&&(n+='\n <button class="btn btn-secondary formio-dialog-button" aria-label="Cancel button. Click to cancel the changes and get back to the form." ref="modalClose">'+(null==(t=e.t("Cancel"))?"":t)+"</button>\n "),n+'\n <button class="btn btn-success formio-dialog-button" ref="modalSave" aria-label="Save button. Click to save the changes and get back to the form.">'+(null==(t=e.t("Save"))?"":t)+'</button>\n </div>\n </div>\n </div>\n <span class="visually-hidden" ref="modalLiveRegion" aria-live="assertive"></span>\n </div>\n</div>\n'}},36559:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(1324);t.default={form:i.default}},64630:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+((null==(t=e.children.join(""))?"":t)+"\n")}},58106:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(64630);t.default={form:i.default}},65829:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div ref="'+(null==(t=e.nestedKey)?"":t)+'">\n '+(null==(t=e.children)?"":t)+"\n</div>\n"}},50191:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(65829);t.default={form:i.default}},80161:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"border-default":"","formio-tab-panel-active":"active","formio-tab-link-active":"active","formio-tab-link-container-active":"active","formio-form-error":"formio-error-wrapper has-message","formio-form-alert":"alert alert-danger","formio-label-error":"","formio-input-error":"","formio-alert-danger":"alert alert-danger","formio-alert-success":"alert alert-success","formio-alert-warning":"alert alert-warning","formio-modal-cancel-button":"btn btn-danger formio-dialog-button","formio-modal-confirm-button":"btn btn-primary formio-dialog-button","form-group":"formio-form-group"}},85309:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table datagrid-table table-bordered\n '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n " ',e.component.layoutFixed&&(n+='style="table-layout: fixed;"'),n+=">\n ",e.hasHeader&&(n+="\n <thead>\n <tr>\n ",e.component.reorder&&(n+="<th></th>"),n+="\n ",e.columns.forEach((function(i){n+='\n <th class="'+(null==(t=i.validate&&i.validate.required?"field-required":"")?"":t)+'">\n '+(null==(t=i.hideLabel?"":e.t(i.label||i.title,{_userInput:!0}))?"":t)+"\n ",i.tooltip&&(n+=' <i ref="tooltip" tabindex="0" data-title="'+(null==(t=i.tooltip)?"":t)+'" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=i.tooltip)?"":t)+'"></i>'),n+="\n </th>\n "})),n+="\n ",e.hasExtraColumn&&(n+='\n <th>\n <span class="visually-hidden">'+(null==(t=e.t("Add/Remove"))?"":t)+"</span>\n ",!e.builder&&e.hasAddButton&&e.hasTopSubmit&&(n+='\n <button class="btn btn-primary formio-button-add-row" ref="'+(null==(t=e.datagridKey)?"":t)+'-addRow" tabindex="'+(null==(t=e.tabIndex)?"":t)+'">\n <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i>'+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n </button>\n "),n+="\n </th>\n "),n+="\n </tr>\n </thead>\n "),n+='\n <tbody ref="'+(null==(t=e.datagridKey)?"":t)+'-tbody" data-key="'+(null==(t=e.datagridKey)?"":t)+'">\n ',e.rows.forEach((function(i,r){n+="\n ",e.hasGroups&&e.groups[r]&&(n+='\n <tr ref="'+(null==(t=e.datagridKey)?"":t)+'-group-header" class="datagrid-group-header'+(null==(t=e.hasToggle?" clickable":"")?"":t)+'">\n <td\n ref="'+(null==(t=e.datagridKey)?"":t)+'-group-label"\n colspan="'+(null==(t=e.numColumns)?"":t)+'"\n class="datagrid-group-label">'+(null==(t=e.groups[r].label)?"":t)+"</td>\n </tr>\n "),n+='\n <tr ref="'+(null==(t=e.datagridKey)?"":t)+'-row">\n ',e.component.reorder&&(n+='\n <td>\n <button type="button" class="formio-drag-button btn btn-default bi bi-list" data-key="'+(null==(t=e.datagridKey)?"":t)+'"></button>\n </td>\n '),n+="\n ",e.columns.forEach((function(r){n+='\n <td ref="'+(null==(t=e.datagridKey)?"":t)+'" ',r.key&&r.overlay&&r.overlay.width&&(n+=' style="width: '+(null==(t=r.overlay.width+"px")?"":t)+'"'),n+=" >\n "+(null==(t=i[r.key])?"":t)+"\n </td>\n "})),n+="\n ",e.hasExtraColumn&&(n+="\n ",e.hasRemoveButtons&&(n+='\n <td>\n <button type="button" class="btn btn-secondary formio-button-remove-row" ref="'+(null==(t=e.datagridKey)?"":t)+'-removeRow" tabindex="'+(null==(t=e.tabIndex)?"":t)+'" aria-label="'+(null==(t=e.t("remove"))?"":t)+'">\n <i class="'+(null==(t=e.iconClass("remove-circle"))?"":t)+'"></i>\n </button>\n </td>\n '),n+="\n ",e.canAddColumn&&(n+='\n <td ref="'+(null==(t=e.key)?"":t)+'-container">\n '+(null==(t=e.placeholder)?"":t)+"\n </td>\n "),n+="\n "),n+="\n </tr>\n "})),n+="\n </tbody>\n ",!e.builder&&e.hasAddButton&&e.hasBottomSubmit&&(n+='\n <tfoot>\n <tr>\n <td colspan="'+(null==(t=e.component.layoutFixed?e.numColumns:e.numColumns+1)?"":t)+'">\n <button class="btn btn-primary formio-button-add-row" ref="'+(null==(t=e.datagridKey)?"":t)+'-addRow" tabindex="'+(null==(t=e.tabIndex)?"":t)+'">\n <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n </button>\n </td>\n </tr>\n </tfoot>\n "),n+="\n</table>\n"}},54083:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table datagrid-table table-bordered\n '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n ">\n ',e.hasHeader&&(n+="\n <thead>\n <tr>\n ",e.columns.forEach((function(i){n+='\n <th class="'+(null==(t=i.validate&&i.validate.required?"field-required":"")?"":t)+'">\n '+(null==(t=i.hideLabel?"":e.t(i.label||i.title,{_userInput:!0}))?"":t)+"\n ",i.tooltip&&(n+=' <i ref="tooltip" tabindex="0" data-title="'+(null==(t=i.tooltip)?"":t)+'" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=i.tooltip)?"":t)+'"></i>'),n+="\n </th>\n "})),n+="\n </tr>\n </thead>\n "),n+="\n <tbody>\n ",e.rows.forEach((function(i){n+="\n <tr>\n ",e.columns.forEach((function(r){n+='\n <td ref="'+(null==(t=e.datagridKey)?"":t)+'">\n '+(null==(t=i[r.key])?"":t)+"\n </td>\n "})),n+="\n </tr>\n "})),n+="\n </tbody>\n</table>\n"}},53379:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(85309),r=n(54083);t.default={form:i.default,html:r.default}},77025:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="row" role="group"\n ',e.component.hideLabel?n+='\n aria-label="'+(null==(t=e.component.label)?"":t)+'"\n ':n+='\n aria-labelledby="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n ',n+="\n ",e.component.description&&(n+='\n aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n '),n+="\n >\n ",e.dayFirst&&e.showDay&&(n+='\n <div class="col col-xs-3">\n ',e.component.hideInputLabels||(n+='\n <label for="'+(null==(t=e.component.key)?"":t)+'-day" class="',e.component.fields.day.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Day"))?"":t)+"</label>\n "),n+="\n <div>"+(null==(t=e.day)?"":t)+"</div>\n </div>\n "),n+="\n ",e.showMonth&&(n+='\n <div class="col col-xs-4">\n ',e.component.hideInputLabels||(n+='\n <label for="'+(null==(t=e.component.key)?"":t)+'-month" class="',e.component.fields.month.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Month"))?"":t)+"</label>\n "),n+="\n <div>"+(null==(t=e.month)?"":t)+"</div>\n </div>\n "),n+="\n ",!e.dayFirst&&e.showDay&&(n+='\n <div class="col col-xs-3">\n ',e.component.hideInputLabels||(n+='\n <label for="'+(null==(t=e.component.key)?"":t)+'-day" class="',e.component.fields.day.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Day"))?"":t)+"</label>\n "),n+="\n <div>"+(null==(t=e.day)?"":t)+"</div>\n </div>\n "),n+="\n ",e.showYear&&(n+='\n <div class="col col-xs-5">\n ',e.component.hideInputLabels||(n+='\n <label for="'+(null==(t=e.component.key)?"":t)+'-year" class="',e.component.fields.year.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Year"))?"":t)+"</label>\n "),n+="\n <div>"+(null==(t=e.year)?"":t)+"</div>\n </div>\n "),n+'\n</div>\n<input name="ctx.data[day]" type="hidden" class="form-control" lang="en" value="" ref="input">\n'}},47155:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(77025);t.default={form:i.default}},24971:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<div class="formio-dialog formio-dialog-theme-default component-settings">\n <div class="formio-dialog-overlay" ref="dialogOverlay"></div>\n <div class="formio-dialog-content" ref="dialogContents" role="dialog">\n <div ref="dialogContents"></div>\n <button class="formio-dialog-close float-end btn-sm" aria-label="Close modal window." ref="dialogClose"></button>\n </div>\n</div>\n'}},11948:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(24971);t.default={form:i.default}},16399:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<ul class="editgrid-listgroup list-group\n '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n ">\n ',e.header&&(n+='\n <li class="list-group-item list-group-header">\n '+(null==(t=e.header)?"":t)+"\n </li>\n "),n+="\n ",e.rows.forEach((function(i,r){n+='\n <li class="list-group-item" ref="'+(null==(t=e.ref.row)?"":t)+'">\n '+(null==(t=i)?"":t)+"\n ",e.openRows[r]&&!e.readOnly&&(n+='\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":t)+"</button>\n ",e.component.removeRow&&(n+='\n <button class="btn btn-danger" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":t)+"</button>\n "),n+="\n </div>\n "),n+='\n <div class="has-error">\n <div class="editgrid-row-error">\n '+(null==(t=e.errors[r])?"":t)+"\n </div>\n </div>\n </li>\n "})),n+="\n ",e.footer&&(n+='\n <li class="list-group-item list-group-footer">\n '+(null==(t=e.footer)?"":t)+"\n </li>\n "),n+="\n</ul>\n",!e.readOnly&&e.hasAddButton&&(n+='\n<button class="btn btn-primary" ref="'+(null==(t=e.ref.addRow)?"":t)+'">\n <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n</button>\n"),n+="\n"}},71673:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<ul class="editgrid-listgroup list-group\n '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n ">\n ',e.header&&(n+='\n <li class="list-group-item list-group-header">\n '+(null==(t=e.header)?"":t)+"\n </li>\n "),n+="\n ",e.rows.forEach((function(i,r){n+='\n <li class="list-group-item" ref="'+(null==(t=e.ref.row)?"":t)+'">\n '+(null==(t=i)?"":t)+"\n ",e.openRows[r]&&!e.readOnly&&(n+='\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":t)+"</button>\n ",e.component.removeRow&&(n+='\n <button class="btn btn-danger" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":t)+"</button>\n "),n+="\n </div>\n "),n+='\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n '+(null==(t=e.errors[r])?"":t)+"\n </div>\n </div>\n </li>\n "})),n+="\n ",e.footer&&(n+='\n <li class="list-group-item list-group-footer">\n '+(null==(t=e.footer)?"":t)+"\n </li>\n "),n+="\n</ul>\n"}},80207:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16399),r=n(71673);t.default={form:i.default,html:r.default}},90746:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="editgrid-table-container">\n <div class="table-responsive">\n <table class="table\n '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n ">\n ',e.header&&(n+='\n <thead class="editgrid-table-head">\n '+(null==(t=e.header)?"":t)+"\n </thead>\n "),n+='\n <tbody class="editgrid-table-body">\n ',e.rows.forEach((function(i,r){n+='\n <tr ref="'+(null==(t=e.ref.row)?"":t)+'">\n '+(null==(t=i)?"":t)+"\n ",e.openRows[r]&&!e.readOnly&&(n+='\n <td class="editgrid-table-column">\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":t)+"</button>\n ",e.component.removeRow&&(n+='\n <button class="btn btn-danger" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":t)+"</button>\n "),n+="\n </div>\n </td>\n "),n+="\n ",e.errors[r]&&(n+='\n <td class="editgrid-table-column">\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n '+(null==(t=e.errors[r])?"":t)+"\n </div>\n </div>\n </td>\n "),n+="\n </tr>\n "})),n+="\n </tbody>\n ",e.footer&&(n+="\n <tfoot>\n <tr>\n "+(null==(t=e.footer)?"":t)+"\n </tr>\n <tfoot>\n "),n+="\n </table>\n </div>\n</div>\n",!e.readOnly&&e.hasAddButton&&(n+='\n<button class="btn btn-primary" ref="'+(null==(t=e.ref.addRow)?"":t)+'">\n <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i>\n '+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n</button>\n"),n+="\n"}},47952:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="editgrid-table-container">\n <div class="table-responsive">\n <table class="table\n '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n ">\n ',e.header&&(n+='\n <thead class="editgrid-table-head">\n '+(null==(t=e.header)?"":t)+"\n </thead>\n "),n+='\n <tbody class="editgrid-table-body">\n ',e.rows.forEach((function(i,r){n+='\n <tr ref="'+(null==(t=e.ref.row)?"":t)+'">\n '+(null==(t=i)?"":t)+"\n ",e.openRows[r]&&!e.readOnly&&(n+='\n <td class="editgrid-table-column">\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":t)+"</button>\n ",e.component.removeRow&&(n+='\n <button class="btn btn-danger" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":t)+"</button>\n "),n+="\n </div>\n </td>\n "),n+="\n ",e.errors[r]&&(n+='\n <td class="editgrid-table-column">\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n '+(null==(t=e.errors[r])?"":t)+"\n </div>\n </div>\n </td>\n "),n+="\n </tr>\n "})),n+="\n </tbody>\n ",e.footer&&(n+="\n <tfoot>\n <tr>\n "+(null==(t=e.footer)?"":t)+"\n </tr>\n <tfoot>\n "),n+="\n </table>\n </div>\n</div>\n"}},99156:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(90746),r=n(47952);t.default={form:i.default,html:r.default}},59092:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+="<p>"+(null==(t=e.t("error"))?"":t)+"\n ",e.options.vpat&&(n+='\n <span ref="errorTooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+'" tabindex="0"></span>\n '),n+="\n</p>\n<ul>\n ",e.errors.forEach((function(e){n+='\n <li>\n <span\n data-component-key = "'+(null==(t=e.keyOrPath)?"":t)+'"\n ref = "errorRef"\n tabIndex = "0"\n role="link"\n >\n '+(null==(t=e.message)?"":t)+"\n </span>\n </li>\n "})),n+="\n</ul>\n"}},3205:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(59092);t.default={form:i.default}},96954:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="field-wrapper\n '+(null==(t=e.isRightPosition?"field-wrapper--reverse":"")?"":t)+'">\n ',e.label.hidden||(n+='\n <div class="field-label\n '+(null==(t=e.isRightAlign?"field-label--right":"")?"":t)+'"\n style="'+(null==(t=e.labelStyles)?"":t)+'">\n '+(null==(t=e.labelMarkup)?"":t)+"\n </div>\n "),n+="\n\n ",e.label.hidden&&e.label.className&&e.component.validate.required&&(n+='\n <div class="field-label\n '+(null==(t=e.isRightAlign?"field-label--right":"")?"":t)+'"\n style="'+(null==(t=e.labelStyles)?"":t)+'">\n <label class="'+(null==(t=e.label.className)?"":t)+'"></label>\n </div>\n '),n+='\n\n <div class="field-content" style="'+(null==(t=e.contentStyles)?"":t)+'">\n '+(null==(t=e.element)?"":t)+"\n </div>\n</div>\n\n",e.component.description&&(n+='\n <div class="form-text text-muted">'+(null==(t=e.t(e.component.description,{_userInput:!0}))?"":t)+"</div>\n"),n+"\n"}},14724:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.label.hidden||"bottom"===e.label.labelPosition||(n+="\n "+(null==(t=e.labelMarkup)?"":t)+"\n"),n+="\n\n",e.label.hidden&&e.label.className&&e.component.validate.required&&(n+='\n <label class="'+(null==(t=e.label.className)?"":t)+'"></label>\n'),n+="\n\n"+(null==(t=e.element)?"":t)+"\n\n",e.label.hidden||"bottom"!==e.label.labelPosition||(n+="\n "+(null==(t=e.labelMarkup)?"":t)+"\n"),n+="\n",e.component.description&&(n+='\n <div id="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'" class="form-text text-muted">'+(null==(t=e.t(e.component.description,{_userInput:!0}))?"":t)+"</div>\n"),n+"\n"}},63487:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(14724),r=n(96954);t.default={form:i.default,align:r.default}},13756:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+="<fieldset>\n ",e.component.legend&&(n+='\n <legend ref="header" class="'+(null==(t=e.component.collapsible?"formio-clickable":"")?"":t)+'">\n '+(null==(t=e.t(e.component.legend,{_userInput:!0}))?"":t)+"\n ",e.component.tooltip&&(n+='\n <i ref="tooltip" tabindex="0" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n '),n+="\n </legend>\n "),n+="\n ",e.collapsed||(n+='\n <div class="fieldset-body" ref="'+(null==(t=e.nestedKey)?"":t)+'">\n '+(null==(t=e.children)?"":t)+"\n </div>\n "),n+"\n</fieldset>\n"}},77941:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(13756);t.default={form:i.default}},42262:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.options.vpat&&(n+='\n <span tabindex="-1" class="visually-hidden" id="invisible-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"></span>\n'),n+="\n",e.self.imageUpload?(n+="\n <div>\n ",e.files.forEach((function(i){n+='\n <div>\n <span>\n <img ref="fileImage" src="" alt="'+(null==(t=i.originalName||i.name)?"":t)+'" style="width:'+(null==(t=e.component.imageSize)?"":t)+'px">\n ',e.disabled||(n+='\n <i tabindex="0" class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="removeLink"></i>\n '),n+="\n </span>\n </div>\n "})),n+="\n </div>\n"):(n+="\n ",e.options.vpat&&(n+="\n <div>"+(null==(t=e.component.filePattern&&"*"!==e.component.filePattern?e.t("Allowed file types: ")+e.component.filePattern:"Any file types are allowed")?"":t)+"</div>\n "),n+='\n <ul class="list-group list-group-striped">\n <li class="list-group-item list-group-header hidden-xs hidden-sm">\n <div class="row">\n ',e.disabled||(n+='\n <div class="col-md-1"></div>\n '),n+='\n <div class="col-md-',e.self.hasTypes?n+="7":n+="9",n+='"><strong>'+(null==(t=e.t("File Name"))?"":t)+'</strong></div>\n <div class="col-md-2"><strong>'+(null==(t=e.t("Size"))?"":t)+"</strong></div>\n ",e.self.hasTypes&&(n+='\n <div class="col-md-2"><strong>'+(null==(t=e.t("Type"))?"":t)+"</strong></div>\n "),n+="\n </div>\n </li>\n ",e.files.forEach((function(i){n+='\n <li class="list-group-item">\n <div class="row">\n ',e.disabled||(n+='\n <div class="col-md-1"><i tabindex="0" class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="removeLink"></i></div>\n '),n+='\n <div class="col-md-',e.self.hasTypes?n+="7":n+="9",n+='">\n ',e.component.uploadOnly?n+="\n "+(null==(t=i.originalName||i.name)?"":t)+"\n ":n+='\n <a href="'+(null==(t=i.url||"#")?"":t)+'" target="_blank" ref="fileLink">\n <span class="visually-hidden">'+(null==(t=e.t("Press to open "))?"":t)+"</span>"+(null==(t=i.originalName||i.name)?"":t)+"\n </a>\n ",n+='\n </div>\n <div class="col-md-2">'+(null==(t=e.fileSize(i.size))?"":t)+"</div>\n ",e.self.hasTypes&&!e.disabled&&(n+='\n <div class="col-md-2">\n <select class="file-type" ref="fileType">\n ',e.component.fileTypes.map((function(r){n+='\n <option class="test" value="'+(null==(t=r.value)?"":t)+'" ',r.label===i.fileType&&(n+='selected="selected"'),n+=">"+(null==(t=e.t(r.label))?"":t)+"</option>\n "})),n+="\n </select>\n </div>\n "),n+="\n ",e.self.hasTypes&&e.disabled&&(n+='\n <div class="col-md-2">'+(null==(t=i.fileType)?"":t)+"</div>\n "),n+="\n </div>\n </li>\n "})),n+="\n </ul>\n"),n+="\n",e.disabled||!e.component.multiple&&e.files.length||(n+="\n ",e.self.useWebViewCamera?n+='\n <div class="fileSelector">\n <button class="btn btn-primary" ref="galleryButton"><i class="'+(null==(t=e.iconClass("book"))?"":t)+'"></i> '+(null==(t=e.t("Gallery"))?"":t)+'</button>\n <button class="btn btn-primary" ref="cameraButton"><i class="'+(null==(t=e.iconClass("camera"))?"":t)+'"></i> '+(null==(t=e.t("Camera"))?"":t)+"</button>\n </div>\n ":e.self.cameraMode?n+='\n <div class="video-container">\n <video class="video" autoplay="true" ref="videoPlayer" tabindex="-1"></video>\n </div>\n <button class="btn btn-primary" ref="takePictureButton"><i class="'+(null==(t=e.iconClass("camera"))?"":t)+'"></i> '+(null==(t=e.t("Take Picture"))?"":t)+'</button>\n <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(t=e.t("Switch to file upload"))?"":t)+"</button>\n ":(n+='\n <div class="fileSelector" ref="fileDrop" '+(null==(t=e.fileDropHidden?"hidden":"")?"":t)+">\n ",e.self.isMobile.any||(n+='\n <i class="'+(null==(t=e.iconClass("cloud-upload"))?"":t)+'"></i> '+(null==(t=e.t("Drop files to attach,"))?"":t)+"\n "),n+="\n ",e.self.imageUpload&&e.component.webcam&&(n+='\n <a href="#" ref="toggleCameraMode"><i class="'+(null==(t=e.iconClass("camera"))?"":t)+'"></i>'+(null==(t=e.t("Use Camera"))?"":t)+"</a>\n "+(null==(t=e.t("or"))?"":t)+"\n "),n+='\n <a href="#" ref="fileBrowse" class="browse">\n ',e.self.isMobile.any&&e.component.capture?(n+="\n ",e.component.filePattern&&e.component.filePattern.includes("video")?n+='\n <i class="'+(null==(t=e.iconClass("video"))?"":t)+'"></i>'+(null==(t=e.t("Capture Video"))?"":t)+"\n ":e.component.filePattern&&e.component.filePattern.includes("audio")?n+='\n <i class="'+(null==(t=e.iconClass("microphone"))?"":t)+'"></i>'+(null==(t=e.t("Capture Audio"))?"":t)+"\n ":n+='\n <i class="'+(null==(t=e.iconClass("camera"))?"":t)+'"></i>'+(null==(t=e.t("Capture Image"))?"":t)+"\n ",n+=" \n "):n+='\n <i class="'+(null==(t=e.iconClass("folder-open"))?"":t)+'"></i>'+(null==(t=e.t("Browse Files"))?"":t)+"\n ",n+='\n <span class="visually-hidden">\n '+(null==(t=e.t("Browse to attach file for "+e.component.label+". "+(e.component.description?e.component.description+". ":"")+(e.component.filePattern&&"*"!==e.component.filePattern?e.t("Allowed file types: ")+e.component.filePattern:"Any file types are allowed")))?"":t)+'\n </span>\n </a>\n <div ref="fileProcessingLoader" class="loader-wrapper">\n <div class="loader text-center"></div>\n </div>\n </div>\n '),n+="\n"),n+="\n",e.statuses.forEach((function(i){n+='\n <div class="file '+(null==(t="error"===e.statuses.status?" has-error":"")?"":t)+'">\n <div class="row">\n <div class="fileName col-form-label col-sm-10">'+(null==(t=i.originalName)?"":t)+'\n <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="fileStatusRemove">\n <span class="visually-hidden">'+(null==(t=e.t("Remove button. Press to remove "+i.originalName||0))?"":t)+'</span>\n <span class="visually-hidden">'+(null==(t=i.message?i.message.replace(";","."):"")?"":t)+'</span>\n </i>\n </div>\n <div class="fileSize col-form-label col-sm-2 text-end">'+(null==(t=e.fileSize(i.size))?"":t)+'</div>\n </div>\n <div class="row">\n <div class="col-sm-12">\n ',"progress"===i.status?n+='\n <div class="progress">\n <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(t=i.progress)?"":t)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(t=i.progress)?"":t)+'%">\n <span class="visually-hidden">'+(null==(t=i.progress)?"":t)+"% "+(null==(t=e.t("Complete"))?"":t)+"</span>\n </div>\n </div>\n ":"error"===i.status?n+='\n <div class="alert alert-danger bg-'+(null==(t=i.status)?"":t)+'">'+(null==(t=e.t(i.message))?"":t)+"</div>\n ":n+='\n <div class="bg-'+(null==(t=i.status)?"":t)+'">'+(null==(t=e.t(i.message))?"":t)+"</div>\n ",n+="\n </div>\n </div>\n </div>\n"})),n+="\n",e.component.storage&&!e.support.hasWarning||(n+='\n <div class="alert alert-warning">\n ',e.component.storage||(n+="\n <p>"+(null==(t=e.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":t)+"</p>\n "),n+="\n ",e.support.filereader||(n+="\n <p>"+(null==(t=e.t("File API & FileReader API not supported."))?"":t)+"</p>\n "),n+="\n ",e.support.formdata||(n+="\n <p>"+(null==(t=e.t("XHR2's FormData is not supported."))?"":t)+"</p>\n "),n+="\n ",e.support.progress||(n+="\n <p>"+(null==(t=e.t("XHR2's upload progress isn't supported."))?"":t)+"</p>\n "),n+="\n </div>\n"),n+="\n"}},81489:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(42262);t.default={form:i.default}},23751:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+="<"+(null==(t=e.tag)?"":t)+' class="formio-component-htmlelement '+(null==(t=e.component.className)?"":t)+'" ref="html"\n ',e.attrs.forEach((function(e){n+="\n "+(null==(t=e.attr)?"":t)+'="'+(null==(t=e.value)?"":t)+'"\n '})),n+="\n>"+(null==(t=e.t(e.content))?"":t),e.singleTags&&-1!==e.singleTags.indexOf(e.tag)||(n+="</"+(null==(t=e.tag)?"":t)+">"),n+="\n"}},38633:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(23751);t.default={form:i.default}},1364:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<i ref="'+(null==(t=e.ref)?"":t)+'" class="'+(null==(t=e.className)?"":t)+'" style="'+(null==(t=e.styles)?"":t)+'">'+(null==(t=e.content)?"":t)+"</i>\n"}},64211:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(1364);t.default={form:i.default}},38197:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t,n)=>{let i=t;switch(t){case"cog":i="gear";break;case"copy":i="back";break;case"bars":i="list";break;case"remove":i="trash";break;case"font":i="type";break;case"hashtag":i="hash";break;case"th-list":i="menu-button-wide";break;case"dot-circle-o":i="ui-radios";break;case"plus-square":i="ui-checks";break;case"phone-square":i="phone";break;case"home":i="house";break;case"clock-o":case"time":i="clock";break;case"usd":i="currency-dollar";break;case"html5":i="file-richtext";break;case"pencil-square-o":i="pencil-square";break;case"columns":i="layout-three-columns";break;case"list-alt":i="window";break;case"th-large":i="grid-fill";break;case"folder-o":i="folder";break;case"square-o":i="square";break;case"user-secret":i="person-fill-slash";break;case"folder-open":case"folder-open":i="folder2-open";break;case"th":i="grid-3x3-gap-fill";break;case"tasks":i="view-stacked";break;case"indent":i="text-indent-left";break;case"refresh":i="arrow-repeat";break;case"files-o":i="files";break;case"wpforms":i="window-stack";break;case"cube":i="box";break;case"cubes":i="boxes";break;case"check-square-o":i="check-square";break;case"plus":i="plus-lg";break;case"question-sign":i="question-circle";break;case"remove-circle":i="x-circle";break;case"new-window":i="window-plus";break;case"move":i="arrows-move";break;case"edit":i="pencil";break;case"video":i="camera-video";break;case"microphone":i="mic"}return n?"spinner-border spinner-border-sm":`fa fa-${t} bi bi-${i}`}},91371:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8503),r=n(54802),o=n(49774),s=n(93021),a=n(87752),l=n(31811),u=n(80750),c=n(194),d=n(48989),h=n(7501),p=n(10633),f=n(4856),m=n(24959),g=n(36559),v=n(58106),y=n(14874),b=n(50191),w=n(53379),_=n(47155),k=n(11948),C=n(80207),O=n(99156),x=n(63487),E=n(77941),S=n(81489),M=n(38633),P=n(64211),A=n(38197),T=n(42893),D=n(30703),j=n(47318),R=n(39072),V=n(80400),I=n(12043),L=n(42713),F=n(5139),N=n(51709),U=n(41945),$=n(462),z=n(84694),B=n(78391),H=n(72026),q=n(46005),W=n(72103),Y=n(93044),K=n(14797),G=n(20355),J=n(69063),Z=n(51419),X=n(92981),Q=n(12769),ee=n(76056),te=n(50130),ne=n(15238),ie=n(3435),re=n(98292),oe=n(46625),se=n(9714),ae=n(20707),le=n(68069),ue=n(63866),ce=n(80161),de=n(3205),he=n(1599);t.default=Object.assign(Object.assign({transform(e,t,n){if(!t)return t;if("class"===e){let e="";return"form-group"===t&&(e="mb-2 ",n&&n.component.block&&(e+="d-grid ")),`${e}${this.cssClasses.hasOwnProperty(t.toString())?this.cssClasses[t.toString()]:t}`}return t},defaultIconset:"bi",iconClass:A.default,cssClasses:ce.default,address:i.default,builder:r.default,builderComponent:o.default,builderComponents:s.default,builderEditForm:a.default,builderPlaceholder:l.default,builderSidebar:u.default,builderSidebarGroup:c.default,builderWizard:d.default,button:h.default,checkbox:p.default,columns:f.default,component:m.default,componentModal:g.default,components:v.default,tableComponents:y.default,container:b.default,datagrid:w.default,day:_.default,dialog:k.default,editgrid:C.default,editgridTable:O.default,field:x.default,fieldset:E.default,file:S.default,html:M.default,icon:P.default,input:T.default,label:D.default,loader:j.default,loading:R.default,map:V.default,message:I.default,modaledit:F.default,modaldialog:L.default,modalPreview:N.default,multipleMasksInput:U.default,multiValueRow:$.default,multiValueTable:z.default,panel:B.default,pdf:H.default,pdfBuilder:q.default,pdfBuilderUpload:W.default,radio:Y.default,resourceAdd:K.default,select:G.default,selectOption:J.default,signature:Z.default,survey:X.default,tab:Q.default,table:ee.default,tree:te.default},ne.default),{webform:ie.default,well:re.default,wizard:oe.default,wizardHeader:se.default,wizardHeaderClassic:ae.default,wizardHeaderVertical:le.default,wizardNav:ue.default,errorsList:de.default,alert:he.default})},90019:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";if(Array.prototype.join,(e.prefix||e.suffix)&&(n+='\n<div class="input-group">\n '),n+="\n ",e.prefix&&(n+='\n <div class="input-group-text" ref="prefix">\n ',e.prefix instanceof HTMLElement?n+="\n "+(null==(t=e.t(e.prefix.outerHTML,{_userInput:!0}))?"":t)+"\n ":n+="\n "+(null==(t=e.t(e.prefix,{_userInput:!0}))?"":t)+"\n ",n+="\n </div>\n "),n+="\n ",!e.component.editor&&!e.component.wysiwyg){for(var i in n+="\n <"+(null==(t=e.input.type)?"":t)+'\n ref="'+(null==(t=e.input.ref?e.input.ref:"input")?"":t)+'"\n ',e.input.attr)n+="\n "+(null==(t=i)?"":t)+'="'+(null==(t=e.input.attr[i])?"":t)+'"\n ';n+='\n id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n aria-labelledby="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+" ",e.component.description&&(n+="d-"+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)),n+='"\n aria-required="'+(null==(t="input"!==e.input.ref&&e.input.ref?e.component.fields&&e.component.fields[e.input.ref]&&e.component.fields[e.input.ref].required||!1:e.component.validate.required)?"":t)+'"\n >'+(null==(t=e.input.content)?"":t)+"</"+(null==(t=e.input.type)?"":t)+">\n ",e.hasValueMaskInput&&(n+='\n <input ref="valueMaskInput" />\n '),n+="\n"}return n+="\n",(e.component.editor||e.component.wysiwyg)&&(n+='\n <div ref="input"></div>\n'),n+="\n","datetime"===e.component.type&&(n+='\n<span aria-live="assertive" id="'+(null==(t=e.instance.id)?"":t)+'-liveRegion" class="visually-hidden" ref="liveRegion"></span>\n'),n+="\n",e.suffix&&(n+='\n <div class="input-group-text" ref="suffix">\n ',e.suffix instanceof HTMLElement?n+="\n "+(null==(t=e.t(e.suffix.outerHTML,{_userInput:!0}))?"":t)+"\n ":n+="\n "+(null==(t=e.t(e.suffix,{_userInput:!0}))?"":t)+"\n ",n+="\n </div>\n"),n+="\n",(e.prefix||e.suffix)&&(n+="\n </div>\n"),n+="\n",(e.component.showCharCount||e.component.showWordCount)&&(n+='\n<div class="form-text {{ctx.component.description ? float-end : text-end">\n ',e.component.showCharCount&&(n+='\n <span class="text-muted" ref="charcount" aria-live="polite"></span>\n '),n+="\n ",e.component.showWordCount&&(n+='\n <span class="text-muted" ref="wordcount" aria-live="polite"></span>\n '),n+="\n</div>\n"),n+"\n"}},58455:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div ref="value">',e.value?n+=null==(t=e.value)?"":t:n+="-",n+"</div>\n"}},42893:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(90019),r=n(58455);t.default={form:i.default,html:r.default}},71390:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<label\n ref="label"\n class="col-form-label '+(null==(t=e.label.className)?"":t)+'"\n for="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n id="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n>\n '+(null==(t=e.t(e.component.label,{_userInput:!0}))?"":t)+"\n ","number"!==e.component.type&&"phoneNumber"!==e.component.type&&"currency"!==e.component.type||(n+='\n <span class="visually-hidden">, '+(null==(t=e.t("numeric only"))?"":t)+",</span>\n "),n+="\n ",e.component.tooltip&&(n+='\n <i ref="tooltip" tabindex="0" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n '),n+"\n</label>\n"}},30703:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(71390);t.default={form:i.default}},37303:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<div class="formio-loader">\n <div class="loader-wrapper">\n <div class="loader text-center"></div>\n </div> \n</div>\n'}},47318:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(37303);t.default={form:i.default}},83296:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"Loading...\n"}},39072:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(83296);t.default={form:i.default}},45264:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div id="'+(null==(t=e.mapId)?"":t)+'" style="min-height: 300px; height: calc(100vh - 600px);" ref="gmapElement"></div>\n'}},80400:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(45264);t.default={form:i.default}},85585:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div id="e-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.key)?"":t)+'" class="form-text '+(null==(t=e.level||"error")?"":t)+'">'+(null==(t=e.message)?"":t)+"</div>\n"}},12043:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(85585);t.default={form:i.default}},92308:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<label id="l-'+(null==(t=e.component.key)?"":t)+'" class="control-label '+(null==(t=e.label.className)?"":t)+'">\n '+(null==(t=e.t(e.component.label,{_userInput:!0}))?"":t)+'<span ref="modalLabelValue" class="visually-hidden">. '+(null==(t="signature"===e.component.type?e.self.getValueAsString(e.previewText):e.previewText)?"":t)+'</span>\n</label><br>\n<span class="visually-hidden" ref="modalPreviewLiveRegion" aria-live="assertive"></span>\n<button\n lang="en"\n class="btn btn-light btn-md open-modal-button form-control '+(null==(t=e.openModalBtnClasses||"")?"":t)+'"\n ref="openModal"\n aria-labelledby="l-'+(null==(t=e.component.key)?"":t)+'"\n>\n '+(null==(t=e.previewText)?"":t)+'\n</button>\n<div class="formio-errors invalid-feedback">\n '+(null==(t=e.messages)?"":t)+"\n</div>\n"}},51709:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(92308);t.default={form:i.default}},51365:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="formio-dialog formio-dialog-theme-default formio-modaledit-dialog">\n <div ref="overlay" class="formio-dialog-overlay"></div>\n <div ref="content" class="formio-modaledit-content">\n <button\n ref="close"\n type="button"\n role="button"\n class="btn btn-primary btn-xs formio-modaledit-close">\n '+(null==(t=e.t("Close"))?"":t)+'\n </button>\n <div ref="inner" class="reset-margins"></div>\n </div>\n</div>\n'}},42713:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(51365);t.default={form:i.default}},85920:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div ref="container" class="formio-modaledit-view-container">\n <button\n ref="edit"\n type="button"\n role="button"\n class="btn btn-xxs btn-warning formio-modaledit-edit">\n <i class="'+(null==(t=e.iconClass("edit"))?"":t)+'"></i>\n </button>\n <div ref="input" class="modaledit-view-inner reset-margins">'+(null==(t=e.content)?"":t)+"</div>\n</div>\n"}},5139:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(85920);t.default={form:i.default}},53978:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<tr ref="row">\n <td>\n '+(null==(t=e.element)?"":t)+"\n </td>\n ",e.disabled||(n+='\n <td>\n <button type="button" class="btn btn-secondary" ref="removeRow">\n <i class="'+(null==(t=e.iconClass("remove-circle"))?"":t)+'"></i>\n </button>\n </td>\n '),n+"\n</tr>\n"}},462:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(53978);t.default={form:i.default}},72490:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table table-bordered">\n <tbody>\n '+(null==(t=e.rows)?"":t)+"\n ",e.disabled||(n+='\n <tr>\n <td colspan="2">\n <button class="btn btn-primary formio-button-add-another" ref="addButton"><i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.addAnother,{_userInput:!0}))?"":t)+"</button>\n </td>\n </tr>\n "),n+"\n </tbody>\n</table>\n"}},84694:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(72490);t.default={form:i.default}},16985:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var i in Array.prototype.join,n+='<div\n class="input-group formio-multiple-mask-container"\n ref="'+(null==(t=e.input.ref?e.input.ref:"input")?"":t)+'"\n>\n <select\n class="form-control formio-multiple-mask-select"\n id="'+(null==(t=e.key)?"":t)+'-mask"\n ref="select"\n ',e.input.attr.disabled&&(n+="disabled"),n+=">\n ",e.selectOptions.forEach((function(e){n+='\n <option value="'+(null==(t=e.value)?"":t)+'">'+(null==(t=e.label)?"":t)+"</option>\n "})),n+='\n </select>\n <input\n ref="mask"\n ',e.input.attr)n+="\n "+(null==(t=i)?"":t)+'="'+(null==(t=e.input.attr[i])?"":t)+'"\n ';return n+="\n >\n</div>\n"}},41945:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16985);t.default={form:i.default}},52792:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="mb-2 card border">\n ',(!e.component.hideLabel||e.builder||e.component.collapsible||e.component.tooltip)&&(n+='\n <div class="card-header '+(null==(t=e.transform("class","bg-"+e.component.theme))?"":t)+'"\n ',e.component.collapsible&&(n+='\n tabindex="0"\n '),n+='\n role="button"\n aria-expanded="'+(null==(t=!e.component.collapsible||!e.collapsed)?"":t)+'"\n aria-controls="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n ref="header"\n >\n <span class="mb-0 card-title ',e.component.theme&&"default"!==e.component.theme&&(n+="text-light"),n+='">\n ',e.component.collapsible&&(n+='\n <i class="formio-collapse-icon '+(null==(t=e.iconClass(e.collapsed?"plus-square-o":"minus-square-o"))?"":t)+' text-muted" data-title="Collapse Panel"></i>\n '),n+="\n ",e.component.hideLabel&&!e.builder||(n+="\n "+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"\n "),n+="\n ",e.component.tooltip&&(n+='\n <i ref="tooltip" tabindex="0" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n '),n+="\n </span>\n </div>\n "),n+="\n ",e.collapsed&&!e.builder||(n+='\n <div class="card-body" ref="'+(null==(t=e.nestedKey)?"":t)+'" id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'">\n '+(null==(t=e.children)?"":t)+"\n </div>\n "),n+"\n</div>\n"}},78391:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(52792);t.default={form:i.default}},90527:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="'+(null==(t=e.classes)?"":t)+'" ref="webform">\n\t<span data-noattach="true" ref="zoomIn" style="position:absolute;right:10px;top:10px;cursor:pointer;" class="btn btn-default btn-secondary no-disable">\n\t\t<i class="'+(null==(t=e.iconClass("zoom-in"))?"":t)+'"></i>\n\t</span>\n\t<span data-noattach="true" ref="zoomOut" style="position:absolute;right:10px;top:60px;cursor:pointer;" class="btn btn-default btn-secondary no-disable">\n\t\t<i class="'+(null==(t=e.iconClass("zoom-out"))?"":t)+'"></i>\n\t</span>\n <div data-noattach="true" ref="iframeContainer"></div>\n '+(null==(t=e.submitButton)?"":t)+"\n</div>\n"}},72026:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(90527);t.default={form:i.default}},40529:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="formio builder row formbuilder">\n <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n '+(null==(t=e.sidebar)?"":t)+'\n </div>\n <div class="col-xs-8 col-sm-9 col-md-10 formarea" ref="form">\n\t <div class="formio-drop-zone" ref="iframeDropzone"></div>\n '+(null==(t=e.form)?"":t)+"\n </div>\n</div>\n"}},46005:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(40529);t.default={form:i.default}},85531:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="pdf-upload formio-component-file">\n <h3 class="label">'+(null==(t=e.t("Upload a PDF File"))?"":t)+'</h3>\n <input type="file" style="opacity: 0; position: absolute;" tabindex="-1" accept=".pdf" ref="hiddenFileInputElement">\n <div class="fileSelector" ref="fileDrop">\n <span ref="dragDropText">\n <i class="'+(null==(t=e.iconClass("cloud-upload"))?"":t)+'"></i>'+(null==(t=e.t("Drop pdf to start, or"))?"":t)+' <a href="#" ref="fileBrowse" class="browse">'+(null==(t=e.t("browse"))?"":t)+'</a>\n </span>\n <div class="progress pdf-progress" ref="uploadProgressWrapper" style="display:none;">\n <div class="progress-bar" ref="uploadProgress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>\n </div>\n </div>\n <div class="alert alert-danger" ref="uploadError">\n\n </div>\n</div>\n\n'}},72103:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(85531);t.default={form:i.default}},59908:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div\n class="form-radio radio"\n ref="radioGroup"\n role="'+(null==(t="selectboxes"===e.component.type?"group":"radiogroup")?"":t)+'"\n aria-required="'+(null==(t=e.input.component.validate.required)?"":t)+'"\n aria-labelledby="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n ',e.component.description&&(n+='\n aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n '),n+="\n>\n ",e.values.forEach((function(i,r){for(var o in n+='\n <div class="'+(null==(t=e.input.attr.type)?"":t)+" "+(null==(t=e.component.optionsLabelPosition&&"right"!==e.component.optionsLabelPosition?"ps-0":"")?"":t)+" form-check"+(null==(t=e.inline?"-inline":"")?"":t)+'" ref="wrapper">\n ',["left","top"].includes(e.component.optionsLabelPosition)&&(n+='\n <label class="form-check-label label-position-'+(null==(t=e.component.optionsLabelPosition)?"":t)+'" for="'+(null==(t=e.instance.root&&e.instance.root.id)?"":t)+"-"+(null==(t=e.id)?"":t)+"-"+(null==(t=e.row)?"":t)+"-"+(null==(t="object"==typeof i.value?i.value+"-"+r:i.value)?"":t)+'"><span>'+(null==(t=e.t(i.label,{_userInput:!0}))?"":t)+"</span></label>\n "),n+="\n <"+(null==(t=e.input.type)?"":t)+'\n ref="input"\n ',e.input.attr)n+="\n "+(null==(t=o)?"":t)+'="'+(null==(t=e.input.attr[o])?"":t)+'"\n ';n+='\n value="'+(null==(t=i.value)?"":t)+'"\n ',e.value&&(e.value===i.value||"object"==typeof e.value&&e.value.hasOwnProperty(i.value)&&e.value[i.value])&&(n+="\n checked=true\n "),n+="\n ",i.disabled&&(n+="\n disabled=true\n "),n+='\n id="'+(null==(t=e.instance.root&&e.instance.root.id)?"":t)+"-"+(null==(t=e.id)?"":t)+"-"+(null==(t=e.row)?"":t)+"-"+(null==(t="object"==typeof i.value?i.value+"-"+r:i.value)?"":t)+'"\n role="'+(null==(t="selectboxes"===e.component.type?"checkbox":"radio")?"":t)+'"\n >\n ',e.component.optionsLabelPosition&&!["right","bottom"].includes(e.component.optionsLabelPosition)||(n+='\n <label class="form-check-label label-position-'+(null==(t=e.component.optionsLabelPosition)?"":t)+'" for="'+(null==(t=e.instance.root&&e.instance.root.id)?"":t)+"-"+(null==(t=e.id)?"":t)+"-"+(null==(t=e.row)?"":t)+"-"+(null==(t="object"==typeof i.value?i.value+"-"+r:i.value)?"":t)+'"><span>'+(null==(t=e.t(i.label,{_userInput:!0}))?"":t)+"</span></label>\n "),n+="\n </div>\n "})),n+="\n</div>\n"}},17101:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,(n+='<div ref="value">\n ')+"\n "+(null==(t=e.values.filter((function(t){return e.value===t.value||"object"==typeof e.value&&e.value.hasOwnProperty(t.value)&&e.value[t.value]})).map((function(t){return e.t(t.label,{_userInput:!0})})).join(", "))?"":t)+"\n </div>\n"}},93044:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(59908),r=n(17101);t.default={form:i.default,html:r.default}},74806:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<table class="table table-bordered">\n <tbody>\n <tr>\n <td>\n '+(null==(t=e.element)?"":t)+'\n </td>\n </tr>\n <tr>\n <td colspan="2">\n <button class="btn btn-primary formio-button-add-resource" ref="addResource">\n <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i>\n '+(null==(t=e.t(e.component.addResourceLabel||"Add Resource",{_userInput:!0}))?"":t)+"\n </button>\n </td>\n </tr>\n </tbody>\n</table>\n"}},14797:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(74806);t.default={form:i.default}},56558:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var i in Array.prototype.join,n+='<select\n ref="'+(null==(t=e.input.ref?e.input.ref:"selectContainer")?"":t)+'"\n '+(null==(t=e.input.multiple?"multiple":"")?"":t)+"\n ",e.input.attr)n+="\n "+(null==(t=i)?"":t)+'="'+(null==(t=e.input.attr[i])?"":t)+'"\n ';return n+="\n ",e.input.attr.id||(n+='\n id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n '),n+="\n ",e.component.description&&(n+='\n aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n '),n+='\n aria-required="'+(null==(t="selectContainer"!==e.input.ref&&e.input.ref?e.component.fields[e.input.ref].required:e.input.component.validate.required)?"":t)+'"\n>'+(null==(t=e.selectOptions)?"":t)+'</select>\n<input type="text"\n class="formio-select-autocomplete-input"\n ref="autocompleteInput"\n ',e.input.attr.autocomplete&&(n+='\n autocomplete="'+(null==(t=e.input.attr.autocomplete)?"":t)+'"\n '),n+'\n tabindex="-1"\n aria-label="'+(null==(t=e.t("autocomplete"))?"":t)+'"\n/>\n'}},59743:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div ref="value">',e.value?n+=null==(t=e.self.itemValueForHTMLMode(e.value))?"":t:n+="-",n+"</div>\n"}},20355:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(56558),r=n(59743);t.default={form:i.default,html:r.default}},75407:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var i in Array.prototype.join,n+="<option "+(null==(t=e.selected?'selected="selected"':"")?"":t)+"\n value='"+(null==(t=e.useId?e.id:e.option.value)?"":t)+"'\n ",e.attrs)n+="\n "+(null==(t=i)?"":t)+'="'+(null==(t=e.attrs[i])?"":t)+'"\n ';return n+"\n >\n "+(null==(t=e.t(e.option.label,{_userInput:!0}))?"":t)+"\n</option>\n"}},93871:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.selected&&(n+=null==(t=e.t(e.option.label,{_userInput:!0}))?"":t),n+"\n"}},69063:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(75407),r=n(93871);t.default={form:i.default,html:r.default}},74894:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+=(null==(t=e.element)?"":t)+'\n<div\n class="signature-pad-body"\n style="width: '+(null==(t=e.component.width)?"":t)+";height: "+(null==(t=e.component.height)?"":t)+';padding:0;margin:0;"\n tabindex="'+(null==(t=e.component.tabindex||0)?"":t)+'"\n ref="padBody"\n>\n <a class="btn btn-sm btn-light signature-pad-refresh" ref="refresh">\n <i class="'+(null==(t=e.iconClass("refresh"))?"":t)+'"></i>\n </a>\n <canvas class="signature-pad-canvas" style="display: none;" height="'+(null==(t=e.component.height)?"":t)+'" ref="canvas"></canvas>\n ',e.required&&(n+='\n <span class="form-control-feedback text-danger">\n <i class="'+(null==(t=e.iconClass("asterisk"))?"":t)+'"></i>\n </span>\n '),n+='\n <img style="width: 100%;display: inherit;" ref="signatureImage">\n</div>\n',e.component.footer&&(n+='\n <div class="signature-pad-footer">\n '+(null==(t=e.t(e.component.footer,{_userInput:!0}))?"":t)+"\n </div>\n"),n+"\n"}},63848:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<img style="width: 100%;" ref="signatureImage">\n'}},51419:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(74894),r=n(63848);t.default={form:i.default,html:r.default}},56325:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table table-striped table-bordered" aria-labelledby="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'">\n <thead>\n <tr>\n <th></th>\n ',e.component.values.forEach((function(i){n+='\n <th style="text-align: center;">\n '+(null==(t=e.t(i.label,{_userInput:!0}))?"":t)+"\n ",i.tooltip&&(n+='\n <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=i.tooltip)?"":t)+'"></i>\n '),n+="\n </th>\n "})),n+="\n </tr>\n </thead>\n <tbody>\n ",e.component.questions.forEach((function(i){n+="\n <tr>\n <td>\n "+(null==(t=e.t(i.label))?"":t)+"\n ",i.tooltip&&(n+='\n <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=i.tooltip)?"":t)+'"></i>\n '),n+="\n </td>\n ",e.component.values.forEach((function(r){n+='\n <td style="text-align: center;">\n <input type="radio" name="'+(null==(t=e.self.getInputName(i))?"":t)+'" value="'+(null==(t=r.value)?"":t)+'" id="'+(null==(t=e.key)?"":t)+"-"+(null==(t=i.value)?"":t)+"-"+(null==(t=r.value)?"":t)+'" ref="input">\n </td>\n '})),n+="\n </tr>\n "})),n+="\n </tbody>\n</table>\n"}},41381:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table table-striped table-bordered">\n <tbody>\n ',e.component.questions.forEach((function(i){n+="\n <tr>\n <th>"+(null==(t=e.t(i.label))?"":t)+"</th>\n <td>\n ",e.component.values.forEach((function(r){n+="\n ",e.value&&e.value.hasOwnProperty(i.value)&&e.value[i.value]===r.value&&(n+="\n "+(null==(t=e.t(r.label))?"":t)+"\n "),n+="\n "})),n+="\n </td>\n </tr>\n "})),n+="\n </tbody>\n</table>\n"}},92981:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(56325),r=n(41381);t.default={form:i.default,html:r.default}},61447:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.component.components.forEach((function(i,r){n+='\n <div class="mb-2 card border">\n <div class="card-header bg-default">\n <h4 class="mb-0 card-title">'+(null==(t=e.t(i.label,{_userInput:!0}))?"":t)+'</h4>\n </div>\n <div\n class="card-body"\n ref="'+(null==(t=e.tabKey)?"":t)+'"\n >\n '+(null==(t=e.tabComponents[r])?"":t)+"\n </div>\n </div>\n"})),n+="\n"}},69767:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="card'+(null==(t=e.component.verticalLayout?" card-vertical":"")?"":t)+'">\n <div class="card-header">\n <ul class="tab-component-tabs nav nav-tabs card-header-tabs'+(null==(t=e.component.verticalLayout?" nav-tabs-vertical":"")?"":t)+'" role="tablist">\n ',e.component.components.forEach((function(i,r){n+='\n <li class="nav-item'+(null==(t=e.currentTab===r?" active":"")?"":t)+'" role="tab" ref="'+(null==(t=e.tabLikey)?"":t)+'">\n <a\n class="nav-link'+(null==(t=e.currentTab===r?" active":"")?"":t)+(null==(t=e.component.verticalLayout?" nav-link-vertical":"")?"":t)+'"\n href="#'+(null==(t=i.key)?"":t)+'"\n ref="'+(null==(t=e.tabLinkKey)?"":t)+'"\n >\n '+(null==(t=e.t(i.label,{_userInput:!0}))?"":t)+"\n </a>\n </li>\n "})),n+="\n </ul>\n </div>\n ",e.component.components.forEach((function(i,r){n+='\n <div\n role="tabpanel"\n class="card-body tab-pane"\n style="display: '+(null==(t=e.currentTab===r?"block":"none")?"":t)+'"\n ref="'+(null==(t=e.tabKey)?"":t)+'"\n >\n '+(null==(t=e.tabComponents[r])?"":t)+"\n </div>\n "})),n+="\n</div>\n"}},12769:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(61447),r=n(69767);t.default={flat:i.default,form:r.default}},36038:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table\n '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n ">\n <caption class="visually-hidden">'+(null==(t=e.t(e.component.label))?"":t)+"</caption>\n ",e.component.header&&e.component.header.length>0&&(n+="\n <thead>\n <tr>\n ",e.component.header.forEach((function(i){n+="\n <th>"+(null==(t=e.t(i))?"":t)+"</th>\n "})),n+="\n </tr>\n </thead>\n "),n+="\n <tbody>\n ",e.tableComponents.forEach((function(i,r){n+='\n <tr ref="row-'+(null==(t=e.id)?"":t)+'">\n ',i.forEach((function(i,o){n+='\n <td ref="'+(null==(t=e.tableKey)?"":t)+"-"+(null==(t=r)?"":t)+'"',e.cellClassName&&(n+=' class="'+(null==(t=e.cellClassName)?"":t)+'"'),n+=">"+(null==(t=i)?"":t)+"</td>\n "})),n+="\n </tr>\n "})),n+="\n </tbody>\n</table>\n"}},76056:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(36038);t.default={form:i.default}},88172:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.children.forEach((function(e){n+='\n <td class="editgrid-table-column">\n '+(null==(t=e)?"":t)+"\n </td>\n"})),n+="\n"}},14874:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(88172);t.default={form:i.default}},70276:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.node.isRoot?n+='\n <div ref="root" class="list-group-item">\n':n+='\n <li ref="node" class="list-group-item col-sm-12 tree__level tree__level_'+(null==(t=e.odd?"odd":"even")?"":t)+'">\n',n+="\n ",e.content&&(n+='\n <div ref="content" class="tree__node-content">\n '+(null==(t=e.content)?"":t)+"\n </div>\n "),n+="\n ",e.childNodes&&e.childNodes.length&&(n+='\n <ul ref="childNodes" class="tree__node-children list-group row">\n '+(null==(t=e.childNodes.join(""))?"":t)+"\n </ul>\n "),n+="\n",e.node.isRoot?n+="\n </div>\n":n+="\n </li>\n",n+"\n"}},50130:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(70276);t.default={form:i.default}},95532:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="node-edit">\n <div ref="nodeEdit">'+(null==(t=e.children)?"":t)+"</div>\n ",e.readOnly||(n+='\n <div class="node-actions">\n <button ref="saveNode" class="btn btn-primary saveNode">'+(null==(t=e.t("Save"))?"":t)+'</button>\n <button ref="cancelNode" class="btn btn-danger cancelNode">'+(null==(t=e.t("Cancel"))?"":t)+"</button>\n </div>\n "),n+"\n</div>\n"}},15238:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(95532),r=n(79918);t.default={treeView:{form:r.default},treeEdit:{form:i.default}}},79918:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="row">\n ',e.values.forEach((function(e){n+='\n <div class="col-sm-2">\n '+(null==(t=e)?"":t)+"\n </div>\n "})),n+='\n <div class="col-sm-3">\n <div class="btn-group pull-right">\n ',e.node.hasChildren&&(n+='\n <button ref="toggleNode" class="btn btn-default btn-sm toggleNode">'+(null==(t=e.t(e.node.collapsed?"Expand":"Collapse"))?"":t)+"</button>\n "),n+="\n ",e.readOnly||(n+='\n <button ref="addChild" class="btn btn-default btn-sm addChild">'+(null==(t=e.t("Add"))?"":t)+'</button>\n <button ref="editNode" class="btn btn-default btn-sm editNode">'+(null==(t=e.t("Edit"))?"":t)+'</button>\n <button ref="removeNode" class="btn btn-danger btn-sm removeNode">'+(null==(t=e.t("Delete"))?"":t)+"</button>\n ",e.node.revertAvailable&&(n+='\n <button ref="revertNode" class="btn btn-danger btn-sm revertNode">'+(null==(t=e.t("Revert"))?"":t)+"</button>\n "),n+="\n "),n+="\n </div>\n </div>\n</div>\n"}},51918:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="text-muted text-center p-2">'+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"</div>\n"}},94269:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="'+(null==(t=e.classes)?"":t)+'" ref="webform" novalidate>'+(null==(t=e.children)?"":t)+"</div>\n"}},3435:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(94269),r=n(51918);t.default={form:i.default,builder:r.default}},61814:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="card card-body bg-light mb-3">\n <div ref="'+(null==(t=e.nestedKey)?"":t)+'">\n '+(null==(t=e.children)?"":t)+"\n </div>\n</div>\n"}},98292:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(61814);t.default={form:i.default}},65194:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="text-muted text-center p-2">'+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"</div>\n"}},86336:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="'+(null==(t=e.className)?"":t)+'">\n <div style="position: relative;">\n ',"wizardHeaderVertical"===e.wizardHeaderType?(n+='\n <div class="row">\n ',"right"!==e.wizardHeaderLocation&&(n+='\n <div class="col-sm-2">\n '+(null==(t=e.wizardHeader)?"":t)+"\n </div>\n "),n+='\n <div class="wizard-page col-sm-10" ref="'+(null==(t=e.wizardKey)?"":t)+'">\n '+(null==(t=e.components)?"":t)+"\n </div>\n ","right"===e.wizardHeaderLocation&&(n+='\n <div class="col-sm-2">\n '+(null==(t=e.wizardHeader)?"":t)+"\n </div>\n "),n+='\n </div>\n <div class="col-sm-offset-2 col-sm-10 '+(null==(t="right"===e.wizardHeaderLocation?"col-sm-offset-0 col-md-offset-0":"")?"":t)+'">\n '+(null==(t=e.wizardNav)?"":t)+"\n </div>\n "):n+="\n "+(null==(t=e.wizardHeader)?"":t)+'\n <div class="wizard-page" ref="'+(null==(t=e.wizardKey)?"":t)+'">\n '+(null==(t=e.components)?"":t)+"\n </div>\n "+(null==(t=e.wizardNav)?"":t)+"\n ",n+"\n </div>\n</div>\n"}},46625:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(86336),r=n(65194);t.default={form:i.default,builder:r.default}},70306:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="Wizard navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header" ref="'+(null==(t=e.wizardKey)?"":t)+'-header">\n <ul class="pagination" role="tablist">\n ',e.panels.forEach((function(i,r){n+='\n <li class="page-item'+(null==(t=e.currentPage===r?" active":"")?"":t)+'" style="cursor: pointer;">\n <button tabindex="0" data-index="'+(null==(t=r)?"":t)+'" role="tab" class="page-link" ref="'+(null==(t=e.wizardKey)?"":t)+'-link">\n '+(null==(t=e.t(i.title,{_userInput:!0}))?"":t)+"\n ",i.tooltip&&e.currentPage===r&&(n+='\n <i ref="'+(null==(t=e.wizardKey)?"":t)+'-tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=i.tooltip)?"":t)+'"></i>\n '),n+="\n </button>\n </li>\n "})),n+="\n </ul>\n</nav>\n"}},9714:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(70306);t.default={form:i.default}},36100:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header">\n <div class="classic-pagination row justify-content-center" style="border-bottom:0;">\n ',e.panels.forEach((function(i,r){n+='\n <div class="classic-pagination-page col-xs-12 col-sm-6 col-md-3\n '+(null==(t=e.currentPage<r?" disabled":"")?"":t)+"\n "+(null==(t=e.currentPage===r?" active":"")?"":t)+"\n "+(null==(t=e.currentPage>r?" complete":"")?"":t)+'">\n <div class="text-center classic-pagination-title">'+(null==(t=e.t(i.title,{_userInput:!0}))?"":t)+"</div>\n ",e.panels.length>1&&(n+='\n <div class="progress"><div class="progress-bar"></div></div>\n '),n+=' \n <span ref="'+(null==(t=e.wizardKey)?"":t)+'-link" class="classic-pagination-dot"></span>\n </div>\n '})),n+="\n </div>\n</nav>\n"}},20707:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(36100);t.default={form:i.default}},60549:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header">\n <ul class="pagination flex-column">\n ',e.panels.forEach((function(i,r){n+='\n <li class="col-xs-12 page-item'+(null==(t=e.currentPage===r?" active":"")?"":t)+'" style="cursor: pointer;">\n <span class="page-link" ref="'+(null==(t=e.wizardKey)?"":t)+'-link" style="margin-left: 0px;">\n '+(null==(t=e.t(i.title,{_userInput:!0}))?"":t)+"\n ",i.tooltip&&e.currentPage===r&&(n+='\n <i ref="'+(null==(t=e.wizardKey)?"":t)+'-tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=i.tooltip)?"":t)+'"></i>\n '),n+="\n </span>\n </li>\n "})),n+="\n </ul>\n</nav>\n"}},68069:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(60549);t.default={form:i.default}},85206:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<ul class="formio-wizard-nav-container list-inline" id="'+(null==(t=e.wizardKey)?"":t)+'-nav">\n ',e.buttonOrder.forEach((function(i){n+="\n ","cancel"===i&&e.buttons.cancel&&(n+='\n <li>\n <button class="btn btn-secondary btn-wizard-nav-cancel" ref="'+(null==(t=e.wizardKey)?"":t)+'-cancel" aria-label="'+(null==(t=e.t("cancelButtonAriaLabel"))?"":t)+'">'+(null==(t=e.t("cancel"))?"":t)+"</button>\n </li>\n "),n+="\n ","previous"===i&&e.buttons.previous&&(n+='\n <li>\n <button class="btn btn-primary btn-wizard-nav-previous" ref="'+(null==(t=e.wizardKey)?"":t)+'-previous" aria-label="'+(null==(t=e.t("previousButtonAriaLabel"))?"":t)+'">'+(null==(t=e.t("previous"))?"":t)+"</button>\n </li>\n "),n+="\n ","next"===i&&e.buttons.next&&(n+='\n <li>\n <button class="btn btn-primary btn-wizard-nav-next" ref="'+(null==(t=e.wizardKey)?"":t)+'-next" aria-label="'+(null==(t=e.t("nextButtonAriaLabel"))?"":t)+'">'+(null==(t=e.t("next"))?"":t)+"</button>\n </li>\n "),n+="\n ","submit"===i&&e.buttons.submit&&(n+="\n <li>\n ",e.disableWizardSubmit?n+='\n <button disabled class="btn btn-primary btn-wizard-nav-submit" ref="'+(null==(t=e.wizardKey)?"":t)+'-submit" aria-label="'+(null==(t=e.t("submitButtonAriaLabel"))?"":t)+'">'+(null==(t=e.t("submit"))?"":t)+"</button>\n ":n+='\n <button class="btn btn-primary btn-wizard-nav-submit" ref="'+(null==(t=e.wizardKey)?"":t)+'-submit" aria-label="'+(null==(t=e.t("submitButtonAriaLabel"))?"":t)+'">'+(null==(t=e.t("submit"))?"":t)+"</button>\n ",n+="\n </li>\n "),n+="\n "})),n+="\n</ul>\n"}},63866:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(85206);t.default={form:i.default}},19034:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="row">\n ',e.util.eachComponent(e.components,(function(i){n+="\n ",i.hasOwnProperty("tableView")&&!i.tableView||(n+='\n <div class="col-sm-2">'+(null==(t=e.t(i.label))?"":t)+"</div>\n "),n+="\n "})),n+="\n</div>\n"}},10977:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(91542),r=n(19034);t.default={row:i.default,header:r.default}},91542:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="row">\n ',e.util.eachComponent(e.components,(function(i){n+="\n ",i.hasOwnProperty("tableView")&&!i.tableView||(n+='\n <div class="col-sm-2">\n '+(null==(t=e.getView(i,e.row[i.key]))?"":t)+"\n </div>\n "),n+="\n "})),n+="\n ",e.self.options.readOnly||(n+='\n <div class="col-sm-2">\n <div class="btn-group pull-right">\n <button class="btn btn-default btn-light btn-sm editRow"><i class="'+(null==(t=e.iconClass("edit"))?"":t)+'"></i></button>\n <button class="btn btn-danger btn-sm removeRow"><i class="'+(null==(t=e.iconClass("trash"))?"":t)+'"></i></button>\n </div>\n </div>\n '),n+="\n</div>\n"}},26625:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.editgrid=void 0;const i=n(10977);t.editgrid=i.default},61066:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=void 0;const r=n(36051);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return r.Formio}});const o=i(n(36310)),s=i(n(29256));r.Formio.cdn=new o.default,r.Formio.Providers=s.default,r.Formio.version="5.0.0-rc.25";const a=e=>null==e;r.Formio.prototype.uploadFile=function(e,t,n,i,o,l,u,c,d,h,p,f){const m={provider:e,method:"upload",file:t,fileName:n,dir:i};c=c||"file";const g=r.Formio.pluginWait("preRequest",m).then((()=>r.Formio.pluginGet("fileRequest",m).then((r=>{if(e&&a(r)){const r=s.default.getProvider("storage",e);if(r){const e=new r(this);return p&&p(),e.uploadFile(t,n,i,o,l,u,c,d,h,f)}throw"Storage provider not found"}return r||{url:""}}))));return r.Formio.pluginAlter("wrapFileRequestPromise",g,m)},r.Formio.prototype.downloadFile=function(e,t){const n={method:"download",file:e},i=r.Formio.pluginWait("preRequest",n).then((()=>r.Formio.pluginGet("fileRequest",n).then((n=>{if(e.storage&&a(n)){const n=s.default.getProvider("storage",e.storage);if(n)return new n(this).downloadFile(e,t);throw"Storage provider not found"}return n||{url:""}}))));return r.Formio.pluginAlter("wrapFileRequestPromise",i,n)},r.Formio.prototype.deleteFile=function(e,t){const n={method:"delete",file:e},i=r.Formio.pluginWait("preRequest",n).then((()=>r.Formio.pluginGet("fileRequest",n).then((n=>{if(e.storage&&a(n)){const n=s.default.getProvider("storage",e.storage);if(n)return new n(this).deleteFile(e,t);throw"Storage provider not found"}return n||{url:""}}))));return r.Formio.pluginAlter("wrapFileRequestPromise",i,n)},r.Formio.Promise=Promise},34901:function(e,t,n){"use strict";n.r(t),n.d(t,{JsonPatchError:function(){return g},_areEquals:function(){return S},applyOperation:function(){return k},applyPatch:function(){return C},applyReducer:function(){return O},compare:function(){return V},deepClone:function(){return c},default:function(){return I},escapePathComponent:function(){return h},generate:function(){return j},getValueByPointer:function(){return _},observe:function(){return D},unescapePathComponent:function(){return p},unobserve:function(){return T},validate:function(){return E},validator:function(){return x}});var i={};n.r(i),n.d(i,{JsonPatchError:function(){return v},_areEquals:function(){return S},applyOperation:function(){return k},applyPatch:function(){return C},applyReducer:function(){return O},deepClone:function(){return y},getValueByPointer:function(){return _},validate:function(){return E},validator:function(){return x}});var r={};n.r(r),n.d(r,{compare:function(){return V},generate:function(){return j},observe:function(){return D},unobserve:function(){return T}});var o,s=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=Object.prototype.hasOwnProperty;function l(e,t){return a.call(e,t)}function u(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);var i=[];for(var r in e)l(e,r)&&i.push(r);return i}function c(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function d(e){for(var t,n=0,i=e.length;n<i;){if(!((t=e.charCodeAt(n))>=48&&t<=57))return!1;n++}return!0}function h(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function p(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function f(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(f(e[t]))return!0}else if("object"==typeof e)for(var i=u(e),r=i.length,o=0;o<r;o++)if(f(e[i[o]]))return!0;return!1}function m(e,t){var n=[e];for(var i in t){var r="object"==typeof t[i]?JSON.stringify(t[i],null,2):t[i];void 0!==r&&n.push(i+": "+r)}return n.join("\n")}var g=function(e){function t(t,n,i,r,o){var s=this.constructor,a=e.call(this,m(t,{name:n,index:i,operation:r,tree:o}))||this;return a.name=n,a.index=i,a.operation=r,a.tree=o,Object.setPrototypeOf(a,s.prototype),a.message=m(t,{name:n,index:i,operation:r,tree:o}),a}return s(t,e),t}(Error),v=g,y=c,b={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var i=e[t];return delete e[t],{newDocument:n,removed:i}},replace:function(e,t,n){var i=e[t];return e[t]=this.value,{newDocument:n,removed:i}},move:function(e,t,n){var i=_(n,this.path);i&&(i=c(i));var r=k(n,{op:"remove",path:this.from}).removed;return k(n,{op:"add",path:this.path,value:r}),{newDocument:n,removed:i}},copy:function(e,t,n){var i=_(n,this.from);return k(n,{op:"add",path:this.path,value:c(i)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:S(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},w={add:function(e,t,n){return d(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var i=e[t];return e[t]=this.value,{newDocument:n,removed:i}},move:b.move,copy:b.copy,test:b.test,_get:b._get};function _(e,t){if(""==t)return e;var n={op:"_get",path:t};return k(e,n),n.value}function k(e,t,n,i,r,o){if(void 0===n&&(n=!1),void 0===i&&(i=!0),void 0===r&&(r=!0),void 0===o&&(o=0),n&&("function"==typeof n?n(t,0,e,t.path):x(t,0)),""===t.path){var s={newDocument:e};if("add"===t.op)return s.newDocument=t.value,s;if("replace"===t.op)return s.newDocument=t.value,s.removed=e,s;if("move"===t.op||"copy"===t.op)return s.newDocument=_(e,t.from),"move"===t.op&&(s.removed=e),s;if("test"===t.op){if(s.test=S(e,t.value),!1===s.test)throw new v("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return s.newDocument=e,s}if("remove"===t.op)return s.removed=e,s.newDocument=null,s;if("_get"===t.op)return t.value=e,s;if(n)throw new v("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",o,t,e);return s}i||(e=c(e));var a=(t.path||"").split("/"),l=e,u=1,h=a.length,f=void 0,m=void 0,g=void 0;for(g="function"==typeof n?n:x;;){if((m=a[u])&&-1!=m.indexOf("~")&&(m=p(m)),r&&("__proto__"==m||"prototype"==m&&u>0&&"constructor"==a[u-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&void 0===f&&(void 0===l[m]?f=a.slice(0,u).join("/"):u==h-1&&(f=t.path),void 0!==f&&g(t,0,e,f)),u++,Array.isArray(l)){if("-"===m)m=l.length;else{if(n&&!d(m))throw new v("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",o,t,e);d(m)&&(m=~~m)}if(u>=h){if(n&&"add"===t.op&&m>l.length)throw new v("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",o,t,e);if(!1===(s=w[t.op].call(t,l,m,e)).test)throw new v("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return s}}else if(u>=h){if(!1===(s=b[t.op].call(t,l,m,e)).test)throw new v("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return s}if(l=l[m],n&&u<h&&(!l||"object"!=typeof l))throw new v("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",o,t,e)}}function C(e,t,n,i,r){if(void 0===i&&(i=!0),void 0===r&&(r=!0),n&&!Array.isArray(t))throw new v("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");i||(e=c(e));for(var o=new Array(t.length),s=0,a=t.length;s<a;s++)o[s]=k(e,t[s],n,!0,r,s),e=o[s].newDocument;return o.newDocument=e,o}function O(e,t,n){var i=k(e,t);if(!1===i.test)throw new v("Test operation failed","TEST_OPERATION_FAILED",n,t,e);return i.newDocument}function x(e,t,n,i){if("object"!=typeof e||null===e||Array.isArray(e))throw new v("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(!b[e.op])throw new v("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n);if("string"!=typeof e.path)throw new v("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new v('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new v("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new v("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&f(e.value))throw new v("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n)if("add"==e.op){var r=e.path.split("/").length,o=i.split("/").length;if(r!==o+1&&r!==o)throw new v("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==i)throw new v("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if("move"===e.op||"copy"===e.op){var s=E([{op:"_get",path:e.from,value:void 0}],n);if(s&&"OPERATION_PATH_UNRESOLVABLE"===s.name)throw new v("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}function E(e,t,n){try{if(!Array.isArray(e))throw new v("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)C(c(t),c(e),n||!0);else{n=n||x;for(var i=0;i<e.length;i++)n(e[i],i,t,void 0)}}catch(e){if(e instanceof v)return e;throw e}}function S(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,i,r,o=Array.isArray(e),s=Array.isArray(t);if(o&&s){if((i=e.length)!=t.length)return!1;for(n=i;0!=n--;)if(!S(e[n],t[n]))return!1;return!0}if(o!=s)return!1;var a=Object.keys(e);if((i=a.length)!==Object.keys(t).length)return!1;for(n=i;0!=n--;)if(!t.hasOwnProperty(a[n]))return!1;for(n=i;0!=n--;)if(!S(e[r=a[n]],t[r]))return!1;return!0}return e!=e&&t!=t}var M=new WeakMap,P=function(e){this.observers=new Map,this.obj=e},A=function(e,t){this.callback=e,this.observer=t};function T(e,t){t.unobserve()}function D(e,t){var n,i=function(e){return M.get(e)}(e);if(i){var r=function(e,t){return e.observers.get(t)}(i,t);n=r&&r.observer}else i=new P(e),M.set(e,i);if(n)return n;if(n={},i.value=c(e),t){n.callback=t,n.next=null;var o=function(){j(n)},s=function(){clearTimeout(n.next),n.next=setTimeout(o)};"undefined"!=typeof window&&(window.addEventListener("mouseup",s),window.addEventListener("keyup",s),window.addEventListener("mousedown",s),window.addEventListener("keydown",s),window.addEventListener("change",s))}return n.patches=[],n.object=e,n.unobserve=function(){j(n),clearTimeout(n.next),function(e,t){e.observers.delete(t.callback)}(i,n),"undefined"!=typeof window&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},i.observers.set(t,new A(t,n)),n}function j(e,t){void 0===t&&(t=!1);var n=M.get(e.object);R(n.value,e.object,e.patches,"",t),e.patches.length&&C(n.value,e.patches);var i=e.patches;return i.length>0&&(e.patches=[],e.callback&&e.callback(i)),i}function R(e,t,n,i,r){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var o=u(t),s=u(e),a=!1,d=s.length-1;d>=0;d--){var p=e[m=s[d]];if(!l(t,m)||void 0===t[m]&&void 0!==p&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(r&&n.push({op:"test",path:i+"/"+h(m),value:c(p)}),n.push({op:"remove",path:i+"/"+h(m)}),a=!0):(r&&n.push({op:"test",path:i,value:e}),n.push({op:"replace",path:i,value:t}));else{var f=t[m];"object"==typeof p&&null!=p&&"object"==typeof f&&null!=f&&Array.isArray(p)===Array.isArray(f)?R(p,f,n,i+"/"+h(m),r):p!==f&&(r&&n.push({op:"test",path:i+"/"+h(m),value:c(p)}),n.push({op:"replace",path:i+"/"+h(m),value:c(f)}))}}if(a||o.length!=s.length)for(d=0;d<o.length;d++){var m;l(e,m=o[d])||void 0===t[m]||n.push({op:"add",path:i+"/"+h(m),value:c(t[m])})}}}function V(e,t,n){void 0===n&&(n=!1);var i=[];return R(e,t,i,"",n),i}const I=Object.assign({},i,r,{JsonPatchError:g,deepClone:c,escapePathComponent:h,unescapePathComponent:p})}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.amdD=function(){throw new Error("define cannot be used indirect")},n.amdO={},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var i=n(82973);return i.Formio}()}));