@supersoniks/concorde 4.9.95 → 4.9.97-visual-stack.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1013) hide show
  1. package/README.md +34 -17
  2. package/build-infos.json +1 -1
  3. package/concorde-3d.bundle.js +1 -1
  4. package/concorde-3d.es.js +1 -1
  5. package/concorde-core.bundle.js +147 -147
  6. package/concorde-core.es.js +4375 -4282
  7. package/concorde-hugging-face-infer.bundle.js +1 -1
  8. package/concorde-hugging-face-infer.es.js +1 -1
  9. package/concorde-shader.bundle.js +1 -1
  10. package/concorde-shader.es.js +1 -1
  11. package/concorde-webgpu.bundle.js +1 -1
  12. package/concorde-webgpu.es.js +1 -1
  13. package/dist/concorde-3d.bundle.js +3911 -0
  14. package/dist/concorde-3d.es.js +32635 -0
  15. package/dist/concorde-core.bundle.js +147 -147
  16. package/dist/concorde-core.es.js +4375 -4282
  17. package/dist/concorde-hugging-face-infer.bundle.js +32 -0
  18. package/dist/concorde-hugging-face-infer.es.js +2952 -0
  19. package/dist/concorde-shader.bundle.js +105 -0
  20. package/dist/concorde-shader.es.js +7982 -0
  21. package/dist/concorde-webgpu.bundle.js +296 -0
  22. package/dist/concorde-webgpu.es.js +8268 -0
  23. package/dist/docs/hf-samples/beach.jpg +0 -0
  24. package/dist/docs/hf-samples/cats.jpg +0 -0
  25. package/dist/docs/hf-samples/corgi.jpg +0 -0
  26. package/dist/docs/hf-samples/portrait.jpg +0 -0
  27. package/dist/docs/hf-samples/scene.jpg +0 -0
  28. package/dist/docs/hf-samples/singer.jpg +0 -0
  29. package/dist/docs/shader-samples/color.jpg +0 -0
  30. package/dist/docs/shader-samples/depth.png +0 -0
  31. package/dist/docs/shader-samples/impact.jpg +0 -0
  32. package/dist/docs/shader-samples/video.webm +0 -0
  33. package/dist/js/addons/3d.js +6 -0
  34. package/dist/js/addons/3d.js.map +1 -0
  35. package/dist/js/addons/hugging-face-infer.js +8 -0
  36. package/dist/js/addons/hugging-face-infer.js.map +1 -0
  37. package/dist/js/addons/shader.js +6 -0
  38. package/dist/js/addons/shader.js.map +1 -0
  39. package/dist/js/addons/webgpu.js +7 -0
  40. package/dist/js/addons/webgpu.js.map +1 -0
  41. package/dist/js/components.js +12 -0
  42. package/dist/js/components.js.map +1 -0
  43. package/dist/js/concorde-loaded.js +5 -0
  44. package/dist/js/concorde-loaded.js.map +1 -0
  45. package/dist/js/core/_types/endpoint.js +5 -0
  46. package/dist/js/core/_types/endpoint.js.map +1 -0
  47. package/dist/js/core/_types/key.js +2 -0
  48. package/dist/js/core/_types/key.js.map +1 -0
  49. package/dist/js/core/_types/types.js +3 -0
  50. package/dist/js/core/_types/types.js.map +1 -0
  51. package/dist/js/core/components/functional/3d/3d.js +151 -0
  52. package/dist/js/core/components/functional/3d/3d.js.map +1 -0
  53. package/dist/js/core/components/functional/3d/asset.js +20 -0
  54. package/dist/js/core/components/functional/3d/asset.js.map +1 -0
  55. package/dist/js/core/components/functional/3d/boot.js +47 -0
  56. package/dist/js/core/components/functional/3d/boot.js.map +1 -0
  57. package/dist/js/core/components/functional/3d/constants.js +88 -0
  58. package/dist/js/core/components/functional/3d/constants.js.map +1 -0
  59. package/dist/js/core/components/functional/3d/demo-content.js +38 -0
  60. package/dist/js/core/components/functional/3d/demo-content.js.map +1 -0
  61. package/dist/js/core/components/functional/3d/ensure.js +73 -0
  62. package/dist/js/core/components/functional/3d/ensure.js.map +1 -0
  63. package/dist/js/core/components/functional/3d/form-bind.js +25 -0
  64. package/dist/js/core/components/functional/3d/form-bind.js.map +1 -0
  65. package/dist/js/core/components/functional/3d/form-fields.js +76 -0
  66. package/dist/js/core/components/functional/3d/form-fields.js.map +1 -0
  67. package/dist/js/core/components/functional/3d/form-params.js +67 -0
  68. package/dist/js/core/components/functional/3d/form-params.js.map +1 -0
  69. package/dist/js/core/components/functional/3d/frame-capture.js +108 -0
  70. package/dist/js/core/components/functional/3d/frame-capture.js.map +1 -0
  71. package/dist/js/core/components/functional/3d/gl.js +34 -0
  72. package/dist/js/core/components/functional/3d/gl.js.map +1 -0
  73. package/dist/js/core/components/functional/3d/life.js +55 -0
  74. package/dist/js/core/components/functional/3d/life.js.map +1 -0
  75. package/dist/js/core/components/functional/3d/load.js +109 -0
  76. package/dist/js/core/components/functional/3d/load.js.map +1 -0
  77. package/dist/js/core/components/functional/3d/ops.js +78 -0
  78. package/dist/js/core/components/functional/3d/ops.js.map +1 -0
  79. package/dist/js/core/components/functional/3d/opts.js +2 -0
  80. package/dist/js/core/components/functional/3d/opts.js.map +1 -0
  81. package/dist/js/core/components/functional/3d/orbit.js +136 -0
  82. package/dist/js/core/components/functional/3d/orbit.js.map +1 -0
  83. package/dist/js/core/components/functional/3d/out-publish.js +103 -0
  84. package/dist/js/core/components/functional/3d/out-publish.js.map +1 -0
  85. package/dist/js/core/components/functional/3d/parse.js +95 -0
  86. package/dist/js/core/components/functional/3d/parse.js.map +1 -0
  87. package/dist/js/core/components/functional/3d/pick.js +62 -0
  88. package/dist/js/core/components/functional/3d/pick.js.map +1 -0
  89. package/dist/js/core/components/functional/3d/playback.js +56 -0
  90. package/dist/js/core/components/functional/3d/playback.js.map +1 -0
  91. package/dist/js/core/components/functional/3d/pointer.js +58 -0
  92. package/dist/js/core/components/functional/3d/pointer.js.map +1 -0
  93. package/dist/js/core/components/functional/3d/props.js +105 -0
  94. package/dist/js/core/components/functional/3d/props.js.map +1 -0
  95. package/dist/js/core/components/functional/3d/publisher-listen.js +6 -0
  96. package/dist/js/core/components/functional/3d/publisher-listen.js.map +1 -0
  97. package/dist/js/core/components/functional/3d/reload.js +60 -0
  98. package/dist/js/core/components/functional/3d/reload.js.map +1 -0
  99. package/dist/js/core/components/functional/3d/runtime.js +116 -0
  100. package/dist/js/core/components/functional/3d/runtime.js.map +1 -0
  101. package/dist/js/core/components/functional/3d/scene-runtime.js +6 -0
  102. package/dist/js/core/components/functional/3d/scene-runtime.js.map +1 -0
  103. package/dist/js/core/components/functional/3d/snapshot.js +47 -0
  104. package/dist/js/core/components/functional/3d/snapshot.js.map +1 -0
  105. package/dist/js/core/components/functional/3d/styles.js +38 -0
  106. package/dist/js/core/components/functional/3d/styles.js.map +1 -0
  107. package/dist/js/core/components/functional/3d/tune.js +42 -0
  108. package/dist/js/core/components/functional/3d/tune.js.map +1 -0
  109. package/dist/js/core/components/functional/3d/types.js +8 -0
  110. package/dist/js/core/components/functional/3d/types.js.map +1 -0
  111. package/dist/js/core/components/functional/3d/updated.js +58 -0
  112. package/dist/js/core/components/functional/3d/updated.js.map +1 -0
  113. package/dist/js/core/components/functional/3d/view.js +40 -0
  114. package/dist/js/core/components/functional/3d/view.js.map +1 -0
  115. package/dist/js/core/components/functional/3d/wire.js +34 -0
  116. package/dist/js/core/components/functional/3d/wire.js.map +1 -0
  117. package/dist/js/core/components/functional/date/date.js +272 -0
  118. package/dist/js/core/components/functional/date/date.js.map +1 -0
  119. package/dist/js/core/components/functional/example/example.js +44 -0
  120. package/dist/js/core/components/functional/example/example.js.map +1 -0
  121. package/dist/js/core/components/functional/fetch/fetch.js +79 -0
  122. package/dist/js/core/components/functional/fetch/fetch.js.map +1 -0
  123. package/dist/js/core/components/functional/functional.js +18 -0
  124. package/dist/js/core/components/functional/functional.js.map +1 -0
  125. package/dist/js/core/components/functional/if/if.js +39 -0
  126. package/dist/js/core/components/functional/if/if.js.map +1 -0
  127. package/dist/js/core/components/functional/infer/hugging-face/hf-cache.js +183 -0
  128. package/dist/js/core/components/functional/infer/hugging-face/hf-cache.js.map +1 -0
  129. package/dist/js/core/components/functional/infer/hugging-face/hf-config.js +50 -0
  130. package/dist/js/core/components/functional/infer/hugging-face/hf-config.js.map +1 -0
  131. package/dist/js/core/components/functional/infer/hugging-face/hf-controller.js +460 -0
  132. package/dist/js/core/components/functional/infer/hugging-face/hf-controller.js.map +1 -0
  133. package/dist/js/core/components/functional/infer/hugging-face/hf-engine.js +116 -0
  134. package/dist/js/core/components/functional/infer/hugging-face/hf-engine.js.map +1 -0
  135. package/dist/js/core/components/functional/infer/hugging-face/hf-input.js +170 -0
  136. package/dist/js/core/components/functional/infer/hugging-face/hf-input.js.map +1 -0
  137. package/dist/js/core/components/functional/infer/hugging-face/hf-protocol.js +2 -0
  138. package/dist/js/core/components/functional/infer/hugging-face/hf-protocol.js.map +1 -0
  139. package/dist/js/core/components/functional/infer/hugging-face/hf-registry.js +367 -0
  140. package/dist/js/core/components/functional/infer/hugging-face/hf-registry.js.map +1 -0
  141. package/dist/js/core/components/functional/infer/hugging-face/hf-schema.js +288 -0
  142. package/dist/js/core/components/functional/infer/hugging-face/hf-schema.js.map +1 -0
  143. package/dist/js/core/components/functional/infer/hugging-face/hf-worker-runtime.js +309 -0
  144. package/dist/js/core/components/functional/infer/hugging-face/hf-worker-runtime.js.map +1 -0
  145. package/dist/js/core/components/functional/infer/hugging-face/hugging-face-infer.js +213 -0
  146. package/dist/js/core/components/functional/infer/hugging-face/hugging-face-infer.js.map +1 -0
  147. package/dist/js/core/components/functional/infer/hugging-face/hugging-face.js +76 -0
  148. package/dist/js/core/components/functional/infer/hugging-face/hugging-face.js.map +1 -0
  149. package/dist/js/core/components/functional/infer/hugging-face/types.js +62 -0
  150. package/dist/js/core/components/functional/infer/hugging-face/types.js.map +1 -0
  151. package/dist/js/core/components/functional/jsonata/jsonata.js +119 -0
  152. package/dist/js/core/components/functional/jsonata/jsonata.js.map +1 -0
  153. package/dist/js/core/components/functional/list/list.js +341 -0
  154. package/dist/js/core/components/functional/list/list.js.map +1 -0
  155. package/dist/js/core/components/functional/mix/mix.js +103 -0
  156. package/dist/js/core/components/functional/mix/mix.js.map +1 -0
  157. package/dist/js/core/components/functional/queue/queue.js +450 -0
  158. package/dist/js/core/components/functional/queue/queue.js.map +1 -0
  159. package/dist/js/core/components/functional/router/redirect.js +54 -0
  160. package/dist/js/core/components/functional/router/redirect.js.map +1 -0
  161. package/dist/js/core/components/functional/router/router.js +179 -0
  162. package/dist/js/core/components/functional/router/router.js.map +1 -0
  163. package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js +216 -0
  164. package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js.map +1 -0
  165. package/dist/js/core/components/functional/sdui/default-library.json +108 -0
  166. package/dist/js/core/components/functional/sdui/sdui-utils.js +64 -0
  167. package/dist/js/core/components/functional/sdui/sdui-utils.js.map +1 -0
  168. package/dist/js/core/components/functional/sdui/sdui.js +271 -0
  169. package/dist/js/core/components/functional/sdui/sdui.js.map +1 -0
  170. package/dist/js/core/components/functional/sdui/types.js +2 -0
  171. package/dist/js/core/components/functional/sdui/types.js.map +1 -0
  172. package/dist/js/core/components/functional/shader/gl-runtime.js +603 -0
  173. package/dist/js/core/components/functional/shader/gl-runtime.js.map +1 -0
  174. package/dist/js/core/components/functional/shader/shader.js +1593 -0
  175. package/dist/js/core/components/functional/shader/shader.js.map +1 -0
  176. package/dist/js/core/components/functional/shader/shadertoy-prelude.js +48 -0
  177. package/dist/js/core/components/functional/shader/shadertoy-prelude.js.map +1 -0
  178. package/dist/js/core/components/functional/shader/types.js +179 -0
  179. package/dist/js/core/components/functional/shader/types.js.map +1 -0
  180. package/dist/js/core/components/functional/sonic-scope/sonic-scope.js +22 -0
  181. package/dist/js/core/components/functional/sonic-scope/sonic-scope.js.map +1 -0
  182. package/dist/js/core/components/functional/states/states.js +172 -0
  183. package/dist/js/core/components/functional/states/states.js.map +1 -0
  184. package/dist/js/core/components/functional/submit/submit.js +284 -0
  185. package/dist/js/core/components/functional/submit/submit.js.map +1 -0
  186. package/dist/js/core/components/functional/subscriber/subscriber.js +39 -0
  187. package/dist/js/core/components/functional/subscriber/subscriber.js.map +1 -0
  188. package/dist/js/core/components/functional/translation/translation.js +28 -0
  189. package/dist/js/core/components/functional/translation/translation.js.map +1 -0
  190. package/dist/js/core/components/functional/value/value.js +28 -0
  191. package/dist/js/core/components/functional/value/value.js.map +1 -0
  192. package/dist/js/core/components/functional/webgpu/canvas2d-fallback.js +117 -0
  193. package/dist/js/core/components/functional/webgpu/canvas2d-fallback.js.map +1 -0
  194. package/dist/js/core/components/functional/webgpu/form-bind.js +92 -0
  195. package/dist/js/core/components/functional/webgpu/form-bind.js.map +1 -0
  196. package/dist/js/core/components/functional/webgpu/gl-fallback.js +135 -0
  197. package/dist/js/core/components/functional/webgpu/gl-fallback.js.map +1 -0
  198. package/dist/js/core/components/functional/webgpu/gpu-runtime.js +305 -0
  199. package/dist/js/core/components/functional/webgpu/gpu-runtime.js.map +1 -0
  200. package/dist/js/core/components/functional/webgpu/helpers.js +44 -0
  201. package/dist/js/core/components/functional/webgpu/helpers.js.map +1 -0
  202. package/dist/js/core/components/functional/webgpu/out-frame.js +117 -0
  203. package/dist/js/core/components/functional/webgpu/out-frame.js.map +1 -0
  204. package/dist/js/core/components/functional/webgpu/particles-runtime.js +407 -0
  205. package/dist/js/core/components/functional/webgpu/particles-runtime.js.map +1 -0
  206. package/dist/js/core/components/functional/webgpu/pointer.js +56 -0
  207. package/dist/js/core/components/functional/webgpu/pointer.js.map +1 -0
  208. package/dist/js/core/components/functional/webgpu/types.js +24 -0
  209. package/dist/js/core/components/functional/webgpu/types.js.map +1 -0
  210. package/dist/js/core/components/functional/webgpu/webgpu.js +667 -0
  211. package/dist/js/core/components/functional/webgpu/webgpu.js.map +1 -0
  212. package/dist/js/core/components/functional/webgpu/wgsl-prelude.js +77 -0
  213. package/dist/js/core/components/functional/webgpu/wgsl-prelude.js.map +1 -0
  214. package/dist/js/core/components/ui/_css/scroll.js +27 -0
  215. package/dist/js/core/components/ui/_css/scroll.js.map +1 -0
  216. package/dist/js/core/components/ui/_css/shadow.js +22 -0
  217. package/dist/js/core/components/ui/_css/shadow.js.map +1 -0
  218. package/dist/js/core/components/ui/_css/size.js +36 -0
  219. package/dist/js/core/components/ui/_css/size.js.map +1 -0
  220. package/dist/js/core/components/ui/_css/type.js +92 -0
  221. package/dist/js/core/components/ui/_css/type.js.map +1 -0
  222. package/dist/js/core/components/ui/alert/alert.js +213 -0
  223. package/dist/js/core/components/ui/alert/alert.js.map +1 -0
  224. package/dist/js/core/components/ui/alert-messages/alert-messages.js +68 -0
  225. package/dist/js/core/components/ui/alert-messages/alert-messages.js.map +1 -0
  226. package/dist/js/core/components/ui/badge/badge.js +199 -0
  227. package/dist/js/core/components/ui/badge/badge.js.map +1 -0
  228. package/dist/js/core/components/ui/button/button.js +697 -0
  229. package/dist/js/core/components/ui/button/button.js.map +1 -0
  230. package/dist/js/core/components/ui/captcha/altchaStyles.js +226 -0
  231. package/dist/js/core/components/ui/captcha/altchaStyles.js.map +1 -0
  232. package/dist/js/core/components/ui/captcha/captcha.js +167 -0
  233. package/dist/js/core/components/ui/captcha/captcha.js.map +1 -0
  234. package/dist/js/core/components/ui/card/card-footer.js +26 -0
  235. package/dist/js/core/components/ui/card/card-footer.js.map +1 -0
  236. package/dist/js/core/components/ui/card/card-header-descripton.js +30 -0
  237. package/dist/js/core/components/ui/card/card-header-descripton.js.map +1 -0
  238. package/dist/js/core/components/ui/card/card-header.js +79 -0
  239. package/dist/js/core/components/ui/card/card-header.js.map +1 -0
  240. package/dist/js/core/components/ui/card/card-main.js +26 -0
  241. package/dist/js/core/components/ui/card/card-main.js.map +1 -0
  242. package/dist/js/core/components/ui/card/card.js +67 -0
  243. package/dist/js/core/components/ui/card/card.js.map +1 -0
  244. package/dist/js/core/components/ui/divider/divider.js +200 -0
  245. package/dist/js/core/components/ui/divider/divider.js.map +1 -0
  246. package/dist/js/core/components/ui/form/checkbox/checkbox.js +257 -0
  247. package/dist/js/core/components/ui/form/checkbox/checkbox.js.map +1 -0
  248. package/dist/js/core/components/ui/form/css/form-control.js +393 -0
  249. package/dist/js/core/components/ui/form/css/form-control.js.map +1 -0
  250. package/dist/js/core/components/ui/form/fieldset/fieldset.js +124 -0
  251. package/dist/js/core/components/ui/form/fieldset/fieldset.js.map +1 -0
  252. package/dist/js/core/components/ui/form/fieldset/legend-description.js +38 -0
  253. package/dist/js/core/components/ui/form/fieldset/legend-description.js.map +1 -0
  254. package/dist/js/core/components/ui/form/fieldset/legend.js +130 -0
  255. package/dist/js/core/components/ui/form/fieldset/legend.js.map +1 -0
  256. package/dist/js/core/components/ui/form/form-actions/form-actions.js +47 -0
  257. package/dist/js/core/components/ui/form/form-actions/form-actions.js.map +1 -0
  258. package/dist/js/core/components/ui/form/form-layout/form-layout.js +84 -0
  259. package/dist/js/core/components/ui/form/form-layout/form-layout.js.map +1 -0
  260. package/dist/js/core/components/ui/form/input/input.js +316 -0
  261. package/dist/js/core/components/ui/form/input/input.js.map +1 -0
  262. package/dist/js/core/components/ui/form/input/password-helper.js +134 -0
  263. package/dist/js/core/components/ui/form/input/password-helper.js.map +1 -0
  264. package/dist/js/core/components/ui/form/input/same-value-helper.js +85 -0
  265. package/dist/js/core/components/ui/form/input/same-value-helper.js.map +1 -0
  266. package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js +405 -0
  267. package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js.map +1 -0
  268. package/dist/js/core/components/ui/form/radio/radio.js +63 -0
  269. package/dist/js/core/components/ui/form/radio/radio.js.map +1 -0
  270. package/dist/js/core/components/ui/form/select/select.js +323 -0
  271. package/dist/js/core/components/ui/form/select/select.js.map +1 -0
  272. package/dist/js/core/components/ui/form/switch/switch.js +90 -0
  273. package/dist/js/core/components/ui/form/switch/switch.js.map +1 -0
  274. package/dist/js/core/components/ui/form/textarea/textarea.js +162 -0
  275. package/dist/js/core/components/ui/form/textarea/textarea.js.map +1 -0
  276. package/dist/js/core/components/ui/group/group.js +128 -0
  277. package/dist/js/core/components/ui/group/group.js.map +1 -0
  278. package/dist/js/core/components/ui/icon/icon.js +145 -0
  279. package/dist/js/core/components/ui/icon/icon.js.map +1 -0
  280. package/dist/js/core/components/ui/icon/icons.js +184 -0
  281. package/dist/js/core/components/ui/icon/icons.js.map +1 -0
  282. package/dist/js/core/components/ui/icon/icons.json +1 -0
  283. package/dist/js/core/components/ui/image/image.js +160 -0
  284. package/dist/js/core/components/ui/image/image.js.map +1 -0
  285. package/dist/js/core/components/ui/link/link.js +125 -0
  286. package/dist/js/core/components/ui/link/link.js.map +1 -0
  287. package/dist/js/core/components/ui/loader/loader.js +106 -0
  288. package/dist/js/core/components/ui/loader/loader.js.map +1 -0
  289. package/dist/js/core/components/ui/loader/styles/fixed.js +56 -0
  290. package/dist/js/core/components/ui/loader/styles/fixed.js.map +1 -0
  291. package/dist/js/core/components/ui/loader/styles/inline.js +70 -0
  292. package/dist/js/core/components/ui/loader/styles/inline.js.map +1 -0
  293. package/dist/js/core/components/ui/menu/menu-item.js +35 -0
  294. package/dist/js/core/components/ui/menu/menu-item.js.map +1 -0
  295. package/dist/js/core/components/ui/menu/menu.js +436 -0
  296. package/dist/js/core/components/ui/menu/menu.js.map +1 -0
  297. package/dist/js/core/components/ui/modal/modal-actions.js +44 -0
  298. package/dist/js/core/components/ui/modal/modal-actions.js.map +1 -0
  299. package/dist/js/core/components/ui/modal/modal-close.js +56 -0
  300. package/dist/js/core/components/ui/modal/modal-close.js.map +1 -0
  301. package/dist/js/core/components/ui/modal/modal-content.js +27 -0
  302. package/dist/js/core/components/ui/modal/modal-content.js.map +1 -0
  303. package/dist/js/core/components/ui/modal/modal-subtitle.js +34 -0
  304. package/dist/js/core/components/ui/modal/modal-subtitle.js.map +1 -0
  305. package/dist/js/core/components/ui/modal/modal-title.js +35 -0
  306. package/dist/js/core/components/ui/modal/modal-title.js.map +1 -0
  307. package/dist/js/core/components/ui/modal/modal-utils.js +32 -0
  308. package/dist/js/core/components/ui/modal/modal-utils.js.map +1 -0
  309. package/dist/js/core/components/ui/modal/modal.js +568 -0
  310. package/dist/js/core/components/ui/modal/modal.js.map +1 -0
  311. package/dist/js/core/components/ui/pop/pop.js +337 -0
  312. package/dist/js/core/components/ui/pop/pop.js.map +1 -0
  313. package/dist/js/core/components/ui/progress/progress.js +164 -0
  314. package/dist/js/core/components/ui/progress/progress.js.map +1 -0
  315. package/dist/js/core/components/ui/table/table-caption.js +29 -0
  316. package/dist/js/core/components/ui/table/table-caption.js.map +1 -0
  317. package/dist/js/core/components/ui/table/table-tbody.js +41 -0
  318. package/dist/js/core/components/ui/table/table-tbody.js.map +1 -0
  319. package/dist/js/core/components/ui/table/table-td.js +69 -0
  320. package/dist/js/core/components/ui/table/table-td.js.map +1 -0
  321. package/dist/js/core/components/ui/table/table-tfoot.js +28 -0
  322. package/dist/js/core/components/ui/table/table-tfoot.js.map +1 -0
  323. package/dist/js/core/components/ui/table/table-th.js +80 -0
  324. package/dist/js/core/components/ui/table/table-th.js.map +1 -0
  325. package/dist/js/core/components/ui/table/table-thead.js +26 -0
  326. package/dist/js/core/components/ui/table/table-thead.js.map +1 -0
  327. package/dist/js/core/components/ui/table/table-tr.js +67 -0
  328. package/dist/js/core/components/ui/table/table-tr.js.map +1 -0
  329. package/dist/js/core/components/ui/table/table.js +106 -0
  330. package/dist/js/core/components/ui/table/table.js.map +1 -0
  331. package/dist/js/core/components/ui/theme/theme-collection/core-variables.js +74 -0
  332. package/dist/js/core/components/ui/theme/theme-collection/core-variables.js.map +1 -0
  333. package/dist/js/core/components/ui/theme/theme-collection/dark.js +39 -0
  334. package/dist/js/core/components/ui/theme/theme-collection/dark.js.map +1 -0
  335. package/dist/js/core/components/ui/theme/theme-collection/light.js +32 -0
  336. package/dist/js/core/components/ui/theme/theme-collection/light.js.map +1 -0
  337. package/dist/js/core/components/ui/theme/theme.js +150 -0
  338. package/dist/js/core/components/ui/theme/theme.js.map +1 -0
  339. package/dist/js/core/components/ui/toast/message-subscriber.js +41 -0
  340. package/dist/js/core/components/ui/toast/message-subscriber.js.map +1 -0
  341. package/dist/js/core/components/ui/toast/toast-item.js +379 -0
  342. package/dist/js/core/components/ui/toast/toast-item.js.map +1 -0
  343. package/dist/js/core/components/ui/toast/toast.js +269 -0
  344. package/dist/js/core/components/ui/toast/toast.js.map +1 -0
  345. package/dist/js/core/components/ui/toast/types.js +2 -0
  346. package/dist/js/core/components/ui/toast/types.js.map +1 -0
  347. package/dist/js/core/components/ui/tooltip/tooltip.js +219 -0
  348. package/dist/js/core/components/ui/tooltip/tooltip.js.map +1 -0
  349. package/dist/js/core/components/ui/ui.js +41 -0
  350. package/dist/js/core/components/ui/ui.js.map +1 -0
  351. package/dist/js/core/core.js +14 -0
  352. package/dist/js/core/core.js.map +1 -0
  353. package/dist/js/core/decorators/Subscriber.js +10 -0
  354. package/dist/js/core/decorators/Subscriber.js.map +1 -0
  355. package/dist/js/core/decorators/api.js +806 -0
  356. package/dist/js/core/decorators/api.js.map +1 -0
  357. package/dist/js/core/decorators/lifecycle.js +67 -0
  358. package/dist/js/core/decorators/lifecycle.js.map +1 -0
  359. package/dist/js/core/decorators/subscriber/ancestorAttribute.js +27 -0
  360. package/dist/js/core/decorators/subscriber/ancestorAttribute.js.map +1 -0
  361. package/dist/js/core/decorators/subscriber/autoFill.js +26 -0
  362. package/dist/js/core/decorators/subscriber/autoFill.js.map +1 -0
  363. package/dist/js/core/decorators/subscriber/autoSubscribe.js +46 -0
  364. package/dist/js/core/decorators/subscriber/autoSubscribe.js.map +1 -0
  365. package/dist/js/core/decorators/subscriber/bind.js +150 -0
  366. package/dist/js/core/decorators/subscriber/bind.js.map +1 -0
  367. package/dist/js/core/decorators/subscriber/common.js +44 -0
  368. package/dist/js/core/decorators/subscriber/common.js.map +1 -0
  369. package/dist/js/core/decorators/subscriber/derive.js +60 -0
  370. package/dist/js/core/decorators/subscriber/derive.js.map +1 -0
  371. package/dist/js/core/decorators/subscriber/dynamicPath.js +75 -0
  372. package/dist/js/core/decorators/subscriber/dynamicPath.js.map +1 -0
  373. package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js +138 -0
  374. package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js.map +1 -0
  375. package/dist/js/core/decorators/subscriber/handle.js +22 -0
  376. package/dist/js/core/decorators/subscriber/handle.js.map +1 -0
  377. package/dist/js/core/decorators/subscriber/onAssign.js +199 -0
  378. package/dist/js/core/decorators/subscriber/onAssign.js.map +1 -0
  379. package/dist/js/core/decorators/subscriber/publish.js +108 -0
  380. package/dist/js/core/decorators/subscriber/publish.js.map +1 -0
  381. package/dist/js/core/decorators/subscriber/publisherPath.js +16 -0
  382. package/dist/js/core/decorators/subscriber/publisherPath.js.map +1 -0
  383. package/dist/js/core/decorators/subscriber/subscribe.js +20 -0
  384. package/dist/js/core/decorators/subscriber/subscribe.js.map +1 -0
  385. package/dist/js/core/directives/DataProvider.js +127 -0
  386. package/dist/js/core/directives/DataProvider.js.map +1 -0
  387. package/dist/js/core/directives/Wording.js +221 -0
  388. package/dist/js/core/directives/Wording.js.map +1 -0
  389. package/dist/js/core/mixins/Fetcher.js +325 -0
  390. package/dist/js/core/mixins/Fetcher.js.map +1 -0
  391. package/dist/js/core/mixins/FormCheckable.js +313 -0
  392. package/dist/js/core/mixins/FormCheckable.js.map +1 -0
  393. package/dist/js/core/mixins/FormElement.js +304 -0
  394. package/dist/js/core/mixins/FormElement.js.map +1 -0
  395. package/dist/js/core/mixins/FormInput.js +82 -0
  396. package/dist/js/core/mixins/FormInput.js.map +1 -0
  397. package/dist/js/core/mixins/Subscriber.js +354 -0
  398. package/dist/js/core/mixins/Subscriber.js.map +1 -0
  399. package/dist/js/core/mixins/TemplatesContainer.js +70 -0
  400. package/dist/js/core/mixins/TemplatesContainer.js.map +1 -0
  401. package/dist/js/core/mixins/mixins.js +7 -0
  402. package/dist/js/core/mixins/mixins.js.map +1 -0
  403. package/dist/js/core/utils/AncestorAttributeObserver.js +140 -0
  404. package/dist/js/core/utils/AncestorAttributeObserver.js.map +1 -0
  405. package/dist/js/core/utils/Arrays.js +141 -0
  406. package/dist/js/core/utils/Arrays.js.map +1 -0
  407. package/dist/js/core/utils/DataBindObserver.js +265 -0
  408. package/dist/js/core/utils/DataBindObserver.js.map +1 -0
  409. package/dist/js/core/utils/Electron.js +14 -0
  410. package/dist/js/core/utils/Electron.js.map +1 -0
  411. package/dist/js/core/utils/Format.js +43 -0
  412. package/dist/js/core/utils/Format.js.map +1 -0
  413. package/dist/js/core/utils/HTML.js +307 -0
  414. package/dist/js/core/utils/HTML.js.map +1 -0
  415. package/dist/js/core/utils/LocationHandler.js +143 -0
  416. package/dist/js/core/utils/LocationHandler.js.map +1 -0
  417. package/dist/js/core/utils/Objects.js +111 -0
  418. package/dist/js/core/utils/Objects.js.map +1 -0
  419. package/dist/js/core/utils/PublisherProxy.js +970 -0
  420. package/dist/js/core/utils/PublisherProxy.js.map +1 -0
  421. package/dist/js/core/utils/SafariScrollGuard.js +384 -0
  422. package/dist/js/core/utils/SafariScrollGuard.js.map +1 -0
  423. package/dist/js/core/utils/Utils.js +19 -0
  424. package/dist/js/core/utils/Utils.js.map +1 -0
  425. package/dist/js/core/utils/aesCrypto.js +98 -0
  426. package/dist/js/core/utils/aesCrypto.js.map +1 -0
  427. package/dist/js/core/utils/api.js +595 -0
  428. package/dist/js/core/utils/api.js.map +1 -0
  429. package/dist/js/core/utils/dataProviderKey.js +64 -0
  430. package/dist/js/core/utils/dataProviderKey.js.map +1 -0
  431. package/dist/js/core/utils/derive.js +246 -0
  432. package/dist/js/core/utils/derive.js.map +1 -0
  433. package/dist/js/core/utils/endpoint.js +74 -0
  434. package/dist/js/core/utils/endpoint.js.map +1 -0
  435. package/dist/js/core/utils/jsonataHelpers.js +84 -0
  436. package/dist/js/core/utils/jsonataHelpers.js.map +1 -0
  437. package/dist/js/core/utils/jsonataRuntime.js +75 -0
  438. package/dist/js/core/utils/jsonataRuntime.js.map +1 -0
  439. package/dist/js/core/utils/mediaRef.js +120 -0
  440. package/dist/js/core/utils/mediaRef.js.map +1 -0
  441. package/dist/js/core/utils/route.js +149 -0
  442. package/dist/js/core/utils/route.js.map +1 -0
  443. package/dist/js/core/utils/similarity.js +44 -0
  444. package/dist/js/core/utils/similarity.js.map +1 -0
  445. package/dist/js/core/utils/url-pattern.js +3 -0
  446. package/dist/js/core/utils/url-pattern.js.map +1 -0
  447. package/dist/js/dataprovider.js +2 -0
  448. package/dist/js/dataprovider.js.map +1 -0
  449. package/dist/js/decorators.js +43 -0
  450. package/dist/js/decorators.js.map +1 -0
  451. package/dist/js/directives.js +30 -0
  452. package/dist/js/directives.js.map +1 -0
  453. package/dist/js/index.js +8 -0
  454. package/dist/js/index.js.map +1 -0
  455. package/dist/js/mixins.js +23 -0
  456. package/dist/js/mixins.js.map +1 -0
  457. package/dist/js/test-utils/TestUtils.js +10 -0
  458. package/dist/js/test-utils/TestUtils.js.map +1 -0
  459. package/dist/js/utils.js +46 -0
  460. package/dist/js/utils.js.map +1 -0
  461. package/dist/types/addons/3d.d.ts +6 -0
  462. package/dist/types/addons/3d.d.ts.map +1 -0
  463. package/dist/types/addons/hugging-face-infer.d.ts +8 -0
  464. package/dist/types/addons/hugging-face-infer.d.ts.map +1 -0
  465. package/dist/types/addons/shader.d.ts +6 -0
  466. package/dist/types/addons/shader.d.ts.map +1 -0
  467. package/dist/types/addons/webgpu.d.ts +7 -0
  468. package/dist/types/addons/webgpu.d.ts.map +1 -0
  469. package/dist/types/components.d.ts +5 -0
  470. package/dist/types/components.d.ts.map +1 -0
  471. package/dist/types/concorde-loaded.d.ts +2 -0
  472. package/dist/types/concorde-loaded.d.ts.map +1 -0
  473. package/dist/types/core/_types/endpoint.d.ts +5 -0
  474. package/dist/types/core/_types/endpoint.d.ts.map +1 -0
  475. package/dist/types/core/_types/key.d.ts +2 -0
  476. package/dist/types/core/_types/key.d.ts.map +1 -0
  477. package/dist/types/core/_types/types.d.ts +28 -0
  478. package/dist/types/core/_types/types.d.ts.map +1 -0
  479. package/dist/types/core/components/functional/3d/3d.d.ts +66 -0
  480. package/dist/types/core/components/functional/3d/3d.d.ts.map +1 -0
  481. package/dist/types/core/components/functional/3d/asset.d.ts +12 -0
  482. package/dist/types/core/components/functional/3d/asset.d.ts.map +1 -0
  483. package/dist/types/core/components/functional/3d/boot.d.ts +23 -0
  484. package/dist/types/core/components/functional/3d/boot.d.ts.map +1 -0
  485. package/dist/types/core/components/functional/3d/constants.d.ts +43 -0
  486. package/dist/types/core/components/functional/3d/constants.d.ts.map +1 -0
  487. package/dist/types/core/components/functional/3d/demo-content.d.ts +10 -0
  488. package/dist/types/core/components/functional/3d/demo-content.d.ts.map +1 -0
  489. package/dist/types/core/components/functional/3d/ensure.d.ts +36 -0
  490. package/dist/types/core/components/functional/3d/ensure.d.ts.map +1 -0
  491. package/dist/types/core/components/functional/3d/form-bind.d.ts +20 -0
  492. package/dist/types/core/components/functional/3d/form-bind.d.ts.map +1 -0
  493. package/dist/types/core/components/functional/3d/form-fields.d.ts +14 -0
  494. package/dist/types/core/components/functional/3d/form-fields.d.ts.map +1 -0
  495. package/dist/types/core/components/functional/3d/form-params.d.ts +37 -0
  496. package/dist/types/core/components/functional/3d/form-params.d.ts.map +1 -0
  497. package/dist/types/core/components/functional/3d/frame-capture.d.ts +33 -0
  498. package/dist/types/core/components/functional/3d/frame-capture.d.ts.map +1 -0
  499. package/dist/types/core/components/functional/3d/gl.d.ts +4 -0
  500. package/dist/types/core/components/functional/3d/gl.d.ts.map +1 -0
  501. package/dist/types/core/components/functional/3d/life.d.ts +41 -0
  502. package/dist/types/core/components/functional/3d/life.d.ts.map +1 -0
  503. package/dist/types/core/components/functional/3d/load.d.ts +36 -0
  504. package/dist/types/core/components/functional/3d/load.d.ts.map +1 -0
  505. package/dist/types/core/components/functional/3d/ops.d.ts +48 -0
  506. package/dist/types/core/components/functional/3d/ops.d.ts.map +1 -0
  507. package/dist/types/core/components/functional/3d/opts.d.ts +16 -0
  508. package/dist/types/core/components/functional/3d/opts.d.ts.map +1 -0
  509. package/dist/types/core/components/functional/3d/orbit.d.ts +55 -0
  510. package/dist/types/core/components/functional/3d/orbit.d.ts.map +1 -0
  511. package/dist/types/core/components/functional/3d/out-publish.d.ts +47 -0
  512. package/dist/types/core/components/functional/3d/out-publish.d.ts.map +1 -0
  513. package/dist/types/core/components/functional/3d/parse.d.ts +23 -0
  514. package/dist/types/core/components/functional/3d/parse.d.ts.map +1 -0
  515. package/dist/types/core/components/functional/3d/pick.d.ts +32 -0
  516. package/dist/types/core/components/functional/3d/pick.d.ts.map +1 -0
  517. package/dist/types/core/components/functional/3d/playback.d.ts +26 -0
  518. package/dist/types/core/components/functional/3d/playback.d.ts.map +1 -0
  519. package/dist/types/core/components/functional/3d/pointer.d.ts +27 -0
  520. package/dist/types/core/components/functional/3d/pointer.d.ts.map +1 -0
  521. package/dist/types/core/components/functional/3d/props.d.ts +30 -0
  522. package/dist/types/core/components/functional/3d/props.d.ts.map +1 -0
  523. package/dist/types/core/components/functional/3d/publisher-listen.d.ts +8 -0
  524. package/dist/types/core/components/functional/3d/publisher-listen.d.ts.map +1 -0
  525. package/dist/types/core/components/functional/3d/reload.d.ts +35 -0
  526. package/dist/types/core/components/functional/3d/reload.d.ts.map +1 -0
  527. package/dist/types/core/components/functional/3d/runtime.d.ts +75 -0
  528. package/dist/types/core/components/functional/3d/runtime.d.ts.map +1 -0
  529. package/dist/types/core/components/functional/3d/scene-runtime.d.ts +6 -0
  530. package/dist/types/core/components/functional/3d/scene-runtime.d.ts.map +1 -0
  531. package/dist/types/core/components/functional/3d/snapshot.d.ts +29 -0
  532. package/dist/types/core/components/functional/3d/snapshot.d.ts.map +1 -0
  533. package/dist/types/core/components/functional/3d/styles.d.ts +2 -0
  534. package/dist/types/core/components/functional/3d/styles.d.ts.map +1 -0
  535. package/dist/types/core/components/functional/3d/tune.d.ts +32 -0
  536. package/dist/types/core/components/functional/3d/tune.d.ts.map +1 -0
  537. package/dist/types/core/components/functional/3d/types.d.ts +133 -0
  538. package/dist/types/core/components/functional/3d/types.d.ts.map +1 -0
  539. package/dist/types/core/components/functional/3d/updated.d.ts +7 -0
  540. package/dist/types/core/components/functional/3d/updated.d.ts.map +1 -0
  541. package/dist/types/core/components/functional/3d/view.d.ts +25 -0
  542. package/dist/types/core/components/functional/3d/view.d.ts.map +1 -0
  543. package/dist/types/core/components/functional/3d/wire.d.ts +32 -0
  544. package/dist/types/core/components/functional/3d/wire.d.ts.map +1 -0
  545. package/dist/types/core/components/functional/date/date.d.ts +52 -0
  546. package/dist/types/core/components/functional/date/date.d.ts.map +1 -0
  547. package/dist/types/core/components/functional/example/example.d.ts +15 -0
  548. package/dist/types/core/components/functional/example/example.d.ts.map +1 -0
  549. package/dist/types/core/components/functional/fetch/fetch.d.ts +102 -0
  550. package/dist/types/core/components/functional/fetch/fetch.d.ts.map +1 -0
  551. package/dist/types/core/components/functional/functional.d.ts +18 -0
  552. package/dist/types/core/components/functional/functional.d.ts.map +1 -0
  553. package/dist/types/core/components/functional/if/if.d.ts +13 -0
  554. package/dist/types/core/components/functional/if/if.d.ts.map +1 -0
  555. package/dist/types/core/components/functional/infer/hugging-face/hf-cache.d.ts +21 -0
  556. package/dist/types/core/components/functional/infer/hugging-face/hf-cache.d.ts.map +1 -0
  557. package/dist/types/core/components/functional/infer/hugging-face/hf-config.d.ts +133 -0
  558. package/dist/types/core/components/functional/infer/hugging-face/hf-config.d.ts.map +1 -0
  559. package/dist/types/core/components/functional/infer/hugging-face/hf-controller.d.ts +79 -0
  560. package/dist/types/core/components/functional/infer/hugging-face/hf-controller.d.ts.map +1 -0
  561. package/dist/types/core/components/functional/infer/hugging-face/hf-engine.d.ts +43 -0
  562. package/dist/types/core/components/functional/infer/hugging-face/hf-engine.d.ts.map +1 -0
  563. package/dist/types/core/components/functional/infer/hugging-face/hf-input.d.ts +47 -0
  564. package/dist/types/core/components/functional/infer/hugging-face/hf-input.d.ts.map +1 -0
  565. package/dist/types/core/components/functional/infer/hugging-face/hf-protocol.d.ts +95 -0
  566. package/dist/types/core/components/functional/infer/hugging-face/hf-protocol.d.ts.map +1 -0
  567. package/dist/types/core/components/functional/infer/hugging-face/hf-registry.d.ts +77 -0
  568. package/dist/types/core/components/functional/infer/hugging-face/hf-registry.d.ts.map +1 -0
  569. package/dist/types/core/components/functional/infer/hugging-face/hf-schema.d.ts +1251 -0
  570. package/dist/types/core/components/functional/infer/hugging-face/hf-schema.d.ts.map +1 -0
  571. package/dist/types/core/components/functional/infer/hugging-face/hf-worker-runtime.d.ts +56 -0
  572. package/dist/types/core/components/functional/infer/hugging-face/hf-worker-runtime.d.ts.map +1 -0
  573. package/dist/types/core/components/functional/infer/hugging-face/hugging-face-infer.d.ts +67 -0
  574. package/dist/types/core/components/functional/infer/hugging-face/hugging-face-infer.d.ts.map +1 -0
  575. package/dist/types/core/components/functional/infer/hugging-face/hugging-face.d.ts +116 -0
  576. package/dist/types/core/components/functional/infer/hugging-face/hugging-face.d.ts.map +1 -0
  577. package/dist/types/core/components/functional/infer/hugging-face/types.d.ts +167 -0
  578. package/dist/types/core/components/functional/infer/hugging-face/types.d.ts.map +1 -0
  579. package/dist/types/core/components/functional/jsonata/jsonata.d.ts +29 -0
  580. package/dist/types/core/components/functional/jsonata/jsonata.d.ts.map +1 -0
  581. package/dist/types/core/components/functional/list/list.d.ts +149 -0
  582. package/dist/types/core/components/functional/list/list.d.ts.map +1 -0
  583. package/dist/types/core/components/functional/mix/mix.d.ts +23 -0
  584. package/dist/types/core/components/functional/mix/mix.d.ts.map +1 -0
  585. package/dist/types/core/components/functional/queue/queue.d.ts +93 -0
  586. package/dist/types/core/components/functional/queue/queue.d.ts.map +1 -0
  587. package/dist/types/core/components/functional/router/redirect.d.ts +19 -0
  588. package/dist/types/core/components/functional/router/redirect.d.ts.map +1 -0
  589. package/dist/types/core/components/functional/router/router.d.ts +46 -0
  590. package/dist/types/core/components/functional/router/router.d.ts.map +1 -0
  591. package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +59 -0
  592. package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts.map +1 -0
  593. package/dist/types/core/components/functional/sdui/sdui-utils.d.ts +6 -0
  594. package/dist/types/core/components/functional/sdui/sdui-utils.d.ts.map +1 -0
  595. package/dist/types/core/components/functional/sdui/sdui.d.ts +148 -0
  596. package/dist/types/core/components/functional/sdui/sdui.d.ts.map +1 -0
  597. package/dist/types/core/components/functional/sdui/types.d.ts +38 -0
  598. package/dist/types/core/components/functional/sdui/types.d.ts.map +1 -0
  599. package/dist/types/core/components/functional/shader/gl-runtime.d.ts +71 -0
  600. package/dist/types/core/components/functional/shader/gl-runtime.d.ts.map +1 -0
  601. package/dist/types/core/components/functional/shader/shader.d.ts +274 -0
  602. package/dist/types/core/components/functional/shader/shader.d.ts.map +1 -0
  603. package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts +6 -0
  604. package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts.map +1 -0
  605. package/dist/types/core/components/functional/shader/types.d.ts +256 -0
  606. package/dist/types/core/components/functional/shader/types.d.ts.map +1 -0
  607. package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts +6 -0
  608. package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts.map +1 -0
  609. package/dist/types/core/components/functional/states/states.d.ts +42 -0
  610. package/dist/types/core/components/functional/states/states.d.ts.map +1 -0
  611. package/dist/types/core/components/functional/submit/submit.d.ts +37 -0
  612. package/dist/types/core/components/functional/submit/submit.d.ts.map +1 -0
  613. package/dist/types/core/components/functional/subscriber/subscriber.d.ts +13 -0
  614. package/dist/types/core/components/functional/subscriber/subscriber.d.ts.map +1 -0
  615. package/dist/types/core/components/functional/translation/translation.d.ts +7 -0
  616. package/dist/types/core/components/functional/translation/translation.d.ts.map +1 -0
  617. package/dist/types/core/components/functional/value/value.d.ts +8 -0
  618. package/dist/types/core/components/functional/value/value.d.ts.map +1 -0
  619. package/dist/types/core/components/functional/webgpu/canvas2d-fallback.d.ts +29 -0
  620. package/dist/types/core/components/functional/webgpu/canvas2d-fallback.d.ts.map +1 -0
  621. package/dist/types/core/components/functional/webgpu/form-bind.d.ts +43 -0
  622. package/dist/types/core/components/functional/webgpu/form-bind.d.ts.map +1 -0
  623. package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts +31 -0
  624. package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts.map +1 -0
  625. package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts +53 -0
  626. package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts.map +1 -0
  627. package/dist/types/core/components/functional/webgpu/helpers.d.ts +9 -0
  628. package/dist/types/core/components/functional/webgpu/helpers.d.ts.map +1 -0
  629. package/dist/types/core/components/functional/webgpu/out-frame.d.ts +29 -0
  630. package/dist/types/core/components/functional/webgpu/out-frame.d.ts.map +1 -0
  631. package/dist/types/core/components/functional/webgpu/particles-runtime.d.ts +37 -0
  632. package/dist/types/core/components/functional/webgpu/particles-runtime.d.ts.map +1 -0
  633. package/dist/types/core/components/functional/webgpu/pointer.d.ts +41 -0
  634. package/dist/types/core/components/functional/webgpu/pointer.d.ts.map +1 -0
  635. package/dist/types/core/components/functional/webgpu/types.d.ts +75 -0
  636. package/dist/types/core/components/functional/webgpu/types.d.ts.map +1 -0
  637. package/dist/types/core/components/functional/webgpu/webgpu.d.ts +123 -0
  638. package/dist/types/core/components/functional/webgpu/webgpu.d.ts.map +1 -0
  639. package/dist/types/core/components/functional/webgpu/wgsl-prelude.d.ts +8 -0
  640. package/dist/types/core/components/functional/webgpu/wgsl-prelude.d.ts.map +1 -0
  641. package/dist/types/core/components/ui/_css/scroll.d.ts +2 -0
  642. package/dist/types/core/components/ui/_css/scroll.d.ts.map +1 -0
  643. package/dist/types/core/components/ui/_css/shadow.d.ts +3 -0
  644. package/dist/types/core/components/ui/_css/shadow.d.ts.map +1 -0
  645. package/dist/types/core/components/ui/_css/size.d.ts +3 -0
  646. package/dist/types/core/components/ui/_css/size.d.ts.map +1 -0
  647. package/dist/types/core/components/ui/_css/type.d.ts +3 -0
  648. package/dist/types/core/components/ui/_css/type.d.ts.map +1 -0
  649. package/dist/types/core/components/ui/alert/alert.d.ts +37 -0
  650. package/dist/types/core/components/ui/alert/alert.d.ts.map +1 -0
  651. package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts +15 -0
  652. package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts.map +1 -0
  653. package/dist/types/core/components/ui/badge/badge.d.ts +27 -0
  654. package/dist/types/core/components/ui/badge/badge.d.ts.map +1 -0
  655. package/dist/types/core/components/ui/button/button.d.ts +180 -0
  656. package/dist/types/core/components/ui/button/button.d.ts.map +1 -0
  657. package/dist/types/core/components/ui/captcha/altchaStyles.d.ts +2 -0
  658. package/dist/types/core/components/ui/captcha/altchaStyles.d.ts.map +1 -0
  659. package/dist/types/core/components/ui/captcha/captcha.d.ts +30 -0
  660. package/dist/types/core/components/ui/captcha/captcha.d.ts.map +1 -0
  661. package/dist/types/core/components/ui/card/card-footer.d.ts +6 -0
  662. package/dist/types/core/components/ui/card/card-footer.d.ts.map +1 -0
  663. package/dist/types/core/components/ui/card/card-header-descripton.d.ts +6 -0
  664. package/dist/types/core/components/ui/card/card-header-descripton.d.ts.map +1 -0
  665. package/dist/types/core/components/ui/card/card-header.d.ts +9 -0
  666. package/dist/types/core/components/ui/card/card-header.d.ts.map +1 -0
  667. package/dist/types/core/components/ui/card/card-main.d.ts +6 -0
  668. package/dist/types/core/components/ui/card/card-main.d.ts.map +1 -0
  669. package/dist/types/core/components/ui/card/card.d.ts +13 -0
  670. package/dist/types/core/components/ui/card/card.d.ts.map +1 -0
  671. package/dist/types/core/components/ui/divider/divider.d.ts +16 -0
  672. package/dist/types/core/components/ui/divider/divider.d.ts.map +1 -0
  673. package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts +176 -0
  674. package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts.map +1 -0
  675. package/dist/types/core/components/ui/form/css/form-control.d.ts +5 -0
  676. package/dist/types/core/components/ui/form/css/form-control.d.ts.map +1 -0
  677. package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts +24 -0
  678. package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts.map +1 -0
  679. package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts +6 -0
  680. package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts.map +1 -0
  681. package/dist/types/core/components/ui/form/fieldset/legend.d.ts +17 -0
  682. package/dist/types/core/components/ui/form/fieldset/legend.d.ts.map +1 -0
  683. package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts +8 -0
  684. package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts.map +1 -0
  685. package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts +13 -0
  686. package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts.map +1 -0
  687. package/dist/types/core/components/ui/form/input/input.d.ts +123 -0
  688. package/dist/types/core/components/ui/form/input/input.d.ts.map +1 -0
  689. package/dist/types/core/components/ui/form/input/password-helper.d.ts +26 -0
  690. package/dist/types/core/components/ui/form/input/password-helper.d.ts.map +1 -0
  691. package/dist/types/core/components/ui/form/input/same-value-helper.d.ts +17 -0
  692. package/dist/types/core/components/ui/form/input/same-value-helper.d.ts.map +1 -0
  693. package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +155 -0
  694. package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts.map +1 -0
  695. package/dist/types/core/components/ui/form/radio/radio.d.ts +15 -0
  696. package/dist/types/core/components/ui/form/radio/radio.d.ts.map +1 -0
  697. package/dist/types/core/components/ui/form/select/select.d.ts +59 -0
  698. package/dist/types/core/components/ui/form/select/select.d.ts.map +1 -0
  699. package/dist/types/core/components/ui/form/switch/switch.d.ts +6 -0
  700. package/dist/types/core/components/ui/form/switch/switch.d.ts.map +1 -0
  701. package/dist/types/core/components/ui/form/textarea/textarea.d.ts +94 -0
  702. package/dist/types/core/components/ui/form/textarea/textarea.d.ts.map +1 -0
  703. package/dist/types/core/components/ui/group/group.d.ts +17 -0
  704. package/dist/types/core/components/ui/group/group.d.ts.map +1 -0
  705. package/dist/types/core/components/ui/icon/icon.d.ts +30 -0
  706. package/dist/types/core/components/ui/icon/icon.d.ts.map +1 -0
  707. package/dist/types/core/components/ui/icon/icons.d.ts +13 -0
  708. package/dist/types/core/components/ui/icon/icons.d.ts.map +1 -0
  709. package/dist/types/core/components/ui/image/image.d.ts +16 -0
  710. package/dist/types/core/components/ui/image/image.d.ts.map +1 -0
  711. package/dist/types/core/components/ui/link/link.d.ts +30 -0
  712. package/dist/types/core/components/ui/link/link.d.ts.map +1 -0
  713. package/dist/types/core/components/ui/loader/loader.d.ts +24 -0
  714. package/dist/types/core/components/ui/loader/loader.d.ts.map +1 -0
  715. package/dist/types/core/components/ui/loader/styles/fixed.d.ts +2 -0
  716. package/dist/types/core/components/ui/loader/styles/fixed.d.ts.map +1 -0
  717. package/dist/types/core/components/ui/loader/styles/inline.d.ts +2 -0
  718. package/dist/types/core/components/ui/loader/styles/inline.d.ts.map +1 -0
  719. package/dist/types/core/components/ui/menu/menu-item.d.ts +6 -0
  720. package/dist/types/core/components/ui/menu/menu-item.d.ts.map +1 -0
  721. package/dist/types/core/components/ui/menu/menu.d.ts +52 -0
  722. package/dist/types/core/components/ui/menu/menu.d.ts.map +1 -0
  723. package/dist/types/core/components/ui/modal/modal-actions.d.ts +9 -0
  724. package/dist/types/core/components/ui/modal/modal-actions.d.ts.map +1 -0
  725. package/dist/types/core/components/ui/modal/modal-close.d.ts +11 -0
  726. package/dist/types/core/components/ui/modal/modal-close.d.ts.map +1 -0
  727. package/dist/types/core/components/ui/modal/modal-content.d.ts +6 -0
  728. package/dist/types/core/components/ui/modal/modal-content.d.ts.map +1 -0
  729. package/dist/types/core/components/ui/modal/modal-subtitle.d.ts +6 -0
  730. package/dist/types/core/components/ui/modal/modal-subtitle.d.ts.map +1 -0
  731. package/dist/types/core/components/ui/modal/modal-title.d.ts +6 -0
  732. package/dist/types/core/components/ui/modal/modal-title.d.ts.map +1 -0
  733. package/dist/types/core/components/ui/modal/modal-utils.d.ts +4 -0
  734. package/dist/types/core/components/ui/modal/modal-utils.d.ts.map +1 -0
  735. package/dist/types/core/components/ui/modal/modal.d.ts +79 -0
  736. package/dist/types/core/components/ui/modal/modal.d.ts.map +1 -0
  737. package/dist/types/core/components/ui/pop/pop.d.ts +42 -0
  738. package/dist/types/core/components/ui/pop/pop.d.ts.map +1 -0
  739. package/dist/types/core/components/ui/progress/progress.d.ts +12 -0
  740. package/dist/types/core/components/ui/progress/progress.d.ts.map +1 -0
  741. package/dist/types/core/components/ui/table/table-caption.d.ts +6 -0
  742. package/dist/types/core/components/ui/table/table-caption.d.ts.map +1 -0
  743. package/dist/types/core/components/ui/table/table-tbody.d.ts +6 -0
  744. package/dist/types/core/components/ui/table/table-tbody.d.ts.map +1 -0
  745. package/dist/types/core/components/ui/table/table-td.d.ts +13 -0
  746. package/dist/types/core/components/ui/table/table-td.d.ts.map +1 -0
  747. package/dist/types/core/components/ui/table/table-tfoot.d.ts +6 -0
  748. package/dist/types/core/components/ui/table/table-tfoot.d.ts.map +1 -0
  749. package/dist/types/core/components/ui/table/table-th.d.ts +12 -0
  750. package/dist/types/core/components/ui/table/table-th.d.ts.map +1 -0
  751. package/dist/types/core/components/ui/table/table-thead.d.ts +6 -0
  752. package/dist/types/core/components/ui/table/table-thead.d.ts.map +1 -0
  753. package/dist/types/core/components/ui/table/table-tr.d.ts +14 -0
  754. package/dist/types/core/components/ui/table/table-tr.d.ts.map +1 -0
  755. package/dist/types/core/components/ui/table/table.d.ts +18 -0
  756. package/dist/types/core/components/ui/table/table.d.ts.map +1 -0
  757. package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts +2 -0
  758. package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts.map +1 -0
  759. package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts +2 -0
  760. package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts.map +1 -0
  761. package/dist/types/core/components/ui/theme/theme-collection/light.d.ts +2 -0
  762. package/dist/types/core/components/ui/theme/theme-collection/light.d.ts.map +1 -0
  763. package/dist/types/core/components/ui/theme/theme.d.ts +20 -0
  764. package/dist/types/core/components/ui/theme/theme.d.ts.map +1 -0
  765. package/dist/types/core/components/ui/toast/message-subscriber.d.ts +19 -0
  766. package/dist/types/core/components/ui/toast/message-subscriber.d.ts.map +1 -0
  767. package/dist/types/core/components/ui/toast/toast-item.d.ts +41 -0
  768. package/dist/types/core/components/ui/toast/toast-item.d.ts.map +1 -0
  769. package/dist/types/core/components/ui/toast/toast.d.ts +28 -0
  770. package/dist/types/core/components/ui/toast/toast.d.ts.map +1 -0
  771. package/dist/types/core/components/ui/toast/types.d.ts +12 -0
  772. package/dist/types/core/components/ui/toast/types.d.ts.map +1 -0
  773. package/dist/types/core/components/ui/tooltip/tooltip.d.ts +21 -0
  774. package/dist/types/core/components/ui/tooltip/tooltip.d.ts.map +1 -0
  775. package/dist/types/core/components/ui/ui.d.ts +35 -0
  776. package/dist/types/core/components/ui/ui.d.ts.map +1 -0
  777. package/dist/types/core/core.d.ts +5 -0
  778. package/dist/types/core/core.d.ts.map +1 -0
  779. package/dist/types/core/decorators/Subscriber.d.ts +13 -0
  780. package/dist/types/core/decorators/Subscriber.d.ts.map +1 -0
  781. package/dist/types/core/decorators/api.d.ts +155 -0
  782. package/dist/types/core/decorators/api.d.ts.map +1 -0
  783. package/dist/types/core/decorators/lifecycle.d.ts +19 -0
  784. package/dist/types/core/decorators/lifecycle.d.ts.map +1 -0
  785. package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts +11 -0
  786. package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts.map +1 -0
  787. package/dist/types/core/decorators/subscriber/autoFill.d.ts +2 -0
  788. package/dist/types/core/decorators/subscriber/autoFill.d.ts.map +1 -0
  789. package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts +2 -0
  790. package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts.map +1 -0
  791. package/dist/types/core/decorators/subscriber/bind.d.ts +28 -0
  792. package/dist/types/core/decorators/subscriber/bind.d.ts.map +1 -0
  793. package/dist/types/core/decorators/subscriber/common.d.ts +14 -0
  794. package/dist/types/core/decorators/subscriber/common.d.ts.map +1 -0
  795. package/dist/types/core/decorators/subscriber/derive.d.ts +30 -0
  796. package/dist/types/core/decorators/subscriber/derive.d.ts.map +1 -0
  797. package/dist/types/core/decorators/subscriber/dynamicPath.d.ts +23 -0
  798. package/dist/types/core/decorators/subscriber/dynamicPath.d.ts.map +1 -0
  799. package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts +42 -0
  800. package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts.map +1 -0
  801. package/dist/types/core/decorators/subscriber/handle.d.ts +74 -0
  802. package/dist/types/core/decorators/subscriber/handle.d.ts.map +1 -0
  803. package/dist/types/core/decorators/subscriber/onAssign.d.ts +53 -0
  804. package/dist/types/core/decorators/subscriber/onAssign.d.ts.map +1 -0
  805. package/dist/types/core/decorators/subscriber/publish.d.ts +23 -0
  806. package/dist/types/core/decorators/subscriber/publish.d.ts.map +1 -0
  807. package/dist/types/core/decorators/subscriber/publisherPath.d.ts +3 -0
  808. package/dist/types/core/decorators/subscriber/publisherPath.d.ts.map +1 -0
  809. package/dist/types/core/decorators/subscriber/subscribe.d.ts +20 -0
  810. package/dist/types/core/decorators/subscriber/subscribe.d.ts.map +1 -0
  811. package/dist/types/core/directives/DataProvider.d.ts +45 -0
  812. package/dist/types/core/directives/DataProvider.d.ts.map +1 -0
  813. package/dist/types/core/directives/Wording.d.ts +44 -0
  814. package/dist/types/core/directives/Wording.d.ts.map +1 -0
  815. package/dist/types/core/mixins/Fetcher.d.ts +108 -0
  816. package/dist/types/core/mixins/Fetcher.d.ts.map +1 -0
  817. package/dist/types/core/mixins/FormCheckable.d.ts +95 -0
  818. package/dist/types/core/mixins/FormCheckable.d.ts.map +1 -0
  819. package/dist/types/core/mixins/FormElement.d.ts +37 -0
  820. package/dist/types/core/mixins/FormElement.d.ts.map +1 -0
  821. package/dist/types/core/mixins/FormInput.d.ts +79 -0
  822. package/dist/types/core/mixins/FormInput.d.ts.map +1 -0
  823. package/dist/types/core/mixins/Subscriber.d.ts +38 -0
  824. package/dist/types/core/mixins/Subscriber.d.ts.map +1 -0
  825. package/dist/types/core/mixins/TemplatesContainer.d.ts +14 -0
  826. package/dist/types/core/mixins/TemplatesContainer.d.ts.map +1 -0
  827. package/dist/types/core/mixins/mixins.d.ts +7 -0
  828. package/dist/types/core/mixins/mixins.d.ts.map +1 -0
  829. package/dist/types/core/utils/AncestorAttributeObserver.d.ts +38 -0
  830. package/dist/types/core/utils/AncestorAttributeObserver.d.ts.map +1 -0
  831. package/dist/types/core/utils/Arrays.d.ts +98 -0
  832. package/dist/types/core/utils/Arrays.d.ts.map +1 -0
  833. package/dist/types/core/utils/DataBindObserver.d.ts +84 -0
  834. package/dist/types/core/utils/DataBindObserver.d.ts.map +1 -0
  835. package/dist/types/core/utils/Electron.d.ts +8 -0
  836. package/dist/types/core/utils/Electron.d.ts.map +1 -0
  837. package/dist/types/core/utils/Format.d.ts +13 -0
  838. package/dist/types/core/utils/Format.d.ts.map +1 -0
  839. package/dist/types/core/utils/HTML.d.ts +59 -0
  840. package/dist/types/core/utils/HTML.d.ts.map +1 -0
  841. package/dist/types/core/utils/LocationHandler.d.ts +48 -0
  842. package/dist/types/core/utils/LocationHandler.d.ts.map +1 -0
  843. package/dist/types/core/utils/Objects.d.ts +31 -0
  844. package/dist/types/core/utils/Objects.d.ts.map +1 -0
  845. package/dist/types/core/utils/PublisherProxy.d.ts +230 -0
  846. package/dist/types/core/utils/PublisherProxy.d.ts.map +1 -0
  847. package/dist/types/core/utils/SafariScrollGuard.d.ts +36 -0
  848. package/dist/types/core/utils/SafariScrollGuard.d.ts.map +1 -0
  849. package/dist/types/core/utils/Utils.d.ts +6 -0
  850. package/dist/types/core/utils/Utils.d.ts.map +1 -0
  851. package/dist/types/core/utils/aesCrypto.d.ts +53 -0
  852. package/dist/types/core/utils/aesCrypto.d.ts.map +1 -0
  853. package/dist/types/core/utils/api.d.ts +173 -0
  854. package/dist/types/core/utils/api.d.ts.map +1 -0
  855. package/dist/types/core/utils/dataProviderKey.d.ts +56 -0
  856. package/dist/types/core/utils/dataProviderKey.d.ts.map +1 -0
  857. package/dist/types/core/utils/derive.d.ts +40 -0
  858. package/dist/types/core/utils/derive.d.ts.map +1 -0
  859. package/dist/types/core/utils/endpoint.d.ts +37 -0
  860. package/dist/types/core/utils/endpoint.d.ts.map +1 -0
  861. package/dist/types/core/utils/jsonataHelpers.d.ts +15 -0
  862. package/dist/types/core/utils/jsonataHelpers.d.ts.map +1 -0
  863. package/dist/types/core/utils/jsonataRuntime.d.ts +13 -0
  864. package/dist/types/core/utils/jsonataRuntime.d.ts.map +1 -0
  865. package/dist/types/core/utils/mediaRef.d.ts +34 -0
  866. package/dist/types/core/utils/mediaRef.d.ts.map +1 -0
  867. package/dist/types/core/utils/route.d.ts +41 -0
  868. package/dist/types/core/utils/route.d.ts.map +1 -0
  869. package/dist/types/core/utils/similarity.d.ts +15 -0
  870. package/dist/types/core/utils/similarity.d.ts.map +1 -0
  871. package/dist/types/core/utils/url-pattern.d.ts +3 -0
  872. package/dist/types/core/utils/url-pattern.d.ts.map +1 -0
  873. package/dist/types/dataprovider.d.ts +2 -0
  874. package/dist/types/dataprovider.d.ts.map +1 -0
  875. package/dist/types/decorators.d.ts +30 -0
  876. package/dist/types/decorators.d.ts.map +1 -0
  877. package/dist/types/directives.d.ts +21 -0
  878. package/dist/types/directives.d.ts.map +1 -0
  879. package/dist/types/index.d.ts +8 -0
  880. package/dist/types/index.d.ts.map +1 -0
  881. package/dist/types/mixins.d.ts +204 -0
  882. package/dist/types/mixins.d.ts.map +1 -0
  883. package/dist/types/test-utils/TestUtils.d.ts +4 -0
  884. package/dist/types/test-utils/TestUtils.d.ts.map +1 -0
  885. package/dist/types/utils.d.ts +20 -0
  886. package/dist/types/utils.d.ts.map +1 -0
  887. package/package.json +1780 -382
  888. package/public/docs/hf-samples/beach.jpg +0 -0
  889. package/public/docs/hf-samples/cats.jpg +0 -0
  890. package/public/docs/hf-samples/corgi.jpg +0 -0
  891. package/public/docs/hf-samples/portrait.jpg +0 -0
  892. package/public/docs/hf-samples/scene.jpg +0 -0
  893. package/public/docs/hf-samples/singer.jpg +0 -0
  894. package/public/docs/shader-samples/color.jpg +0 -0
  895. package/public/docs/shader-samples/depth.png +0 -0
  896. package/public/docs/shader-samples/impact.jpg +0 -0
  897. package/public/docs/shader-samples/video.webm +0 -0
  898. package/scripts/build-addons.mjs +26 -0
  899. package/scripts/gen-shader-depth.mjs +85 -0
  900. package/scripts/gen-shader-harris-video.mjs +17 -0
  901. package/scripts/gen-shader-harris-video.py +84 -0
  902. package/scripts/hf-vendor.mjs +154 -0
  903. package/scripts/post-build.mjs +116 -10
  904. package/scripts/pre-build.mjs +119 -36
  905. package/scripts/pre-publish.mjs +76 -54
  906. package/src/addons/3d.ts +5 -0
  907. package/src/addons/hugging-face-infer.ts +11 -0
  908. package/src/addons/shader.ts +5 -0
  909. package/src/addons/webgpu.ts +15 -0
  910. package/src/core/components/functional/3d/3d.md +118 -0
  911. package/src/core/components/functional/3d/3d.spec.ts +171 -0
  912. package/src/core/components/functional/3d/3d.ts +175 -0
  913. package/src/core/components/functional/3d/asset.ts +22 -0
  914. package/src/core/components/functional/3d/boot.ts +77 -0
  915. package/src/core/components/functional/3d/constants.ts +98 -0
  916. package/src/core/components/functional/3d/demo-content.ts +45 -0
  917. package/src/core/components/functional/3d/ensure.ts +99 -0
  918. package/src/core/components/functional/3d/form-bind.ts +40 -0
  919. package/src/core/components/functional/3d/form-fields.ts +80 -0
  920. package/src/core/components/functional/3d/form-params.ts +97 -0
  921. package/src/core/components/functional/3d/frame-capture.spec.ts +72 -0
  922. package/src/core/components/functional/3d/frame-capture.ts +135 -0
  923. package/src/core/components/functional/3d/gl.ts +35 -0
  924. package/src/core/components/functional/3d/life.ts +101 -0
  925. package/src/core/components/functional/3d/load.ts +129 -0
  926. package/src/core/components/functional/3d/ops.ts +126 -0
  927. package/src/core/components/functional/3d/opts.ts +16 -0
  928. package/src/core/components/functional/3d/orbit.ts +185 -0
  929. package/src/core/components/functional/3d/out-publish.ts +140 -0
  930. package/src/core/components/functional/3d/parse.ts +95 -0
  931. package/src/core/components/functional/3d/pick.ts +92 -0
  932. package/src/core/components/functional/3d/playback.ts +70 -0
  933. package/src/core/components/functional/3d/pointer.ts +79 -0
  934. package/src/core/components/functional/3d/props.ts +50 -0
  935. package/src/core/components/functional/3d/publisher-listen.ts +13 -0
  936. package/src/core/components/functional/3d/reload.ts +88 -0
  937. package/src/core/components/functional/3d/runtime.ts +148 -0
  938. package/src/core/components/functional/3d/scene-runtime.ts +9 -0
  939. package/src/core/components/functional/3d/snapshot.ts +73 -0
  940. package/src/core/components/functional/3d/styles.ts +38 -0
  941. package/src/core/components/functional/3d/tune.ts +72 -0
  942. package/src/core/components/functional/3d/types.ts +145 -0
  943. package/src/core/components/functional/3d/updated.ts +70 -0
  944. package/src/core/components/functional/3d/view.ts +63 -0
  945. package/src/core/components/functional/3d/wire.ts +65 -0
  946. package/src/core/components/functional/infer/hugging-face/hf-cache.ts +198 -0
  947. package/src/core/components/functional/infer/hugging-face/hf-config.ts +188 -0
  948. package/src/core/components/functional/infer/hugging-face/hf-controller.spec.ts +350 -0
  949. package/src/core/components/functional/infer/hugging-face/hf-controller.ts +622 -0
  950. package/src/core/components/functional/infer/hugging-face/hf-engine.ts +178 -0
  951. package/src/core/components/functional/infer/hugging-face/hf-input.spec.ts +99 -0
  952. package/src/core/components/functional/infer/hugging-face/hf-input.ts +218 -0
  953. package/src/core/components/functional/infer/hugging-face/hf-protocol.ts +76 -0
  954. package/src/core/components/functional/infer/hugging-face/hf-registry.ts +457 -0
  955. package/src/core/components/functional/infer/hugging-face/hf-schema.spec.ts +124 -0
  956. package/src/core/components/functional/infer/hugging-face/hf-schema.ts +390 -0
  957. package/src/core/components/functional/infer/hugging-face/hf-worker-runtime.spec.ts +147 -0
  958. package/src/core/components/functional/infer/hugging-face/hf-worker-runtime.ts +381 -0
  959. package/src/core/components/functional/infer/hugging-face/hugging-face-infer.md +304 -0
  960. package/src/core/components/functional/infer/hugging-face/hugging-face-infer.ts +202 -0
  961. package/src/core/components/functional/infer/hugging-face/hugging-face.ts +282 -0
  962. package/src/core/components/functional/infer/hugging-face/types.ts +325 -0
  963. package/src/core/components/functional/jsonata/jsonata.md +4 -2
  964. package/src/core/components/functional/sdui/sdui.md +2 -2
  965. package/src/core/components/functional/sdui/sdui.ts +40 -29
  966. package/src/core/components/functional/shader/gl-runtime.ts +782 -0
  967. package/src/core/components/functional/shader/shader.md +207 -0
  968. package/src/core/components/functional/shader/shader.spec.ts +288 -0
  969. package/src/core/components/functional/shader/shader.ts +1569 -0
  970. package/src/core/components/functional/shader/shadertoy-prelude.ts +52 -0
  971. package/src/core/components/functional/shader/types.ts +446 -0
  972. package/src/core/components/functional/webgpu/canvas2d-fallback.ts +125 -0
  973. package/src/core/components/functional/webgpu/form-bind.ts +116 -0
  974. package/src/core/components/functional/webgpu/gl-fallback.ts +158 -0
  975. package/src/core/components/functional/webgpu/gpu-runtime.ts +349 -0
  976. package/src/core/components/functional/webgpu/helpers.ts +47 -0
  977. package/src/core/components/functional/webgpu/out-frame.ts +137 -0
  978. package/src/core/components/functional/webgpu/particles-runtime.ts +426 -0
  979. package/src/core/components/functional/webgpu/pointer.ts +85 -0
  980. package/src/core/components/functional/webgpu/types.ts +96 -0
  981. package/src/core/components/functional/webgpu/webgpu.md +75 -0
  982. package/src/core/components/functional/webgpu/webgpu.spec.ts +141 -0
  983. package/src/core/components/functional/webgpu/webgpu.ts +659 -0
  984. package/src/core/components/functional/webgpu/wgsl-prelude.ts +81 -0
  985. package/src/core/utils/HTML.ts +107 -74
  986. package/src/core/utils/PublisherProxy.ts +29 -6
  987. package/src/core/utils/jsonataHelpers.ts +36 -0
  988. package/src/core/utils/mediaRef.spec.ts +85 -0
  989. package/src/core/utils/mediaRef.ts +130 -0
  990. package/src/core/utils/similarity.spec.ts +34 -0
  991. package/src/core/utils/similarity.ts +54 -0
  992. package/src/docs/_core-concept/dataFlow.md +2 -0
  993. package/src/docs/_getting-started/cdn-addons.md +73 -0
  994. package/src/docs/_getting-started/create-a-component.md +1 -1
  995. package/src/docs/_misc/visual-stack.md +49 -0
  996. package/src/docs/components/docs-demo-sources.ts +359 -39
  997. package/src/docs/docs.ts +6 -0
  998. package/src/docs/example/docs-3d-demos.ts +8 -0
  999. package/src/docs/example/docs-3d-form.ts +95 -0
  1000. package/src/docs/example/docs-3d-orbit.ts +44 -0
  1001. package/src/docs/example/docs-3d-out.ts +56 -0
  1002. package/src/docs/example/docs-3d-shared.ts +15 -0
  1003. package/src/docs/example/docs-harris-webgpu-demo.ts +482 -0
  1004. package/src/docs/example/docs-hugging-face-demos.ts +516 -0
  1005. package/src/docs/example/docs-shader-demos.ts +357 -0
  1006. package/src/docs/example/docs-visual-stack-demo.ts +394 -0
  1007. package/src/docs/example/docs-webgpu-demo.ts +77 -0
  1008. package/src/docs/navigation/navigation.ts +25 -0
  1009. package/src/docs/search/docs-search.json +899 -2319
  1010. package/src/tsconfig.json +481 -301
  1011. package/src/tsconfig.tsbuildinfo +1 -1
  1012. package/vite/config.js +42 -30
  1013. package/vite.config.mts +51 -12
@@ -28,7 +28,7 @@
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */function ri(n){return X({...n,state:!0,attribute:!1})}const Ar="1";function ni(n){const e=n.trim();if(!e)return!1;try{const t=new URL(e,"https://example.invalid/");return t.protocol==="http:"||t.protocol==="https:"||t.protocol==="blob:"}catch{return!1}}let at=class Ge{static getLanguage(){const e=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||e}static getCookies(){return document.cookie.split(";").reduce((e,t)=>{const r=t.indexOf("=");return e[t.substring(0,r).trim()]=t.substring(r+1),e},{})}static nextComposedAncestor(e){return e instanceof Element&&e.assignedSlot?e.assignedSlot:e.parentNode||e.host||null}static everyAncestors(e,t){let r=e;for(;r;){if(!t(r))return;r=r.parentNode||r.host}}static overflowMatches(e,t){return t.includes(e.overflowY)||t.includes(e.overflowX)}static findAncestorByOverflow(e,t){let r=e;for(;r;){if(r instanceof Element&&r.nodeType===1){const s=window.getComputedStyle(r);if(Ge.overflowMatches(s,t))return r}r=Ge.nextComposedAncestor(r)}return null}static getScrollableAncestor(e){return Ge.findAncestorByOverflow(e,["auto","scroll","hidden","overlay"])}static getScrollingAncestor(e){return Ge.findAncestorByOverflow(e,["auto","scroll","overlay"])}static scopeAttributeNames(e){const t=e.toLowerCase();return t===e?[e]:[e,t]}static readScopeAttributeOnElement(e,t){for(const r of Ge.scopeAttributeNames(t))if(e.hasAttribute(r))return e.getAttribute(r)??"";return null}static getAncestorAttributeValue(e,t){if(!e)return null;let r=e;for(;r;){if(r instanceof HTMLElement){const u=Ge.readScopeAttributeOnElement(r,t);if(u!=null)return u}const s=r.parentNode||r.host;if(!s)break;r=s}return null}static getApiConfiguration(e){const t=Ge.getAncestorAttributeValue(e,"token"),r=Ge.getAncestorAttributeValue(e,"addHTTPResponse")!=null,s=Ge.getAncestorAttributeValue(e,"serviceURL");let u=null,o=null;const p=Ge.getAncestorAttributeValue(e,"tokenProvider"),y=Ge.getAncestorAttributeValue(e,"eventsApiToken");t||(u=Ge.getAncestorAttributeValue(e,"userName"),o=Ge.getAncestorAttributeValue(e,"password"));const P=Ge.getAncestorAttributeValue(e,"credentials")||void 0,M=e.getAttribute("cache"),k=e.hasAttribute("blockUntilDone"),w=e.hasAttribute("keepAlive");return{serviceURL:s,token:t,userName:u,password:o,authToken:y,tokenProvider:p,addHTTPResponse:r,credentials:P,cache:M,blockUntilDone:k,keepAlive:w}}static getClosestElement(e,t){let r=e;for(;r&&!(r.nodeName&&r.nodeName.toLowerCase()===t);){const s=r.parentNode||r.host;if(!s){r=null;break}r=s}return r?.nodeName?r:null}static getClosestForm(e){return Ge.getClosestElement(e,"form")}static getAncestorsByTagNames(e,t){const r=new Set(t.map(o=>o.toLowerCase())),s=[];let u=e.parentNode||e.host;for(;u;)u instanceof Element&&r.has(u.tagName.toLowerCase())&&s.push(u),u=u.parentNode||u.host;return s}static getAncestorsBySelectors(e,t){const r=[];let s=e.parentNode||e.host;for(;s;){if(s instanceof Element)for(const u of t)try{if(s.matches(u)){r.push(s);break}}catch{}s=s.parentNode||s.host}return r}static async loadJS(e){if(!ni(e))return!1;const t=typeof document<"u"?new URL(e,document.baseURI).href:e,r=Array.from(document.scripts).find(u=>u.src===t);if(r)return r.dataset.concordeLoaded===Ar?!0:new Promise(u=>{let o=!1;const p=P=>{o||(o=!0,P&&(r.dataset.concordeLoaded=Ar),u(P))};r.addEventListener("load",()=>p(!0),{once:!0}),r.addEventListener("error",()=>p(!1),{once:!0});const y=r.readyState;if(y==="complete"||y==="loaded"){p(!0);return}Promise.resolve().then(()=>{Promise.resolve().then(()=>{o||p(!0)})})});const s=/\.es\.js(\?|#|$)/.test(e)||/[?&]module(?:&|=|$)/.test(e);return new Promise(u=>{const o=document.createElement("script");o.src=e,s&&(o.type="module"),o.onload=()=>{o.dataset.concordeLoaded=Ar,u(!0)},o.onerror=()=>u(!1),document.head.appendChild(o)})}static async loadCSS(e){return new Promise(t=>{const r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,r.onload=()=>t(!0),r.onerror=()=>t(!0),document.head.appendChild(r)})}};function Er(n){return typeof n!="string"?null:n.trim()||null}function ii(n){if(n==null||n==="")return null;if(typeof n=="string")return Er(n);if(typeof n!="object")return null;const e=n;return Er(e.url)??Er(e.blobUrl)}function It(n){for(const e of n)try{URL.revokeObjectURL(e)}catch{}}let si=class{static async queueTaskPromise(){return new Promise(e=>{window.queueMicrotask(()=>e(null))})}static async delayPromise(e){return new Promise(t=>{setTimeout(t,e)})}},tn="sonic";typeof __SONIC_PREFIX__<"u"&&(tn=__SONIC_PREFIX__);let rn=tn.replace(/-([a-z])/g,n=>n[1].toUpperCase());const ai=rn.charAt(0).toUpperCase()+rn.slice(1);let oi=class At{static areEqual(e,t){return e.length===t.length?e.every((r,s)=>r===t[s]):!1}static from2d(e){return{to1D:()=>{let t=[];return e.forEach(r=>t=t.concat(r)),this.from(t)}}}static from(e){return{get:()=>e||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:t=>{if(e.length<1)return!0;const r=(e[0]||{})[t];return e.every(s=>(s||{})[t]==r)}})})}),value:()=>({forKey:t=>At.from(e.map(r=>r[t]))}),copy:()=>({fromKey:t=>({toKey:r=>{e.forEach(s=>{s[r]=Array.isArray(s[t])?[...s[t]]:typeof s[t]=="object"&&s[t]!=null?{...s[t]}:s[t]})}})})}),map:t=>At.from(e.map(t)),filter:t=>At.from(e.filter(t)),find:t=>e.find(t),some:t=>e.some(t),every:t=>e.every(t),group:()=>({byKey:t=>{const r=[],s=new Map;for(const u of e){const o=u[t];if(!s.has(o)){const p=r.length;s.set(o,p);const y={items:[]};y[t]=o,r.push(y)}r[s.get(o)].items.push(u)}return At.from(r)}}),without:()=>({duplicates:()=>({forKey:t=>{const r=[...new Set(e.map(s=>s[t]))];return At.from(r.map(s=>e.find(u=>u[t]==s)))}}),itemsIn:t=>({havingSameValue:()=>({forKey:r=>{const s=(u,o)=>p=>u[o]!=p[o];return At.from(e.filter(u=>t.every(s(u,r))))}})})})}}},_r=class{static ucFirst(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.substring(1)}static minutesDuration(e,t="",r="long"){t||(t=at.getLanguage());const s=(P,M)=>[Math.floor(P/M),P%M];function u(P,M,k){return new Intl.NumberFormat(P,{style:"unit",unit:M,unitDisplay:k}).format}const[o,p]=s(e,60),y=[];return o&&y.push(u(t,"hour",r)(o)),p&&y.push(u(t,"minute",r)(p)),new Intl.ListFormat(t,{style:"long",type:"conjunction"}).format(y)}static js(e){try{return Function("return "+e)()}catch{return""}}};class nn{constructor(e){this.path=e}toString(){return this.path}}function sn(n){return new Proxy(n,{get(e,t){if(t==="path")return e.path;if(t==="toString")return e.toString.bind(e);if(t===Symbol.toStringTag)return"DataProviderKey";if(typeof t=="symbol")return e[t];const r=e.path?`${e.path}.${String(t)}`:String(t);return sn(new nn(r))}})}const ui=/\$\{|\{\$/;function ci(n){return ui.test(n)}function li(n){const e=n;if(ci(e))throw new Error("Static publisher path required for get/set/dp. Use @subscribe, @publish, or @handle for dynamic DataProviderKey paths.");return e}const Qt=function(n){return this instanceof Qt?sn(new nn(n)):new Qt(n)};let er=class ct{static shallowEqual(e,t,r=!0){const s=Object.keys(e),u=Object.keys(t);if(s.length!==u.length&&r)return!1;for(const o of s){const p=e[o],y=t[o];if(r?p!==y:p!=y)return!1}return!0}static deepEqual(e,t,r=!0){const s=Object.keys(e),u=Object.keys(t);if(s.length!==u.length&&r)return!1;for(const o of s){const p=e[o],y=t[o],P=ct.isObject(p)&&ct.isObject(y),M=r?p!==y:p!=y;if(P&&!ct.deepEqual(p,y)||!P&&M)return!1}return!0}static isObject(e){return e!=null&&typeof e=="object"}static isUndefindOrNull(e){return e==null}static isEmpty(e){return ct.isUndefindOrNull(e)?!0:Object.keys(e).length===0}static traverse(e,t,r=!1){for(const s of t){const u=e[s];if(u===void 0)return;r&&ct.isObject(u)?e=Object.assign(Array.isArray(u)?[]:{},e,u):e=e[s]}return e}static traverseDotNotation(e,t,r=!1){return ct.traverse(e,t.split("."),r)}static getURLSearchArray(e,t=""){let r=[];for(let s in e){const u=e[s];t&&(s=t+"["+s+"]"),ct.isObject(u)?r=[...r,...this.getURLSearchArray(u,s)]:r.push(`${s}=${u}`)}return r}static getURLSearchString(e){return ct.getURLSearchArray(e,"").join("&")}};er.traverseDotNotation;function fi(n){return!1}function tr(n){return Object.prototype.hasOwnProperty.call(n,"__value")}function ft(n){return typeof n=="object"&&n!==null}let kt="sonic";typeof __SONIC_PREFIX__>"u"&&(kt="sonic");const xr=kt=="sonic"?"publisher-proxies-data":kt+"-publisher-proxies-data",dt=class dt{constructor(e,t,r){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=1e3*60*60*12,this._invalidate_on_page_show_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=e,this.parent=t||null,this._parentKey_=r,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const e in this._proxies_.keys())e!="_parent_"&&this._proxies_.get(e)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),dt.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(e=!1){if(this._mutationListeners_.forEach(t=>t()),this._is_savable_&&!$e.changed){$e.changed=!0,$e.saveId++;const t=$e.saveId;setTimeout(()=>$e.getInstance().saveToLocalStorage(t),1e3)}e||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(e=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const r=this.get();this._assignListeners_.forEach(s=>{s(r)}),this._publishInternalMutation_(e)}_publishInvalidation_(){this._invalidateListeners_.forEach(e=>e())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(e=>e())}_publishDynamicFilling_(e,t){this._fillListeners_.forEach(r=>{r[e]!==t&&(r[e]=t)}),this._publishTemplateFilling_(e,t)}_publishTemplateFilling_(e,t){this._templateFillListeners_.forEach(r=>{const s=Object.getOwnPropertyDescriptor(r,e);s&&!s.set&&!s.writable||(r.propertyMap&&r.propertyMap[e]&&(e=r.propertyMap[e]),typeof r[e]<"u"&&r[e]!==t&&(r[e]=t))})}onAssign(e,t=!0){typeof e=="function"&&(this._assignListeners_.has(e)||(this._assignListeners_.add(e),t&&e(this.get())))}offAssign(e){this._assignListeners_.delete(e)}onInvalidate(e){typeof e=="function"&&this._invalidateListeners_.add(e)}offInvalidate(e){typeof e=="function"&&this._invalidateListeners_.delete(e)}invalidate(){this._publishInvalidation_()}onFormInvalidate(e){typeof e=="function"&&this._formInvalidateListeners_.add(e)}offFormInvalidate(e){typeof e=="function"&&this._formInvalidateListeners_.delete(e)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(e){typeof e=="function"&&(this._mutationListeners_.add(e),e())}offInternalMutation(e){typeof e=="function"&&this._mutationListeners_.delete(e)}startTemplateFilling(e){if(this._templateFillListeners_.add(e),typeof this._value_=="object")for(const t in this._value_){let r=t;const s=this._value_[t];e.propertyMap&&e.propertyMap[t]&&(r=e.propertyMap[t]),typeof e[t]<"u"&&e[t]!==s&&(e[r]=s)}}stopTemplateFilling(e){this._templateFillListeners_.delete(e)}startDynamicFilling(e){this._fillListeners_.add(e);for(const t in this._value_){const r=this._value_[t];e[t]!==r&&(e[t]=r)}}stopDynamicFilling(e){this._fillListeners_.delete(e)}set(e,t=!1){if(this._value_===e||ft(this._value_)&&ft(e)&&e&&tr(this._value_)&&tr(e)&&this._value_.__value===e.__value||!ft(e)&&e===this._value_.__value)return!0;this._value_=ft(e)?e:{__value:e},this._cachedGet_=void 0;const r=tr(this._value_);if(this._parentKey_&&this.parent){const s=tr(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:s});else{const u=[];u[Number(this._parentKey_)]=s,this.parent.set(u)}else this.parent._value_[this._parentKey_]=s}if(r)return this._proxies_.forEach((s,u)=>{u!="_parent_"&&(s.set(null),this._publishDynamicFilling_(u,null))}),this._publishAssignement_(t),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const s in this._value_)this._value_[s]===void 0&&delete this._value_[s];if(this._proxies_.forEach((s,u)=>{const o=this._value_[u];u!="_parent_"&&o===void 0&&o!==null&&isNaN(Number(u))&&(s.set(null),this._publishDynamicFilling_(u,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),ft(this._value_))for(const s in this._value_){const u=e[s],p=ft(u)?u:{__value:u};if(!this._proxies_.has(s)){this._publishDynamicFilling_(s,u);continue}this._proxies_.get(s)?.set(p,!0),this._publishDynamicFilling_(s,u)}return!0}get(){if(hi(this),this._cachedGet_!==void 0)return this._cachedGet_;if(Object.prototype.hasOwnProperty.call(this._value_,"__value")){const e=this._value_.__value;return this._cachedGet_=e??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(dt.instancesCounter++,this._instanceCounter_=dt.instancesCounter),dt.instances.set(this._instanceCounter_,this),"<"+kt+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+kt+"-publisher-proxy>"}};dt.instances=new Map,dt.instancesCounter=0;let rr=dt;const an=[];function hi(n){an.length>0&&an[0].add(n)}const ge=class ge{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],ge.instance!=null)throw"Singleton / use getInstance";ge.instance=this,this.isLocalStrorageReady=this.cleanStorageData(),ge.initPageShowHandler()}static initPageShowHandler(){ge.pageShowHandlerInitialized||(ge.pageShowHandlerInitialized=!0,window.addEventListener("pageshow",e=>{e.persisted&&ge.getInstance().invalidateAll()}))}invalidateAll(){this.publishers.forEach(e=>{e._invalidate_on_page_show_&&e.invalidate()})}async cleanStorageData(){return new Promise(e=>{(async()=>{try{let r=localStorage.getItem(xr),s=null;if(r&&(s=await this.decompress(r,"gzip")),s)try{this.localStorageData=JSON.parse(s)}catch{this.localStorageData={}}else r=await this.compress("{}","gzip"),localStorage.setItem(xr,r),this.localStorageData={};const u=1e3*60*60*12;for(const o in this.localStorageData){const p=this.localStorageData[o],y=new Date().getTime()-(p.expirationDelayMs||u);p.lastModifiationMS<y&&delete this.localStorageData[o]}e(!0)}catch{window.requestAnimationFrame(()=>{e(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(e){if(e){const t=ge.instances.get(e);return t||(console.warn("No PublisherManager instance registered with id:",e,"creating new one"),new ge)}return ge.instance==null?new ge:ge.instance}static get(e,t){return ge.getInstance().get(e,t)}async setLocalData(e,t){await this.isLocalStrorageReady,e.set(this.localStorageData[t+"¤lang_"+at.getLanguage()]?.data||e.get())}get(e,t){const r=t?.localStorageMode==="enabled",s=t?.invalidateOnPageShow===!0;if(!this.publishers.has(e)){const p=kr({});this.set(e,p)}const u=this.publishers.get(e);return r&&this.initialisedData.indexOf(e)===-1&&(t?.expirationDelayMs&&(u._expiration_delay_=t.expirationDelayMs),u._is_savable_=!0,this.initialisedData.push(e),this.setLocalData(u,e)),s&&(u._invalidate_on_page_show_=s),this.publishers.get(e)}set(e,t){this.publishers.set(e,t)}delete(e){return this.publishers.has(e)?(this.publishers.delete(e),!0):!1}async saveToLocalStorage(e=0){if(!(e!==ge.saveId&&e%10!=0))try{if(!ge.changed||ge.saving)return;ge.saving=!0,ge.changed=!1;const t=Array.from(this.publishers.keys());let r=!1;for(const s of t){const u=this.publishers.get(s);if(!u?._is_savable_)continue;const o=u?.get();o&&(this.localStorageData[s+"¤lang_"+at.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:u._expiration_delay_,data:o},r=!0)}if(r){const s=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(xr,s)}if(ge.saving=!1,ge.changed){ge.saveId++;const s=ge.saveId;setTimeout(()=>this.saveToLocalStorage(s),1e3)}}catch{ge.saving=!1}}async compress(e,t){const r=new TextEncoder().encode(e),s=window,u=new s.CompressionStream(t),o=u.writable.getWriter();o.write(r),o.close();const p=await new Response(u.readable).arrayBuffer(),y=new Uint8Array(p);let P="";for(let M=0;M<y.length;M++)P+=String.fromCharCode(y[M]);return btoa(P)}async decompress(e,t){const r=atob(e),u=Uint8Array.from(r,M=>M.charCodeAt(0)).buffer,o=window,p=new o.DecompressionStream(t),y=p.writable.getWriter();y.write(u),y.close();const P=await new Response(p.readable).arrayBuffer();return new TextDecoder().decode(P)}};ge.buildDate="Mon Sep 28 2026 08:00:12 GMT+0200 (Central European Summer Time)",ge.changed=!1,ge.saving=!1,ge.saveId=0,ge.instance=null,ge.instances=new Map,ge.pageShowHandlerInitialized=!1;let $e=ge;if(typeof window<"u"){const n=window,e=ai+"PublisherManager",t=n[e]||$e;if(n[e]||(n[e]=$e),t!==$e){const r=["instance","instances","changed","saving","saveId","pageShowHandlerInitialized"];for(const s of r)Object.defineProperty($e,s,{configurable:!0,get(){return t[s]},set(u){t[s]=u}})}}const di=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);function pi(n,e){return{get:function(t,r){if(typeof r=="string"&&di.has(r))return n[r];if(r==Symbol.toPrimitive)return()=>e().get();if(!n._proxies_.has(r)){const s=n._value_[r],u=kr(ft(s)?s:{__value:s},n,r);u._proxies_.set("_parent_",e()),n._proxies_.set(r,u)}return n._proxies_.get(r)},set:function(t,r,s){if(r=="_value_")return n._value_=s,!0;if(r=="_cachedGet_")return n._cachedGet_=s,!0;if(r=="_assignmentId_")return n._assignmentId_=s,!0;if(r=="_is_savable_")return n._is_savable_=s,!0;if(r=="_expiration_delay_")return n._expiration_delay_=s,!0;if(r=="_invalidate_on_page_show_")return n._invalidate_on_page_show_=s,!0;if(r=="_instanceCounter_")return n._instanceCounter_=s,!0;if(!n._proxies_.has(r)){const o=kr({},n,r);o._proxies_.set("_parent_",e()),n._proxies_.set(r,o)}return n._value_[r]!==s&&(n._value_[r]=s,n._publishDynamicFilling_(r,s),n._proxies_.get(r)?.set(ft(s)?s:{__value:s})),!0},deleteProperty:function(t,r){return n._publishDynamicFilling_(r,null),n._proxies_.get(r)?.set(null),delete n._value_[r]},has:function(t,r){return r in n._value_&&r!="_lockInternalMutationPublishing_"},defineProperty:function(t,r,s){return s&&"value"in s&&(n._value_[r]=s.value),!0},getOwnPropertyDescriptor:function(t,r){return{enumerable:!0,configurable:!0}},ownKeys:function(t){return n._value_.__value?Object.keys(n._value_.__value):Object.keys(n._value_)}}}function kr(n,e=null,t){const r=new rr(n,e,t);let s=null;const u=pi(r,()=>s);return s=new Proxy(r,u),s}class mi extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=e=>{this.innerHTML=e.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=rr.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(kt+"-publisher-proxy",mi)}catch{}const vi=(n,e)=>{{const t=n.split("."),r=t.shift()||"";let s=$e.get(r,e);s=er.traverse(s,t);const u=new Set;return u.add(s),u}};function on(n,e,t){const r=li(n);return vi(r,t).values().next().value}function gi(n,e){return fi()?on(n,void 0,e):on(n)}let Sr=(de=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(de.observedElements.keys()).forEach(e=>de.unObserve(e)))}static observe(e){if(!e||!de.enabled||de.observedElements.has(e))return;const t=new MutationObserver(de.onMutation),r={};r.childList=!0,r.subtree=!0,r.attributes=!0,r.attributeFilter=["data-bind"],t.observe(e,r),e.querySelectorAll("[data-bind]").forEach(s=>de.addPublisherListeners(s)),de.observedElements.set(e,t)}static unObserve(e){if(!e)return;const t=this.observedElements.get(e);t&&(t.disconnect(),e.querySelectorAll("[data-bind]").forEach(r=>de.removePublisherListeners(r)))}static onAdded(e){e.hasAttribute&&e.hasAttribute("data-bind")&&de.addPublisherListeners(e),e.querySelectorAll?e.querySelectorAll("[data-bind]").forEach(t=>de.addPublisherListeners(t)):e.childNodes.forEach(t=>de.onAdded(t))}static onRemoved(e){e.hasAttribute&&e.hasAttribute("data-bind")&&de.removePublisherListeners(e),e.querySelectorAll?e.querySelectorAll("[data-bind]").forEach(t=>de.removePublisherListeners(t)):e.childNodes.forEach(t=>de.onRemoved(t))}static onMutation(e){for(const t of e)switch(t.type){case"attributes":de.addPublisherListeners(t.target);break;case"childList":t.addedNodes.forEach(r=>{de.onAdded(r)}),t.removedNodes.forEach(r=>{de.onRemoved(r)});break}}static removePublisherListeners(e){const t=de.publisherListeners.get(e);t&&(de.publisherListeners.delete(e),t.forEach(r=>{r.publisher?.offAssign(r.onAssign)}))}static getVariablesDescriptor(e){let t=e.match(/(\$(?:\w+\\?\.?)+)/g);return t?t=t.map(r=>r.replace("$","")):t=[e],t=t.filter(r=>r.length>0),{expression:e.replace("\\",""),variables:t.map(r=>r.split(/\b\.\b/).map(s=>s.replace("\\","")))}}static getDataBindItems(e){return"attributes"in e?Array.from(e.attributes).filter(t=>t.name.indexOf("::")==0).map(t=>({propertyToUpdate:t.name.substring(2).replace(/-((html)|\w)/g,s=>s.substring(1).toUpperCase()),bindedVariablesDescriptor:de.getVariablesDescriptor(t.value)})):[]}static getSubPublisher(e,t){if(!t)return e;for(const r of t)if(r!="_self_"){if(!e)return null;e=e[r]}return e}static addPublisherListeners(e){de.removePublisherListeners(e);const t=at.getAncestorAttributeValue(e.parentNode||e.host||e,"dataProvider");if(!t)return;const r=$e.getInstance().get(t),s=de.getDataBindItems(e),u=[];s.forEach(o=>{const p=o.bindedVariablesDescriptor,y=o.propertyToUpdate;for(const P of p.variables){const M=P;let k=r;k=de.getSubPublisher(r,M);const w=e,C={publisher:k,onAssign:()=>{const R=p.variables.map(J=>de.getSubPublisher(r,J)?.get());let N=p.expression,ee=!1;if(R.length==1&&p.variables[0].join(".")==N.substring(1)){let J=R[0];J===null&&(J=""),w[y]=J;return}for(let J=0;J<R.length;J++){let E=R[J];const v=p.variables[J];E===null&&(ee=!0,E=void 0),N=N.replace("$"+v.join("."),E)}if(N.indexOf("|")!=-1){const J=N.indexOf("|");if(J==0)N=_r.js(N.substring(1));else{const E=N.substring(0,J),v=N.substring(J+1),O=_r[E];N=ee?"":O?O(v):N}}else N=ee?"":N;w[y]=N}};k?.onAssign(C.onAssign),u.push(C)}}),de.publisherListeners.set(e,u)}},de.observedElements=new Map,de.enabled=!0,de.publisherListeners=new Map,de);Sr.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=Sr);let bi=(Re=class{static listen(){if(!Re.listening)return;const e=document.location?.href.replace(document.location.origin,"");Re.prevURL&&Re.prevURL!=e&&(Re.prevURL=e,Re.listeners.forEach(t=>{t.location=e})),window.requestAnimationFrame(Re.listen)}static offChange(e){const t=Re.listeners.indexOf(e);t!=-1&&(Re.listeners.splice(t,1),Re.listeners.length==0&&(Re.listening=!1))}static onChange(e){Re.listening||(Re.listening=!0,Re.listen()),Re.listeners.push(e),e.location=this.prevURL}static changeFromComponent(e){const t=e.goBack,r=document.referrer;if(t!=null){const P=document.location.origin,M=(t||P).toString(),w=r.indexOf("http")==0?new URL(r).origin!=P:!1,C=r=="",R=history.length<3,N=C&&R,ee=M!=document.location.href;if(w&&ee||N){const E=history.state||{};E.concorde=E.concorde||{},E.concorde.hasDoneHistoryBack=!0,history.pushState(E,document.title),history.back(),document.location.replace(M)}else history.back();return}let s=e.getAttribute("to")||"";if(s||(s=e.href?.toString()||""),!s)return;if(s.indexOf("#")==0){document.location.hash=s.substring(1);return}const u=new URL(s,document.location.href),o=u.pathname.split("/"),p=[];let y="";for(const P of o)P!=y&&p.push(P),y=P;s="/"+p.join("/")+u.search+(u.hash?+u.hash:""),e.hasAttribute("pushState")?history.pushState(null,"",s):e.hasAttribute("replaceState")?history.replaceState(null,"",s):document.location.href=s}static updateComponentActiveState(e){if(e.autoActive=="disabled")return;const t=e.href?.toString()||"";if(e.href&&t.indexOf("http")!=0){const r=new URL(t,document.location.href),s=new URL(e.location||"",document.location.origin);let u=!1;e.autoActive=="strict"?u=r.pathname==s.pathname&&r.hash==s.hash&&r.search==s.search:e.autoActive=="strict-path-only"?u=r.pathname==s.pathname&&r.hash==s.hash:u=s.href.indexOf(r.href)==0,u?e.setAttribute("active","true"):e.removeAttribute("active")}}},Re.listeners=[],Re.listening=!1,Re.prevURL=document.location?.href.replace(document.location.origin,""),Re);function un(n){if(n==null||typeof n!="object"||Array.isArray(n))return n;const e={...n};return delete e._sonic_http_response_,e}const ye=class ye{constructor(e){this.addHTTPResponse=!1,this.cache="default",this.isServiceSimulated=!1,this.blockUntilDone=!1,this.keepAlive=!1,this.serviceURL=e.serviceURL,this.blockUntilDone=e.blockUntilDone||!1,this.serviceURL=="publisher://"&&(this.isServiceSimulated=!0),this.serviceURL||(this.serviceURL=document.location.origin),this.userName=e.userName,this.password=e.password,e.token&&(this.token=e.token),this.tokenProvider=e.tokenProvider,this.authToken=e.authToken,this.addHTTPResponse=e.addHTTPResponse||!1,this.credentials=e.credentials,this.cache=e.cache||"default",this.keepAlive=e.keepAlive||!1}set token(e){if(this._token=e,!e){ye.tokens.delete(this.serviceURL);return}ye.invalidTokens.includes(e)||ye.tokens.set(this.serviceURL,e)}get token(){return ye.invalidTokens.includes(this._token)?ye.tokens.get(this.serviceURL):this._token}handleInvalidToken(e){e&&(ye.invalidTokens.includes(e)||(ye.invalidTokens.push(e),this.token=null))}async handleResult(e,t){ye.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=e;const r=e.headers.get("content-type")?.toLowerCase(),s=e.status;let u={};if(!r||r.indexOf("text/")==0)u={text:await e.text()};else try{u=await e.json()}catch{u={}}if(this.addHTTPResponse&&er.isObject(u)&&(u._sonic_http_response_=e),s===498&&!ye.failledTokenUpdates.has(this.serviceURL))if(this.handleInvalidToken(this.token),t.apiMethod==="get"){const p=await this.get(t.path,t.additionalHeaders);if(p==null)throw new Error("GET retry failed after token refresh");u=p}else u=await this[t.apiMethod](t.path,t.data,t.method,t.additionalHeaders);return gi("sonic-api").lastResponse.set({http:e,processed:u}),u}async auth(){if(this.token)return;if(ye.tokens.has(this.serviceURL)){this.token=ye.tokens.get(this.serviceURL);return}if(!this.tokenProvider)return;let e={};this.userName&&this.password?e={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))}:this.authToken&&(e={Authorization:"Bearer "+this.authToken});const t=new URL(this.serviceURL),r=t.protocol+"//"+t.host,s=await fetch(this.computeURL(this.tokenProvider,{serviceHost:r}),{headers:e,credentials:this.credentials,keepalive:this.keepAlive});try{const u=await s.json();u.token?this.token=u.token:ye.failledTokenUpdates.set(this.serviceURL,!0)}catch{ye.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(e,t){const r=$e.get(e),s=new URLSearchParams(t.split("?")[1]||""),u=r.get();let o=[];Array.isArray(u)?o=u:o=[u];const p=[];let y=Number.POSITIVE_INFINITY,P=0,M=0;if(s.has("limit")&&(y=parseInt(s.get("limit")||"0"),M++),s.has("offset")&&(P=parseInt(s.get("offset")||"0"),M++),M>0&&(s.delete("limit"),s.delete("offset")),s.size===0)return o.slice(P,P+y);for(const[k,w]of s.entries()){const C=w.split(",").map(R=>R.trim());for(const R of C)for(const N of o)if(typeof N!="object")isNaN(+N)?N.toString().toLowerCase().includes(w.toLowerCase())&&p.push(N):N===w&&p.push(N);else{const ee=N;if(!ee[k])continue;isNaN(+ee[k])?ee[k]?.toString().toLowerCase().includes(R.toLowerCase())&&p.push(N):ee[k]===R&&p.push(N)}}return p.slice(P,P+y)}firstCallDone(){return new Promise(e=>{if(!ye.firstCallDoneFlags.has(this.serviceURL))ye.firstCallDoneFlags.set(this.serviceURL,"loading"),e(!0);else{const t=()=>{[void 0,"loading"].includes(ye.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(t):e(!0)};t()}})}async get(e,t){const r=/dataProvider\((.*?)\)(.*?)$/;if(r.test(e)){this.blockUntilDone&&(await this.firstCallDone(),ye.firstCallDoneFlags.set(this.serviceURL,"loading"));const P=e.match(r);if(!P)throw new Error("dataProvider path is not valid");return await this.localGet(P[1],P[2])}const s={apiMethod:"get",path:e,additionalHeaders:t},u=await this.createHeaders(t),o=this.computeURL(e),p=JSON.stringify({url:o,headers:u,credentials:this.credentials,cache:this.cache,keepAlive:this.keepAlive});if(this.blockUntilDone&&(await this.firstCallDone(),ye.firstCallDoneFlags.set(this.serviceURL,"loading")),!ye.loadingGetPromises.has(p)){const P=new Promise(async M=>{try{const k=await fetch(o,{headers:u,credentials:this.credentials,cache:this.cache,keepalive:this.keepAlive}),w=await this.handleResult(k,s);M({processed:w,response:this.lastResult})}catch{ye.firstCallDoneFlags.set(this.serviceURL,"error"),M(null)}});ye.loadingGetPromises.set(p,P)}const y=await ye.loadingGetPromises.get(p);return ye.loadingGetPromises.delete(p),y?(this.lastResult=y.response,y.processed):null}async getDetailed(e,t){const r=/dataProvider\((.*?)\)(.*?)$/.test(e),s=await this.get(e,t);if(s==null)return;const u=un(s),o=this.computeURL(e);if(r)return{request:new Request(o,{method:"GET"}),result:u};const p=await this.createHeaders(t);return{request:new Request(o,{method:"GET",headers:new Headers(p),credentials:this.credentials,cache:this.cache,keepalive:this.keepAlive}),response:this.lastResult,result:u}}async sendDetailed(e,t,r,s){const u=await this.send(e,t,r,s);if(u==null)return;const o=un(u),p=this.computeURL(e),y=await this.createHeaders({Accept:"application/json","Content-Type":"application/json",...s});return{request:new Request(p,{method:r,headers:new Headers(y),credentials:this.credentials,body:JSON.stringify(t),keepalive:this.keepAlive}),response:this.lastResult,result:o}}async postDetailed(e,t,r){return this.sendDetailed(e,t,"POST",r)}async putDetailed(e,t,r){return this.sendDetailed(e,t,"PUT",r)}async patchDetailed(e,t,r){return this.sendDetailed(e,t,"PATCH",r)}async createHeaders(e){await this.auth();const t={};return this.token&&(t.Authorization="Bearer "+this.token),t["Accept-Language"]=at.getLanguage(),e&&Object.assign(t,e),t}computeURL(e,t={}){let r="";e.startsWith("http")?r=e:r=this.serviceURL+"/"+e,r.startsWith("http")||(r=window.location.origin+r);const s=new URL(r);for(const u in t)s.searchParams.set(u,t[u]);return s.toString().replace(/([^(https?:)])\/{2,}/g,"$1/")}async send(e,t,r="POST",s){const u={apiMethod:"send",path:e,additionalHeaders:s,method:r,data:t},o=await this.createHeaders(s);o.Accept="application/json",o["Content-Type"]="application/json";const p=await fetch(this.computeURL(e),{headers:o,credentials:this.credentials,method:r,body:JSON.stringify(t),keepalive:this.keepAlive});return await this.handleResult(p,u)}async submitFormData(e,t,r="POST",s){const u={apiMethod:"submitFormData",path:e,additionalHeaders:s,method:r,data:t},o=await this.createHeaders(s);o.Accept="application/json";const p=new FormData,y=t;for(const M in y)p.set(M,y[M]);const P=await fetch(this.computeURL(e),{headers:o,credentials:this.credentials,method:r,body:p,keepalive:this.keepAlive});return await this.handleResult(P,u)}async put(e,t,r){return this.send(e,t,"PUT",r)}async post(e,t,r){return this.send(e,t,"POST",r)}async patch(e,t,r){return this.send(e,t,"PATCH",r)}async delete(e,t,r){return this.send(e,t,"delete",r)}};ye.loadingGetPromises=new Map,ye.tokens=new Map,ye.invalidTokens=[],ye.failledTokenUpdates=new Map,ye.firstCallDoneFlags=new Map;let Pr=ye;at.getApiConfiguration(document.body||document.documentElement);var cn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yi(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var jt={exports:{}},wi=jt.exports,ln;function Ai(){return ln||(ln=1,(function(n,e){var t=[].slice;(function(r,s){return e!==null?n.exports=s():r.UrlPattern=s()})(wi,function(){var r,s,u,o,p,y,P,M,k,w,C,R,N,ee,J;return k=function(E){return E.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},P=function(E,v){var O,A,T;for(T=[],O=-1,A=E.length;++O<A;)T=T.concat(v(E[O]));return T},ee=function(E,v){var O,A,T;for(T="",O=-1,A=E.length;++O<A;)T+=v(E[O]);return T},N=function(E){return new RegExp(E.toString()+"|").exec("").length-1},C=function(E,v){var O,A,T,H,F;for(H={},O=-1,T=E.length;++O<T;)A=E[O],F=v[O],F!=null&&(H[A]!=null?(Array.isArray(H[A])||(H[A]=[H[A]]),H[A].push(F)):H[A]=F);return H},r={},r.Result=function(E,v){this.value=E,this.rest=v},r.Tagged=function(E,v){this.tag=E,this.value=v},r.tag=function(E,v){return function(O){var A,T;if(A=v(O),A!=null)return T=new r.Tagged(E,A.value),new r.Result(T,A.rest)}},r.regex=function(E){return function(v){var O,A;if(O=E.exec(v),O!=null)return A=O[0],new r.Result(A,v.slice(A.length))}},r.sequence=function(){var E;return E=1<=arguments.length?t.call(arguments,0):[],function(v){var O,A,T,H,F,re;for(O=-1,A=E.length,re=[],H=v;++O<A;){if(T=E[O],F=T(H),F==null)return;re.push(F.value),H=F.rest}return new r.Result(re,H)}},r.pick=function(){var E,v;return E=arguments[0],v=2<=arguments.length?t.call(arguments,1):[],function(O){var A,T;if(T=r.sequence.apply(r,v)(O),T!=null)return A=T.value,T.value=A[E],T}},r.string=function(E){var v;return v=E.length,function(O){if(O.slice(0,v)===E)return new r.Result(E,O.slice(v))}},r.lazy=function(E){var v;return v=null,function(O){return v==null&&(v=E()),v(O)}},r.baseMany=function(E,v,O,A,T){var H,F,re,ae;for(re=T,ae=O?"":[];!(v!=null&&(H=v(re),H!=null)||(F=E(re),F==null));)O?ae+=F.value:ae.push(F.value),re=F.rest;if(!(A&&ae.length===0))return new r.Result(ae,re)},r.many1=function(E){return function(v){return r.baseMany(E,null,!1,!0,v)}},r.concatMany1Till=function(E,v){return function(O){return r.baseMany(E,v,!0,!0,O)}},r.firstChoice=function(){var E;return E=1<=arguments.length?t.call(arguments,0):[],function(v){var O,A,T,H;for(O=-1,A=E.length;++O<A;)if(T=E[O],H=T(v),H!=null)return H}},R=function(E){var v;return v={},v.wildcard=r.tag("wildcard",r.string(E.wildcardChar)),v.optional=r.tag("optional",r.pick(1,r.string(E.optionalSegmentStartChar),r.lazy(function(){return v.pattern}),r.string(E.optionalSegmentEndChar))),v.name=r.regex(new RegExp("^["+E.segmentNameCharset+"]+")),v.named=r.tag("named",r.pick(1,r.string(E.segmentNameStartChar),r.lazy(function(){return v.name}))),v.escapedChar=r.pick(1,r.string(E.escapeChar),r.regex(/^./)),v.static=r.tag("static",r.concatMany1Till(r.firstChoice(r.lazy(function(){return v.escapedChar}),r.regex(/^./)),r.firstChoice(r.string(E.segmentNameStartChar),r.string(E.optionalSegmentStartChar),r.string(E.optionalSegmentEndChar),v.wildcard))),v.token=r.lazy(function(){return r.firstChoice(v.wildcard,v.optional,v.named,v.static)}),v.pattern=r.many1(r.lazy(function(){return v.token})),v},M={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},y=function(E,v){if(Array.isArray(E))return ee(E,function(O){return y(O,v)});switch(E.tag){case"wildcard":return"(.*?)";case"named":return"(["+v+"]+)";case"static":return k(E.value);case"optional":return"(?:"+y(E.value,v)+")?"}},p=function(E,v){return v==null&&(v=M.segmentValueCharset),"^"+y(E,v)+"$"},o=function(E){if(Array.isArray(E))return P(E,o);switch(E.tag){case"wildcard":return["_"];case"named":return[E.value];case"static":return[];case"optional":return o(E.value)}},w=function(E,v,O,A){var T,H,F,re;if(A==null&&(A=!1),re=E[v],re==null){if(A)throw new Error("no values provided for key `"+v+"`");return}if(T=O[v]||0,H=Array.isArray(re)?re.length-1:0,T>H){if(A)throw new Error("too few values provided for key `"+v+"`");return}return F=Array.isArray(re)?re[T]:re,A&&(O[v]=T+1),F},u=function(E,v,O){var A,T;if(Array.isArray(E)){for(A=-1,T=E.length;++A<T;)if(u(E[A],v,O))return!0;return!1}switch(E.tag){case"wildcard":return w(v,"_",O,!1)!=null;case"named":return w(v,E.value,O,!1)!=null;case"static":return!1;case"optional":return u(E.value,v,O)}},J=function(E,v,O){if(Array.isArray(E))return ee(E,function(A){return J(A,v,O)});switch(E.tag){case"wildcard":return w(v,"_",O,!0);case"named":return w(v,E.value,O,!0);case"static":return E.value;case"optional":return u(E.value,v,O)?J(E.value,v,O):""}},s=function(E,v){var O,A,T,H,F;if(E instanceof s){this.isRegex=E.isRegex,this.regex=E.regex,this.ast=E.ast,this.names=E.names;return}if(this.isRegex=E instanceof RegExp,!(typeof E=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=E,v!=null){if(!Array.isArray(v))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(O=N(this.regex),v.length!==O)throw new Error("regex contains "+O+" groups but array of group names contains "+v.length);this.names=v}return}if(E==="")throw new Error("argument must not be the empty string");if(F=E.replace(/\s+/g,""),F!==E)throw new Error("argument must not contain whitespace");if(A={escapeChar:v?.escapeChar||M.escapeChar,segmentNameStartChar:v?.segmentNameStartChar||M.segmentNameStartChar,segmentNameCharset:v?.segmentNameCharset||M.segmentNameCharset,segmentValueCharset:v?.segmentValueCharset||M.segmentValueCharset,optionalSegmentStartChar:v?.optionalSegmentStartChar||M.optionalSegmentStartChar,optionalSegmentEndChar:v?.optionalSegmentEndChar||M.optionalSegmentEndChar,wildcardChar:v?.wildcardChar||M.wildcardChar},H=R(A),T=H.pattern(E),T==null)throw new Error("couldn't parse pattern");if(T.rest!=="")throw new Error("could only partially parse pattern");this.ast=T.value,this.regex=new RegExp(p(this.ast,A.segmentValueCharset)),this.names=o(this.ast)},s.prototype.match=function(E){var v,O;return O=this.regex.exec(E),O==null?null:(v=O.slice(1),this.names?C(this.names,v):v)},s.prototype.stringify=function(E){if(E==null&&(E={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(E!==Object(E))throw new Error("argument must be an object or undefined");return J(this.ast,E,{})},s.escapeForRegex=k,s.concatMap=P,s.stringConcatMap=ee,s.regexGroupCount=N,s.keysAndValuesToObject=C,s.P=r,s.newParser=R,s.defaultOptions=M,s.astNodeToRegexString=p,s.astNodeToNames=o,s.getParam=w,s.astNodeContainsSegmentsForProvidedParams=u,s.stringify=J,s})})(jt,jt.exports)),jt.exports}var Ei=Ai();const _i=yi(Ei);class Tr{constructor(e){this.path=Tr.normalizePath(e)}getDataProviderKey(){return new Qt(this.path)}static normalizePath(e){const t=String(e).trim();if(!t)throw new RangeError("Endpoint: path cannot be empty");if(/^https?:\/\//i.test(t)){let y;try{y=new URL(t)}catch{throw new RangeError("Endpoint: invalid absolute URL")}return y.pathname=y.pathname.replace(/\/+/g,"/"),y.href}const r=t.indexOf("?"),s=t.indexOf("#");let u=t.length;r>=0&&(u=Math.min(u,r)),s>=0&&(u=Math.min(u,s));let o=t.slice(0,u);const p=t.slice(u);if(o=o.replace(/^\/+/,""),o=o.replace(/\/+/g,"/"),!o&&p)throw new RangeError("Endpoint: path cannot be empty");return o+p}static isNonEmpty(e){return String(e).trim().length>0}static looksLikeDataProviderPath(e){return/^\s*dataProvider\s*\(/i.test(String(e))}toString(){return this.path}}function nr(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Cr={exports:{}},fn;function xi(){return fn||(fn=1,(function(n,e){(function(t){n.exports=t()})(function(){return(function(){function t(r,s,u){function o(P,M){if(!s[P]){if(!r[P]){var k=typeof nr=="function"&&nr;if(!M&&k)return k(P,!0);if(p)return p(P,!0);var w=new Error("Cannot find module '"+P+"'");throw w.code="MODULE_NOT_FOUND",w}var C=s[P]={exports:{}};r[P][0].call(C.exports,function(R){var N=r[P][1][R];return o(N||R)},C,C.exports,t,r,s,u)}return s[P].exports}for(var p=typeof nr=="function"&&nr,y=0;y<u.length;y++)o(u[y]);return o}return t})()({1:[function(t,r,s){const u=t("./utils"),o=(function(){const p=u.stringToArray,y=["Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen"],P=["Zeroth","First","Second","Third","Fourth","Fifth","Sixth","Seventh","Eighth","Ninth","Tenth","Eleventh","Twelfth","Thirteenth","Fourteenth","Fifteenth","Sixteenth","Seventeenth","Eighteenth","Nineteenth"],M=["Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety","Hundred"],k=["Thousand","Million","Billion","Trillion"];function w(_,D){var S=function(B,I,L){var q="";if(B<=19)q=(I?" and ":"")+(L?P[B]:y[B]);else if(B<100){const he=Math.floor(B/10),ue=B%10;q=(I?" and ":"")+M[he-2],ue>0?q+="-"+S(ue,!1,L):L&&(q=q.substring(0,q.length-1)+"ieth")}else if(B<1e3){const he=Math.floor(B/100),ue=B%100;q=(I?", ":"")+y[he]+" Hundred",ue>0?q+=S(ue,!0,L):L&&(q+="th")}else{var K=Math.floor(Math.log10(B)/3);K>k.length&&(K=k.length);const he=Math.pow(10,K*3),ue=Math.floor(B/he),te=B-ue*he;q=(I?", ":"")+S(ue,!1,!1)+" "+k[K-1],te>0?q+=S(te,!0,L):L&&(q+="th")}return q},U=S(_,!1,D);return U}const C=Object.create(null);y.forEach(function(_,D){C[_.toLowerCase()]=D}),P.forEach(function(_,D){C[_.toLowerCase()]=D}),M.forEach(function(_,D){const S=_.toLowerCase();C[S]=(D+2)*10,C[S.substring(0,_.length-1)+"ieth"]=C[S]}),C.hundredth=100,k.forEach(function(_,D){const S=_.toLowerCase(),U=Math.pow(10,(D+1)*3);C[S]=U,C[S+"th"]=U});function R(_){const S=_.split(/,\s|\sand\s|[\s\\-]/).map(I=>C[I]);let U=[0];return S.forEach(I=>{if(I<100){let L=U.pop();L>=1e3&&(U.push(L),L=0),U.push(L+I)}else U.push(U.pop()*I)}),U.reduce((I,L)=>I+L,0)}const N=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],ee={M:1e3,D:500,C:100,L:50,X:10,V:5,I:1};function J(_){for(var D=0;D<N.length;D++){const S=N[D];if(_>=S[0])return S[1]+J(_-S[0])}return""}function E(_){for(var D=0,S=1,U=_.length-1;U>=0;U--){const B=_[U],I=ee[B];I<S?D-=I:(S=I,D+=I)}return D}function v(_,D){for(var S=[],U=D.charCodeAt(0);_>0;)S.unshift(String.fromCharCode((_-1)%26+U)),_=Math.floor((_-1)/26);return S.join("")}function O(_,D){for(var S=D.charCodeAt(0),U=0,B=0;B<_.length;B++)U+=(_.charCodeAt(_.length-B-1)-S+1)*Math.pow(26,B);return U}function A(_,D){if(typeof _>"u")return;_=Math.floor(_);const S=ae(D);return F(_,S)}const T={DECIMAL:"decimal",LETTERS:"letters",ROMAN:"roman",WORDS:"words",SEQUENCE:"sequence"},H={UPPER:"upper",LOWER:"lower",TITLE:"title"};function F(_,D){let S;const U=_<0;switch(_=Math.abs(_),D.primary){case T.LETTERS:S=v(_,D.case===H.UPPER?"A":"a");break;case T.ROMAN:S=J(_),D.case===H.UPPER&&(S=S.toUpperCase());break;case T.WORDS:S=w(_,D.ordinal),D.case===H.UPPER?S=S.toUpperCase():D.case===H.LOWER&&(S=S.toLowerCase());break;case T.DECIMAL:S=""+_;var B=D.mandatoryDigits-S.length;if(B>0){var I=new Array(B+1).join("0");S=I+S}if(D.zeroCode!==48&&(S=p(S).map(he=>String.fromCodePoint(he.codePointAt(0)+D.zeroCode-48)).join("")),D.regular){const he=Math.floor((S.length-1)/D.groupingSeparators.position);for(let ue=he;ue>0;ue--){const te=S.length-ue*D.groupingSeparators.position;S=S.substr(0,te)+D.groupingSeparators.character+S.substr(te)}}else D.groupingSeparators.reverse().forEach(he=>{const ue=S.length-he.position;S=S.substr(0,ue)+he.character+S.substr(ue)});if(D.ordinal){var L={1:"st",2:"nd",3:"rd"},q=S[S.length-1],K=L[q];(!K||S.length>1&&S[S.length-2]==="1")&&(K="th"),S=S+K}break;case T.SEQUENCE:throw{code:"D3130",value:D.token}}return U&&(S="-"+S),S}const re=[48,1632,1776,1984,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,42528,43216,43264,43472,43504,43600,44016,65296];function ae(_){const D={type:"integer",primary:T.DECIMAL,case:H.LOWER,ordinal:!1};let S,U;const B=_.lastIndexOf(";");switch(B===-1?S=_:(S=_.substring(0,B),U=_.substring(B+1),U[0]==="o"&&(D.ordinal=!0)),S){case"A":D.case=H.UPPER;case"a":D.primary=T.LETTERS;break;case"I":D.case=H.UPPER;case"i":D.primary=T.ROMAN;break;case"W":D.case=H.UPPER,D.primary=T.WORDS;break;case"Ww":D.case=H.TITLE,D.primary=T.WORDS;break;case"w":D.primary=T.WORDS;break;default:{let I=null,L=0,q=0,K=[],he=0;if(p(S).map(te=>te.codePointAt(0)).reverse().forEach(te=>{let Z=!1;for(let le=0;le<re.length;le++){const Q=re[le];if(te>=Q&&te<=Q+9){if(Z=!0,L++,he++,I===null)I=Q;else if(Q!==I)throw{code:"D3131"};break}}Z||(te===35?(he++,q++):K.push({position:he,character:String.fromCodePoint(te)}))}),L>0){D.primary=T.DECIMAL,D.zeroCode=I,D.mandatoryDigits=L,D.optionalDigits=q;const Z=function(le){if(le.length===0)return 0;const Q=le[0].character;for(let Le=1;Le<le.length;Le++)if(le[Le].character!==Q)return 0;const Ne=le.map(Le=>Le.position),Qe=function(Le,Be){return Be===0?Le:Qe(Be,Le%Be)},je=Ne.reduce(Qe);for(let Le=1;Le<=Ne.length;Le++)if(Ne.indexOf(Le*je)===-1)return 0;return je}(K);Z>0?(D.regular=!0,D.groupingSeparators={position:Z,character:K[0].character}):(D.regular=!1,D.groupingSeparators=K)}else D.primary=T.SEQUENCE,D.token=S}}return D}const Ee={Y:"1",M:"1",D:"1",d:"1",F:"n",W:"1",w:"1",X:"1",x:"1",H:"1",h:"1",P:"n",m:"01",s:"01",f:"1",Z:"01:01",z:"01:01",C:"n",E:"n"};function ve(_){var D=[];const S={type:"datetime",parts:D},U=function(Z,le){if(le>Z){let Q=_.substring(Z,le);Q=Q.split("]]").join("]"),D.push({type:"literal",value:Q})}};for(var B=0,I=0;I<_.length;){if(_.charAt(I)==="["){if(_.charAt(I+1)==="["){U(B,I),D.push({type:"literal",value:"["}),I+=2,B=I;continue}if(U(B,I),B=I,I=_.indexOf("]",B),I===-1)throw{code:"D3135"};let Z=_.substring(B+1,I);Z=Z.split(/\s+/).join("");var L={type:"marker",component:Z.charAt(0)},q=Z.lastIndexOf(","),K;if(q!==-1){const le=Z.substring(q+1),Q=le.indexOf("-");let Ne,Qe;const je=function(Be){if(!(typeof Be>"u"||Be==="*"))return parseInt(Be)};Q===-1?Ne=le:(Ne=le.substring(0,Q),Qe=le.substring(Q+1));const Le={min:je(Ne),max:je(Qe)};L.width=Le,K=Z.substring(1,q)}else K=Z.substring(1);if(K.length===1)L.presentation1=K;else if(K.length>1){var he=K.charAt(K.length-1);"atco".indexOf(he)!==-1?(L.presentation2=he,he==="o"&&(L.ordinal=!0),L.presentation1=K.substring(0,K.length-1)):L.presentation1=K}else L.presentation1=Ee[L.component];if(typeof L.presentation1>"u")throw{code:"D3132",value:L.component};if(L.presentation1[0]==="n")L.names=H.LOWER;else if(L.presentation1[0]==="N")L.presentation1[1]==="n"?L.names=H.TITLE:L.names=H.UPPER;else if("YMDdFWwXxHhmsf".indexOf(L.component)!==-1){var ue=L.presentation1;if(L.presentation2&&(ue+=";"+L.presentation2),L.integerFormat=ae(ue),L.width&&L.width.min!==void 0&&L.integerFormat.mandatoryDigits<L.width.min&&(L.integerFormat.mandatoryDigits=L.width.min),L.component==="Y")if(L.n=-1,L.width&&L.width.max!==void 0)L.n=L.width.max,L.integerFormat.mandatoryDigits=L.n;else{var te=L.integerFormat.mandatoryDigits+L.integerFormat.optionalDigits;te>=2&&(L.n=te)}const le=D[D.length-1];le&&le.integerFormat&&(le.integerFormat.parseWidth=le.integerFormat.mandatoryDigits)}(L.component==="Z"||L.component==="z")&&(L.integerFormat=ae(L.presentation1)),D.push(L),B=I+1}I++}return U(B,I),S}const pe=["","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Te=["January","February","March","April","May","June","July","August","September","October","November","December"],Je=1e3*60*60*24,ce=function(_){const D=Date.UTC(_.year,_.month);var S=new Date(D).getUTCDay();return S===0&&(S=7),S>4?D+(8-S)*Je:D-(S-1)*Je},me=function(_,D){return{year:_,month:D,nextMonth:function(){return D===11?me(_+1,0):me(_,D+1)},previousMonth:function(){return D===0?me(_-1,11):me(_,D-1)},nextYear:function(){return me(_+1,D)},previousYear:function(){return me(_-1,D)}}},We=function(_,D){return(D-_)/(Je*7)+1},ie=(_,D)=>{let S;switch(D){case"Y":S=_.getUTCFullYear();break;case"M":S=_.getUTCMonth()+1;break;case"D":S=_.getUTCDate();break;case"d":{const U=Date.UTC(_.getUTCFullYear(),_.getUTCMonth(),_.getUTCDate()),B=Date.UTC(_.getUTCFullYear(),0);S=(U-B)/Je+1;break}case"F":S=_.getUTCDay(),S===0&&(S=7);break;case"W":{const U=me(_.getUTCFullYear(),0),B=ce(U),I=Date.UTC(U.year,_.getUTCMonth(),_.getUTCDate());let L=We(B,I);if(L>52){const q=ce(U.nextYear());I>=q&&(L=1)}else if(L<1){const q=ce(U.previousYear());L=We(q,I)}S=Math.floor(L);break}case"w":{const U=me(_.getUTCFullYear(),_.getUTCMonth()),B=ce(U),I=Date.UTC(U.year,U.month,_.getUTCDate());let L=We(B,I);if(L>4){const q=ce(U.nextMonth());I>=q&&(L=1)}else if(L<1){const q=ce(U.previousMonth());L=We(q,I)}S=Math.floor(L);break}case"X":{const U=me(_.getUTCFullYear(),0),B=ce(U),I=ce(U.nextYear()),L=_.getTime();L<B?S=U.year-1:L>=I?S=U.year+1:S=U.year;break}case"x":{const U=me(_.getUTCFullYear(),_.getUTCMonth()),B=ce(U),I=U.nextMonth(),L=ce(I),q=_.getTime();q<B?S=U.previousMonth().month+1:q>=L?S=I.month+1:S=U.month+1;break}case"H":S=_.getUTCHours();break;case"h":S=_.getUTCHours(),S=S%12,S===0&&(S=12);break;case"P":S=_.getUTCHours()>=12?"pm":"am";break;case"m":S=_.getUTCMinutes();break;case"s":S=_.getUTCSeconds();break;case"f":S=_.getUTCMilliseconds();break;case"Z":case"z":break;case"C":S="ISO";break;case"E":S="ISO";break}return S};let Ce=null;function nt(_,D,S){var U=0,B=0;if(typeof S<"u"){const ue=parseInt(S);U=Math.floor(ue/100),B=ue%100}var I=function(ue,te){var Z=ie(ue,te.component);if("YMDdFWwXxHhms".indexOf(te.component)!==-1)if(te.component==="Y"&&te.n!==-1&&(Z=Z%Math.pow(10,te.n)),te.names){if(te.component==="M"||te.component==="x")Z=Te[Z-1];else if(te.component==="F")Z=pe[Z];else throw{code:"D3133",value:te.component};te.names===H.UPPER?Z=Z.toUpperCase():te.names===H.LOWER&&(Z=Z.toLowerCase()),te.width&&Z.length>te.width.max&&(Z=Z.substring(0,te.width.max))}else Z=F(Z,te.integerFormat);else if(te.component==="f")Z=F(Z,te.integerFormat);else if(te.component==="Z"||te.component==="z"){const le=U*100+B;if(te.integerFormat.regular)Z=F(le,te.integerFormat);else{const Q=te.integerFormat.mandatoryDigits;if(Q===1||Q===2)Z=F(U,te.integerFormat),B!==0&&(Z+=":"+A(B,"00"));else if(Q===3||Q===4)Z=F(le,te.integerFormat);else throw{code:"D3134",value:Q}}le>=0&&(Z="+"+Z),te.component==="z"&&(Z="GMT"+Z),le===0&&te.presentation2==="t"&&(Z="Z")}else te.component==="P"&&te.names===H.UPPER&&(Z=Z.toUpperCase());return Z};let L;typeof D>"u"?(Ce===null&&(Ce=ve("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001][Z01:01t]")),L=Ce):L=ve(D);const q=(60*U+B)*60*1e3,K=new Date(_+q);let he="";return L.parts.forEach(function(ue){ue.type==="literal"?he+=ue.value:he+=I(K,ue)}),he}function h(_){var D=Object.create(null);if(_.type==="datetime")D.type="datetime",D.parts=_.parts.map(function(S){var U=Object.create(null);if(S.type==="literal")U.regex=S.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");else if(S.component==="Z"||S.component==="z"){let I;Array.isArray(S.integerFormat.groupingSeparators)||(I=S.integerFormat.groupingSeparators),U.regex="",S.component==="z"&&(U.regex="GMT"),U.regex+="[-+][0-9]+",I&&(U.regex+=I.character+"[0-9]+"),U.parse=function(L){S.component==="z"&&(L=L.substring(3));let q=0,K=0;return I?(q=Number.parseInt(L.substring(0,L.indexOf(I.character))),K=Number.parseInt(L.substring(L.indexOf(I.character)+1))):L.length-1<=2?q=Number.parseInt(L):(q=Number.parseInt(L.substring(0,3)),K=Number.parseInt(L.substring(3))),q*60+K}}else if(S.component==="f")U.regex="[0-9]+",U.parse=function(I){return parseFloat("0."+I.substring(0,3))*1e3};else if(S.integerFormat)U=h(S.integerFormat);else{U.regex="[a-zA-Z]+";var B=Object.create(null);if(S.component==="M"||S.component==="x")Te.forEach(function(I,L){S.width&&S.width.max?B[I.substring(0,S.width.max)]=L+1:B[I]=L+1});else if(S.component==="F")pe.forEach(function(I,L){L>0&&(S.width&&S.width.max?B[I.substring(0,S.width.max)]=L:B[I]=L)});else if(S.component==="P")B={am:0,AM:0,pm:1,PM:1};else throw{code:"D3133",value:S.component};U.parse=function(I){return B[I]}}return U.component=S.component,U});else{D.type="integer";const S=_.case===H.UPPER;switch(_.primary){case T.LETTERS:D.regex=S?"[A-Z]+":"[a-z]+",D.parse=function(U){return O(U,S?"A":"a")};break;case T.ROMAN:D.regex=S?"[MDCLXVI]+":"[mdclxvi]+",D.parse=function(U){return E(S?U:U.toUpperCase())};break;case T.WORDS:D.regex="(?:"+u.keys(C).concat("and","[\\-, ]").join("|")+")+",D.parse=function(U){return R(U.toLowerCase())};break;case T.DECIMAL:D.regex="[0-9]",_.parseWidth?D.regex+=`{${_.parseWidth}}`:D.regex+="+",_.ordinal&&(D.regex+="(?:th|st|nd|rd)"),D.parse=function(U){let B=U;return _.ordinal&&(B=U.substring(0,U.length-2)),_.regular?B=B.split(",").join(""):_.groupingSeparators.forEach(I=>{B=B.split(I.character).join("")}),_.zeroCode!==48&&(B=B.split("").map(I=>String.fromCodePoint(I.codePointAt(0)-_.zeroCode+48)).join("")),parseInt(B)};break;case T.SEQUENCE:throw{code:"D3130",value:_.token}}}return D}function b(_,D){if(typeof _>"u")return;const S=ae(D);return h(S).parse(_)}function G(_,D){const S=ve(D),U=h(S),B="^"+U.parts.map(K=>"("+K.regex+")").join("")+"$";var L=new RegExp(B,"i").exec(_);if(L!==null){const Q=Object.create(null);for(let c=1;c<L.length;c++){const f=U.parts[c-1];f.parse&&(Q[f.component]=f.parse(L[c]))}if(Object.getOwnPropertyNames(Q).length===0)return;let Ne=0;const Qe=c=>{Ne<<=1,Ne+=c?1:0},je=c=>!(~c&Ne)&&!!(c&Ne);"YXMxWwdD".split("").forEach(c=>Qe(Q[c]));const Be=!je(161)&&je(130),ot=je(84),Tt=!ot&&je(72);Ne=0,"PHhmsf".split("").forEach(c=>Qe(Q[c]));const z=!je(23)&&je(47),tt=(Be?"YD":ot?"XxwF":Tt?"XWF":"YMD")+(z?"Phmsf":"Hmsf"),Ht=this.environment.timestamp;let it=!1,yt=!1;if(tt.split("").forEach(c=>{if(typeof Q[c]>"u")it?(Q[c]="MDd".indexOf(c)!==-1?1:0,yt=!0):Q[c]=ie(Ht,c);else if(it=!0,yt)throw{code:"D3136"}}),Q.M>0?Q.M-=1:Q.M=0,Be){const c=Date.UTC(Q.Y,0),f=(Q.d-1)*1e3*60*60*24,d=new Date(c+f);Q.M=d.getUTCMonth(),Q.D=d.getUTCDate()}if(ot)throw{code:"D3136"};if(Tt)throw{code:"D3136"};z&&(Q.H=Q.h===12?0:Q.h,Q.P===1&&(Q.H+=12));var q=Date.UTC(Q.Y,Q.M,Q.D,Q.H,Q.m,Q.s,Q.f);return(Q.Z||Q.z)&&(q-=(Q.Z||Q.z)*60*1e3),q}}var fe=new RegExp("^\\d{4}(-[01]\\d)?(-[0-3]\\d)?(T[0-2]\\d:[0-5]\\d:[0-5]\\d)?(\\.\\d+)?([+-][0-2]\\d:?[0-5]\\d|Z)?$");function _e(_,D){if(!(typeof _>"u"))if(typeof D>"u"){if(!fe.test(_))throw{stack:new Error().stack,code:"D3110",value:_};return Date.parse(_)}else return G.call(this,_,D)}function we(_,D,S){if(!(typeof _>"u"))return nt.call(this,_,D,S)}return{formatInteger:A,parseInteger:b,fromMillis:we,toMillis:_e}})();r.exports=o},{"./utils":6}],2:[function(t,r,s){(function(u){(function(){var o=t("./utils");const p=(()=>{var y=o.isNumeric,P=o.isArrayOfStrings,M=o.isArrayOfNumbers,k=o.isSequence,w=o.isFunction,C=o.isLambda,R=o.isPromise,N=o.getFunctionArity,ee=o.isDeepEqual,J=o.stringToArray;function E(i){if(!(typeof i>"u")){var a=0;return i.forEach(function(l){a+=l}),a}}function v(i){return typeof i>"u"?0:i.length}function O(i){if(!(typeof i>"u"||i.length===0))return Math.max.apply(Math,i)}function A(i){if(!(typeof i>"u"||i.length===0))return Math.min.apply(Math,i)}function T(i){if(!(typeof i>"u"||i.length===0)){var a=0;return i.forEach(function(l){a+=l}),a/i.length}}function H(i,a=!1){if(!(typeof i>"u")){var l;if(typeof i=="string")l=i;else if(w(i))l="";else{if(typeof i=="number"&&!isFinite(i))throw{code:"D3001",value:i,stack:new Error().stack};var g=a?2:0;Array.isArray(i)&&i.outerWrapper&&(i=i[0]),l=JSON.stringify(i,function(m,x){return typeof x<"u"&&x!==null&&y(x)?x.toPrecision&&!Number.isInteger(x)?Number(x.toPrecision(15)):x:x&&w(x)?"":x},g)}return l}}function F(i,a,l){if(!(typeof i>"u")){var g=J(i),m=g.length;if(m+a<0&&(a=0),typeof l<"u"){if(l<=0)return"";var x=a>=0?a+l:m+a+l;return g.slice(a,x).join("")}return g.slice(a).join("")}}function re(i,a){if(!(typeof i>"u")){var l=i.indexOf(a);return l>-1?i.substr(0,l):i}}function ae(i,a){if(!(typeof i>"u")){var l=i.indexOf(a);return l>-1?i.substr(l+a.length):i}}function Ee(i){if(!(typeof i>"u"))return i.toLowerCase()}function ve(i){if(!(typeof i>"u"))return i.toUpperCase()}function pe(i){if(!(typeof i>"u"))return J(i).length}function Te(i){if(!(typeof i>"u")){var a=i.replace(/[ \t\n\r]+/gm," ");return a.charAt(0)===" "&&(a=a.substring(1)),a.charAt(a.length-1)===" "&&(a=a.substring(0,a.length-1)),a}}function Je(i,a,l){if(!(typeof i>"u")){(typeof l>"u"||l.length===0)&&(l=" ");var g;a=Math.trunc(a);var m=Math.abs(a)-pe(i);if(m>0){var x=new Array(m+1).join(l);l.length>1&&(x=F(x,0,m)),a>0?g=i+x:g=x+i}else g=i;return g}}async function ce(i,a){var l=i.apply(this,[a]);if(R(l)&&(l=await l),l&&!(typeof l.start=="number"||l.end==="number"||Array.isArray(l.groups)||w(l.next)))throw{code:"T1010",stack:new Error().stack};return l}async function me(i,a){if(!(typeof i>"u"||typeof a>"u")){var l;if(typeof a=="string")l=i.indexOf(a)!==-1;else{var g=await ce(a,i);l=typeof g<"u"}return l}}async function We(i,a,l){if(!(typeof i>"u")){if(l<0)throw{stack:new Error().stack,value:l,code:"D3040",index:3};var g=this.createSequence();if(typeof l>"u"||l>0){var m=0,x=await ce(a,i);if(typeof x<"u")for(;typeof x<"u"&&(typeof l>"u"||m<l);)g.push({match:x.match,index:x.start,groups:x.groups}),x=await ce(x.next),m++}return g}}async function ie(i,a,l,g){if(!(typeof i>"u")){var m=this;if(a==="")throw{code:"D3010",stack:new Error().stack,value:a,index:2};if(g<0)throw{code:"D3011",stack:new Error().stack,value:g,index:4};var x;typeof l=="string"?x=function(ke){for(var Me="",be=0,De=l.indexOf("$",be);De!==-1&&be<l.length;){Me+=l.substring(be,De),be=De+1;var et=l.charAt(be);if(et==="$")Me+="$",be++;else if(et==="0")Me+=ke.match,be++;else{var qe;if(ke.groups.length===0?qe=1:qe=Math.floor(Math.log(ke.groups.length)*Math.LOG10E)+1,De=parseInt(l.substring(be,be+qe),10),qe>1&&De>ke.groups.length&&(De=parseInt(l.substring(be,be+qe-1),10)),isNaN(De))Me+="$";else{if(ke.groups.length>0){var st=ke.groups[De-1];typeof st<"u"&&(Me+=st)}be+=De.toString().length}}De=l.indexOf("$",be)}return Me+=l.substring(be),Me}:x=l;var $="",j=0;if(typeof g>"u"||g>0){var se=0;if(typeof a=="string"){for(var W=i.indexOf(a,j);W!==-1&&(typeof g>"u"||se<g);)$+=i.substring(j,W),$+=l,j=W+a.length,se++,W=i.indexOf(a,j);$+=i.substring(j)}else{var Ae=await ce(a,i);if(typeof Ae<"u"){for(;typeof Ae<"u"&&(typeof g>"u"||se<g);){$+=i.substring(j,Ae.start);var xe=x.apply(m,[Ae]);if(R(xe)&&(xe=await xe),typeof xe=="string")$+=xe;else throw{code:"D3012",stack:new Error().stack,value:xe};j=Ae.start+Ae.match.length,se++,Ae=await ce(Ae.next)}$+=i.substring(j)}else $=i}}else $=i;return $}}function Ce(i){if(!(typeof i>"u")){var a=typeof window<"u"?window.btoa:function(l){return new u.Buffer.from(l,"binary").toString("base64")};return a(i)}}function nt(i){if(!(typeof i>"u")){var a=typeof window<"u"?window.atob:function(l){return new u.Buffer.from(l,"base64").toString("binary")};return a(i)}}function h(i){if(!(typeof i>"u")){var a;try{a=encodeURIComponent(i)}catch{throw{code:"D3140",stack:new Error().stack,value:i,functionName:"encodeUrlComponent"}}return a}}function b(i){if(!(typeof i>"u")){var a;try{a=encodeURI(i)}catch{throw{code:"D3140",stack:new Error().stack,value:i,functionName:"encodeUrl"}}return a}}function G(i){if(!(typeof i>"u")){var a;try{a=decodeURIComponent(i)}catch{throw{code:"D3140",stack:new Error().stack,value:i,functionName:"decodeUrlComponent"}}return a}}function fe(i){if(!(typeof i>"u")){var a;try{a=decodeURI(i)}catch{throw{code:"D3140",stack:new Error().stack,value:i,functionName:"decodeUrl"}}return a}}async function _e(i,a,l){if(!(typeof i>"u")){if(l<0)throw{code:"D3020",stack:new Error().stack,value:l,index:3};var g=[];if(typeof l>"u"||l>0)if(typeof a=="string")g=i.split(a,l);else{var m=0,x=await ce(a,i);if(typeof x<"u"){for(var $=0;typeof x<"u"&&(typeof l>"u"||m<l);)g.push(i.substring($,x.start)),$=x.end,x=await ce(x.next),m++;(typeof l>"u"||m<l)&&g.push(i.substring($))}else g.push(i)}return g}}function we(i,a){if(!(typeof i>"u"))return typeof a>"u"&&(a=""),i.join(a)}function _(i,a,l){if(!(typeof i>"u")){var g={"decimal-separator":".","grouping-separator":",","exponent-separator":"e",infinity:"Infinity","minus-sign":"-",NaN:"NaN",percent:"%","per-mille":"‰","zero-digit":"0",digit:"#","pattern-separator":";"},m=g;typeof l<"u"&&o.keys(l).forEach(function(ne){m[ne]=l[ne]});for(var x=[],$=m["zero-digit"].charCodeAt(0),j=$;j<$+10;j++)x.push(String.fromCharCode(j));var se=x.concat([m["decimal-separator"],m["exponent-separator"],m["grouping-separator"],m.digit,m["pattern-separator"]]),W=a.split(m["pattern-separator"]);if(W.length>2)throw{code:"D3080",stack:new Error().stack};var Ae=function(ne){var Pe=(function(){for(var Ue,Ze=0;Ze<ne.length;Ze++)if(Ue=ne.charAt(Ze),se.indexOf(Ue)!==-1&&Ue!==m["exponent-separator"])return ne.substring(0,Ze);return""})(),He=(function(){for(var Ue,Ze=ne.length-1;Ze>=0;Ze--)if(Ue=ne.charAt(Ze),se.indexOf(Ue)!==-1&&Ue!==m["exponent-separator"])return ne.substring(Ze+1);return""})(),Se=ne.substring(Pe.length,ne.length-He.length),Ye,mt,Xe,wt,Ke=ne.indexOf(m["exponent-separator"],Pe.length);Ke===-1||Ke>ne.length-He.length?(Ye=Se,mt=void 0):(Ye=Se.substring(0,Ke),mt=Se.substring(Ke+1));var rt=Ye.indexOf(m["decimal-separator"]);return rt===-1?(Xe=Ye,wt=He):(Xe=Ye.substring(0,rt),wt=Ye.substring(rt+1)),{prefix:Pe,suffix:He,activePart:Se,mantissaPart:Ye,exponentPart:mt,integerPart:Xe,fractionalPart:wt,subpicture:ne}},xe=function(ne){var Pe,He,Se=ne.subpicture,Ye=Se.indexOf(m["decimal-separator"]);Ye!==Se.lastIndexOf(m["decimal-separator"])&&(Pe="D3081"),Se.indexOf(m.percent)!==Se.lastIndexOf(m.percent)&&(Pe="D3082"),Se.indexOf(m["per-mille"])!==Se.lastIndexOf(m["per-mille"])&&(Pe="D3083"),Se.indexOf(m.percent)!==-1&&Se.indexOf(m["per-mille"])!==-1&&(Pe="D3084");var mt=!1;for(He=0;He<ne.mantissaPart.length;He++){var Xe=ne.mantissaPart.charAt(He);if(x.indexOf(Xe)!==-1||Xe===m.digit){mt=!0;break}}mt||(Pe="D3085");var wt=ne.activePart.split("").map(function(Ue){return se.indexOf(Ue)===-1?"p":"a"}).join("");wt.indexOf("p")!==-1&&(Pe="D3086"),Ye!==-1?(Se.charAt(Ye-1)===m["grouping-separator"]||Se.charAt(Ye+1)===m["grouping-separator"])&&(Pe="D3087"):ne.integerPart.charAt(ne.integerPart.length-1)===m["grouping-separator"]&&(Pe="D3088"),Se.indexOf(m["grouping-separator"]+m["grouping-separator"])!==-1&&(Pe="D3089");var Ke=ne.integerPart.indexOf(m.digit);Ke!==-1&&ne.integerPart.substring(0,Ke).split("").filter(function(Ue){return x.indexOf(Ue)>-1}).length>0&&(Pe="D3090"),Ke=ne.fractionalPart.lastIndexOf(m.digit),Ke!==-1&&ne.fractionalPart.substring(Ke).split("").filter(function(Ue){return x.indexOf(Ue)>-1}).length>0&&(Pe="D3091");var rt=typeof ne.exponentPart=="string";if(rt&&ne.exponentPart.length>0&&(Se.indexOf(m.percent)!==-1||Se.indexOf(m["per-mille"])!==-1)&&(Pe="D3092"),rt&&(ne.exponentPart.length===0||ne.exponentPart.split("").filter(function(Ue){return x.indexOf(Ue)===-1}).length>0)&&(Pe="D3093"),Pe)throw{code:Pe,stack:new Error().stack}},ke=function(ne){var Pe=function(Ie,hr){for(var Wt=[],ut=Ie.indexOf(m["grouping-separator"]);ut!==-1;){var dr=(hr?Ie.substring(0,ut):Ie.substring(ut)).split("").filter(function(Rt){return x.indexOf(Rt)!==-1||Rt===m.digit}).length;Wt.push(dr),ut=ne.integerPart.indexOf(m["grouping-separator"],ut+1)}return Wt},He=Pe(ne.integerPart),Se=function(Ie){if(Ie.length===0)return 0;for(var hr=function(dr,Rt){return Rt===0?dr:hr(Rt,dr%Rt)},Wt=Ie.reduce(hr),ut=1;ut<=Ie.length;ut++)if(Ie.indexOf(ut*Wt)===-1)return 0;return Wt},Ye=Se(He),mt=Pe(ne.fractionalPart,!0),Xe=ne.integerPart.split("").filter(function(Ie){return x.indexOf(Ie)!==-1}).length,wt=Xe,Ke=ne.fractionalPart.split(""),rt=Ke.filter(function(Ie){return x.indexOf(Ie)!==-1}).length,Ue=Ke.filter(function(Ie){return x.indexOf(Ie)!==-1||Ie===m.digit}).length,Ze=typeof ne.exponentPart=="string";Xe===0&&Ue===0&&(Ze?(rt=1,Ue=1):Xe=1),Ze&&Xe===0&&ne.integerPart.indexOf(m.digit)!==-1&&(Xe=1),Xe===0&&rt===0&&(rt=1);var Cn=0;return Ze&&(Cn=ne.exponentPart.split("").filter(function(Ie){return x.indexOf(Ie)!==-1}).length),{integerPartGroupingPositions:He,regularGrouping:Ye,minimumIntegerPartSize:Xe,scalingFactor:wt,prefix:ne.prefix,fractionalPartGroupingPositions:mt,minimumFactionalPartSize:rt,maximumFactionalPartSize:Ue,minimumExponentSize:Cn,suffix:ne.suffix,picture:ne.subpicture}},Me=W.map(Ae);Me.forEach(xe);var be=Me.map(ke),De=m["minus-sign"],et=m["zero-digit"],qe=m["decimal-separator"],st=m["grouping-separator"];be.length===1&&(be.push(JSON.parse(JSON.stringify(be[0]))),be[1].prefix=De+be[1].prefix);var Oe;i>=0?Oe=be[0]:Oe=be[1];var Gt;Oe.picture.indexOf(m.percent)!==-1?Gt=i*100:Oe.picture.indexOf(m["per-mille"])!==-1?Gt=i*1e3:Gt=i;var pt,Dt;if(Oe.minimumExponentSize===0)pt=Gt;else{var ls=Math.pow(10,Oe.scalingFactor),fs=Math.pow(10,Oe.scalingFactor-1);if(pt=Gt,Dt=0,pt!==0){for(;Math.abs(pt)<fs;)pt*=10,Dt-=1;for(;Math.abs(pt)>ls;)pt/=10,Dt+=1}}var hs=L(pt,Oe.maximumFactionalPartSize),Pn=function(ne,Pe){var He=Math.abs(ne).toFixed(Pe);return et!=="0"&&(He=He.split("").map(function(Se){return Se>="0"&&Se<="9"?x[Se.charCodeAt(0)-48]:Se}).join("")),He},oe=Pn(hs,Oe.maximumFactionalPartSize),ze=oe.indexOf(".");for(ze===-1?oe=oe+qe:oe=oe.replace(".",qe);oe.charAt(0)===et;)oe=oe.substring(1);for(;oe.charAt(oe.length-1)===et;)oe=oe.substring(0,oe.length-1);ze=oe.indexOf(qe);var Vt=Oe.minimumIntegerPartSize-ze,Tn=Oe.minimumFactionalPartSize-(oe.length-ze-1);if(oe=(Vt>0?new Array(Vt+1).join(et):"")+oe,oe=oe+(Tn>0?new Array(Tn+1).join(et):""),ze=oe.indexOf(qe),Oe.regularGrouping>0)for(var ds=Math.floor((ze-1)/Oe.regularGrouping),lr=1;lr<=ds;lr++)oe=[oe.slice(0,ze-lr*Oe.regularGrouping),st,oe.slice(ze-lr*Oe.regularGrouping)].join("");else Oe.integerPartGroupingPositions.forEach(function(ne){oe=[oe.slice(0,ze-ne),st,oe.slice(ze-ne)].join(""),ze++});if(ze=oe.indexOf(qe),Oe.fractionalPartGroupingPositions.forEach(function(ne){oe=[oe.slice(0,ne+ze+1),st,oe.slice(ne+ze+1)].join("")}),ze=oe.indexOf(qe),(Oe.picture.indexOf(qe)===-1||ze===oe.length-1)&&(oe=oe.substring(0,oe.length-1)),typeof Dt<"u"){var fr=Pn(Dt,0);Vt=Oe.minimumExponentSize-fr.length,Vt>0&&(fr=new Array(Vt+1).join(et)+fr),oe=oe+m["exponent-separator"]+(Dt<0?De:"")+fr}return oe=Oe.prefix+oe+Oe.suffix,oe}}function D(i,a){if(!(typeof i>"u")){if(i=L(i),typeof a>"u"?a=10:a=L(a),a<2||a>36)throw{code:"D3100",stack:new Error().stack,value:a};var l=i.toString(a);return l}}function S(i){var a;if(!(typeof i>"u")){if(typeof i=="number")a=i;else if(typeof i=="string"&&/^-?[0-9]+(\.[0-9]+)?([Ee][-+]?[0-9]+)?$/.test(i)&&!isNaN(parseFloat(i))&&isFinite(i))a=parseFloat(i);else if(typeof i=="string"&&/^(0[xX][0-9A-Fa-f]+)|(0[oO][0-7]+)|(0[bB][0-1]+)$/.test(i))a=Number(i);else if(i===!0)a=1;else if(i===!1)a=0;else throw{code:"D3030",value:i,stack:new Error().stack,index:1};return a}}function U(i){var a;if(!(typeof i>"u"))return a=Math.abs(i),a}function B(i){var a;if(!(typeof i>"u"))return a=Math.floor(i),a}function I(i){var a;if(!(typeof i>"u"))return a=Math.ceil(i),a}function L(i,a){var l;if(!(typeof i>"u")){if(a){var g=i.toString().split("e");i=+(g[0]+"e"+(g[1]?+g[1]+a:a))}l=Math.round(i);var m=l-i;return Math.abs(m)===.5&&Math.abs(l%2)===1&&(l=l-1),a&&(g=l.toString().split("e"),l=+(g[0]+"e"+(g[1]?+g[1]-a:-a))),Object.is(l,-0)&&(l=0),l}}function q(i){var a;if(!(typeof i>"u")){if(i<0)throw{stack:new Error().stack,code:"D3060",index:1,value:i};return a=Math.sqrt(i),a}}function K(i,a){var l;if(!(typeof i>"u")){if(l=Math.pow(i,a),!isFinite(l))throw{stack:new Error().stack,code:"D3061",index:1,value:i,exp:a};return l}}function he(){return Math.random()}function ue(i){if(!(typeof i>"u")){var a=!1;if(Array.isArray(i)){if(i.length===1)a=ue(i[0]);else if(i.length>1){var l=i.filter(function(g){return ue(g)});a=l.length>0}}else typeof i=="string"?i.length>0&&(a=!0):y(i)?i!==0&&(a=!0):i!==null&&typeof i=="object"&&!w(i)?o.keys(i).length>0&&(a=!0):typeof i=="boolean"&&i===!0&&(a=!0);return a}}function te(i){if(!(typeof i>"u"))return!ue(i)}function Z(i,a,l,g){var m=[a],x=N(i);return x>=2&&m.push(l),x>=3&&m.push(g),m}async function le(i,a){if(!(typeof i>"u")){for(var l=this.createSequence(),g=0;g<i.length;g++){var m=Z(a,i[g],g,i),x=await a.apply(this,m);typeof x<"u"&&l.push(x)}return l}}async function Q(i,a){if(!(typeof i>"u")){for(var l=this.createSequence(),g=0;g<i.length;g++){var m=i[g],x=Z(a,m,g,i),$=await a.apply(this,x);ue($)&&l.push(m)}return l}}async function Ne(i,a){if(!(typeof i>"u")){for(var l=!1,g,m=0;m<i.length;m++){var x=i[m],$=!0;if(typeof a<"u"){var j=Z(a,x,m,i),se=await a.apply(this,j);$=ue(se)}if($)if(!l)g=x,l=!0;else throw{stack:new Error().stack,code:"D3138",index:m}}if(!l)throw{stack:new Error().stack,code:"D3139"};return g}}function Qe(){for(var i=[],a=Array.prototype.slice.call(arguments),l=Math.min.apply(Math,a.map(function(x){return Array.isArray(x)?x.length:0})),g=0;g<l;g++){var m=a.map(x=>x[g]);i.push(m)}return i}async function je(i,a,l){if(!(typeof i>"u")){var g,m=N(a);if(m<2)throw{stack:new Error().stack,code:"D3050",index:1};var x;for(typeof l>"u"&&i.length>0?(g=i[0],x=1):(g=l,x=0);x<i.length;){var $=[g,i[x]];m>=3&&$.push(x),m>=4&&$.push(i),g=await a.apply(this,$),x++}return g}}function Le(i){var a=this.createSequence();if(Array.isArray(i)){for(var l=Object.create(null),g=0;g<i.length;g++){var m=Le.call(this,i[g]);m.forEach(function(x){l[x]=!0})}a=Le.call(this,l)}else i!==null&&typeof i=="object"&&!w(i)&&o.keys(i).forEach(x=>a.push(x));return a}function Be(i,a){var l;if(Array.isArray(i)){l=this.createSequence();for(var g=0;g<i.length;g++){var m=Be.call(this,i[g],a);typeof m<"u"&&(Array.isArray(m)?m.forEach(x=>l.push(x)):l.push(m))}}else i!==null&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,a)&&!w(i)&&(l=i[a]);return l}function ot(i,a){if(typeof i>"u")return a;if(typeof a>"u")return i;Array.isArray(i)||(i=this.createSequence(i)),Array.isArray(a)||(a=[a]);const l=i.length+a.length;if(this.options&&l>this.options.sequence)throw{code:"D2015",stack:new Error().stack,value:l};return i.concat(a)}function Tt(i){return!(typeof i>"u")}function Ct(i){var a=this.createSequence();if(Array.isArray(i))for(var l=0;l<i.length;l++)a=ot.call(this,a,Ct.call(this,i[l]));else if(i!==null&&typeof i=="object"&&!C(i))for(const m of o.keys(i)){var g=Object.create(null);g[m]=i[m],a.push(g)}else a=i;return a}function z(i){if(!(typeof i>"u")){var a=Object.create(null);return i.forEach(function(l){for(const g of o.keys(l))a[g]=l[g]}),a}}function ur(i){if(!(typeof i>"u")){if(i.length<=1)return i;for(var a=i.length,l=new Array(a),g=0;g<a;g++)l[a-g-1]=i[g];return l}}async function cr(i,a){var l=this.createSequence();for(const x of o.keys(i)){var g=Z(a,i[x],x,i),m=await a.apply(this,g);typeof m<"u"&&l.push(m)}return l}function tt(i){throw{code:"D3137",stack:new Error().stack,message:i||"$error() function evaluated"}}function Ht(i,a){if(!i)throw{code:"D3141",stack:new Error().stack,message:a||"$assert() statement failed"}}function it(i){if(i!==void 0)return i===null?"null":y(i)?"number":typeof i=="string"?"string":typeof i=="boolean"?"boolean":Array.isArray(i)?"array":w(i)?"function":"object"}async function yt(i,a){if(!(typeof i>"u")){if(i.length<=1)return i;var l;if(typeof a>"u"){if(!M(i)&&!P(i))throw{stack:new Error().stack,code:"D3070",index:1};l=async function($,j){return $>j}}else l=a;var g=async function($,j){var se=async function(Ae,xe,ke){xe.length===0?Array.prototype.push.apply(Ae,ke):ke.length===0?Array.prototype.push.apply(Ae,xe):await l(xe[0],ke[0])?(Ae.push(ke[0]),await se(Ae,xe,ke.slice(1))):(Ae.push(xe[0]),await se(Ae,xe.slice(1),ke))},W=[];return await se(W,$,j),W},m=async function($){if(!Array.isArray($)||$.length<=1)return $;var j=Math.floor($.length/2),se=$.slice(0,j),W=$.slice(j);return se=await m(se),W=await m(W),await g(se,W)},x=await m(i);return x}}function c(i){if(!(typeof i>"u")){if(i.length<=1)return i;for(var a=new Array(i.length),l=0;l<i.length;l++){var g=Math.floor(Math.random()*(l+1));l!==g&&(a[l]=a[g]),a[g]=i[l]}return a}}function f(i){if(!(typeof i>"u")){if(!Array.isArray(i)||i.length<=1)return i;for(var a=k(i)?this.createSequence():[],l=0;l<i.length;l++){for(var g=i[l],m=!1,x=0;x<a.length;x++)if(ee(g,a[x])){m=!0;break}m||a.push(g)}return a}}async function d(i,a){var l=Object.create(null);for(const $ of o.keys(i)){var g=i[$],m=Z(a,g,$,i),x=await a.apply(this,m);ue(x)&&(l[$]=g)}return o.keys(l).length===0&&(l=void 0),l}return{sum:E,count:v,max:O,min:A,average:T,string:H,substring:F,substringBefore:re,substringAfter:ae,lowercase:Ee,uppercase:ve,length:pe,trim:Te,pad:Je,match:We,contains:me,replace:ie,split:_e,join:we,formatNumber:_,formatBase:D,number:S,floor:B,ceil:I,round:L,abs:U,sqrt:q,power:K,random:he,boolean:ue,not:te,map:le,zip:Qe,filter:Q,single:Ne,foldLeft:je,sift:d,keys:Le,lookup:Be,append:ot,exists:Tt,spread:Ct,merge:z,reverse:ur,each:cr,error:tt,assert:Ht,type:it,sort:yt,shuffle:c,distinct:f,base64encode:Ce,base64decode:nt,encodeUrlComponent:h,encodeUrl:b,decodeUrlComponent:G,decodeUrl:fe}})();r.exports=p}).call(this)}).call(this,typeof cn<"u"?cn:typeof self<"u"?self:typeof window<"u"?window:{})},{"./utils":6}],3:[function(t,r,s){var u=t("./datetime"),o=t("./functions"),p=t("./utils"),y=t("./parser"),P=t("./signature"),M=(function(){var k=p.isNumeric,w=p.isArrayOfStrings,C=p.isArrayOfNumbers,R=p.isSequence,N=p.isFunction,ee=p.isLambda,J=p.isIterable,E=p.isPromise,v=p.getFunctionArity,O=p.isDeepEqual,A=tt(null);async function T(c,f,d){var i;d.base.depth++,d.base.guardrails();var a=d.lookup(Symbol.for("jsonata.__evaluate_entry"));switch(a&&await a(c,f,d),c.type){case"path":i=await H(c,f,d);break;case"binary":i=await pe(c,f,d);break;case"unary":i=await Te(c,f,d);break;case"name":i=Je(c,f,d);break;case"string":case"number":case"value":i=ce(c);break;case"wildcard":i=me(c,f,d);break;case"descendant":i=ie(c,f,d);break;case"parent":i=d.lookup(c.slot.label);break;case"condition":i=await B(c,f,d);break;case"block":i=await I(c,f,d);break;case"bind":i=await U(c,f,d);break;case"regex":i=L(c,f,d);break;case"function":i=await Z(c,f,d);break;case"variable":i=q(c,f,d);break;case"lambda":i=Ne(c,f,d);break;case"partial":i=await Qe(c,f,d);break;case"apply":i=await te(c,f,d);break;case"transform":i=he(c,f,d);break}if(Object.prototype.hasOwnProperty.call(c,"predicate"))for(var l=0;l<c.predicate.length;l++)i=await ve(c.predicate[l].expr,i,d);c.type!=="path"&&Object.prototype.hasOwnProperty.call(c,"group")&&(i=await _(c.group,i,d));var g=d.lookup(Symbol.for("jsonata.__evaluate_exit"));return g&&await g(c,f,d,i),i&&R(i)&&!i.tupleStream&&(c.keepArray&&(i.keepSingleton=!0),i.length===0?i=void 0:i.length===1&&(i=i.keepSingleton?i:i[0])),d.base.depth--,i}async function H(c,f,d){var i;Array.isArray(f)&&c.steps[0].type!=="variable"?i=f:i=d.base.createSequence(f);for(var a,l=!1,g=void 0,m=0;m<c.steps.length;m++){var x=c.steps[m];if(x.tuple&&(l=!0),m===0&&x.consarray?a=await T(x,i,d):l?g=await Ee(x,i,g,d):a=await re(x,i,d,m===c.steps.length-1),!l&&(typeof a>"u"||a.length===0))break;typeof x.focus>"u"&&(i=a)}if(l)if(c.tuple)a=g;else for(a=d.base.createSequence(),m=0;m<g.length;m++)a.push(g[m]["@"]);return c.keepSingletonArray&&(Array.isArray(a)&&a.cons&&!a.sequence&&(a=d.base.createSequence(a)),a.keepSingleton=!0),Object.prototype.hasOwnProperty.call(c,"group")&&(a=await _(c.group,l?g:a,d)),a}function F(c,f){var d=tt(c);for(const i of p.keys(f))d.bind(i,f[i]);return d}async function re(c,f,d,i){var a;if(c.type==="sort")return a=await K(c,f,d),c.stages&&(a=await ae(c.stages,a,d)),a;a=d.base.createSequence();for(var l=0;l<f.length;l++){var g=await T(c,f[l],d);if(c.stages)for(var m=0;m<c.stages.length;m++)g=await ve(c.stages[m].expr,g,d);typeof g<"u"&&a.push(g)}var x=d.base.createSequence();return i&&a.length===1&&Array.isArray(a[0])&&!R(a[0])?x=a[0]:Array.prototype.forEach.call(a,function($){!Array.isArray($)||$.cons?x.push($):Array.prototype.forEach.call($,j=>x.push(j))}),x}async function ae(c,f,d){for(var i=f,a=0;a<c.length;a++){var l=c[a];switch(l.type){case"filter":i=await ve(l.expr,i,d);break;case"index":for(var g=0;g<i.length;g++){var m=i[g];m[l.value]=g}break}}return i}async function Ee(c,f,d,i){var a;if(c.type==="sort"){if(d)a=await K(c,d,i);else{var l=await K(c,f,i);a=i.base.createSequence(),a.tupleStream=!0;for(var g=0;g<l.length;g++){var m={"@":l[g]};m[c.index]=g,a.push(m)}}return c.stages&&(a=await ae(c.stages,a,i)),a}a=i.base.createSequence(),a.tupleStream=!0;var x=i;d===void 0&&(d=f.map(W=>({"@":W})));for(var $=0;$<d.length;$++){x=F(i,d[$]);var j=await T(c,d[$]["@"],x);if(typeof j<"u"){Array.isArray(j)||(j=[j]);for(var se=0;se<j.length;se++)m=Object.create(null),Object.assign(m,d[$]),j.tupleStream?Object.assign(m,j[se]):(c.focus?(m[c.focus]=j[se],m["@"]=d[$]["@"]):m["@"]=j[se],c.index&&(m[c.index]=se),c.ancestor&&(m[c.ancestor.label]=d[$]["@"])),a.push(m)}}return c.stages&&(a=await ae(c.stages,a,i)),a}async function ve(c,f,d){var i=d.base.createSequence();if(f&&f.tupleStream&&(i.tupleStream=!0),Array.isArray(f)||(f=d.base.createSequence(f)),c.type==="number"){var a=Math.floor(c.value);a<0&&(a=f.length+a);var l=await f[a];typeof l<"u"&&(Array.isArray(l)?i=l:i.push(l))}else for(a=0;a<f.length;a++){var l=f[a],g=l,m=d;f.tupleStream&&(g=l["@"],m=F(d,l));var x=await T(c,g,m);k(x)&&(x=[x]),C(x)?Array.prototype.forEach.call(x,function(j){var se=Math.floor(j);se<0&&(se=f.length+se),se===a&&i.push(l)}):o.boolean(x)&&i.push(l)}return i}async function pe(c,f,d){var i,a=await T(c.lhs,f,d),l=c.value,g=async()=>await T(c.rhs,f,d);if(l==="and"||l==="or")try{return await fe(a,g,l)}catch(x){throw x.position=c.position,x.token=l,x}var m=await g();try{switch(l){case"+":case"-":case"*":case"/":case"%":i=nt(a,m,l);break;case"=":case"!=":i=h(a,m,l);break;case"<":case"<=":case">":case">=":i=b(a,m,l);break;case"&":i=we(a,m);break;case"..":i=S(a,m,d);break;case"in":i=G(a,m);break}}catch(x){throw x.position=c.position,x.token=l,x}return i}async function Te(c,f,d){var i,a={options:d.base.options,createSequence:d.base.createSequence};switch(c.value){case"-":if(i=await T(c.expression,f,d),typeof i>"u")i=void 0;else if(k(i))i=-i;else throw{code:"D1002",stack:new Error().stack,position:c.position,token:c.value,value:i};break;case"[":i=[];let m=await Promise.all(c.expressions.map(async(x,$)=>(d.isParallelCall=$>0,[x,await T(x,f,d)])));for(let x of m){var[l,g]=x;typeof g<"u"&&(l.value==="["?i.push(g):i=o.append.call(a,i,g))}c.consarray&&Object.defineProperty(i,"cons",{enumerable:!1,configurable:!1,value:!0});break;case"{":i=await _(c,f,d);break}return i}function Je(c,f,d){var i={createSequence:d.base.createSequence};return o.lookup.call(i,f,c.value)}function ce(c){return c.value}function me(c,f,d){var i={options:d.base.options,createSequence:d.base.createSequence},a=i.createSequence();return Array.isArray(f)&&f.outerWrapper&&f.length>0&&(f=f[0]),f!==null&&typeof f=="object"&&!N(f)&&p.keys(f).forEach(function(l){var g=f[l];Array.isArray(g)?(g=We(g),a=o.append.call(i,a,g)):a.push(g)}),a}function We(c,f){return typeof f>"u"&&(f=[]),Array.isArray(c)?Array.prototype.forEach.call(c,function(d){We(d,f)}):f.push(c),f}function ie(c,f,d){var i,a=d.base.createSequence();return typeof f<"u"&&(Ce(f,a),a.length===1?i=a[0]:i=a),i}function Ce(c,f){Array.isArray(c)||f.push(c),Array.isArray(c)?Array.prototype.forEach.call(c,function(d){Ce(d,f)}):c!==null&&typeof c=="object"&&!N(c)&&p.keys(c).forEach(function(d){Ce(c[d],f)})}function nt(c,f,d){var i;if(typeof c<"u"&&!k(c))throw{code:"T2001",stack:new Error().stack,value:c};if(typeof f<"u"&&!k(f))throw{code:"T2002",stack:new Error().stack,value:f};if(typeof c>"u"||typeof f>"u")return i;switch(d){case"+":i=c+f;break;case"-":i=c-f;break;case"*":i=c*f;break;case"/":i=c/f;break;case"%":i=c%f;break}return i}function h(c,f,d){var i,a=typeof c,l=typeof f;if(a==="undefined"||l==="undefined")return!1;switch(d){case"=":i=O(c,f);break;case"!=":i=!O(c,f);break}return i}function b(c,f,d){var i,a=typeof c,l=typeof f,g=a==="undefined"||a==="string"||a==="number",m=l==="undefined"||l==="string"||l==="number";if(!g||!m)throw{code:"T2010",stack:new Error().stack,value:a==="string"||a==="number"?f:c};if(!(a==="undefined"||l==="undefined")){if(a!==l)throw{code:"T2009",stack:new Error().stack,value:c,value2:f};switch(d){case"<":i=c<f;break;case"<=":i=c<=f;break;case">":i=c>f;break;case">=":i=c>=f;break}return i}}function G(c,f){var d=!1;if(typeof c>"u"||typeof f>"u")return!1;Array.isArray(f)||(f=[f]);for(var i=0;i<f.length;i++)if(f[i]===c){d=!0;break}return d}async function fe(c,f,d){var i,a=_e(c);switch(d){case"and":i=a&&_e(await f());break;case"or":i=a||_e(await f());break}return i}function _e(c){var f=o.boolean(c);return typeof f>"u"?!1:f}function we(c,f){var d,i="",a="";return typeof c<"u"&&(i=o.string(c)),typeof f<"u"&&(a=o.string(f)),d=i.concat(a),d}async function _(c,f,d){var i=Object.create(null),a=Object.create(null),l=!!(f&&f.tupleStream),g={options:d.base.options,createSequence:d.base.createSequence};Array.isArray(f)||(d.base.options,f=g.createSequence(f)),f.length===0&&!l&&f.push(void 0);for(var m=0;m<f.length;m++)for(var x=f[m],$=l?F(d,x):d,j=0;j<c.lhs.length;j++){var se=c.lhs[j],W=await T(se[0],l?x["@"]:x,$);if(typeof W!="string"&&W!==void 0)throw{code:"T1003",stack:new Error().stack,position:c.position,value:W};if(W!==void 0){if(W==="_jsonata_lambda"||W==="_jsonata_function")throw{code:"D1013",stack:new Error().stack,position:c.position,value:W};var Ae={data:x,exprIndex:j};if(Object.prototype.hasOwnProperty.call(a,W)){if(a[W].exprIndex!==j)throw{code:"D1009",stack:new Error().stack,position:c.position,value:W};a[W].data=o.append.call(g,a[W].data,x)}else a[W]=Ae}}let xe=await Promise.all(p.keys(a).map(async(Me,be)=>{let De=a[Me];var et=De.data,qe=d;if(l){var st=D(De.data,d);et=st["@"],delete st["@"],qe=F(d,st)}return d.isParallelCall=be>0,[Me,await T(c.lhs[De.exprIndex][1],et,qe)]}));for(let Me of xe){var[W,ke]=await Me;typeof ke<"u"&&(i[W]=ke)}return i}function D(c,f){if(!Array.isArray(c))return c;var d=Object.create(null),i={options:f.base.options,createSequence:f.base.createSequence};Object.assign(d,c[0]);for(var a=1;a<c.length;a++)for(const l of p.keys(c[a]))d[l]=o.append.call(i,d[l],c[a][l]);return d}function S(c,f,d){var i;if(typeof c<"u"&&!Number.isInteger(c))throw{code:"T2003",stack:new Error().stack,value:c};if(typeof f<"u"&&!Number.isInteger(f))throw{code:"T2004",stack:new Error().stack,value:f};if(typeof c>"u"||typeof f>"u"||c>f)return i;var a=f-c+1;if(a>1e7)throw{code:"D2014",stack:new Error().stack,value:a};if(d.base.options&&a>d.base.options.sequence)throw{code:"D2015",stack:new Error().stack,value:a};i=new Array(a);for(var l=c,g=0;l<=f;l++,g++)i[g]=l;return i.sequence=!0,i}async function U(c,f,d){var i=await T(c.rhs,f,d);return d.bind(c.lhs.value,i),i}async function B(c,f,d){var i,a=await T(c.condition,f,d);return o.boolean(a)?i=await T(c.then,f,d):typeof c.else<"u"&&(i=await T(c.else,f,d)),i}async function I(c,f,d){for(var i,a=tt(d),l=0;l<c.expressions.length;l++)i=await T(c.expressions[l],f,a);return i}function L(c,f,d){var i=new d.base.RegexEngine(c.value),a=function(l,g){var m;i.lastIndex=g||0;var x=i.exec(l);if(x!==null){if(m={match:x[0],start:x.index,end:x.index+x[0].length,groups:[]},x.length>1)for(var $=1;$<x.length;$++)m.groups.push(x[$]);m.next=function(){if(!(i.lastIndex>=l.length)){var j=a(l,i.lastIndex);if(j&&j.match==="")throw{code:"D1004",stack:new Error().stack,position:c.position,value:c.value.source};return j}}}return m};return a}function q(c,f,d){var i;return c.value===""?i=f&&f.outerWrapper?f[0]:f:i=d.lookup(c.value),i}async function K(c,f,d){var i,a=f,l=!!f.tupleStream,g=async function(x,$){for(var j=0,se=0;j===0&&se<c.terms.length;se++){var W=c.terms[se],Ae=x,xe=d;l&&(Ae=x["@"],xe=F(d,x));var ke=await T(W.expression,Ae,xe);Ae=$,xe=d,l&&(Ae=$["@"],xe=F(d,$));var Me=await T(W.expression,Ae,xe),be=typeof ke,De=typeof Me;if(be==="undefined"){j=De==="undefined"?0:1;continue}if(De==="undefined"){j=-1;continue}if(!(be==="string"||be==="number")||!(De==="string"||De==="number"))throw{code:"T2008",stack:new Error().stack,position:c.position,value:be==="string"||be==="number"?Me:ke};if(be!==De)throw{code:"T2007",stack:new Error().stack,position:c.position,value:ke,value2:Me};ke!==Me&&(ke<Me?j=-1:j=1,W.descending===!0&&(j=-j))}return j===1},m={environment:d,input:f};return i=await o.sort.apply(m,[a,g]),i}function he(c,f,d){var i=async function(a){if(!(typeof a>"u")){var l=d.lookup("clone");if(!N(l))throw{code:"T2013",stack:new Error().stack,position:c.position};var g=await le(l,[a],null,d),m=await T(c.pattern,g,d);if(typeof m<"u"){Array.isArray(m)||(m=[m]);for(var x=0;x<m.length;x++){var $=m[x],j=await T(c.update,$,d),se=typeof j;if(se!=="undefined"){if(se!=="object"||j===null||Array.isArray(j))throw{code:"T2011",stack:new Error().stack,position:c.update.position,value:j};for(const ke of p.keys(j))$[ke]=j[ke]}if(typeof c.delete<"u"){var W=await T(c.delete,$,d);if(typeof W<"u"){var Ae=W;if(Array.isArray(W)||(W=[W]),!w(W))throw{code:"T2012",stack:new Error().stack,position:c.delete.position,value:Ae};for(var xe=0;xe<W.length;xe++)typeof $=="object"&&$!==null&&delete $[W[xe]]}}}}return g}};return z(i,"<(oa):o>")}var ue=y("function($f, $g) { function($x){ $g($f($x)) } }");async function te(c,f,d){var i,a=await T(c.lhs,f,d);if(c.rhs.type==="function")i=await Z(c.rhs,f,d,{context:a});else{var l=await T(c.rhs,f,d);if(!N(l))throw{code:"T2006",stack:new Error().stack,position:c.position,value:l};if(N(a)){var g=await T(ue,null,d);i=await le(g,[a,l],null,d)}else i=await le(l,[a],null,d)}return i}async function Z(c,f,d,i){var a,l=await T(c.procedure,f,d);if(typeof l>"u"&&c.procedure.type==="path"&&d.lookup(c.procedure.steps[0].value))throw{code:"T1005",stack:new Error().stack,position:c.position,token:c.procedure.steps[0].value};var g=[];typeof i<"u"&&g.push(i.context);for(var m=0;m<c.arguments.length;m++){const $=await T(c.arguments[m],f,d);if(N($)){const j=async function(...se){return await le($,se,null,d)};j.arity=v($),g.push(j)}else g.push($)}var x=c.procedure.type==="path"?c.procedure.steps[0].value:c.procedure.value;try{typeof l=="object"&&(l.token=x,l.position=c.position),a=await le(l,g,f,d)}catch($){throw $.position||($.position=c.position),$.token||($.token=x),$}return a}async function le(c,f,d,i){var a;for(a=await Q(c,f,d,i);ee(a)&&a.thunk===!0;){var l=await T(a.body.procedure,a.input,a.environment);a.body.procedure.type==="variable"&&(l.token=a.body.procedure.value),l.position=a.body.procedure.position;for(var g=[],m=0;m<a.body.arguments.length;m++)g.push(await T(a.body.arguments[m],a.input,a.environment));a=await Q(l,g,d,i)}return a}async function Q(c,f,d,i){var a;try{var l=f;if(c&&(l=je(c.signature,f,d)),ee(c))a=await Le(c,l);else if(c&&c._jsonata_function===!0){var g={environment:i,input:d,options:i.base.options,createSequence:i.base.createSequence};a=c.implementation.apply(g,l),J(a)&&(a=a.next().value),E(a)&&(a=await a)}else if(typeof c=="function")a=c.apply(d,l),E(a)&&(a=await a);else throw{code:"T1006",stack:new Error().stack}}catch(m){throw c&&(typeof m.token>"u"&&typeof c.token<"u"&&(m.token=c.token),m.position=c.position||m.position),m}return a}function Ne(c,f,d){var i={_jsonata_lambda:!0,input:f,environment:d,arguments:c.arguments,signature:c.signature,body:c.body};return c.thunk===!0&&(i.thunk=!0),i.apply=async function(a,l){return await le(i,l,f,a?a.environment:d)},i}async function Qe(c,f,d){for(var i,a=[],l=0;l<c.arguments.length;l++){var g=c.arguments[l];g.type==="operator"&&g.value==="?"?a.push(g):a.push(await T(g,f,d))}var m=await T(c.procedure,f,d);if(typeof m>"u"&&c.procedure.type==="path"&&d.lookup(c.procedure.steps[0].value))throw{code:"T1007",stack:new Error().stack,position:c.position,token:c.procedure.steps[0].value};if(ee(m))i=Be(m,a,d);else if(m&&m._jsonata_function===!0)i=ot(m.implementation,a,d);else if(typeof m=="function")i=ot(m,a,d);else throw{code:"T1008",stack:new Error().stack,position:c.position,token:c.procedure.type==="path"?c.procedure.steps[0].value:c.procedure.value};return i}function je(c,f,d){if(typeof c>"u")return f;var i=c.validate(f,d);return i}async function Le(c,f){var d,i=tt(c.environment);return Array.prototype.forEach.call(c.arguments,function(a,l){i.bind(a.value,f[l])}),typeof c.body=="function"?d=await Tt(c.body,i):d=await T(c.body,c.input,i),d}function Be(c,f,d){var i=tt(c.environment||d),a=[];Array.prototype.forEach.call(c.arguments,function(g,m){var x=f[m];x&&x.type==="operator"&&x.value==="?"?a.push(g):i.bind(g.value,x)});var l={_jsonata_lambda:!0,input:c.input,environment:i,arguments:a,body:c.body};return l}function ot(c,f,d){var i=Ct(c);i=i.map(function(m){return"$"+m.trim()});var a="function("+i.join(", ")+"){ _ }",l=y(a);l.body=c;var g=Be(l,f,d);return g}async function Tt(c,f){var d=Ct(c),i=d.map(function(g){return f.lookup(g.trim())}),a={environment:f,createSequence:f.base.createSequence},l=c.apply(a,i);return E(l)&&(l=await l),l}function Ct(c){var f=c.toString(),d=/\(([^)]*)\)/.exec(f)[1],i=d.split(",");return i}function z(c,f){var d={_jsonata_function:!0,implementation:c};return typeof f<"u"&&(d.signature=P(f)),d}async function ur(c,f){if(!(typeof c>"u")){var d=this.input;typeof f<"u"&&(d=f,Array.isArray(d)&&!R(d)&&(d=this.createSequence(d),d.outerWrapper=!0));try{var i=y(c,!1)}catch(l){throw it(l),{stack:new Error().stack,code:"D3120",value:l.message,error:l}}try{var a=await T(i,d,this.environment)}catch(l){throw it(l),{stack:new Error().stack,code:"D3121",value:l.message,error:l}}return a}}function cr(c){if(!(typeof c>"u"))return JSON.parse(o.string(c))}function tt(c){var f=Object.create(null);const d={bind:function(a,l){f[a]=l},lookup:function(a){var l;return Object.prototype.hasOwnProperty.call(f,a)?l=f[a]:c&&(l=c.lookup(a)),l},timestamp:c?c.timestamp:null,async:c?c.async:!1,isParallelCall:c?c.isParallelCall:!1,global:c?c.global:{ancestry:[null]}};if(c){var i=c.lookup(Symbol.for("jsonata.__createFrame_push"));i&&i(c,d),d.base=c.base}return d}A.bind("sum",z(o.sum,"<a<n>:n>")),A.bind("count",z(o.count,"<a:n>")),A.bind("max",z(o.max,"<a<n>:n>")),A.bind("min",z(o.min,"<a<n>:n>")),A.bind("average",z(o.average,"<a<n>:n>")),A.bind("string",z(o.string,"<x-b?:s>")),A.bind("substring",z(o.substring,"<s-nn?:s>")),A.bind("substringBefore",z(o.substringBefore,"<s-s:s>")),A.bind("substringAfter",z(o.substringAfter,"<s-s:s>")),A.bind("lowercase",z(o.lowercase,"<s-:s>")),A.bind("uppercase",z(o.uppercase,"<s-:s>")),A.bind("length",z(o.length,"<s-:n>")),A.bind("trim",z(o.trim,"<s-:s>")),A.bind("pad",z(o.pad,"<s-ns?:s>")),A.bind("match",z(o.match,"<s-f<s:o>n?:a<o>>")),A.bind("contains",z(o.contains,"<s-(sf):b>")),A.bind("replace",z(o.replace,"<s-(sf)(sf)n?:s>")),A.bind("split",z(o.split,"<s-(sf)n?:a<s>>")),A.bind("join",z(o.join,"<a<s>s?:s>")),A.bind("formatNumber",z(o.formatNumber,"<n-so?:s>")),A.bind("formatBase",z(o.formatBase,"<n-n?:s>")),A.bind("formatInteger",z(u.formatInteger,"<n-s:s>")),A.bind("parseInteger",z(u.parseInteger,"<s-s:n>")),A.bind("number",z(o.number,"<(nsb)-:n>")),A.bind("floor",z(o.floor,"<n-:n>")),A.bind("ceil",z(o.ceil,"<n-:n>")),A.bind("round",z(o.round,"<n-n?:n>")),A.bind("abs",z(o.abs,"<n-:n>")),A.bind("sqrt",z(o.sqrt,"<n-:n>")),A.bind("power",z(o.power,"<n-n:n>")),A.bind("random",z(o.random,"<:n>")),A.bind("boolean",z(o.boolean,"<x-:b>")),A.bind("not",z(o.not,"<x-:b>")),A.bind("map",z(o.map,"<af>")),A.bind("zip",z(o.zip,"<a+>")),A.bind("filter",z(o.filter,"<af>")),A.bind("single",z(o.single,"<af?>")),A.bind("reduce",z(o.foldLeft,"<afj?:j>")),A.bind("sift",z(o.sift,"<o-f?:o>")),A.bind("keys",z(o.keys,"<x-:a<s>>")),A.bind("lookup",z(o.lookup,"<x-s:x>")),A.bind("append",z(o.append,"<xx:a>")),A.bind("exists",z(o.exists,"<x:b>")),A.bind("spread",z(o.spread,"<x-:a<o>>")),A.bind("merge",z(o.merge,"<a<o>:o>")),A.bind("reverse",z(o.reverse,"<a:a>")),A.bind("each",z(o.each,"<o-f:a>")),A.bind("error",z(o.error,"<s?:x>")),A.bind("assert",z(o.assert,"<bs?:x>")),A.bind("type",z(o.type,"<x:s>")),A.bind("sort",z(o.sort,"<af?:a>")),A.bind("shuffle",z(o.shuffle,"<a:a>")),A.bind("distinct",z(o.distinct,"<x:x>")),A.bind("base64encode",z(o.base64encode,"<s-:s>")),A.bind("base64decode",z(o.base64decode,"<s-:s>")),A.bind("encodeUrlComponent",z(o.encodeUrlComponent,"<s-:s>")),A.bind("encodeUrl",z(o.encodeUrl,"<s-:s>")),A.bind("decodeUrlComponent",z(o.decodeUrlComponent,"<s-:s>")),A.bind("decodeUrl",z(o.decodeUrl,"<s-:s>")),A.bind("eval",z(ur,"<sx?:x>")),A.bind("toMillis",z(u.toMillis,"<s-s?:n>")),A.bind("fromMillis",z(u.fromMillis,"<n-s?s?:s>")),A.bind("clone",z(cr,"<(oa)-:o>"));var Ht={S0101:"String literal must be terminated by a matching quote",S0102:"Number out of range: {{token}}",S0103:"Unsupported escape sequence: \\{{token}}",S0104:"The escape sequence \\u must be followed by 4 hex digits",S0105:"Quoted property name must be terminated with a backquote (`)",S0106:"Comment has no closing tag",S0201:"Syntax error: {{token}}",S0202:"Expected {{value}}, got {{token}}",S0203:"Expected {{value}} before end of expression",S0204:"Unknown operator: {{token}}",S0205:"Unexpected token: {{token}}",S0206:"Unknown expression type: {{token}}",S0207:"Unexpected end of expression",S0208:"Parameter {{value}} of function definition must be a variable name (start with $)",S0209:"A predicate cannot follow a grouping expression in a step",S0210:"Each step can only have one grouping expression",S0211:"The symbol {{token}} cannot be used as a unary operator",S0212:"The left side of := must be a variable name (start with $)",S0213:"The literal value {{value}} cannot be used as a step within a path expression",S0214:"The right side of {{token}} must be a variable name (start with $)",S0215:"A context variable binding must precede any predicates on a step",S0216:"A context variable binding must precede the 'order-by' clause on a step",S0217:"The object representing the 'parent' cannot be derived from this expression",S0301:"Empty regular expressions are not allowed",S0302:"No terminating / in regular expression",S0402:"Choice groups containing parameterized types are not supported",S0401:"Type parameters can only be applied to functions and arrays",S0500:"Attempted to evaluate an expression containing syntax error(s)",T0410:"Argument {{index}} of function {{token}} does not match function signature",T0411:"Context value is not a compatible type with argument {{index}} of function {{token}}",T0412:"Argument {{index}} of function {{token}} must be an array of {{type}}",D1001:"Number out of range: {{value}}",D1002:"Cannot negate a non-numeric value: {{value}}",T1003:"Key in object structure must evaluate to a string; got: {{value}}",D1004:"Regular expression matches zero length string",T1005:"Attempted to invoke a non-function. Did you mean ${{{token}}}?",T1006:"Attempted to invoke a non-function",T1007:"Attempted to partially apply a non-function. Did you mean ${{{token}}}?",T1008:"Attempted to partially apply a non-function",D1009:"Multiple key definitions evaluate to same key: {{value}}",T1010:"The matcher function argument passed to function {{token}} does not return the correct object structure",D1011:"Stack overflow. Check for non-terminating recursive function. Consider rewriting as tail-recursive",D1012:"Evaluation timeout after {{value}} milliseconds. Check for infinite loop",D1013:"Object property names starting with _jsonata_ are reserved for internal use: {{value}}",T2001:"The left side of the {{token}} operator must evaluate to a number",T2002:"The right side of the {{token}} operator must evaluate to a number",T2003:"The left side of the range operator (..) must evaluate to an integer",T2004:"The right side of the range operator (..) must evaluate to an integer",D2005:"The left side of := must be a variable name (start with $)",T2006:"The right side of the function application operator ~> must be a function",T2007:"Type mismatch when comparing values {{value}} and {{value2}} in order-by clause",T2008:"The expressions within an order-by clause must evaluate to numeric or string values",T2009:"The values {{value}} and {{value2}} either side of operator {{token}} must be of the same data type",T2010:"The expressions either side of operator {{token}} must evaluate to numeric or string values",T2011:"The insert/update clause of the transform expression must evaluate to an object: {{value}}",T2012:"The delete clause of the transform expression must evaluate to a string or array of strings: {{value}}",T2013:"The transform expression clones the input object using the $clone() function. This has been overridden in the current scope by a non-function.",D2014:"The size of the sequence allocated by the range operator (..) must not exceed 1e7. Attempted to allocate {{value}}.",D2015:"The maximum sequence length of {{value}} was exceeded.",D3001:"Attempting to invoke string function on Infinity or NaN",D3010:"Second argument of replace function cannot be an empty string",D3011:"Fourth argument of replace function must evaluate to a positive number",D3012:"Attempted to replace a matched string with a non-string value",D3020:"Third argument of split function must evaluate to a positive number",D3030:"Unable to cast value to a number: {{value}}",D3040:"Third argument of match function must evaluate to a positive number",D3050:"The second argument of reduce function must be a function with at least two arguments",D3060:"The sqrt function cannot be applied to a negative number: {{value}}",D3061:"The power function has resulted in a value that cannot be represented as a JSON number: base={{value}}, exponent={{exp}}",D3070:"The single argument form of the sort function can only be applied to an array of strings or an array of numbers. Use the second argument to specify a comparison function",D3080:"The picture string must only contain a maximum of two sub-pictures",D3081:"The sub-picture must not contain more than one instance of the 'decimal-separator' character",D3082:"The sub-picture must not contain more than one instance of the 'percent' character",D3083:"The sub-picture must not contain more than one instance of the 'per-mille' character",D3084:"The sub-picture must not contain both a 'percent' and a 'per-mille' character",D3085:"The mantissa part of a sub-picture must contain at least one character that is either an 'optional digit character' or a member of the 'decimal digit family'",D3086:"The sub-picture must not contain a passive character that is preceded by an active character and that is followed by another active character",D3087:"The sub-picture must not contain a 'grouping-separator' character that appears adjacent to a 'decimal-separator' character",D3088:"The sub-picture must not contain a 'grouping-separator' at the end of the integer part",D3089:"The sub-picture must not contain two adjacent instances of the 'grouping-separator' character",D3090:"The integer part of the sub-picture must not contain a member of the 'decimal digit family' that is followed by an instance of the 'optional digit character'",D3091:"The fractional part of the sub-picture must not contain an instance of the 'optional digit character' that is followed by a member of the 'decimal digit family'",D3092:"A sub-picture that contains a 'percent' or 'per-mille' character must not contain a character treated as an 'exponent-separator'",D3093:"The exponent part of the sub-picture must comprise only of one or more characters that are members of the 'decimal digit family'",D3100:"The radix of the formatBase function must be between 2 and 36. It was given {{value}}",D3110:"The argument of the toMillis function must be an ISO 8601 formatted timestamp. Given {{value}}",D3120:"Syntax error in expression passed to function eval: {{value}}",D3121:"Dynamic error evaluating the expression passed to function eval: {{value}}",D3130:"Formatting or parsing an integer as a sequence starting with {{value}} is not supported by this implementation",D3131:"In a decimal digit pattern, all digits must be from the same decimal group",D3132:"Unknown component specifier {{value}} in date/time picture string",D3133:"The 'name' modifier can only be applied to months and days in the date/time picture string, not {{value}}",D3134:"The timezone integer format specifier cannot have more than four digits",D3135:"No matching closing bracket ']' in date/time picture string",D3136:"The date/time picture string is missing specifiers required to parse the timestamp",D3137:"{{{message}}}",D3138:"The $single() function expected exactly 1 matching result. Instead it matched more.",D3139:"The $single() function expected exactly 1 matching result. Instead it matched 0.",D3140:"Malformed URL passed to ${{{functionName}}}(): {{value}}",D3141:"{{{message}}}"};function it(c){var f=Ht[c.code];if(typeof f<"u"){var d=f.replace(/\{\{\{([^}]+)}}}/g,function(){return c[arguments[1]]});d=d.replace(/\{\{([^}]+)}}/g,function(){return JSON.stringify(c[arguments[1]])}),c.message=d}}function yt(c,f){var d,i;try{d=y(c,f&&f.recover),i=d.errors,delete d.errors}catch(g){throw it(g),g}var a=tt(A),l=new Date;return a.bind("now",z(function(g,m){return u.fromMillis(l.getTime(),g,m)},"<s?s?:s>")),a.bind("millis",z(function(){return l.getTime()},"<:n>")),{evaluate:async function(g,m,x){if(typeof i<"u"){var $={code:"S0500",position:0};throw it($),$}const j=tt(a);for(const W of p.keys(m))j.bind(W,m[W]);if(j.bind("$",g),l=new Date,j.timestamp=l,j.options=f,j.createSequence=function(){var W=[];return f&&f.sequence&&(W.push=function(...Ae){if(W.length+Ae.length>f.sequence)throw{code:"D2015",stack:new Error().stack,value:f.sequence};return Array.prototype.push.apply(W,Ae)}),W.sequence=!0,arguments.length===1&&W.push(arguments[0]),W},Array.isArray(g)&&!R(g)&&(g=j.createSequence(g),g.outerWrapper=!0),f&&(f.timeout||f.stack)){const W=Date.now();j.guardrails=function(){if(f.stack>0&&j.depth>f.stack)throw{code:"D1011",value:f.stack,stack:new Error().stack};if(f.timeout>0&&Date.now()-W>f.timeout)throw{code:"D1012",value:f.timeout,stack:new Error().stack}}}else j.guardrails=function(){};j.base=j,j.depth=0,f&&f.RegexEngine?j.RegexEngine=f.RegexEngine:j.RegexEngine=RegExp;var se;try{return se=await T(d,g,j),typeof x=="function"&&x(null,se),se}catch(W){throw it(W),W}},assign:function(g,m){a.bind(g,m)},registerFunction:function(g,m,x){var $=z(m,x);a.bind(g,$)},ast:function(){return d},errors:function(){return i}}}return yt.parser=y,yt})();r.exports=M},{"./datetime":1,"./functions":2,"./parser":4,"./signature":5,"./utils":6}],4:[function(t,r,s){var u=t("./signature");const o=(()=>{var p={".":75,"[":80,"]":0,"{":70,"}":0,"(":80,")":0,",":0,"@":80,"#":80,";":80,":":80,"?":20,"+":50,"-":50,"*":60,"/":60,"%":60,"|":20,"=":40,"<":40,">":40,"^":40,"**":60,"..":20,":=":10,"!=":40,"<=":40,">=":40,"~>":40,"?:":40,"??":40,and:30,or:25,in:40,"&":50,"!":0,"~":0},y={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
31
+ */function ri(n){return X({...n,state:!0,attribute:!1})}const Ar="1";function ni(n){const e=n.trim();if(!e)return!1;try{const t=new URL(e,"https://example.invalid/");return t.protocol==="http:"||t.protocol==="https:"||t.protocol==="blob:"}catch{return!1}}let at=class Ge{static getLanguage(){const e=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||e}static getCookies(){return document.cookie.split(";").reduce((e,t)=>{const r=t.indexOf("=");return e[t.substring(0,r).trim()]=t.substring(r+1),e},{})}static nextComposedAncestor(e){return e instanceof Element&&e.assignedSlot?e.assignedSlot:e.parentNode||e.host||null}static everyAncestors(e,t){let r=e;for(;r;){if(!t(r))return;r=r.parentNode||r.host}}static overflowMatches(e,t){return t.includes(e.overflowY)||t.includes(e.overflowX)}static findAncestorByOverflow(e,t){let r=e;for(;r;){if(r instanceof Element&&r.nodeType===1){const s=window.getComputedStyle(r);if(Ge.overflowMatches(s,t))return r}r=Ge.nextComposedAncestor(r)}return null}static getScrollableAncestor(e){return Ge.findAncestorByOverflow(e,["auto","scroll","hidden","overlay"])}static getScrollingAncestor(e){return Ge.findAncestorByOverflow(e,["auto","scroll","overlay"])}static scopeAttributeNames(e){const t=e.toLowerCase();return t===e?[e]:[e,t]}static readScopeAttributeOnElement(e,t){for(const r of Ge.scopeAttributeNames(t))if(e.hasAttribute(r))return e.getAttribute(r)??"";return null}static getAncestorAttributeValue(e,t){if(!e)return null;let r=e;for(;r;){if(r instanceof HTMLElement){const u=Ge.readScopeAttributeOnElement(r,t);if(u!=null)return u}const s=r.parentNode||r.host;if(!s)break;r=s}return null}static getApiConfiguration(e){const t=Ge.getAncestorAttributeValue(e,"token"),r=Ge.getAncestorAttributeValue(e,"addHTTPResponse")!=null,s=Ge.getAncestorAttributeValue(e,"serviceURL");let u=null,o=null;const p=Ge.getAncestorAttributeValue(e,"tokenProvider"),y=Ge.getAncestorAttributeValue(e,"eventsApiToken");t||(u=Ge.getAncestorAttributeValue(e,"userName"),o=Ge.getAncestorAttributeValue(e,"password"));const P=Ge.getAncestorAttributeValue(e,"credentials")||void 0,M=e.getAttribute("cache"),k=e.hasAttribute("blockUntilDone"),w=e.hasAttribute("keepAlive");return{serviceURL:s,token:t,userName:u,password:o,authToken:y,tokenProvider:p,addHTTPResponse:r,credentials:P,cache:M,blockUntilDone:k,keepAlive:w}}static getClosestElement(e,t){let r=e;for(;r&&!(r.nodeName&&r.nodeName.toLowerCase()===t);){const s=r.parentNode||r.host;if(!s){r=null;break}r=s}return r?.nodeName?r:null}static getClosestForm(e){return Ge.getClosestElement(e,"form")}static getAncestorsByTagNames(e,t){const r=new Set(t.map(o=>o.toLowerCase())),s=[];let u=e.parentNode||e.host;for(;u;)u instanceof Element&&r.has(u.tagName.toLowerCase())&&s.push(u),u=u.parentNode||u.host;return s}static getAncestorsBySelectors(e,t){const r=[];let s=e.parentNode||e.host;for(;s;){if(s instanceof Element)for(const u of t)try{if(s.matches(u)){r.push(s);break}}catch{}s=s.parentNode||s.host}return r}static async loadJS(e){if(!ni(e))return!1;const t=typeof document<"u"?new URL(e,document.baseURI).href:e,r=Array.from(document.scripts).find(u=>u.src===t);if(r)return r.dataset.concordeLoaded===Ar?!0:new Promise(u=>{let o=!1;const p=P=>{o||(o=!0,P&&(r.dataset.concordeLoaded=Ar),u(P))};r.addEventListener("load",()=>p(!0),{once:!0}),r.addEventListener("error",()=>p(!1),{once:!0});const y=r.readyState;if(y==="complete"||y==="loaded"){p(!0);return}Promise.resolve().then(()=>{Promise.resolve().then(()=>{o||p(!0)})})});const s=/\.es\.js(\?|#|$)/.test(e)||/[?&]module(?:&|=|$)/.test(e);return new Promise(u=>{const o=document.createElement("script");o.src=e,s&&(o.type="module"),o.onload=()=>{o.dataset.concordeLoaded=Ar,u(!0)},o.onerror=()=>u(!1),document.head.appendChild(o)})}static async loadCSS(e){return new Promise(t=>{const r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,r.onload=()=>t(!0),r.onerror=()=>t(!0),document.head.appendChild(r)})}};function Er(n){return typeof n!="string"?null:n.trim()||null}function ii(n){if(n==null||n==="")return null;if(typeof n=="string")return Er(n);if(typeof n!="object")return null;const e=n;return Er(e.url)??Er(e.blobUrl)}function It(n){for(const e of n)try{URL.revokeObjectURL(e)}catch{}}let si=class{static async queueTaskPromise(){return new Promise(e=>{window.queueMicrotask(()=>e(null))})}static async delayPromise(e){return new Promise(t=>{setTimeout(t,e)})}},tn="sonic";typeof __SONIC_PREFIX__<"u"&&(tn=__SONIC_PREFIX__);let rn=tn.replace(/-([a-z])/g,n=>n[1].toUpperCase());const ai=rn.charAt(0).toUpperCase()+rn.slice(1);let oi=class At{static areEqual(e,t){return e.length===t.length?e.every((r,s)=>r===t[s]):!1}static from2d(e){return{to1D:()=>{let t=[];return e.forEach(r=>t=t.concat(r)),this.from(t)}}}static from(e){return{get:()=>e||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:t=>{if(e.length<1)return!0;const r=(e[0]||{})[t];return e.every(s=>(s||{})[t]==r)}})})}),value:()=>({forKey:t=>At.from(e.map(r=>r[t]))}),copy:()=>({fromKey:t=>({toKey:r=>{e.forEach(s=>{s[r]=Array.isArray(s[t])?[...s[t]]:typeof s[t]=="object"&&s[t]!=null?{...s[t]}:s[t]})}})})}),map:t=>At.from(e.map(t)),filter:t=>At.from(e.filter(t)),find:t=>e.find(t),some:t=>e.some(t),every:t=>e.every(t),group:()=>({byKey:t=>{const r=[],s=new Map;for(const u of e){const o=u[t];if(!s.has(o)){const p=r.length;s.set(o,p);const y={items:[]};y[t]=o,r.push(y)}r[s.get(o)].items.push(u)}return At.from(r)}}),without:()=>({duplicates:()=>({forKey:t=>{const r=[...new Set(e.map(s=>s[t]))];return At.from(r.map(s=>e.find(u=>u[t]==s)))}}),itemsIn:t=>({havingSameValue:()=>({forKey:r=>{const s=(u,o)=>p=>u[o]!=p[o];return At.from(e.filter(u=>t.every(s(u,r))))}})})})}}},_r=class{static ucFirst(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.substring(1)}static minutesDuration(e,t="",r="long"){t||(t=at.getLanguage());const s=(P,M)=>[Math.floor(P/M),P%M];function u(P,M,k){return new Intl.NumberFormat(P,{style:"unit",unit:M,unitDisplay:k}).format}const[o,p]=s(e,60),y=[];return o&&y.push(u(t,"hour",r)(o)),p&&y.push(u(t,"minute",r)(p)),new Intl.ListFormat(t,{style:"long",type:"conjunction"}).format(y)}static js(e){try{return Function("return "+e)()}catch{return""}}};class nn{constructor(e){this.path=e}toString(){return this.path}}function sn(n){return new Proxy(n,{get(e,t){if(t==="path")return e.path;if(t==="toString")return e.toString.bind(e);if(t===Symbol.toStringTag)return"DataProviderKey";if(typeof t=="symbol")return e[t];const r=e.path?`${e.path}.${String(t)}`:String(t);return sn(new nn(r))}})}const ui=/\$\{|\{\$/;function ci(n){return ui.test(n)}function li(n){const e=n;if(ci(e))throw new Error("Static publisher path required for get/set/dp. Use @subscribe, @publish, or @handle for dynamic DataProviderKey paths.");return e}const Qt=function(n){return this instanceof Qt?sn(new nn(n)):new Qt(n)};let er=class ct{static shallowEqual(e,t,r=!0){const s=Object.keys(e),u=Object.keys(t);if(s.length!==u.length&&r)return!1;for(const o of s){const p=e[o],y=t[o];if(r?p!==y:p!=y)return!1}return!0}static deepEqual(e,t,r=!0){const s=Object.keys(e),u=Object.keys(t);if(s.length!==u.length&&r)return!1;for(const o of s){const p=e[o],y=t[o],P=ct.isObject(p)&&ct.isObject(y),M=r?p!==y:p!=y;if(P&&!ct.deepEqual(p,y)||!P&&M)return!1}return!0}static isObject(e){return e!=null&&typeof e=="object"}static isUndefindOrNull(e){return e==null}static isEmpty(e){return ct.isUndefindOrNull(e)?!0:Object.keys(e).length===0}static traverse(e,t,r=!1){for(const s of t){const u=e[s];if(u===void 0)return;r&&ct.isObject(u)?e=Object.assign(Array.isArray(u)?[]:{},e,u):e=e[s]}return e}static traverseDotNotation(e,t,r=!1){return ct.traverse(e,t.split("."),r)}static getURLSearchArray(e,t=""){let r=[];for(let s in e){const u=e[s];t&&(s=t+"["+s+"]"),ct.isObject(u)?r=[...r,...this.getURLSearchArray(u,s)]:r.push(`${s}=${u}`)}return r}static getURLSearchString(e){return ct.getURLSearchArray(e,"").join("&")}};er.traverseDotNotation;function fi(n){return!1}function tr(n){return Object.prototype.hasOwnProperty.call(n,"__value")}function ft(n){return typeof n=="object"&&n!==null}let kt="sonic";typeof __SONIC_PREFIX__>"u"&&(kt="sonic");const xr=kt=="sonic"?"publisher-proxies-data":kt+"-publisher-proxies-data",dt=class dt{constructor(e,t,r){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=1e3*60*60*12,this._invalidate_on_page_show_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=e,this.parent=t||null,this._parentKey_=r,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const e in this._proxies_.keys())e!="_parent_"&&this._proxies_.get(e)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),dt.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(e=!1){if(this._mutationListeners_.forEach(t=>t()),this._is_savable_&&!$e.changed){$e.changed=!0,$e.saveId++;const t=$e.saveId;setTimeout(()=>$e.getInstance().saveToLocalStorage(t),1e3)}e||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(e=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const r=this.get();this._assignListeners_.forEach(s=>{s(r)}),this._publishInternalMutation_(e)}_publishInvalidation_(){this._invalidateListeners_.forEach(e=>e())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(e=>e())}_publishDynamicFilling_(e,t){this._fillListeners_.forEach(r=>{r[e]!==t&&(r[e]=t)}),this._publishTemplateFilling_(e,t)}_publishTemplateFilling_(e,t){this._templateFillListeners_.forEach(r=>{const s=Object.getOwnPropertyDescriptor(r,e);s&&!s.set&&!s.writable||(r.propertyMap&&r.propertyMap[e]&&(e=r.propertyMap[e]),typeof r[e]<"u"&&r[e]!==t&&(r[e]=t))})}onAssign(e,t=!0){typeof e=="function"&&(this._assignListeners_.has(e)||(this._assignListeners_.add(e),t&&e(this.get())))}offAssign(e){this._assignListeners_.delete(e)}onInvalidate(e){typeof e=="function"&&this._invalidateListeners_.add(e)}offInvalidate(e){typeof e=="function"&&this._invalidateListeners_.delete(e)}invalidate(){this._publishInvalidation_()}onFormInvalidate(e){typeof e=="function"&&this._formInvalidateListeners_.add(e)}offFormInvalidate(e){typeof e=="function"&&this._formInvalidateListeners_.delete(e)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(e){typeof e=="function"&&(this._mutationListeners_.add(e),e())}offInternalMutation(e){typeof e=="function"&&this._mutationListeners_.delete(e)}startTemplateFilling(e){if(this._templateFillListeners_.add(e),typeof this._value_=="object")for(const t in this._value_){let r=t;const s=this._value_[t];e.propertyMap&&e.propertyMap[t]&&(r=e.propertyMap[t]),typeof e[t]<"u"&&e[t]!==s&&(e[r]=s)}}stopTemplateFilling(e){this._templateFillListeners_.delete(e)}startDynamicFilling(e){this._fillListeners_.add(e);for(const t in this._value_){const r=this._value_[t];e[t]!==r&&(e[t]=r)}}stopDynamicFilling(e){this._fillListeners_.delete(e)}set(e,t=!1){if(this._value_===e||ft(this._value_)&&ft(e)&&e&&tr(this._value_)&&tr(e)&&this._value_.__value===e.__value||!ft(e)&&e===this._value_.__value)return!0;this._value_=ft(e)?e:{__value:e},this._cachedGet_=void 0;const r=tr(this._value_);if(this._parentKey_&&this.parent){const s=tr(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:s});else{const u=[];u[Number(this._parentKey_)]=s,this.parent.set(u)}else this.parent._value_[this._parentKey_]=s}if(r)return this._proxies_.forEach((s,u)=>{u!="_parent_"&&(s.set(null),this._publishDynamicFilling_(u,null))}),this._publishAssignement_(t),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const s in this._value_)this._value_[s]===void 0&&delete this._value_[s];if(this._proxies_.forEach((s,u)=>{const o=this._value_[u];u!="_parent_"&&o===void 0&&o!==null&&isNaN(Number(u))&&(s.set(null),this._publishDynamicFilling_(u,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),ft(this._value_))for(const s in this._value_){const u=e[s],p=ft(u)?u:{__value:u};if(!this._proxies_.has(s)){this._publishDynamicFilling_(s,u);continue}this._proxies_.get(s)?.set(p,!0),this._publishDynamicFilling_(s,u)}return!0}get(){if(hi(this),this._cachedGet_!==void 0)return this._cachedGet_;if(Object.prototype.hasOwnProperty.call(this._value_,"__value")){const e=this._value_.__value;return this._cachedGet_=e??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(dt.instancesCounter++,this._instanceCounter_=dt.instancesCounter),dt.instances.set(this._instanceCounter_,this),"<"+kt+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+kt+"-publisher-proxy>"}};dt.instances=new Map,dt.instancesCounter=0;let rr=dt;const an=[];function hi(n){an.length>0&&an[0].add(n)}const ge=class ge{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],ge.instance!=null)throw"Singleton / use getInstance";ge.instance=this,this.isLocalStrorageReady=this.cleanStorageData(),ge.initPageShowHandler()}static initPageShowHandler(){ge.pageShowHandlerInitialized||(ge.pageShowHandlerInitialized=!0,window.addEventListener("pageshow",e=>{e.persisted&&ge.getInstance().invalidateAll()}))}invalidateAll(){this.publishers.forEach(e=>{e._invalidate_on_page_show_&&e.invalidate()})}async cleanStorageData(){return new Promise(e=>{(async()=>{try{let r=localStorage.getItem(xr),s=null;if(r&&(s=await this.decompress(r,"gzip")),s)try{this.localStorageData=JSON.parse(s)}catch{this.localStorageData={}}else r=await this.compress("{}","gzip"),localStorage.setItem(xr,r),this.localStorageData={};const u=1e3*60*60*12;for(const o in this.localStorageData){const p=this.localStorageData[o],y=new Date().getTime()-(p.expirationDelayMs||u);p.lastModifiationMS<y&&delete this.localStorageData[o]}e(!0)}catch{window.requestAnimationFrame(()=>{e(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(e){if(e){const t=ge.instances.get(e);return t||(console.warn("No PublisherManager instance registered with id:",e,"creating new one"),new ge)}return ge.instance==null?new ge:ge.instance}static get(e,t){return ge.getInstance().get(e,t)}async setLocalData(e,t){await this.isLocalStrorageReady,e.set(this.localStorageData[t+"¤lang_"+at.getLanguage()]?.data||e.get())}get(e,t){const r=t?.localStorageMode==="enabled",s=t?.invalidateOnPageShow===!0;if(!this.publishers.has(e)){const p=kr({});this.set(e,p)}const u=this.publishers.get(e);return r&&this.initialisedData.indexOf(e)===-1&&(t?.expirationDelayMs&&(u._expiration_delay_=t.expirationDelayMs),u._is_savable_=!0,this.initialisedData.push(e),this.setLocalData(u,e)),s&&(u._invalidate_on_page_show_=s),this.publishers.get(e)}set(e,t){this.publishers.set(e,t)}delete(e){return this.publishers.has(e)?(this.publishers.delete(e),!0):!1}async saveToLocalStorage(e=0){if(!(e!==ge.saveId&&e%10!=0))try{if(!ge.changed||ge.saving)return;ge.saving=!0,ge.changed=!1;const t=Array.from(this.publishers.keys());let r=!1;for(const s of t){const u=this.publishers.get(s);if(!u?._is_savable_)continue;const o=u?.get();o&&(this.localStorageData[s+"¤lang_"+at.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:u._expiration_delay_,data:o},r=!0)}if(r){const s=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(xr,s)}if(ge.saving=!1,ge.changed){ge.saveId++;const s=ge.saveId;setTimeout(()=>this.saveToLocalStorage(s),1e3)}}catch{ge.saving=!1}}async compress(e,t){const r=new TextEncoder().encode(e),s=window,u=new s.CompressionStream(t),o=u.writable.getWriter();o.write(r),o.close();const p=await new Response(u.readable).arrayBuffer(),y=new Uint8Array(p);let P="";for(let M=0;M<y.length;M++)P+=String.fromCharCode(y[M]);return btoa(P)}async decompress(e,t){const r=atob(e),u=Uint8Array.from(r,M=>M.charCodeAt(0)).buffer,o=window,p=new o.DecompressionStream(t),y=p.writable.getWriter();y.write(u),y.close();const P=await new Response(p.readable).arrayBuffer();return new TextDecoder().decode(P)}};ge.buildDate="Tue Sep 29 2026 17:50:57 GMT+0200 (Central European Summer Time)",ge.changed=!1,ge.saving=!1,ge.saveId=0,ge.instance=null,ge.instances=new Map,ge.pageShowHandlerInitialized=!1;let $e=ge;if(typeof window<"u"){const n=window,e=ai+"PublisherManager",t=n[e]||$e;if(n[e]||(n[e]=$e),t!==$e){const r=["instance","instances","changed","saving","saveId","pageShowHandlerInitialized"];for(const s of r)Object.defineProperty($e,s,{configurable:!0,get(){return t[s]},set(u){t[s]=u}})}}const di=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);function pi(n,e){return{get:function(t,r){if(typeof r=="string"&&di.has(r))return n[r];if(r==Symbol.toPrimitive)return()=>e().get();if(!n._proxies_.has(r)){const s=n._value_[r],u=kr(ft(s)?s:{__value:s},n,r);u._proxies_.set("_parent_",e()),n._proxies_.set(r,u)}return n._proxies_.get(r)},set:function(t,r,s){if(r=="_value_")return n._value_=s,!0;if(r=="_cachedGet_")return n._cachedGet_=s,!0;if(r=="_assignmentId_")return n._assignmentId_=s,!0;if(r=="_is_savable_")return n._is_savable_=s,!0;if(r=="_expiration_delay_")return n._expiration_delay_=s,!0;if(r=="_invalidate_on_page_show_")return n._invalidate_on_page_show_=s,!0;if(r=="_instanceCounter_")return n._instanceCounter_=s,!0;if(!n._proxies_.has(r)){const o=kr({},n,r);o._proxies_.set("_parent_",e()),n._proxies_.set(r,o)}return n._value_[r]!==s&&(n._value_[r]=s,n._publishDynamicFilling_(r,s),n._proxies_.get(r)?.set(ft(s)?s:{__value:s})),!0},deleteProperty:function(t,r){return n._publishDynamicFilling_(r,null),n._proxies_.get(r)?.set(null),delete n._value_[r]},has:function(t,r){return r in n._value_&&r!="_lockInternalMutationPublishing_"},defineProperty:function(t,r,s){return s&&"value"in s&&(n._value_[r]=s.value),!0},getOwnPropertyDescriptor:function(t,r){return{enumerable:!0,configurable:!0}},ownKeys:function(t){return n._value_.__value?Object.keys(n._value_.__value):Object.keys(n._value_)}}}function kr(n,e=null,t){const r=new rr(n,e,t);let s=null;const u=pi(r,()=>s);return s=new Proxy(r,u),s}class mi extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=e=>{this.innerHTML=e.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=rr.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(kt+"-publisher-proxy",mi)}catch{}const vi=(n,e)=>{{const t=n.split("."),r=t.shift()||"";let s=$e.get(r,e);s=er.traverse(s,t);const u=new Set;return u.add(s),u}};function on(n,e,t){const r=li(n);return vi(r,t).values().next().value}function gi(n,e){return fi()?on(n,void 0,e):on(n)}let Sr=(de=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(de.observedElements.keys()).forEach(e=>de.unObserve(e)))}static observe(e){if(!e||!de.enabled||de.observedElements.has(e))return;const t=new MutationObserver(de.onMutation),r={};r.childList=!0,r.subtree=!0,r.attributes=!0,r.attributeFilter=["data-bind"],t.observe(e,r),e.querySelectorAll("[data-bind]").forEach(s=>de.addPublisherListeners(s)),de.observedElements.set(e,t)}static unObserve(e){if(!e)return;const t=this.observedElements.get(e);t&&(t.disconnect(),e.querySelectorAll("[data-bind]").forEach(r=>de.removePublisherListeners(r)))}static onAdded(e){e.hasAttribute&&e.hasAttribute("data-bind")&&de.addPublisherListeners(e),e.querySelectorAll?e.querySelectorAll("[data-bind]").forEach(t=>de.addPublisherListeners(t)):e.childNodes.forEach(t=>de.onAdded(t))}static onRemoved(e){e.hasAttribute&&e.hasAttribute("data-bind")&&de.removePublisherListeners(e),e.querySelectorAll?e.querySelectorAll("[data-bind]").forEach(t=>de.removePublisherListeners(t)):e.childNodes.forEach(t=>de.onRemoved(t))}static onMutation(e){for(const t of e)switch(t.type){case"attributes":de.addPublisherListeners(t.target);break;case"childList":t.addedNodes.forEach(r=>{de.onAdded(r)}),t.removedNodes.forEach(r=>{de.onRemoved(r)});break}}static removePublisherListeners(e){const t=de.publisherListeners.get(e);t&&(de.publisherListeners.delete(e),t.forEach(r=>{r.publisher?.offAssign(r.onAssign)}))}static getVariablesDescriptor(e){let t=e.match(/(\$(?:\w+\\?\.?)+)/g);return t?t=t.map(r=>r.replace("$","")):t=[e],t=t.filter(r=>r.length>0),{expression:e.replace("\\",""),variables:t.map(r=>r.split(/\b\.\b/).map(s=>s.replace("\\","")))}}static getDataBindItems(e){return"attributes"in e?Array.from(e.attributes).filter(t=>t.name.indexOf("::")==0).map(t=>({propertyToUpdate:t.name.substring(2).replace(/-((html)|\w)/g,s=>s.substring(1).toUpperCase()),bindedVariablesDescriptor:de.getVariablesDescriptor(t.value)})):[]}static getSubPublisher(e,t){if(!t)return e;for(const r of t)if(r!="_self_"){if(!e)return null;e=e[r]}return e}static addPublisherListeners(e){de.removePublisherListeners(e);const t=at.getAncestorAttributeValue(e.parentNode||e.host||e,"dataProvider");if(!t)return;const r=$e.getInstance().get(t),s=de.getDataBindItems(e),u=[];s.forEach(o=>{const p=o.bindedVariablesDescriptor,y=o.propertyToUpdate;for(const P of p.variables){const M=P;let k=r;k=de.getSubPublisher(r,M);const w=e,C={publisher:k,onAssign:()=>{const R=p.variables.map(J=>de.getSubPublisher(r,J)?.get());let N=p.expression,ee=!1;if(R.length==1&&p.variables[0].join(".")==N.substring(1)){let J=R[0];J===null&&(J=""),w[y]=J;return}for(let J=0;J<R.length;J++){let E=R[J];const v=p.variables[J];E===null&&(ee=!0,E=void 0),N=N.replace("$"+v.join("."),E)}if(N.indexOf("|")!=-1){const J=N.indexOf("|");if(J==0)N=_r.js(N.substring(1));else{const E=N.substring(0,J),v=N.substring(J+1),O=_r[E];N=ee?"":O?O(v):N}}else N=ee?"":N;w[y]=N}};k?.onAssign(C.onAssign),u.push(C)}}),de.publisherListeners.set(e,u)}},de.observedElements=new Map,de.enabled=!0,de.publisherListeners=new Map,de);Sr.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=Sr);let bi=(Re=class{static listen(){if(!Re.listening)return;const e=document.location?.href.replace(document.location.origin,"");Re.prevURL&&Re.prevURL!=e&&(Re.prevURL=e,Re.listeners.forEach(t=>{t.location=e})),window.requestAnimationFrame(Re.listen)}static offChange(e){const t=Re.listeners.indexOf(e);t!=-1&&(Re.listeners.splice(t,1),Re.listeners.length==0&&(Re.listening=!1))}static onChange(e){Re.listening||(Re.listening=!0,Re.listen()),Re.listeners.push(e),e.location=this.prevURL}static changeFromComponent(e){const t=e.goBack,r=document.referrer;if(t!=null){const P=document.location.origin,M=(t||P).toString(),w=r.indexOf("http")==0?new URL(r).origin!=P:!1,C=r=="",R=history.length<3,N=C&&R,ee=M!=document.location.href;if(w&&ee||N){const E=history.state||{};E.concorde=E.concorde||{},E.concorde.hasDoneHistoryBack=!0,history.pushState(E,document.title),history.back(),document.location.replace(M)}else history.back();return}let s=e.getAttribute("to")||"";if(s||(s=e.href?.toString()||""),!s)return;if(s.indexOf("#")==0){document.location.hash=s.substring(1);return}const u=new URL(s,document.location.href),o=u.pathname.split("/"),p=[];let y="";for(const P of o)P!=y&&p.push(P),y=P;s="/"+p.join("/")+u.search+(u.hash?+u.hash:""),e.hasAttribute("pushState")?history.pushState(null,"",s):e.hasAttribute("replaceState")?history.replaceState(null,"",s):document.location.href=s}static updateComponentActiveState(e){if(e.autoActive=="disabled")return;const t=e.href?.toString()||"";if(e.href&&t.indexOf("http")!=0){const r=new URL(t,document.location.href),s=new URL(e.location||"",document.location.origin);let u=!1;e.autoActive=="strict"?u=r.pathname==s.pathname&&r.hash==s.hash&&r.search==s.search:e.autoActive=="strict-path-only"?u=r.pathname==s.pathname&&r.hash==s.hash:u=s.href.indexOf(r.href)==0,u?e.setAttribute("active","true"):e.removeAttribute("active")}}},Re.listeners=[],Re.listening=!1,Re.prevURL=document.location?.href.replace(document.location.origin,""),Re);function un(n){if(n==null||typeof n!="object"||Array.isArray(n))return n;const e={...n};return delete e._sonic_http_response_,e}const ye=class ye{constructor(e){this.addHTTPResponse=!1,this.cache="default",this.isServiceSimulated=!1,this.blockUntilDone=!1,this.keepAlive=!1,this.serviceURL=e.serviceURL,this.blockUntilDone=e.blockUntilDone||!1,this.serviceURL=="publisher://"&&(this.isServiceSimulated=!0),this.serviceURL||(this.serviceURL=document.location.origin),this.userName=e.userName,this.password=e.password,e.token&&(this.token=e.token),this.tokenProvider=e.tokenProvider,this.authToken=e.authToken,this.addHTTPResponse=e.addHTTPResponse||!1,this.credentials=e.credentials,this.cache=e.cache||"default",this.keepAlive=e.keepAlive||!1}set token(e){if(this._token=e,!e){ye.tokens.delete(this.serviceURL);return}ye.invalidTokens.includes(e)||ye.tokens.set(this.serviceURL,e)}get token(){return ye.invalidTokens.includes(this._token)?ye.tokens.get(this.serviceURL):this._token}handleInvalidToken(e){e&&(ye.invalidTokens.includes(e)||(ye.invalidTokens.push(e),this.token=null))}async handleResult(e,t){ye.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=e;const r=e.headers.get("content-type")?.toLowerCase(),s=e.status;let u={};if(!r||r.indexOf("text/")==0)u={text:await e.text()};else try{u=await e.json()}catch{u={}}if(this.addHTTPResponse&&er.isObject(u)&&(u._sonic_http_response_=e),s===498&&!ye.failledTokenUpdates.has(this.serviceURL))if(this.handleInvalidToken(this.token),t.apiMethod==="get"){const p=await this.get(t.path,t.additionalHeaders);if(p==null)throw new Error("GET retry failed after token refresh");u=p}else u=await this[t.apiMethod](t.path,t.data,t.method,t.additionalHeaders);return gi("sonic-api").lastResponse.set({http:e,processed:u}),u}async auth(){if(this.token)return;if(ye.tokens.has(this.serviceURL)){this.token=ye.tokens.get(this.serviceURL);return}if(!this.tokenProvider)return;let e={};this.userName&&this.password?e={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))}:this.authToken&&(e={Authorization:"Bearer "+this.authToken});const t=new URL(this.serviceURL),r=t.protocol+"//"+t.host,s=await fetch(this.computeURL(this.tokenProvider,{serviceHost:r}),{headers:e,credentials:this.credentials,keepalive:this.keepAlive});try{const u=await s.json();u.token?this.token=u.token:ye.failledTokenUpdates.set(this.serviceURL,!0)}catch{ye.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(e,t){const r=$e.get(e),s=new URLSearchParams(t.split("?")[1]||""),u=r.get();let o=[];Array.isArray(u)?o=u:o=[u];const p=[];let y=Number.POSITIVE_INFINITY,P=0,M=0;if(s.has("limit")&&(y=parseInt(s.get("limit")||"0"),M++),s.has("offset")&&(P=parseInt(s.get("offset")||"0"),M++),M>0&&(s.delete("limit"),s.delete("offset")),s.size===0)return o.slice(P,P+y);for(const[k,w]of s.entries()){const C=w.split(",").map(R=>R.trim());for(const R of C)for(const N of o)if(typeof N!="object")isNaN(+N)?N.toString().toLowerCase().includes(w.toLowerCase())&&p.push(N):N===w&&p.push(N);else{const ee=N;if(!ee[k])continue;isNaN(+ee[k])?ee[k]?.toString().toLowerCase().includes(R.toLowerCase())&&p.push(N):ee[k]===R&&p.push(N)}}return p.slice(P,P+y)}firstCallDone(){return new Promise(e=>{if(!ye.firstCallDoneFlags.has(this.serviceURL))ye.firstCallDoneFlags.set(this.serviceURL,"loading"),e(!0);else{const t=()=>{[void 0,"loading"].includes(ye.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(t):e(!0)};t()}})}async get(e,t){const r=/dataProvider\((.*?)\)(.*?)$/;if(r.test(e)){this.blockUntilDone&&(await this.firstCallDone(),ye.firstCallDoneFlags.set(this.serviceURL,"loading"));const P=e.match(r);if(!P)throw new Error("dataProvider path is not valid");return await this.localGet(P[1],P[2])}const s={apiMethod:"get",path:e,additionalHeaders:t},u=await this.createHeaders(t),o=this.computeURL(e),p=JSON.stringify({url:o,headers:u,credentials:this.credentials,cache:this.cache,keepAlive:this.keepAlive});if(this.blockUntilDone&&(await this.firstCallDone(),ye.firstCallDoneFlags.set(this.serviceURL,"loading")),!ye.loadingGetPromises.has(p)){const P=new Promise(async M=>{try{const k=await fetch(o,{headers:u,credentials:this.credentials,cache:this.cache,keepalive:this.keepAlive}),w=await this.handleResult(k,s);M({processed:w,response:this.lastResult})}catch{ye.firstCallDoneFlags.set(this.serviceURL,"error"),M(null)}});ye.loadingGetPromises.set(p,P)}const y=await ye.loadingGetPromises.get(p);return ye.loadingGetPromises.delete(p),y?(this.lastResult=y.response,y.processed):null}async getDetailed(e,t){const r=/dataProvider\((.*?)\)(.*?)$/.test(e),s=await this.get(e,t);if(s==null)return;const u=un(s),o=this.computeURL(e);if(r)return{request:new Request(o,{method:"GET"}),result:u};const p=await this.createHeaders(t);return{request:new Request(o,{method:"GET",headers:new Headers(p),credentials:this.credentials,cache:this.cache,keepalive:this.keepAlive}),response:this.lastResult,result:u}}async sendDetailed(e,t,r,s){const u=await this.send(e,t,r,s);if(u==null)return;const o=un(u),p=this.computeURL(e),y=await this.createHeaders({Accept:"application/json","Content-Type":"application/json",...s});return{request:new Request(p,{method:r,headers:new Headers(y),credentials:this.credentials,body:JSON.stringify(t),keepalive:this.keepAlive}),response:this.lastResult,result:o}}async postDetailed(e,t,r){return this.sendDetailed(e,t,"POST",r)}async putDetailed(e,t,r){return this.sendDetailed(e,t,"PUT",r)}async patchDetailed(e,t,r){return this.sendDetailed(e,t,"PATCH",r)}async createHeaders(e){await this.auth();const t={};return this.token&&(t.Authorization="Bearer "+this.token),t["Accept-Language"]=at.getLanguage(),e&&Object.assign(t,e),t}computeURL(e,t={}){let r="";e.startsWith("http")?r=e:r=this.serviceURL+"/"+e,r.startsWith("http")||(r=window.location.origin+r);const s=new URL(r);for(const u in t)s.searchParams.set(u,t[u]);return s.toString().replace(/([^(https?:)])\/{2,}/g,"$1/")}async send(e,t,r="POST",s){const u={apiMethod:"send",path:e,additionalHeaders:s,method:r,data:t},o=await this.createHeaders(s);o.Accept="application/json",o["Content-Type"]="application/json";const p=await fetch(this.computeURL(e),{headers:o,credentials:this.credentials,method:r,body:JSON.stringify(t),keepalive:this.keepAlive});return await this.handleResult(p,u)}async submitFormData(e,t,r="POST",s){const u={apiMethod:"submitFormData",path:e,additionalHeaders:s,method:r,data:t},o=await this.createHeaders(s);o.Accept="application/json";const p=new FormData,y=t;for(const M in y)p.set(M,y[M]);const P=await fetch(this.computeURL(e),{headers:o,credentials:this.credentials,method:r,body:p,keepalive:this.keepAlive});return await this.handleResult(P,u)}async put(e,t,r){return this.send(e,t,"PUT",r)}async post(e,t,r){return this.send(e,t,"POST",r)}async patch(e,t,r){return this.send(e,t,"PATCH",r)}async delete(e,t,r){return this.send(e,t,"delete",r)}};ye.loadingGetPromises=new Map,ye.tokens=new Map,ye.invalidTokens=[],ye.failledTokenUpdates=new Map,ye.firstCallDoneFlags=new Map;let Pr=ye;at.getApiConfiguration(document.body||document.documentElement);var cn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yi(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var jt={exports:{}},wi=jt.exports,ln;function Ai(){return ln||(ln=1,(function(n,e){var t=[].slice;(function(r,s){return e!==null?n.exports=s():r.UrlPattern=s()})(wi,function(){var r,s,u,o,p,y,P,M,k,w,C,R,N,ee,J;return k=function(E){return E.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},P=function(E,v){var O,A,T;for(T=[],O=-1,A=E.length;++O<A;)T=T.concat(v(E[O]));return T},ee=function(E,v){var O,A,T;for(T="",O=-1,A=E.length;++O<A;)T+=v(E[O]);return T},N=function(E){return new RegExp(E.toString()+"|").exec("").length-1},C=function(E,v){var O,A,T,H,F;for(H={},O=-1,T=E.length;++O<T;)A=E[O],F=v[O],F!=null&&(H[A]!=null?(Array.isArray(H[A])||(H[A]=[H[A]]),H[A].push(F)):H[A]=F);return H},r={},r.Result=function(E,v){this.value=E,this.rest=v},r.Tagged=function(E,v){this.tag=E,this.value=v},r.tag=function(E,v){return function(O){var A,T;if(A=v(O),A!=null)return T=new r.Tagged(E,A.value),new r.Result(T,A.rest)}},r.regex=function(E){return function(v){var O,A;if(O=E.exec(v),O!=null)return A=O[0],new r.Result(A,v.slice(A.length))}},r.sequence=function(){var E;return E=1<=arguments.length?t.call(arguments,0):[],function(v){var O,A,T,H,F,re;for(O=-1,A=E.length,re=[],H=v;++O<A;){if(T=E[O],F=T(H),F==null)return;re.push(F.value),H=F.rest}return new r.Result(re,H)}},r.pick=function(){var E,v;return E=arguments[0],v=2<=arguments.length?t.call(arguments,1):[],function(O){var A,T;if(T=r.sequence.apply(r,v)(O),T!=null)return A=T.value,T.value=A[E],T}},r.string=function(E){var v;return v=E.length,function(O){if(O.slice(0,v)===E)return new r.Result(E,O.slice(v))}},r.lazy=function(E){var v;return v=null,function(O){return v==null&&(v=E()),v(O)}},r.baseMany=function(E,v,O,A,T){var H,F,re,ae;for(re=T,ae=O?"":[];!(v!=null&&(H=v(re),H!=null)||(F=E(re),F==null));)O?ae+=F.value:ae.push(F.value),re=F.rest;if(!(A&&ae.length===0))return new r.Result(ae,re)},r.many1=function(E){return function(v){return r.baseMany(E,null,!1,!0,v)}},r.concatMany1Till=function(E,v){return function(O){return r.baseMany(E,v,!0,!0,O)}},r.firstChoice=function(){var E;return E=1<=arguments.length?t.call(arguments,0):[],function(v){var O,A,T,H;for(O=-1,A=E.length;++O<A;)if(T=E[O],H=T(v),H!=null)return H}},R=function(E){var v;return v={},v.wildcard=r.tag("wildcard",r.string(E.wildcardChar)),v.optional=r.tag("optional",r.pick(1,r.string(E.optionalSegmentStartChar),r.lazy(function(){return v.pattern}),r.string(E.optionalSegmentEndChar))),v.name=r.regex(new RegExp("^["+E.segmentNameCharset+"]+")),v.named=r.tag("named",r.pick(1,r.string(E.segmentNameStartChar),r.lazy(function(){return v.name}))),v.escapedChar=r.pick(1,r.string(E.escapeChar),r.regex(/^./)),v.static=r.tag("static",r.concatMany1Till(r.firstChoice(r.lazy(function(){return v.escapedChar}),r.regex(/^./)),r.firstChoice(r.string(E.segmentNameStartChar),r.string(E.optionalSegmentStartChar),r.string(E.optionalSegmentEndChar),v.wildcard))),v.token=r.lazy(function(){return r.firstChoice(v.wildcard,v.optional,v.named,v.static)}),v.pattern=r.many1(r.lazy(function(){return v.token})),v},M={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},y=function(E,v){if(Array.isArray(E))return ee(E,function(O){return y(O,v)});switch(E.tag){case"wildcard":return"(.*?)";case"named":return"(["+v+"]+)";case"static":return k(E.value);case"optional":return"(?:"+y(E.value,v)+")?"}},p=function(E,v){return v==null&&(v=M.segmentValueCharset),"^"+y(E,v)+"$"},o=function(E){if(Array.isArray(E))return P(E,o);switch(E.tag){case"wildcard":return["_"];case"named":return[E.value];case"static":return[];case"optional":return o(E.value)}},w=function(E,v,O,A){var T,H,F,re;if(A==null&&(A=!1),re=E[v],re==null){if(A)throw new Error("no values provided for key `"+v+"`");return}if(T=O[v]||0,H=Array.isArray(re)?re.length-1:0,T>H){if(A)throw new Error("too few values provided for key `"+v+"`");return}return F=Array.isArray(re)?re[T]:re,A&&(O[v]=T+1),F},u=function(E,v,O){var A,T;if(Array.isArray(E)){for(A=-1,T=E.length;++A<T;)if(u(E[A],v,O))return!0;return!1}switch(E.tag){case"wildcard":return w(v,"_",O,!1)!=null;case"named":return w(v,E.value,O,!1)!=null;case"static":return!1;case"optional":return u(E.value,v,O)}},J=function(E,v,O){if(Array.isArray(E))return ee(E,function(A){return J(A,v,O)});switch(E.tag){case"wildcard":return w(v,"_",O,!0);case"named":return w(v,E.value,O,!0);case"static":return E.value;case"optional":return u(E.value,v,O)?J(E.value,v,O):""}},s=function(E,v){var O,A,T,H,F;if(E instanceof s){this.isRegex=E.isRegex,this.regex=E.regex,this.ast=E.ast,this.names=E.names;return}if(this.isRegex=E instanceof RegExp,!(typeof E=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=E,v!=null){if(!Array.isArray(v))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(O=N(this.regex),v.length!==O)throw new Error("regex contains "+O+" groups but array of group names contains "+v.length);this.names=v}return}if(E==="")throw new Error("argument must not be the empty string");if(F=E.replace(/\s+/g,""),F!==E)throw new Error("argument must not contain whitespace");if(A={escapeChar:v?.escapeChar||M.escapeChar,segmentNameStartChar:v?.segmentNameStartChar||M.segmentNameStartChar,segmentNameCharset:v?.segmentNameCharset||M.segmentNameCharset,segmentValueCharset:v?.segmentValueCharset||M.segmentValueCharset,optionalSegmentStartChar:v?.optionalSegmentStartChar||M.optionalSegmentStartChar,optionalSegmentEndChar:v?.optionalSegmentEndChar||M.optionalSegmentEndChar,wildcardChar:v?.wildcardChar||M.wildcardChar},H=R(A),T=H.pattern(E),T==null)throw new Error("couldn't parse pattern");if(T.rest!=="")throw new Error("could only partially parse pattern");this.ast=T.value,this.regex=new RegExp(p(this.ast,A.segmentValueCharset)),this.names=o(this.ast)},s.prototype.match=function(E){var v,O;return O=this.regex.exec(E),O==null?null:(v=O.slice(1),this.names?C(this.names,v):v)},s.prototype.stringify=function(E){if(E==null&&(E={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(E!==Object(E))throw new Error("argument must be an object or undefined");return J(this.ast,E,{})},s.escapeForRegex=k,s.concatMap=P,s.stringConcatMap=ee,s.regexGroupCount=N,s.keysAndValuesToObject=C,s.P=r,s.newParser=R,s.defaultOptions=M,s.astNodeToRegexString=p,s.astNodeToNames=o,s.getParam=w,s.astNodeContainsSegmentsForProvidedParams=u,s.stringify=J,s})})(jt,jt.exports)),jt.exports}var Ei=Ai();const _i=yi(Ei);class Tr{constructor(e){this.path=Tr.normalizePath(e)}getDataProviderKey(){return new Qt(this.path)}static normalizePath(e){const t=String(e).trim();if(!t)throw new RangeError("Endpoint: path cannot be empty");if(/^https?:\/\//i.test(t)){let y;try{y=new URL(t)}catch{throw new RangeError("Endpoint: invalid absolute URL")}return y.pathname=y.pathname.replace(/\/+/g,"/"),y.href}const r=t.indexOf("?"),s=t.indexOf("#");let u=t.length;r>=0&&(u=Math.min(u,r)),s>=0&&(u=Math.min(u,s));let o=t.slice(0,u);const p=t.slice(u);if(o=o.replace(/^\/+/,""),o=o.replace(/\/+/g,"/"),!o&&p)throw new RangeError("Endpoint: path cannot be empty");return o+p}static isNonEmpty(e){return String(e).trim().length>0}static looksLikeDataProviderPath(e){return/^\s*dataProvider\s*\(/i.test(String(e))}toString(){return this.path}}function nr(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Cr={exports:{}},fn;function xi(){return fn||(fn=1,(function(n,e){(function(t){n.exports=t()})(function(){return(function(){function t(r,s,u){function o(P,M){if(!s[P]){if(!r[P]){var k=typeof nr=="function"&&nr;if(!M&&k)return k(P,!0);if(p)return p(P,!0);var w=new Error("Cannot find module '"+P+"'");throw w.code="MODULE_NOT_FOUND",w}var C=s[P]={exports:{}};r[P][0].call(C.exports,function(R){var N=r[P][1][R];return o(N||R)},C,C.exports,t,r,s,u)}return s[P].exports}for(var p=typeof nr=="function"&&nr,y=0;y<u.length;y++)o(u[y]);return o}return t})()({1:[function(t,r,s){const u=t("./utils"),o=(function(){const p=u.stringToArray,y=["Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen"],P=["Zeroth","First","Second","Third","Fourth","Fifth","Sixth","Seventh","Eighth","Ninth","Tenth","Eleventh","Twelfth","Thirteenth","Fourteenth","Fifteenth","Sixteenth","Seventeenth","Eighteenth","Nineteenth"],M=["Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety","Hundred"],k=["Thousand","Million","Billion","Trillion"];function w(_,D){var S=function(B,I,L){var q="";if(B<=19)q=(I?" and ":"")+(L?P[B]:y[B]);else if(B<100){const he=Math.floor(B/10),ue=B%10;q=(I?" and ":"")+M[he-2],ue>0?q+="-"+S(ue,!1,L):L&&(q=q.substring(0,q.length-1)+"ieth")}else if(B<1e3){const he=Math.floor(B/100),ue=B%100;q=(I?", ":"")+y[he]+" Hundred",ue>0?q+=S(ue,!0,L):L&&(q+="th")}else{var K=Math.floor(Math.log10(B)/3);K>k.length&&(K=k.length);const he=Math.pow(10,K*3),ue=Math.floor(B/he),te=B-ue*he;q=(I?", ":"")+S(ue,!1,!1)+" "+k[K-1],te>0?q+=S(te,!0,L):L&&(q+="th")}return q},U=S(_,!1,D);return U}const C=Object.create(null);y.forEach(function(_,D){C[_.toLowerCase()]=D}),P.forEach(function(_,D){C[_.toLowerCase()]=D}),M.forEach(function(_,D){const S=_.toLowerCase();C[S]=(D+2)*10,C[S.substring(0,_.length-1)+"ieth"]=C[S]}),C.hundredth=100,k.forEach(function(_,D){const S=_.toLowerCase(),U=Math.pow(10,(D+1)*3);C[S]=U,C[S+"th"]=U});function R(_){const S=_.split(/,\s|\sand\s|[\s\\-]/).map(I=>C[I]);let U=[0];return S.forEach(I=>{if(I<100){let L=U.pop();L>=1e3&&(U.push(L),L=0),U.push(L+I)}else U.push(U.pop()*I)}),U.reduce((I,L)=>I+L,0)}const N=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],ee={M:1e3,D:500,C:100,L:50,X:10,V:5,I:1};function J(_){for(var D=0;D<N.length;D++){const S=N[D];if(_>=S[0])return S[1]+J(_-S[0])}return""}function E(_){for(var D=0,S=1,U=_.length-1;U>=0;U--){const B=_[U],I=ee[B];I<S?D-=I:(S=I,D+=I)}return D}function v(_,D){for(var S=[],U=D.charCodeAt(0);_>0;)S.unshift(String.fromCharCode((_-1)%26+U)),_=Math.floor((_-1)/26);return S.join("")}function O(_,D){for(var S=D.charCodeAt(0),U=0,B=0;B<_.length;B++)U+=(_.charCodeAt(_.length-B-1)-S+1)*Math.pow(26,B);return U}function A(_,D){if(typeof _>"u")return;_=Math.floor(_);const S=ae(D);return F(_,S)}const T={DECIMAL:"decimal",LETTERS:"letters",ROMAN:"roman",WORDS:"words",SEQUENCE:"sequence"},H={UPPER:"upper",LOWER:"lower",TITLE:"title"};function F(_,D){let S;const U=_<0;switch(_=Math.abs(_),D.primary){case T.LETTERS:S=v(_,D.case===H.UPPER?"A":"a");break;case T.ROMAN:S=J(_),D.case===H.UPPER&&(S=S.toUpperCase());break;case T.WORDS:S=w(_,D.ordinal),D.case===H.UPPER?S=S.toUpperCase():D.case===H.LOWER&&(S=S.toLowerCase());break;case T.DECIMAL:S=""+_;var B=D.mandatoryDigits-S.length;if(B>0){var I=new Array(B+1).join("0");S=I+S}if(D.zeroCode!==48&&(S=p(S).map(he=>String.fromCodePoint(he.codePointAt(0)+D.zeroCode-48)).join("")),D.regular){const he=Math.floor((S.length-1)/D.groupingSeparators.position);for(let ue=he;ue>0;ue--){const te=S.length-ue*D.groupingSeparators.position;S=S.substr(0,te)+D.groupingSeparators.character+S.substr(te)}}else D.groupingSeparators.reverse().forEach(he=>{const ue=S.length-he.position;S=S.substr(0,ue)+he.character+S.substr(ue)});if(D.ordinal){var L={1:"st",2:"nd",3:"rd"},q=S[S.length-1],K=L[q];(!K||S.length>1&&S[S.length-2]==="1")&&(K="th"),S=S+K}break;case T.SEQUENCE:throw{code:"D3130",value:D.token}}return U&&(S="-"+S),S}const re=[48,1632,1776,1984,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,42528,43216,43264,43472,43504,43600,44016,65296];function ae(_){const D={type:"integer",primary:T.DECIMAL,case:H.LOWER,ordinal:!1};let S,U;const B=_.lastIndexOf(";");switch(B===-1?S=_:(S=_.substring(0,B),U=_.substring(B+1),U[0]==="o"&&(D.ordinal=!0)),S){case"A":D.case=H.UPPER;case"a":D.primary=T.LETTERS;break;case"I":D.case=H.UPPER;case"i":D.primary=T.ROMAN;break;case"W":D.case=H.UPPER,D.primary=T.WORDS;break;case"Ww":D.case=H.TITLE,D.primary=T.WORDS;break;case"w":D.primary=T.WORDS;break;default:{let I=null,L=0,q=0,K=[],he=0;if(p(S).map(te=>te.codePointAt(0)).reverse().forEach(te=>{let Z=!1;for(let le=0;le<re.length;le++){const Q=re[le];if(te>=Q&&te<=Q+9){if(Z=!0,L++,he++,I===null)I=Q;else if(Q!==I)throw{code:"D3131"};break}}Z||(te===35?(he++,q++):K.push({position:he,character:String.fromCodePoint(te)}))}),L>0){D.primary=T.DECIMAL,D.zeroCode=I,D.mandatoryDigits=L,D.optionalDigits=q;const Z=function(le){if(le.length===0)return 0;const Q=le[0].character;for(let Le=1;Le<le.length;Le++)if(le[Le].character!==Q)return 0;const Ne=le.map(Le=>Le.position),Qe=function(Le,Be){return Be===0?Le:Qe(Be,Le%Be)},je=Ne.reduce(Qe);for(let Le=1;Le<=Ne.length;Le++)if(Ne.indexOf(Le*je)===-1)return 0;return je}(K);Z>0?(D.regular=!0,D.groupingSeparators={position:Z,character:K[0].character}):(D.regular=!1,D.groupingSeparators=K)}else D.primary=T.SEQUENCE,D.token=S}}return D}const Ee={Y:"1",M:"1",D:"1",d:"1",F:"n",W:"1",w:"1",X:"1",x:"1",H:"1",h:"1",P:"n",m:"01",s:"01",f:"1",Z:"01:01",z:"01:01",C:"n",E:"n"};function ve(_){var D=[];const S={type:"datetime",parts:D},U=function(Z,le){if(le>Z){let Q=_.substring(Z,le);Q=Q.split("]]").join("]"),D.push({type:"literal",value:Q})}};for(var B=0,I=0;I<_.length;){if(_.charAt(I)==="["){if(_.charAt(I+1)==="["){U(B,I),D.push({type:"literal",value:"["}),I+=2,B=I;continue}if(U(B,I),B=I,I=_.indexOf("]",B),I===-1)throw{code:"D3135"};let Z=_.substring(B+1,I);Z=Z.split(/\s+/).join("");var L={type:"marker",component:Z.charAt(0)},q=Z.lastIndexOf(","),K;if(q!==-1){const le=Z.substring(q+1),Q=le.indexOf("-");let Ne,Qe;const je=function(Be){if(!(typeof Be>"u"||Be==="*"))return parseInt(Be)};Q===-1?Ne=le:(Ne=le.substring(0,Q),Qe=le.substring(Q+1));const Le={min:je(Ne),max:je(Qe)};L.width=Le,K=Z.substring(1,q)}else K=Z.substring(1);if(K.length===1)L.presentation1=K;else if(K.length>1){var he=K.charAt(K.length-1);"atco".indexOf(he)!==-1?(L.presentation2=he,he==="o"&&(L.ordinal=!0),L.presentation1=K.substring(0,K.length-1)):L.presentation1=K}else L.presentation1=Ee[L.component];if(typeof L.presentation1>"u")throw{code:"D3132",value:L.component};if(L.presentation1[0]==="n")L.names=H.LOWER;else if(L.presentation1[0]==="N")L.presentation1[1]==="n"?L.names=H.TITLE:L.names=H.UPPER;else if("YMDdFWwXxHhmsf".indexOf(L.component)!==-1){var ue=L.presentation1;if(L.presentation2&&(ue+=";"+L.presentation2),L.integerFormat=ae(ue),L.width&&L.width.min!==void 0&&L.integerFormat.mandatoryDigits<L.width.min&&(L.integerFormat.mandatoryDigits=L.width.min),L.component==="Y")if(L.n=-1,L.width&&L.width.max!==void 0)L.n=L.width.max,L.integerFormat.mandatoryDigits=L.n;else{var te=L.integerFormat.mandatoryDigits+L.integerFormat.optionalDigits;te>=2&&(L.n=te)}const le=D[D.length-1];le&&le.integerFormat&&(le.integerFormat.parseWidth=le.integerFormat.mandatoryDigits)}(L.component==="Z"||L.component==="z")&&(L.integerFormat=ae(L.presentation1)),D.push(L),B=I+1}I++}return U(B,I),S}const pe=["","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Te=["January","February","March","April","May","June","July","August","September","October","November","December"],Je=1e3*60*60*24,ce=function(_){const D=Date.UTC(_.year,_.month);var S=new Date(D).getUTCDay();return S===0&&(S=7),S>4?D+(8-S)*Je:D-(S-1)*Je},me=function(_,D){return{year:_,month:D,nextMonth:function(){return D===11?me(_+1,0):me(_,D+1)},previousMonth:function(){return D===0?me(_-1,11):me(_,D-1)},nextYear:function(){return me(_+1,D)},previousYear:function(){return me(_-1,D)}}},We=function(_,D){return(D-_)/(Je*7)+1},ie=(_,D)=>{let S;switch(D){case"Y":S=_.getUTCFullYear();break;case"M":S=_.getUTCMonth()+1;break;case"D":S=_.getUTCDate();break;case"d":{const U=Date.UTC(_.getUTCFullYear(),_.getUTCMonth(),_.getUTCDate()),B=Date.UTC(_.getUTCFullYear(),0);S=(U-B)/Je+1;break}case"F":S=_.getUTCDay(),S===0&&(S=7);break;case"W":{const U=me(_.getUTCFullYear(),0),B=ce(U),I=Date.UTC(U.year,_.getUTCMonth(),_.getUTCDate());let L=We(B,I);if(L>52){const q=ce(U.nextYear());I>=q&&(L=1)}else if(L<1){const q=ce(U.previousYear());L=We(q,I)}S=Math.floor(L);break}case"w":{const U=me(_.getUTCFullYear(),_.getUTCMonth()),B=ce(U),I=Date.UTC(U.year,U.month,_.getUTCDate());let L=We(B,I);if(L>4){const q=ce(U.nextMonth());I>=q&&(L=1)}else if(L<1){const q=ce(U.previousMonth());L=We(q,I)}S=Math.floor(L);break}case"X":{const U=me(_.getUTCFullYear(),0),B=ce(U),I=ce(U.nextYear()),L=_.getTime();L<B?S=U.year-1:L>=I?S=U.year+1:S=U.year;break}case"x":{const U=me(_.getUTCFullYear(),_.getUTCMonth()),B=ce(U),I=U.nextMonth(),L=ce(I),q=_.getTime();q<B?S=U.previousMonth().month+1:q>=L?S=I.month+1:S=U.month+1;break}case"H":S=_.getUTCHours();break;case"h":S=_.getUTCHours(),S=S%12,S===0&&(S=12);break;case"P":S=_.getUTCHours()>=12?"pm":"am";break;case"m":S=_.getUTCMinutes();break;case"s":S=_.getUTCSeconds();break;case"f":S=_.getUTCMilliseconds();break;case"Z":case"z":break;case"C":S="ISO";break;case"E":S="ISO";break}return S};let Ce=null;function nt(_,D,S){var U=0,B=0;if(typeof S<"u"){const ue=parseInt(S);U=Math.floor(ue/100),B=ue%100}var I=function(ue,te){var Z=ie(ue,te.component);if("YMDdFWwXxHhms".indexOf(te.component)!==-1)if(te.component==="Y"&&te.n!==-1&&(Z=Z%Math.pow(10,te.n)),te.names){if(te.component==="M"||te.component==="x")Z=Te[Z-1];else if(te.component==="F")Z=pe[Z];else throw{code:"D3133",value:te.component};te.names===H.UPPER?Z=Z.toUpperCase():te.names===H.LOWER&&(Z=Z.toLowerCase()),te.width&&Z.length>te.width.max&&(Z=Z.substring(0,te.width.max))}else Z=F(Z,te.integerFormat);else if(te.component==="f")Z=F(Z,te.integerFormat);else if(te.component==="Z"||te.component==="z"){const le=U*100+B;if(te.integerFormat.regular)Z=F(le,te.integerFormat);else{const Q=te.integerFormat.mandatoryDigits;if(Q===1||Q===2)Z=F(U,te.integerFormat),B!==0&&(Z+=":"+A(B,"00"));else if(Q===3||Q===4)Z=F(le,te.integerFormat);else throw{code:"D3134",value:Q}}le>=0&&(Z="+"+Z),te.component==="z"&&(Z="GMT"+Z),le===0&&te.presentation2==="t"&&(Z="Z")}else te.component==="P"&&te.names===H.UPPER&&(Z=Z.toUpperCase());return Z};let L;typeof D>"u"?(Ce===null&&(Ce=ve("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001][Z01:01t]")),L=Ce):L=ve(D);const q=(60*U+B)*60*1e3,K=new Date(_+q);let he="";return L.parts.forEach(function(ue){ue.type==="literal"?he+=ue.value:he+=I(K,ue)}),he}function h(_){var D=Object.create(null);if(_.type==="datetime")D.type="datetime",D.parts=_.parts.map(function(S){var U=Object.create(null);if(S.type==="literal")U.regex=S.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");else if(S.component==="Z"||S.component==="z"){let I;Array.isArray(S.integerFormat.groupingSeparators)||(I=S.integerFormat.groupingSeparators),U.regex="",S.component==="z"&&(U.regex="GMT"),U.regex+="[-+][0-9]+",I&&(U.regex+=I.character+"[0-9]+"),U.parse=function(L){S.component==="z"&&(L=L.substring(3));let q=0,K=0;return I?(q=Number.parseInt(L.substring(0,L.indexOf(I.character))),K=Number.parseInt(L.substring(L.indexOf(I.character)+1))):L.length-1<=2?q=Number.parseInt(L):(q=Number.parseInt(L.substring(0,3)),K=Number.parseInt(L.substring(3))),q*60+K}}else if(S.component==="f")U.regex="[0-9]+",U.parse=function(I){return parseFloat("0."+I.substring(0,3))*1e3};else if(S.integerFormat)U=h(S.integerFormat);else{U.regex="[a-zA-Z]+";var B=Object.create(null);if(S.component==="M"||S.component==="x")Te.forEach(function(I,L){S.width&&S.width.max?B[I.substring(0,S.width.max)]=L+1:B[I]=L+1});else if(S.component==="F")pe.forEach(function(I,L){L>0&&(S.width&&S.width.max?B[I.substring(0,S.width.max)]=L:B[I]=L)});else if(S.component==="P")B={am:0,AM:0,pm:1,PM:1};else throw{code:"D3133",value:S.component};U.parse=function(I){return B[I]}}return U.component=S.component,U});else{D.type="integer";const S=_.case===H.UPPER;switch(_.primary){case T.LETTERS:D.regex=S?"[A-Z]+":"[a-z]+",D.parse=function(U){return O(U,S?"A":"a")};break;case T.ROMAN:D.regex=S?"[MDCLXVI]+":"[mdclxvi]+",D.parse=function(U){return E(S?U:U.toUpperCase())};break;case T.WORDS:D.regex="(?:"+u.keys(C).concat("and","[\\-, ]").join("|")+")+",D.parse=function(U){return R(U.toLowerCase())};break;case T.DECIMAL:D.regex="[0-9]",_.parseWidth?D.regex+=`{${_.parseWidth}}`:D.regex+="+",_.ordinal&&(D.regex+="(?:th|st|nd|rd)"),D.parse=function(U){let B=U;return _.ordinal&&(B=U.substring(0,U.length-2)),_.regular?B=B.split(",").join(""):_.groupingSeparators.forEach(I=>{B=B.split(I.character).join("")}),_.zeroCode!==48&&(B=B.split("").map(I=>String.fromCodePoint(I.codePointAt(0)-_.zeroCode+48)).join("")),parseInt(B)};break;case T.SEQUENCE:throw{code:"D3130",value:_.token}}}return D}function b(_,D){if(typeof _>"u")return;const S=ae(D);return h(S).parse(_)}function G(_,D){const S=ve(D),U=h(S),B="^"+U.parts.map(K=>"("+K.regex+")").join("")+"$";var L=new RegExp(B,"i").exec(_);if(L!==null){const Q=Object.create(null);for(let c=1;c<L.length;c++){const f=U.parts[c-1];f.parse&&(Q[f.component]=f.parse(L[c]))}if(Object.getOwnPropertyNames(Q).length===0)return;let Ne=0;const Qe=c=>{Ne<<=1,Ne+=c?1:0},je=c=>!(~c&Ne)&&!!(c&Ne);"YXMxWwdD".split("").forEach(c=>Qe(Q[c]));const Be=!je(161)&&je(130),ot=je(84),Tt=!ot&&je(72);Ne=0,"PHhmsf".split("").forEach(c=>Qe(Q[c]));const z=!je(23)&&je(47),tt=(Be?"YD":ot?"XxwF":Tt?"XWF":"YMD")+(z?"Phmsf":"Hmsf"),Ht=this.environment.timestamp;let it=!1,yt=!1;if(tt.split("").forEach(c=>{if(typeof Q[c]>"u")it?(Q[c]="MDd".indexOf(c)!==-1?1:0,yt=!0):Q[c]=ie(Ht,c);else if(it=!0,yt)throw{code:"D3136"}}),Q.M>0?Q.M-=1:Q.M=0,Be){const c=Date.UTC(Q.Y,0),f=(Q.d-1)*1e3*60*60*24,d=new Date(c+f);Q.M=d.getUTCMonth(),Q.D=d.getUTCDate()}if(ot)throw{code:"D3136"};if(Tt)throw{code:"D3136"};z&&(Q.H=Q.h===12?0:Q.h,Q.P===1&&(Q.H+=12));var q=Date.UTC(Q.Y,Q.M,Q.D,Q.H,Q.m,Q.s,Q.f);return(Q.Z||Q.z)&&(q-=(Q.Z||Q.z)*60*1e3),q}}var fe=new RegExp("^\\d{4}(-[01]\\d)?(-[0-3]\\d)?(T[0-2]\\d:[0-5]\\d:[0-5]\\d)?(\\.\\d+)?([+-][0-2]\\d:?[0-5]\\d|Z)?$");function _e(_,D){if(!(typeof _>"u"))if(typeof D>"u"){if(!fe.test(_))throw{stack:new Error().stack,code:"D3110",value:_};return Date.parse(_)}else return G.call(this,_,D)}function we(_,D,S){if(!(typeof _>"u"))return nt.call(this,_,D,S)}return{formatInteger:A,parseInteger:b,fromMillis:we,toMillis:_e}})();r.exports=o},{"./utils":6}],2:[function(t,r,s){(function(u){(function(){var o=t("./utils");const p=(()=>{var y=o.isNumeric,P=o.isArrayOfStrings,M=o.isArrayOfNumbers,k=o.isSequence,w=o.isFunction,C=o.isLambda,R=o.isPromise,N=o.getFunctionArity,ee=o.isDeepEqual,J=o.stringToArray;function E(i){if(!(typeof i>"u")){var a=0;return i.forEach(function(l){a+=l}),a}}function v(i){return typeof i>"u"?0:i.length}function O(i){if(!(typeof i>"u"||i.length===0))return Math.max.apply(Math,i)}function A(i){if(!(typeof i>"u"||i.length===0))return Math.min.apply(Math,i)}function T(i){if(!(typeof i>"u"||i.length===0)){var a=0;return i.forEach(function(l){a+=l}),a/i.length}}function H(i,a=!1){if(!(typeof i>"u")){var l;if(typeof i=="string")l=i;else if(w(i))l="";else{if(typeof i=="number"&&!isFinite(i))throw{code:"D3001",value:i,stack:new Error().stack};var g=a?2:0;Array.isArray(i)&&i.outerWrapper&&(i=i[0]),l=JSON.stringify(i,function(m,x){return typeof x<"u"&&x!==null&&y(x)?x.toPrecision&&!Number.isInteger(x)?Number(x.toPrecision(15)):x:x&&w(x)?"":x},g)}return l}}function F(i,a,l){if(!(typeof i>"u")){var g=J(i),m=g.length;if(m+a<0&&(a=0),typeof l<"u"){if(l<=0)return"";var x=a>=0?a+l:m+a+l;return g.slice(a,x).join("")}return g.slice(a).join("")}}function re(i,a){if(!(typeof i>"u")){var l=i.indexOf(a);return l>-1?i.substr(0,l):i}}function ae(i,a){if(!(typeof i>"u")){var l=i.indexOf(a);return l>-1?i.substr(l+a.length):i}}function Ee(i){if(!(typeof i>"u"))return i.toLowerCase()}function ve(i){if(!(typeof i>"u"))return i.toUpperCase()}function pe(i){if(!(typeof i>"u"))return J(i).length}function Te(i){if(!(typeof i>"u")){var a=i.replace(/[ \t\n\r]+/gm," ");return a.charAt(0)===" "&&(a=a.substring(1)),a.charAt(a.length-1)===" "&&(a=a.substring(0,a.length-1)),a}}function Je(i,a,l){if(!(typeof i>"u")){(typeof l>"u"||l.length===0)&&(l=" ");var g;a=Math.trunc(a);var m=Math.abs(a)-pe(i);if(m>0){var x=new Array(m+1).join(l);l.length>1&&(x=F(x,0,m)),a>0?g=i+x:g=x+i}else g=i;return g}}async function ce(i,a){var l=i.apply(this,[a]);if(R(l)&&(l=await l),l&&!(typeof l.start=="number"||l.end==="number"||Array.isArray(l.groups)||w(l.next)))throw{code:"T1010",stack:new Error().stack};return l}async function me(i,a){if(!(typeof i>"u"||typeof a>"u")){var l;if(typeof a=="string")l=i.indexOf(a)!==-1;else{var g=await ce(a,i);l=typeof g<"u"}return l}}async function We(i,a,l){if(!(typeof i>"u")){if(l<0)throw{stack:new Error().stack,value:l,code:"D3040",index:3};var g=this.createSequence();if(typeof l>"u"||l>0){var m=0,x=await ce(a,i);if(typeof x<"u")for(;typeof x<"u"&&(typeof l>"u"||m<l);)g.push({match:x.match,index:x.start,groups:x.groups}),x=await ce(x.next),m++}return g}}async function ie(i,a,l,g){if(!(typeof i>"u")){var m=this;if(a==="")throw{code:"D3010",stack:new Error().stack,value:a,index:2};if(g<0)throw{code:"D3011",stack:new Error().stack,value:g,index:4};var x;typeof l=="string"?x=function(ke){for(var Me="",be=0,De=l.indexOf("$",be);De!==-1&&be<l.length;){Me+=l.substring(be,De),be=De+1;var et=l.charAt(be);if(et==="$")Me+="$",be++;else if(et==="0")Me+=ke.match,be++;else{var qe;if(ke.groups.length===0?qe=1:qe=Math.floor(Math.log(ke.groups.length)*Math.LOG10E)+1,De=parseInt(l.substring(be,be+qe),10),qe>1&&De>ke.groups.length&&(De=parseInt(l.substring(be,be+qe-1),10)),isNaN(De))Me+="$";else{if(ke.groups.length>0){var st=ke.groups[De-1];typeof st<"u"&&(Me+=st)}be+=De.toString().length}}De=l.indexOf("$",be)}return Me+=l.substring(be),Me}:x=l;var $="",j=0;if(typeof g>"u"||g>0){var se=0;if(typeof a=="string"){for(var W=i.indexOf(a,j);W!==-1&&(typeof g>"u"||se<g);)$+=i.substring(j,W),$+=l,j=W+a.length,se++,W=i.indexOf(a,j);$+=i.substring(j)}else{var Ae=await ce(a,i);if(typeof Ae<"u"){for(;typeof Ae<"u"&&(typeof g>"u"||se<g);){$+=i.substring(j,Ae.start);var xe=x.apply(m,[Ae]);if(R(xe)&&(xe=await xe),typeof xe=="string")$+=xe;else throw{code:"D3012",stack:new Error().stack,value:xe};j=Ae.start+Ae.match.length,se++,Ae=await ce(Ae.next)}$+=i.substring(j)}else $=i}}else $=i;return $}}function Ce(i){if(!(typeof i>"u")){var a=typeof window<"u"?window.btoa:function(l){return new u.Buffer.from(l,"binary").toString("base64")};return a(i)}}function nt(i){if(!(typeof i>"u")){var a=typeof window<"u"?window.atob:function(l){return new u.Buffer.from(l,"base64").toString("binary")};return a(i)}}function h(i){if(!(typeof i>"u")){var a;try{a=encodeURIComponent(i)}catch{throw{code:"D3140",stack:new Error().stack,value:i,functionName:"encodeUrlComponent"}}return a}}function b(i){if(!(typeof i>"u")){var a;try{a=encodeURI(i)}catch{throw{code:"D3140",stack:new Error().stack,value:i,functionName:"encodeUrl"}}return a}}function G(i){if(!(typeof i>"u")){var a;try{a=decodeURIComponent(i)}catch{throw{code:"D3140",stack:new Error().stack,value:i,functionName:"decodeUrlComponent"}}return a}}function fe(i){if(!(typeof i>"u")){var a;try{a=decodeURI(i)}catch{throw{code:"D3140",stack:new Error().stack,value:i,functionName:"decodeUrl"}}return a}}async function _e(i,a,l){if(!(typeof i>"u")){if(l<0)throw{code:"D3020",stack:new Error().stack,value:l,index:3};var g=[];if(typeof l>"u"||l>0)if(typeof a=="string")g=i.split(a,l);else{var m=0,x=await ce(a,i);if(typeof x<"u"){for(var $=0;typeof x<"u"&&(typeof l>"u"||m<l);)g.push(i.substring($,x.start)),$=x.end,x=await ce(x.next),m++;(typeof l>"u"||m<l)&&g.push(i.substring($))}else g.push(i)}return g}}function we(i,a){if(!(typeof i>"u"))return typeof a>"u"&&(a=""),i.join(a)}function _(i,a,l){if(!(typeof i>"u")){var g={"decimal-separator":".","grouping-separator":",","exponent-separator":"e",infinity:"Infinity","minus-sign":"-",NaN:"NaN",percent:"%","per-mille":"‰","zero-digit":"0",digit:"#","pattern-separator":";"},m=g;typeof l<"u"&&o.keys(l).forEach(function(ne){m[ne]=l[ne]});for(var x=[],$=m["zero-digit"].charCodeAt(0),j=$;j<$+10;j++)x.push(String.fromCharCode(j));var se=x.concat([m["decimal-separator"],m["exponent-separator"],m["grouping-separator"],m.digit,m["pattern-separator"]]),W=a.split(m["pattern-separator"]);if(W.length>2)throw{code:"D3080",stack:new Error().stack};var Ae=function(ne){var Pe=(function(){for(var Ue,Ze=0;Ze<ne.length;Ze++)if(Ue=ne.charAt(Ze),se.indexOf(Ue)!==-1&&Ue!==m["exponent-separator"])return ne.substring(0,Ze);return""})(),He=(function(){for(var Ue,Ze=ne.length-1;Ze>=0;Ze--)if(Ue=ne.charAt(Ze),se.indexOf(Ue)!==-1&&Ue!==m["exponent-separator"])return ne.substring(Ze+1);return""})(),Se=ne.substring(Pe.length,ne.length-He.length),Ye,mt,Xe,wt,Ke=ne.indexOf(m["exponent-separator"],Pe.length);Ke===-1||Ke>ne.length-He.length?(Ye=Se,mt=void 0):(Ye=Se.substring(0,Ke),mt=Se.substring(Ke+1));var rt=Ye.indexOf(m["decimal-separator"]);return rt===-1?(Xe=Ye,wt=He):(Xe=Ye.substring(0,rt),wt=Ye.substring(rt+1)),{prefix:Pe,suffix:He,activePart:Se,mantissaPart:Ye,exponentPart:mt,integerPart:Xe,fractionalPart:wt,subpicture:ne}},xe=function(ne){var Pe,He,Se=ne.subpicture,Ye=Se.indexOf(m["decimal-separator"]);Ye!==Se.lastIndexOf(m["decimal-separator"])&&(Pe="D3081"),Se.indexOf(m.percent)!==Se.lastIndexOf(m.percent)&&(Pe="D3082"),Se.indexOf(m["per-mille"])!==Se.lastIndexOf(m["per-mille"])&&(Pe="D3083"),Se.indexOf(m.percent)!==-1&&Se.indexOf(m["per-mille"])!==-1&&(Pe="D3084");var mt=!1;for(He=0;He<ne.mantissaPart.length;He++){var Xe=ne.mantissaPart.charAt(He);if(x.indexOf(Xe)!==-1||Xe===m.digit){mt=!0;break}}mt||(Pe="D3085");var wt=ne.activePart.split("").map(function(Ue){return se.indexOf(Ue)===-1?"p":"a"}).join("");wt.indexOf("p")!==-1&&(Pe="D3086"),Ye!==-1?(Se.charAt(Ye-1)===m["grouping-separator"]||Se.charAt(Ye+1)===m["grouping-separator"])&&(Pe="D3087"):ne.integerPart.charAt(ne.integerPart.length-1)===m["grouping-separator"]&&(Pe="D3088"),Se.indexOf(m["grouping-separator"]+m["grouping-separator"])!==-1&&(Pe="D3089");var Ke=ne.integerPart.indexOf(m.digit);Ke!==-1&&ne.integerPart.substring(0,Ke).split("").filter(function(Ue){return x.indexOf(Ue)>-1}).length>0&&(Pe="D3090"),Ke=ne.fractionalPart.lastIndexOf(m.digit),Ke!==-1&&ne.fractionalPart.substring(Ke).split("").filter(function(Ue){return x.indexOf(Ue)>-1}).length>0&&(Pe="D3091");var rt=typeof ne.exponentPart=="string";if(rt&&ne.exponentPart.length>0&&(Se.indexOf(m.percent)!==-1||Se.indexOf(m["per-mille"])!==-1)&&(Pe="D3092"),rt&&(ne.exponentPart.length===0||ne.exponentPart.split("").filter(function(Ue){return x.indexOf(Ue)===-1}).length>0)&&(Pe="D3093"),Pe)throw{code:Pe,stack:new Error().stack}},ke=function(ne){var Pe=function(Ie,hr){for(var Wt=[],ut=Ie.indexOf(m["grouping-separator"]);ut!==-1;){var dr=(hr?Ie.substring(0,ut):Ie.substring(ut)).split("").filter(function(Rt){return x.indexOf(Rt)!==-1||Rt===m.digit}).length;Wt.push(dr),ut=ne.integerPart.indexOf(m["grouping-separator"],ut+1)}return Wt},He=Pe(ne.integerPart),Se=function(Ie){if(Ie.length===0)return 0;for(var hr=function(dr,Rt){return Rt===0?dr:hr(Rt,dr%Rt)},Wt=Ie.reduce(hr),ut=1;ut<=Ie.length;ut++)if(Ie.indexOf(ut*Wt)===-1)return 0;return Wt},Ye=Se(He),mt=Pe(ne.fractionalPart,!0),Xe=ne.integerPart.split("").filter(function(Ie){return x.indexOf(Ie)!==-1}).length,wt=Xe,Ke=ne.fractionalPart.split(""),rt=Ke.filter(function(Ie){return x.indexOf(Ie)!==-1}).length,Ue=Ke.filter(function(Ie){return x.indexOf(Ie)!==-1||Ie===m.digit}).length,Ze=typeof ne.exponentPart=="string";Xe===0&&Ue===0&&(Ze?(rt=1,Ue=1):Xe=1),Ze&&Xe===0&&ne.integerPart.indexOf(m.digit)!==-1&&(Xe=1),Xe===0&&rt===0&&(rt=1);var Cn=0;return Ze&&(Cn=ne.exponentPart.split("").filter(function(Ie){return x.indexOf(Ie)!==-1}).length),{integerPartGroupingPositions:He,regularGrouping:Ye,minimumIntegerPartSize:Xe,scalingFactor:wt,prefix:ne.prefix,fractionalPartGroupingPositions:mt,minimumFactionalPartSize:rt,maximumFactionalPartSize:Ue,minimumExponentSize:Cn,suffix:ne.suffix,picture:ne.subpicture}},Me=W.map(Ae);Me.forEach(xe);var be=Me.map(ke),De=m["minus-sign"],et=m["zero-digit"],qe=m["decimal-separator"],st=m["grouping-separator"];be.length===1&&(be.push(JSON.parse(JSON.stringify(be[0]))),be[1].prefix=De+be[1].prefix);var Oe;i>=0?Oe=be[0]:Oe=be[1];var Gt;Oe.picture.indexOf(m.percent)!==-1?Gt=i*100:Oe.picture.indexOf(m["per-mille"])!==-1?Gt=i*1e3:Gt=i;var pt,Dt;if(Oe.minimumExponentSize===0)pt=Gt;else{var ls=Math.pow(10,Oe.scalingFactor),fs=Math.pow(10,Oe.scalingFactor-1);if(pt=Gt,Dt=0,pt!==0){for(;Math.abs(pt)<fs;)pt*=10,Dt-=1;for(;Math.abs(pt)>ls;)pt/=10,Dt+=1}}var hs=L(pt,Oe.maximumFactionalPartSize),Pn=function(ne,Pe){var He=Math.abs(ne).toFixed(Pe);return et!=="0"&&(He=He.split("").map(function(Se){return Se>="0"&&Se<="9"?x[Se.charCodeAt(0)-48]:Se}).join("")),He},oe=Pn(hs,Oe.maximumFactionalPartSize),ze=oe.indexOf(".");for(ze===-1?oe=oe+qe:oe=oe.replace(".",qe);oe.charAt(0)===et;)oe=oe.substring(1);for(;oe.charAt(oe.length-1)===et;)oe=oe.substring(0,oe.length-1);ze=oe.indexOf(qe);var Vt=Oe.minimumIntegerPartSize-ze,Tn=Oe.minimumFactionalPartSize-(oe.length-ze-1);if(oe=(Vt>0?new Array(Vt+1).join(et):"")+oe,oe=oe+(Tn>0?new Array(Tn+1).join(et):""),ze=oe.indexOf(qe),Oe.regularGrouping>0)for(var ds=Math.floor((ze-1)/Oe.regularGrouping),lr=1;lr<=ds;lr++)oe=[oe.slice(0,ze-lr*Oe.regularGrouping),st,oe.slice(ze-lr*Oe.regularGrouping)].join("");else Oe.integerPartGroupingPositions.forEach(function(ne){oe=[oe.slice(0,ze-ne),st,oe.slice(ze-ne)].join(""),ze++});if(ze=oe.indexOf(qe),Oe.fractionalPartGroupingPositions.forEach(function(ne){oe=[oe.slice(0,ne+ze+1),st,oe.slice(ne+ze+1)].join("")}),ze=oe.indexOf(qe),(Oe.picture.indexOf(qe)===-1||ze===oe.length-1)&&(oe=oe.substring(0,oe.length-1)),typeof Dt<"u"){var fr=Pn(Dt,0);Vt=Oe.minimumExponentSize-fr.length,Vt>0&&(fr=new Array(Vt+1).join(et)+fr),oe=oe+m["exponent-separator"]+(Dt<0?De:"")+fr}return oe=Oe.prefix+oe+Oe.suffix,oe}}function D(i,a){if(!(typeof i>"u")){if(i=L(i),typeof a>"u"?a=10:a=L(a),a<2||a>36)throw{code:"D3100",stack:new Error().stack,value:a};var l=i.toString(a);return l}}function S(i){var a;if(!(typeof i>"u")){if(typeof i=="number")a=i;else if(typeof i=="string"&&/^-?[0-9]+(\.[0-9]+)?([Ee][-+]?[0-9]+)?$/.test(i)&&!isNaN(parseFloat(i))&&isFinite(i))a=parseFloat(i);else if(typeof i=="string"&&/^(0[xX][0-9A-Fa-f]+)|(0[oO][0-7]+)|(0[bB][0-1]+)$/.test(i))a=Number(i);else if(i===!0)a=1;else if(i===!1)a=0;else throw{code:"D3030",value:i,stack:new Error().stack,index:1};return a}}function U(i){var a;if(!(typeof i>"u"))return a=Math.abs(i),a}function B(i){var a;if(!(typeof i>"u"))return a=Math.floor(i),a}function I(i){var a;if(!(typeof i>"u"))return a=Math.ceil(i),a}function L(i,a){var l;if(!(typeof i>"u")){if(a){var g=i.toString().split("e");i=+(g[0]+"e"+(g[1]?+g[1]+a:a))}l=Math.round(i);var m=l-i;return Math.abs(m)===.5&&Math.abs(l%2)===1&&(l=l-1),a&&(g=l.toString().split("e"),l=+(g[0]+"e"+(g[1]?+g[1]-a:-a))),Object.is(l,-0)&&(l=0),l}}function q(i){var a;if(!(typeof i>"u")){if(i<0)throw{stack:new Error().stack,code:"D3060",index:1,value:i};return a=Math.sqrt(i),a}}function K(i,a){var l;if(!(typeof i>"u")){if(l=Math.pow(i,a),!isFinite(l))throw{stack:new Error().stack,code:"D3061",index:1,value:i,exp:a};return l}}function he(){return Math.random()}function ue(i){if(!(typeof i>"u")){var a=!1;if(Array.isArray(i)){if(i.length===1)a=ue(i[0]);else if(i.length>1){var l=i.filter(function(g){return ue(g)});a=l.length>0}}else typeof i=="string"?i.length>0&&(a=!0):y(i)?i!==0&&(a=!0):i!==null&&typeof i=="object"&&!w(i)?o.keys(i).length>0&&(a=!0):typeof i=="boolean"&&i===!0&&(a=!0);return a}}function te(i){if(!(typeof i>"u"))return!ue(i)}function Z(i,a,l,g){var m=[a],x=N(i);return x>=2&&m.push(l),x>=3&&m.push(g),m}async function le(i,a){if(!(typeof i>"u")){for(var l=this.createSequence(),g=0;g<i.length;g++){var m=Z(a,i[g],g,i),x=await a.apply(this,m);typeof x<"u"&&l.push(x)}return l}}async function Q(i,a){if(!(typeof i>"u")){for(var l=this.createSequence(),g=0;g<i.length;g++){var m=i[g],x=Z(a,m,g,i),$=await a.apply(this,x);ue($)&&l.push(m)}return l}}async function Ne(i,a){if(!(typeof i>"u")){for(var l=!1,g,m=0;m<i.length;m++){var x=i[m],$=!0;if(typeof a<"u"){var j=Z(a,x,m,i),se=await a.apply(this,j);$=ue(se)}if($)if(!l)g=x,l=!0;else throw{stack:new Error().stack,code:"D3138",index:m}}if(!l)throw{stack:new Error().stack,code:"D3139"};return g}}function Qe(){for(var i=[],a=Array.prototype.slice.call(arguments),l=Math.min.apply(Math,a.map(function(x){return Array.isArray(x)?x.length:0})),g=0;g<l;g++){var m=a.map(x=>x[g]);i.push(m)}return i}async function je(i,a,l){if(!(typeof i>"u")){var g,m=N(a);if(m<2)throw{stack:new Error().stack,code:"D3050",index:1};var x;for(typeof l>"u"&&i.length>0?(g=i[0],x=1):(g=l,x=0);x<i.length;){var $=[g,i[x]];m>=3&&$.push(x),m>=4&&$.push(i),g=await a.apply(this,$),x++}return g}}function Le(i){var a=this.createSequence();if(Array.isArray(i)){for(var l=Object.create(null),g=0;g<i.length;g++){var m=Le.call(this,i[g]);m.forEach(function(x){l[x]=!0})}a=Le.call(this,l)}else i!==null&&typeof i=="object"&&!w(i)&&o.keys(i).forEach(x=>a.push(x));return a}function Be(i,a){var l;if(Array.isArray(i)){l=this.createSequence();for(var g=0;g<i.length;g++){var m=Be.call(this,i[g],a);typeof m<"u"&&(Array.isArray(m)?m.forEach(x=>l.push(x)):l.push(m))}}else i!==null&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,a)&&!w(i)&&(l=i[a]);return l}function ot(i,a){if(typeof i>"u")return a;if(typeof a>"u")return i;Array.isArray(i)||(i=this.createSequence(i)),Array.isArray(a)||(a=[a]);const l=i.length+a.length;if(this.options&&l>this.options.sequence)throw{code:"D2015",stack:new Error().stack,value:l};return i.concat(a)}function Tt(i){return!(typeof i>"u")}function Ct(i){var a=this.createSequence();if(Array.isArray(i))for(var l=0;l<i.length;l++)a=ot.call(this,a,Ct.call(this,i[l]));else if(i!==null&&typeof i=="object"&&!C(i))for(const m of o.keys(i)){var g=Object.create(null);g[m]=i[m],a.push(g)}else a=i;return a}function z(i){if(!(typeof i>"u")){var a=Object.create(null);return i.forEach(function(l){for(const g of o.keys(l))a[g]=l[g]}),a}}function ur(i){if(!(typeof i>"u")){if(i.length<=1)return i;for(var a=i.length,l=new Array(a),g=0;g<a;g++)l[a-g-1]=i[g];return l}}async function cr(i,a){var l=this.createSequence();for(const x of o.keys(i)){var g=Z(a,i[x],x,i),m=await a.apply(this,g);typeof m<"u"&&l.push(m)}return l}function tt(i){throw{code:"D3137",stack:new Error().stack,message:i||"$error() function evaluated"}}function Ht(i,a){if(!i)throw{code:"D3141",stack:new Error().stack,message:a||"$assert() statement failed"}}function it(i){if(i!==void 0)return i===null?"null":y(i)?"number":typeof i=="string"?"string":typeof i=="boolean"?"boolean":Array.isArray(i)?"array":w(i)?"function":"object"}async function yt(i,a){if(!(typeof i>"u")){if(i.length<=1)return i;var l;if(typeof a>"u"){if(!M(i)&&!P(i))throw{stack:new Error().stack,code:"D3070",index:1};l=async function($,j){return $>j}}else l=a;var g=async function($,j){var se=async function(Ae,xe,ke){xe.length===0?Array.prototype.push.apply(Ae,ke):ke.length===0?Array.prototype.push.apply(Ae,xe):await l(xe[0],ke[0])?(Ae.push(ke[0]),await se(Ae,xe,ke.slice(1))):(Ae.push(xe[0]),await se(Ae,xe.slice(1),ke))},W=[];return await se(W,$,j),W},m=async function($){if(!Array.isArray($)||$.length<=1)return $;var j=Math.floor($.length/2),se=$.slice(0,j),W=$.slice(j);return se=await m(se),W=await m(W),await g(se,W)},x=await m(i);return x}}function c(i){if(!(typeof i>"u")){if(i.length<=1)return i;for(var a=new Array(i.length),l=0;l<i.length;l++){var g=Math.floor(Math.random()*(l+1));l!==g&&(a[l]=a[g]),a[g]=i[l]}return a}}function f(i){if(!(typeof i>"u")){if(!Array.isArray(i)||i.length<=1)return i;for(var a=k(i)?this.createSequence():[],l=0;l<i.length;l++){for(var g=i[l],m=!1,x=0;x<a.length;x++)if(ee(g,a[x])){m=!0;break}m||a.push(g)}return a}}async function d(i,a){var l=Object.create(null);for(const $ of o.keys(i)){var g=i[$],m=Z(a,g,$,i),x=await a.apply(this,m);ue(x)&&(l[$]=g)}return o.keys(l).length===0&&(l=void 0),l}return{sum:E,count:v,max:O,min:A,average:T,string:H,substring:F,substringBefore:re,substringAfter:ae,lowercase:Ee,uppercase:ve,length:pe,trim:Te,pad:Je,match:We,contains:me,replace:ie,split:_e,join:we,formatNumber:_,formatBase:D,number:S,floor:B,ceil:I,round:L,abs:U,sqrt:q,power:K,random:he,boolean:ue,not:te,map:le,zip:Qe,filter:Q,single:Ne,foldLeft:je,sift:d,keys:Le,lookup:Be,append:ot,exists:Tt,spread:Ct,merge:z,reverse:ur,each:cr,error:tt,assert:Ht,type:it,sort:yt,shuffle:c,distinct:f,base64encode:Ce,base64decode:nt,encodeUrlComponent:h,encodeUrl:b,decodeUrlComponent:G,decodeUrl:fe}})();r.exports=p}).call(this)}).call(this,typeof cn<"u"?cn:typeof self<"u"?self:typeof window<"u"?window:{})},{"./utils":6}],3:[function(t,r,s){var u=t("./datetime"),o=t("./functions"),p=t("./utils"),y=t("./parser"),P=t("./signature"),M=(function(){var k=p.isNumeric,w=p.isArrayOfStrings,C=p.isArrayOfNumbers,R=p.isSequence,N=p.isFunction,ee=p.isLambda,J=p.isIterable,E=p.isPromise,v=p.getFunctionArity,O=p.isDeepEqual,A=tt(null);async function T(c,f,d){var i;d.base.depth++,d.base.guardrails();var a=d.lookup(Symbol.for("jsonata.__evaluate_entry"));switch(a&&await a(c,f,d),c.type){case"path":i=await H(c,f,d);break;case"binary":i=await pe(c,f,d);break;case"unary":i=await Te(c,f,d);break;case"name":i=Je(c,f,d);break;case"string":case"number":case"value":i=ce(c);break;case"wildcard":i=me(c,f,d);break;case"descendant":i=ie(c,f,d);break;case"parent":i=d.lookup(c.slot.label);break;case"condition":i=await B(c,f,d);break;case"block":i=await I(c,f,d);break;case"bind":i=await U(c,f,d);break;case"regex":i=L(c,f,d);break;case"function":i=await Z(c,f,d);break;case"variable":i=q(c,f,d);break;case"lambda":i=Ne(c,f,d);break;case"partial":i=await Qe(c,f,d);break;case"apply":i=await te(c,f,d);break;case"transform":i=he(c,f,d);break}if(Object.prototype.hasOwnProperty.call(c,"predicate"))for(var l=0;l<c.predicate.length;l++)i=await ve(c.predicate[l].expr,i,d);c.type!=="path"&&Object.prototype.hasOwnProperty.call(c,"group")&&(i=await _(c.group,i,d));var g=d.lookup(Symbol.for("jsonata.__evaluate_exit"));return g&&await g(c,f,d,i),i&&R(i)&&!i.tupleStream&&(c.keepArray&&(i.keepSingleton=!0),i.length===0?i=void 0:i.length===1&&(i=i.keepSingleton?i:i[0])),d.base.depth--,i}async function H(c,f,d){var i;Array.isArray(f)&&c.steps[0].type!=="variable"?i=f:i=d.base.createSequence(f);for(var a,l=!1,g=void 0,m=0;m<c.steps.length;m++){var x=c.steps[m];if(x.tuple&&(l=!0),m===0&&x.consarray?a=await T(x,i,d):l?g=await Ee(x,i,g,d):a=await re(x,i,d,m===c.steps.length-1),!l&&(typeof a>"u"||a.length===0))break;typeof x.focus>"u"&&(i=a)}if(l)if(c.tuple)a=g;else for(a=d.base.createSequence(),m=0;m<g.length;m++)a.push(g[m]["@"]);return c.keepSingletonArray&&(Array.isArray(a)&&a.cons&&!a.sequence&&(a=d.base.createSequence(a)),a.keepSingleton=!0),Object.prototype.hasOwnProperty.call(c,"group")&&(a=await _(c.group,l?g:a,d)),a}function F(c,f){var d=tt(c);for(const i of p.keys(f))d.bind(i,f[i]);return d}async function re(c,f,d,i){var a;if(c.type==="sort")return a=await K(c,f,d),c.stages&&(a=await ae(c.stages,a,d)),a;a=d.base.createSequence();for(var l=0;l<f.length;l++){var g=await T(c,f[l],d);if(c.stages)for(var m=0;m<c.stages.length;m++)g=await ve(c.stages[m].expr,g,d);typeof g<"u"&&a.push(g)}var x=d.base.createSequence();return i&&a.length===1&&Array.isArray(a[0])&&!R(a[0])?x=a[0]:Array.prototype.forEach.call(a,function($){!Array.isArray($)||$.cons?x.push($):Array.prototype.forEach.call($,j=>x.push(j))}),x}async function ae(c,f,d){for(var i=f,a=0;a<c.length;a++){var l=c[a];switch(l.type){case"filter":i=await ve(l.expr,i,d);break;case"index":for(var g=0;g<i.length;g++){var m=i[g];m[l.value]=g}break}}return i}async function Ee(c,f,d,i){var a;if(c.type==="sort"){if(d)a=await K(c,d,i);else{var l=await K(c,f,i);a=i.base.createSequence(),a.tupleStream=!0;for(var g=0;g<l.length;g++){var m={"@":l[g]};m[c.index]=g,a.push(m)}}return c.stages&&(a=await ae(c.stages,a,i)),a}a=i.base.createSequence(),a.tupleStream=!0;var x=i;d===void 0&&(d=f.map(W=>({"@":W})));for(var $=0;$<d.length;$++){x=F(i,d[$]);var j=await T(c,d[$]["@"],x);if(typeof j<"u"){Array.isArray(j)||(j=[j]);for(var se=0;se<j.length;se++)m=Object.create(null),Object.assign(m,d[$]),j.tupleStream?Object.assign(m,j[se]):(c.focus?(m[c.focus]=j[se],m["@"]=d[$]["@"]):m["@"]=j[se],c.index&&(m[c.index]=se),c.ancestor&&(m[c.ancestor.label]=d[$]["@"])),a.push(m)}}return c.stages&&(a=await ae(c.stages,a,i)),a}async function ve(c,f,d){var i=d.base.createSequence();if(f&&f.tupleStream&&(i.tupleStream=!0),Array.isArray(f)||(f=d.base.createSequence(f)),c.type==="number"){var a=Math.floor(c.value);a<0&&(a=f.length+a);var l=await f[a];typeof l<"u"&&(Array.isArray(l)?i=l:i.push(l))}else for(a=0;a<f.length;a++){var l=f[a],g=l,m=d;f.tupleStream&&(g=l["@"],m=F(d,l));var x=await T(c,g,m);k(x)&&(x=[x]),C(x)?Array.prototype.forEach.call(x,function(j){var se=Math.floor(j);se<0&&(se=f.length+se),se===a&&i.push(l)}):o.boolean(x)&&i.push(l)}return i}async function pe(c,f,d){var i,a=await T(c.lhs,f,d),l=c.value,g=async()=>await T(c.rhs,f,d);if(l==="and"||l==="or")try{return await fe(a,g,l)}catch(x){throw x.position=c.position,x.token=l,x}var m=await g();try{switch(l){case"+":case"-":case"*":case"/":case"%":i=nt(a,m,l);break;case"=":case"!=":i=h(a,m,l);break;case"<":case"<=":case">":case">=":i=b(a,m,l);break;case"&":i=we(a,m);break;case"..":i=S(a,m,d);break;case"in":i=G(a,m);break}}catch(x){throw x.position=c.position,x.token=l,x}return i}async function Te(c,f,d){var i,a={options:d.base.options,createSequence:d.base.createSequence};switch(c.value){case"-":if(i=await T(c.expression,f,d),typeof i>"u")i=void 0;else if(k(i))i=-i;else throw{code:"D1002",stack:new Error().stack,position:c.position,token:c.value,value:i};break;case"[":i=[];let m=await Promise.all(c.expressions.map(async(x,$)=>(d.isParallelCall=$>0,[x,await T(x,f,d)])));for(let x of m){var[l,g]=x;typeof g<"u"&&(l.value==="["?i.push(g):i=o.append.call(a,i,g))}c.consarray&&Object.defineProperty(i,"cons",{enumerable:!1,configurable:!1,value:!0});break;case"{":i=await _(c,f,d);break}return i}function Je(c,f,d){var i={createSequence:d.base.createSequence};return o.lookup.call(i,f,c.value)}function ce(c){return c.value}function me(c,f,d){var i={options:d.base.options,createSequence:d.base.createSequence},a=i.createSequence();return Array.isArray(f)&&f.outerWrapper&&f.length>0&&(f=f[0]),f!==null&&typeof f=="object"&&!N(f)&&p.keys(f).forEach(function(l){var g=f[l];Array.isArray(g)?(g=We(g),a=o.append.call(i,a,g)):a.push(g)}),a}function We(c,f){return typeof f>"u"&&(f=[]),Array.isArray(c)?Array.prototype.forEach.call(c,function(d){We(d,f)}):f.push(c),f}function ie(c,f,d){var i,a=d.base.createSequence();return typeof f<"u"&&(Ce(f,a),a.length===1?i=a[0]:i=a),i}function Ce(c,f){Array.isArray(c)||f.push(c),Array.isArray(c)?Array.prototype.forEach.call(c,function(d){Ce(d,f)}):c!==null&&typeof c=="object"&&!N(c)&&p.keys(c).forEach(function(d){Ce(c[d],f)})}function nt(c,f,d){var i;if(typeof c<"u"&&!k(c))throw{code:"T2001",stack:new Error().stack,value:c};if(typeof f<"u"&&!k(f))throw{code:"T2002",stack:new Error().stack,value:f};if(typeof c>"u"||typeof f>"u")return i;switch(d){case"+":i=c+f;break;case"-":i=c-f;break;case"*":i=c*f;break;case"/":i=c/f;break;case"%":i=c%f;break}return i}function h(c,f,d){var i,a=typeof c,l=typeof f;if(a==="undefined"||l==="undefined")return!1;switch(d){case"=":i=O(c,f);break;case"!=":i=!O(c,f);break}return i}function b(c,f,d){var i,a=typeof c,l=typeof f,g=a==="undefined"||a==="string"||a==="number",m=l==="undefined"||l==="string"||l==="number";if(!g||!m)throw{code:"T2010",stack:new Error().stack,value:a==="string"||a==="number"?f:c};if(!(a==="undefined"||l==="undefined")){if(a!==l)throw{code:"T2009",stack:new Error().stack,value:c,value2:f};switch(d){case"<":i=c<f;break;case"<=":i=c<=f;break;case">":i=c>f;break;case">=":i=c>=f;break}return i}}function G(c,f){var d=!1;if(typeof c>"u"||typeof f>"u")return!1;Array.isArray(f)||(f=[f]);for(var i=0;i<f.length;i++)if(f[i]===c){d=!0;break}return d}async function fe(c,f,d){var i,a=_e(c);switch(d){case"and":i=a&&_e(await f());break;case"or":i=a||_e(await f());break}return i}function _e(c){var f=o.boolean(c);return typeof f>"u"?!1:f}function we(c,f){var d,i="",a="";return typeof c<"u"&&(i=o.string(c)),typeof f<"u"&&(a=o.string(f)),d=i.concat(a),d}async function _(c,f,d){var i=Object.create(null),a=Object.create(null),l=!!(f&&f.tupleStream),g={options:d.base.options,createSequence:d.base.createSequence};Array.isArray(f)||(d.base.options,f=g.createSequence(f)),f.length===0&&!l&&f.push(void 0);for(var m=0;m<f.length;m++)for(var x=f[m],$=l?F(d,x):d,j=0;j<c.lhs.length;j++){var se=c.lhs[j],W=await T(se[0],l?x["@"]:x,$);if(typeof W!="string"&&W!==void 0)throw{code:"T1003",stack:new Error().stack,position:c.position,value:W};if(W!==void 0){if(W==="_jsonata_lambda"||W==="_jsonata_function")throw{code:"D1013",stack:new Error().stack,position:c.position,value:W};var Ae={data:x,exprIndex:j};if(Object.prototype.hasOwnProperty.call(a,W)){if(a[W].exprIndex!==j)throw{code:"D1009",stack:new Error().stack,position:c.position,value:W};a[W].data=o.append.call(g,a[W].data,x)}else a[W]=Ae}}let xe=await Promise.all(p.keys(a).map(async(Me,be)=>{let De=a[Me];var et=De.data,qe=d;if(l){var st=D(De.data,d);et=st["@"],delete st["@"],qe=F(d,st)}return d.isParallelCall=be>0,[Me,await T(c.lhs[De.exprIndex][1],et,qe)]}));for(let Me of xe){var[W,ke]=await Me;typeof ke<"u"&&(i[W]=ke)}return i}function D(c,f){if(!Array.isArray(c))return c;var d=Object.create(null),i={options:f.base.options,createSequence:f.base.createSequence};Object.assign(d,c[0]);for(var a=1;a<c.length;a++)for(const l of p.keys(c[a]))d[l]=o.append.call(i,d[l],c[a][l]);return d}function S(c,f,d){var i;if(typeof c<"u"&&!Number.isInteger(c))throw{code:"T2003",stack:new Error().stack,value:c};if(typeof f<"u"&&!Number.isInteger(f))throw{code:"T2004",stack:new Error().stack,value:f};if(typeof c>"u"||typeof f>"u"||c>f)return i;var a=f-c+1;if(a>1e7)throw{code:"D2014",stack:new Error().stack,value:a};if(d.base.options&&a>d.base.options.sequence)throw{code:"D2015",stack:new Error().stack,value:a};i=new Array(a);for(var l=c,g=0;l<=f;l++,g++)i[g]=l;return i.sequence=!0,i}async function U(c,f,d){var i=await T(c.rhs,f,d);return d.bind(c.lhs.value,i),i}async function B(c,f,d){var i,a=await T(c.condition,f,d);return o.boolean(a)?i=await T(c.then,f,d):typeof c.else<"u"&&(i=await T(c.else,f,d)),i}async function I(c,f,d){for(var i,a=tt(d),l=0;l<c.expressions.length;l++)i=await T(c.expressions[l],f,a);return i}function L(c,f,d){var i=new d.base.RegexEngine(c.value),a=function(l,g){var m;i.lastIndex=g||0;var x=i.exec(l);if(x!==null){if(m={match:x[0],start:x.index,end:x.index+x[0].length,groups:[]},x.length>1)for(var $=1;$<x.length;$++)m.groups.push(x[$]);m.next=function(){if(!(i.lastIndex>=l.length)){var j=a(l,i.lastIndex);if(j&&j.match==="")throw{code:"D1004",stack:new Error().stack,position:c.position,value:c.value.source};return j}}}return m};return a}function q(c,f,d){var i;return c.value===""?i=f&&f.outerWrapper?f[0]:f:i=d.lookup(c.value),i}async function K(c,f,d){var i,a=f,l=!!f.tupleStream,g=async function(x,$){for(var j=0,se=0;j===0&&se<c.terms.length;se++){var W=c.terms[se],Ae=x,xe=d;l&&(Ae=x["@"],xe=F(d,x));var ke=await T(W.expression,Ae,xe);Ae=$,xe=d,l&&(Ae=$["@"],xe=F(d,$));var Me=await T(W.expression,Ae,xe),be=typeof ke,De=typeof Me;if(be==="undefined"){j=De==="undefined"?0:1;continue}if(De==="undefined"){j=-1;continue}if(!(be==="string"||be==="number")||!(De==="string"||De==="number"))throw{code:"T2008",stack:new Error().stack,position:c.position,value:be==="string"||be==="number"?Me:ke};if(be!==De)throw{code:"T2007",stack:new Error().stack,position:c.position,value:ke,value2:Me};ke!==Me&&(ke<Me?j=-1:j=1,W.descending===!0&&(j=-j))}return j===1},m={environment:d,input:f};return i=await o.sort.apply(m,[a,g]),i}function he(c,f,d){var i=async function(a){if(!(typeof a>"u")){var l=d.lookup("clone");if(!N(l))throw{code:"T2013",stack:new Error().stack,position:c.position};var g=await le(l,[a],null,d),m=await T(c.pattern,g,d);if(typeof m<"u"){Array.isArray(m)||(m=[m]);for(var x=0;x<m.length;x++){var $=m[x],j=await T(c.update,$,d),se=typeof j;if(se!=="undefined"){if(se!=="object"||j===null||Array.isArray(j))throw{code:"T2011",stack:new Error().stack,position:c.update.position,value:j};for(const ke of p.keys(j))$[ke]=j[ke]}if(typeof c.delete<"u"){var W=await T(c.delete,$,d);if(typeof W<"u"){var Ae=W;if(Array.isArray(W)||(W=[W]),!w(W))throw{code:"T2012",stack:new Error().stack,position:c.delete.position,value:Ae};for(var xe=0;xe<W.length;xe++)typeof $=="object"&&$!==null&&delete $[W[xe]]}}}}return g}};return z(i,"<(oa):o>")}var ue=y("function($f, $g) { function($x){ $g($f($x)) } }");async function te(c,f,d){var i,a=await T(c.lhs,f,d);if(c.rhs.type==="function")i=await Z(c.rhs,f,d,{context:a});else{var l=await T(c.rhs,f,d);if(!N(l))throw{code:"T2006",stack:new Error().stack,position:c.position,value:l};if(N(a)){var g=await T(ue,null,d);i=await le(g,[a,l],null,d)}else i=await le(l,[a],null,d)}return i}async function Z(c,f,d,i){var a,l=await T(c.procedure,f,d);if(typeof l>"u"&&c.procedure.type==="path"&&d.lookup(c.procedure.steps[0].value))throw{code:"T1005",stack:new Error().stack,position:c.position,token:c.procedure.steps[0].value};var g=[];typeof i<"u"&&g.push(i.context);for(var m=0;m<c.arguments.length;m++){const $=await T(c.arguments[m],f,d);if(N($)){const j=async function(...se){return await le($,se,null,d)};j.arity=v($),g.push(j)}else g.push($)}var x=c.procedure.type==="path"?c.procedure.steps[0].value:c.procedure.value;try{typeof l=="object"&&(l.token=x,l.position=c.position),a=await le(l,g,f,d)}catch($){throw $.position||($.position=c.position),$.token||($.token=x),$}return a}async function le(c,f,d,i){var a;for(a=await Q(c,f,d,i);ee(a)&&a.thunk===!0;){var l=await T(a.body.procedure,a.input,a.environment);a.body.procedure.type==="variable"&&(l.token=a.body.procedure.value),l.position=a.body.procedure.position;for(var g=[],m=0;m<a.body.arguments.length;m++)g.push(await T(a.body.arguments[m],a.input,a.environment));a=await Q(l,g,d,i)}return a}async function Q(c,f,d,i){var a;try{var l=f;if(c&&(l=je(c.signature,f,d)),ee(c))a=await Le(c,l);else if(c&&c._jsonata_function===!0){var g={environment:i,input:d,options:i.base.options,createSequence:i.base.createSequence};a=c.implementation.apply(g,l),J(a)&&(a=a.next().value),E(a)&&(a=await a)}else if(typeof c=="function")a=c.apply(d,l),E(a)&&(a=await a);else throw{code:"T1006",stack:new Error().stack}}catch(m){throw c&&(typeof m.token>"u"&&typeof c.token<"u"&&(m.token=c.token),m.position=c.position||m.position),m}return a}function Ne(c,f,d){var i={_jsonata_lambda:!0,input:f,environment:d,arguments:c.arguments,signature:c.signature,body:c.body};return c.thunk===!0&&(i.thunk=!0),i.apply=async function(a,l){return await le(i,l,f,a?a.environment:d)},i}async function Qe(c,f,d){for(var i,a=[],l=0;l<c.arguments.length;l++){var g=c.arguments[l];g.type==="operator"&&g.value==="?"?a.push(g):a.push(await T(g,f,d))}var m=await T(c.procedure,f,d);if(typeof m>"u"&&c.procedure.type==="path"&&d.lookup(c.procedure.steps[0].value))throw{code:"T1007",stack:new Error().stack,position:c.position,token:c.procedure.steps[0].value};if(ee(m))i=Be(m,a,d);else if(m&&m._jsonata_function===!0)i=ot(m.implementation,a,d);else if(typeof m=="function")i=ot(m,a,d);else throw{code:"T1008",stack:new Error().stack,position:c.position,token:c.procedure.type==="path"?c.procedure.steps[0].value:c.procedure.value};return i}function je(c,f,d){if(typeof c>"u")return f;var i=c.validate(f,d);return i}async function Le(c,f){var d,i=tt(c.environment);return Array.prototype.forEach.call(c.arguments,function(a,l){i.bind(a.value,f[l])}),typeof c.body=="function"?d=await Tt(c.body,i):d=await T(c.body,c.input,i),d}function Be(c,f,d){var i=tt(c.environment||d),a=[];Array.prototype.forEach.call(c.arguments,function(g,m){var x=f[m];x&&x.type==="operator"&&x.value==="?"?a.push(g):i.bind(g.value,x)});var l={_jsonata_lambda:!0,input:c.input,environment:i,arguments:a,body:c.body};return l}function ot(c,f,d){var i=Ct(c);i=i.map(function(m){return"$"+m.trim()});var a="function("+i.join(", ")+"){ _ }",l=y(a);l.body=c;var g=Be(l,f,d);return g}async function Tt(c,f){var d=Ct(c),i=d.map(function(g){return f.lookup(g.trim())}),a={environment:f,createSequence:f.base.createSequence},l=c.apply(a,i);return E(l)&&(l=await l),l}function Ct(c){var f=c.toString(),d=/\(([^)]*)\)/.exec(f)[1],i=d.split(",");return i}function z(c,f){var d={_jsonata_function:!0,implementation:c};return typeof f<"u"&&(d.signature=P(f)),d}async function ur(c,f){if(!(typeof c>"u")){var d=this.input;typeof f<"u"&&(d=f,Array.isArray(d)&&!R(d)&&(d=this.createSequence(d),d.outerWrapper=!0));try{var i=y(c,!1)}catch(l){throw it(l),{stack:new Error().stack,code:"D3120",value:l.message,error:l}}try{var a=await T(i,d,this.environment)}catch(l){throw it(l),{stack:new Error().stack,code:"D3121",value:l.message,error:l}}return a}}function cr(c){if(!(typeof c>"u"))return JSON.parse(o.string(c))}function tt(c){var f=Object.create(null);const d={bind:function(a,l){f[a]=l},lookup:function(a){var l;return Object.prototype.hasOwnProperty.call(f,a)?l=f[a]:c&&(l=c.lookup(a)),l},timestamp:c?c.timestamp:null,async:c?c.async:!1,isParallelCall:c?c.isParallelCall:!1,global:c?c.global:{ancestry:[null]}};if(c){var i=c.lookup(Symbol.for("jsonata.__createFrame_push"));i&&i(c,d),d.base=c.base}return d}A.bind("sum",z(o.sum,"<a<n>:n>")),A.bind("count",z(o.count,"<a:n>")),A.bind("max",z(o.max,"<a<n>:n>")),A.bind("min",z(o.min,"<a<n>:n>")),A.bind("average",z(o.average,"<a<n>:n>")),A.bind("string",z(o.string,"<x-b?:s>")),A.bind("substring",z(o.substring,"<s-nn?:s>")),A.bind("substringBefore",z(o.substringBefore,"<s-s:s>")),A.bind("substringAfter",z(o.substringAfter,"<s-s:s>")),A.bind("lowercase",z(o.lowercase,"<s-:s>")),A.bind("uppercase",z(o.uppercase,"<s-:s>")),A.bind("length",z(o.length,"<s-:n>")),A.bind("trim",z(o.trim,"<s-:s>")),A.bind("pad",z(o.pad,"<s-ns?:s>")),A.bind("match",z(o.match,"<s-f<s:o>n?:a<o>>")),A.bind("contains",z(o.contains,"<s-(sf):b>")),A.bind("replace",z(o.replace,"<s-(sf)(sf)n?:s>")),A.bind("split",z(o.split,"<s-(sf)n?:a<s>>")),A.bind("join",z(o.join,"<a<s>s?:s>")),A.bind("formatNumber",z(o.formatNumber,"<n-so?:s>")),A.bind("formatBase",z(o.formatBase,"<n-n?:s>")),A.bind("formatInteger",z(u.formatInteger,"<n-s:s>")),A.bind("parseInteger",z(u.parseInteger,"<s-s:n>")),A.bind("number",z(o.number,"<(nsb)-:n>")),A.bind("floor",z(o.floor,"<n-:n>")),A.bind("ceil",z(o.ceil,"<n-:n>")),A.bind("round",z(o.round,"<n-n?:n>")),A.bind("abs",z(o.abs,"<n-:n>")),A.bind("sqrt",z(o.sqrt,"<n-:n>")),A.bind("power",z(o.power,"<n-n:n>")),A.bind("random",z(o.random,"<:n>")),A.bind("boolean",z(o.boolean,"<x-:b>")),A.bind("not",z(o.not,"<x-:b>")),A.bind("map",z(o.map,"<af>")),A.bind("zip",z(o.zip,"<a+>")),A.bind("filter",z(o.filter,"<af>")),A.bind("single",z(o.single,"<af?>")),A.bind("reduce",z(o.foldLeft,"<afj?:j>")),A.bind("sift",z(o.sift,"<o-f?:o>")),A.bind("keys",z(o.keys,"<x-:a<s>>")),A.bind("lookup",z(o.lookup,"<x-s:x>")),A.bind("append",z(o.append,"<xx:a>")),A.bind("exists",z(o.exists,"<x:b>")),A.bind("spread",z(o.spread,"<x-:a<o>>")),A.bind("merge",z(o.merge,"<a<o>:o>")),A.bind("reverse",z(o.reverse,"<a:a>")),A.bind("each",z(o.each,"<o-f:a>")),A.bind("error",z(o.error,"<s?:x>")),A.bind("assert",z(o.assert,"<bs?:x>")),A.bind("type",z(o.type,"<x:s>")),A.bind("sort",z(o.sort,"<af?:a>")),A.bind("shuffle",z(o.shuffle,"<a:a>")),A.bind("distinct",z(o.distinct,"<x:x>")),A.bind("base64encode",z(o.base64encode,"<s-:s>")),A.bind("base64decode",z(o.base64decode,"<s-:s>")),A.bind("encodeUrlComponent",z(o.encodeUrlComponent,"<s-:s>")),A.bind("encodeUrl",z(o.encodeUrl,"<s-:s>")),A.bind("decodeUrlComponent",z(o.decodeUrlComponent,"<s-:s>")),A.bind("decodeUrl",z(o.decodeUrl,"<s-:s>")),A.bind("eval",z(ur,"<sx?:x>")),A.bind("toMillis",z(u.toMillis,"<s-s?:n>")),A.bind("fromMillis",z(u.fromMillis,"<n-s?s?:s>")),A.bind("clone",z(cr,"<(oa)-:o>"));var Ht={S0101:"String literal must be terminated by a matching quote",S0102:"Number out of range: {{token}}",S0103:"Unsupported escape sequence: \\{{token}}",S0104:"The escape sequence \\u must be followed by 4 hex digits",S0105:"Quoted property name must be terminated with a backquote (`)",S0106:"Comment has no closing tag",S0201:"Syntax error: {{token}}",S0202:"Expected {{value}}, got {{token}}",S0203:"Expected {{value}} before end of expression",S0204:"Unknown operator: {{token}}",S0205:"Unexpected token: {{token}}",S0206:"Unknown expression type: {{token}}",S0207:"Unexpected end of expression",S0208:"Parameter {{value}} of function definition must be a variable name (start with $)",S0209:"A predicate cannot follow a grouping expression in a step",S0210:"Each step can only have one grouping expression",S0211:"The symbol {{token}} cannot be used as a unary operator",S0212:"The left side of := must be a variable name (start with $)",S0213:"The literal value {{value}} cannot be used as a step within a path expression",S0214:"The right side of {{token}} must be a variable name (start with $)",S0215:"A context variable binding must precede any predicates on a step",S0216:"A context variable binding must precede the 'order-by' clause on a step",S0217:"The object representing the 'parent' cannot be derived from this expression",S0301:"Empty regular expressions are not allowed",S0302:"No terminating / in regular expression",S0402:"Choice groups containing parameterized types are not supported",S0401:"Type parameters can only be applied to functions and arrays",S0500:"Attempted to evaluate an expression containing syntax error(s)",T0410:"Argument {{index}} of function {{token}} does not match function signature",T0411:"Context value is not a compatible type with argument {{index}} of function {{token}}",T0412:"Argument {{index}} of function {{token}} must be an array of {{type}}",D1001:"Number out of range: {{value}}",D1002:"Cannot negate a non-numeric value: {{value}}",T1003:"Key in object structure must evaluate to a string; got: {{value}}",D1004:"Regular expression matches zero length string",T1005:"Attempted to invoke a non-function. Did you mean ${{{token}}}?",T1006:"Attempted to invoke a non-function",T1007:"Attempted to partially apply a non-function. Did you mean ${{{token}}}?",T1008:"Attempted to partially apply a non-function",D1009:"Multiple key definitions evaluate to same key: {{value}}",T1010:"The matcher function argument passed to function {{token}} does not return the correct object structure",D1011:"Stack overflow. Check for non-terminating recursive function. Consider rewriting as tail-recursive",D1012:"Evaluation timeout after {{value}} milliseconds. Check for infinite loop",D1013:"Object property names starting with _jsonata_ are reserved for internal use: {{value}}",T2001:"The left side of the {{token}} operator must evaluate to a number",T2002:"The right side of the {{token}} operator must evaluate to a number",T2003:"The left side of the range operator (..) must evaluate to an integer",T2004:"The right side of the range operator (..) must evaluate to an integer",D2005:"The left side of := must be a variable name (start with $)",T2006:"The right side of the function application operator ~> must be a function",T2007:"Type mismatch when comparing values {{value}} and {{value2}} in order-by clause",T2008:"The expressions within an order-by clause must evaluate to numeric or string values",T2009:"The values {{value}} and {{value2}} either side of operator {{token}} must be of the same data type",T2010:"The expressions either side of operator {{token}} must evaluate to numeric or string values",T2011:"The insert/update clause of the transform expression must evaluate to an object: {{value}}",T2012:"The delete clause of the transform expression must evaluate to a string or array of strings: {{value}}",T2013:"The transform expression clones the input object using the $clone() function. This has been overridden in the current scope by a non-function.",D2014:"The size of the sequence allocated by the range operator (..) must not exceed 1e7. Attempted to allocate {{value}}.",D2015:"The maximum sequence length of {{value}} was exceeded.",D3001:"Attempting to invoke string function on Infinity or NaN",D3010:"Second argument of replace function cannot be an empty string",D3011:"Fourth argument of replace function must evaluate to a positive number",D3012:"Attempted to replace a matched string with a non-string value",D3020:"Third argument of split function must evaluate to a positive number",D3030:"Unable to cast value to a number: {{value}}",D3040:"Third argument of match function must evaluate to a positive number",D3050:"The second argument of reduce function must be a function with at least two arguments",D3060:"The sqrt function cannot be applied to a negative number: {{value}}",D3061:"The power function has resulted in a value that cannot be represented as a JSON number: base={{value}}, exponent={{exp}}",D3070:"The single argument form of the sort function can only be applied to an array of strings or an array of numbers. Use the second argument to specify a comparison function",D3080:"The picture string must only contain a maximum of two sub-pictures",D3081:"The sub-picture must not contain more than one instance of the 'decimal-separator' character",D3082:"The sub-picture must not contain more than one instance of the 'percent' character",D3083:"The sub-picture must not contain more than one instance of the 'per-mille' character",D3084:"The sub-picture must not contain both a 'percent' and a 'per-mille' character",D3085:"The mantissa part of a sub-picture must contain at least one character that is either an 'optional digit character' or a member of the 'decimal digit family'",D3086:"The sub-picture must not contain a passive character that is preceded by an active character and that is followed by another active character",D3087:"The sub-picture must not contain a 'grouping-separator' character that appears adjacent to a 'decimal-separator' character",D3088:"The sub-picture must not contain a 'grouping-separator' at the end of the integer part",D3089:"The sub-picture must not contain two adjacent instances of the 'grouping-separator' character",D3090:"The integer part of the sub-picture must not contain a member of the 'decimal digit family' that is followed by an instance of the 'optional digit character'",D3091:"The fractional part of the sub-picture must not contain an instance of the 'optional digit character' that is followed by a member of the 'decimal digit family'",D3092:"A sub-picture that contains a 'percent' or 'per-mille' character must not contain a character treated as an 'exponent-separator'",D3093:"The exponent part of the sub-picture must comprise only of one or more characters that are members of the 'decimal digit family'",D3100:"The radix of the formatBase function must be between 2 and 36. It was given {{value}}",D3110:"The argument of the toMillis function must be an ISO 8601 formatted timestamp. Given {{value}}",D3120:"Syntax error in expression passed to function eval: {{value}}",D3121:"Dynamic error evaluating the expression passed to function eval: {{value}}",D3130:"Formatting or parsing an integer as a sequence starting with {{value}} is not supported by this implementation",D3131:"In a decimal digit pattern, all digits must be from the same decimal group",D3132:"Unknown component specifier {{value}} in date/time picture string",D3133:"The 'name' modifier can only be applied to months and days in the date/time picture string, not {{value}}",D3134:"The timezone integer format specifier cannot have more than four digits",D3135:"No matching closing bracket ']' in date/time picture string",D3136:"The date/time picture string is missing specifiers required to parse the timestamp",D3137:"{{{message}}}",D3138:"The $single() function expected exactly 1 matching result. Instead it matched more.",D3139:"The $single() function expected exactly 1 matching result. Instead it matched 0.",D3140:"Malformed URL passed to ${{{functionName}}}(): {{value}}",D3141:"{{{message}}}"};function it(c){var f=Ht[c.code];if(typeof f<"u"){var d=f.replace(/\{\{\{([^}]+)}}}/g,function(){return c[arguments[1]]});d=d.replace(/\{\{([^}]+)}}/g,function(){return JSON.stringify(c[arguments[1]])}),c.message=d}}function yt(c,f){var d,i;try{d=y(c,f&&f.recover),i=d.errors,delete d.errors}catch(g){throw it(g),g}var a=tt(A),l=new Date;return a.bind("now",z(function(g,m){return u.fromMillis(l.getTime(),g,m)},"<s?s?:s>")),a.bind("millis",z(function(){return l.getTime()},"<:n>")),{evaluate:async function(g,m,x){if(typeof i<"u"){var $={code:"S0500",position:0};throw it($),$}const j=tt(a);for(const W of p.keys(m))j.bind(W,m[W]);if(j.bind("$",g),l=new Date,j.timestamp=l,j.options=f,j.createSequence=function(){var W=[];return f&&f.sequence&&(W.push=function(...Ae){if(W.length+Ae.length>f.sequence)throw{code:"D2015",stack:new Error().stack,value:f.sequence};return Array.prototype.push.apply(W,Ae)}),W.sequence=!0,arguments.length===1&&W.push(arguments[0]),W},Array.isArray(g)&&!R(g)&&(g=j.createSequence(g),g.outerWrapper=!0),f&&(f.timeout||f.stack)){const W=Date.now();j.guardrails=function(){if(f.stack>0&&j.depth>f.stack)throw{code:"D1011",value:f.stack,stack:new Error().stack};if(f.timeout>0&&Date.now()-W>f.timeout)throw{code:"D1012",value:f.timeout,stack:new Error().stack}}}else j.guardrails=function(){};j.base=j,j.depth=0,f&&f.RegexEngine?j.RegexEngine=f.RegexEngine:j.RegexEngine=RegExp;var se;try{return se=await T(d,g,j),typeof x=="function"&&x(null,se),se}catch(W){throw it(W),W}},assign:function(g,m){a.bind(g,m)},registerFunction:function(g,m,x){var $=z(m,x);a.bind(g,$)},ast:function(){return d},errors:function(){return i}}}return yt.parser=y,yt})();r.exports=M},{"./datetime":1,"./functions":2,"./parser":4,"./signature":5,"./utils":6}],4:[function(t,r,s){var u=t("./signature");const o=(()=>{var p={".":75,"[":80,"]":0,"{":70,"}":0,"(":80,")":0,",":0,"@":80,"#":80,";":80,":":80,"?":20,"+":50,"-":50,"*":60,"/":60,"%":60,"|":20,"=":40,"<":40,">":40,"^":40,"**":60,"..":20,":=":10,"!=":40,"<=":40,">=":40,"~>":40,"?:":40,"??":40,and:30,or:25,in:40,"&":50,"!":0,"~":0},y={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
32
32
  `,r:"\r",t:" "},P=function(k){var w=0,C=k.length,R=function(J,E){var v={type:J,value:E,position:w};return v},N=function(){for(var J=w,E=0,v,O,A=function(H){if(k.charAt(H)==="/"&&E===0){for(var F=0;k.charAt(H-(F+1))==="\\";)F++;if(F%2===0)return!0}return!1};w<C;){var T=k.charAt(w);if(A(w)){if(v=k.substring(J,w),v==="")throw{code:"S0301",stack:new Error().stack,position:w};for(w++,T=k.charAt(w),J=w;T==="i"||T==="m";)w++,T=k.charAt(w);return O=k.substring(J,w)+"g",new RegExp(v,O)}(T==="("||T==="["||T==="{")&&k.charAt(w-1)!=="\\"&&E++,(T===")"||T==="]"||T==="}")&&k.charAt(w-1)!=="\\"&&E--,w++}throw{code:"S0302",stack:new Error().stack,position:w}},ee=function(J){if(w>=C)return null;for(var E=k.charAt(w);w<C&&`
33
33
  \r\v`.indexOf(E)>-1;)w++,E=k.charAt(w);if(E==="/"&&k.charAt(w+1)==="*"){var v=w;for(w+=2,E=k.charAt(w);!(E==="*"&&k.charAt(w+1)==="/");)if(E=k.charAt(++w),w>=C)throw{code:"S0106",stack:new Error().stack,position:v};return w+=2,E=k.charAt(w),ee(J)}if(J!==!0&&E==="/")return w++,R("regex",N());if(E==="."&&k.charAt(w+1)===".")return w+=2,R("operator","..");if(E===":"&&k.charAt(w+1)==="=")return w+=2,R("operator",":=");if(E==="!"&&k.charAt(w+1)==="=")return w+=2,R("operator","!=");if(E===">"&&k.charAt(w+1)==="=")return w+=2,R("operator",">=");if(E==="<"&&k.charAt(w+1)==="=")return w+=2,R("operator","<=");if(E==="*"&&k.charAt(w+1)==="*")return w+=2,R("operator","**");if(E==="~"&&k.charAt(w+1)===">")return w+=2,R("operator","~>");if(E==="?"&&k.charAt(w+1)===":")return w+=2,R("operator","?:");if(E==="?"&&k.charAt(w+1)==="?")return w+=2,R("operator","??");if(Object.prototype.hasOwnProperty.call(p,E))return w++,R("operator",E);if(E==='"'||E==="'"){var O=E;w++;for(var A="";w<C;){if(E=k.charAt(w),E==="\\")if(w++,E=k.charAt(w),Object.prototype.hasOwnProperty.call(y,E))A+=y[E];else if(E==="u"){var T=k.substr(w+1,4);if(/^[0-9a-fA-F]+$/.test(T)){var H=parseInt(T,16);A+=String.fromCharCode(H),w+=4}else throw{code:"S0104",stack:new Error().stack,position:w}}else throw{code:"S0103",stack:new Error().stack,position:w,token:E};else{if(E===O)return w++,R("string",A);A+=E}w++}throw{code:"S0101",stack:new Error().stack,position:w}}var F=/^-?(0|([1-9][0-9]*))(\.[0-9]+)?([Ee][-+]?[0-9]+)?/,re=F.exec(k.substring(w));if(re!==null){var ae=parseFloat(re[0]);if(!isNaN(ae)&&isFinite(ae))return w+=re[0].length,R("number",ae);throw{code:"S0102",stack:new Error().stack,position:w,token:re[0]}}var Ee;if(E==="`"){w++;var ve=k.indexOf("`",w);if(ve!==-1)return Ee=k.substring(w,ve),w=ve+1,R("name",Ee);throw w=C,{code:"S0105",stack:new Error().stack,position:w}}for(var pe=w,Te;;)if(Te=k.charAt(pe),pe===C||`
34
34
  \r\v`.indexOf(Te)>-1||Object.prototype.hasOwnProperty.call(p,Te)){if(k.charAt(w)==="$")return Ee=k.substring(w+1,pe),w=pe,R("variable",Ee);switch(Ee=k.substring(w,pe),w=pe,Ee){case"or":case"in":case"and":return R("operator",Ee);case"true":return R("value",!0);case"false":return R("value",!1);case"null":return R("value",null);default:return w===C&&Ee===""?null:R("name",Ee)}}else pe++};return ee},M=function(k,w){var C,R,N=Object.create(null),ee=[],J=function(){var h=[];C.id!=="(end)"&&h.push({type:C.type,value:C.value,position:C.position});for(var b=R();b!==null;)h.push(b),b=R();return h},E={nud:function(){var h={code:"S0211",token:this.value,position:this.position};if(w)return h.remaining=J(),h.type="error",ee.push(h),h;throw h.stack=new Error().stack,h}},v=function(h,b){var G=N[h];return b=b||0,G?b>=G.lbp&&(G.lbp=b):(G=Object.create(E),G.id=G.value=h,G.lbp=b,N[h]=G),G},O=function(h){if(w){h.remaining=J(),ee.push(h);var b=N["(error)"];return C=Object.create(b),C.error=h,C.type="(error)",C}else throw h.stack=new Error().stack,h},A=function(h,b){if(h&&C.id!==h){var G;C.id==="(end)"?G="S0203":G="S0202";var fe={code:G,position:C.position,token:C.value,value:h};return O(fe)}var _e=R(b);if(_e===null)return C=N["(end)"],C.position=k.length,C;var we=_e.value,_=_e.type,D;switch(_){case"name":case"variable":D=N["(name)"];break;case"operator":if(D=N[we],!D)return O({code:"S0204",stack:new Error().stack,position:_e.position,token:we});break;case"string":case"number":case"value":D=N["(literal)"];break;case"regex":_="regex",D=N["(regex)"];break;default:return O({code:"S0205",stack:new Error().stack,position:_e.position,token:we})}return C=Object.create(D),C.value=we,C.type=_,C.position=_e.position,C},T=function(h){var b,G=C;for(A(null,!0),b=G.nud();h<C.lbp;)G=C,A(),b=G.led(b);return b},H=function(h){var b=v(h,0);b.nud=function(){return this}},F=function(h,b,G){var fe=b||p[h],_e=v(h,fe);return _e.led=G||function(we){return this.lhs=we,this.rhs=T(fe),this.type="binary",this},_e},re=function(h,b,G){var fe=v(h,b);return fe.led=G,fe},ae=function(h,b){var G=v(h);return G.nud=b||function(){return this.expression=T(70),this.type="unary",this},G};H("(end)"),H("(name)"),H("(literal)"),H("(regex)"),v(":"),v(";"),v(","),v(")"),v("]"),v("}"),v(".."),F("."),F("+"),F("-"),F("*"),F("/"),F("%"),F("="),F("<"),F(">"),F("!="),F("<="),F(">="),F("&"),F("and"),F("or"),F("in"),H("and"),H("or"),H("in"),ae("-"),F("~>"),F("??",p["??"],function(h){return this.type="condition",this.condition={type:"function",value:"(",procedure:{type:"variable",value:"exists"},arguments:[JSON.parse(JSON.stringify(h))]},this.then=h,this.else=T(0),this}),re("(error)",10,function(h){return this.lhs=h,this.error=C.error,this.remaining=J(),this.type="error",this}),ae("*",function(){return this.type="wildcard",this}),ae("**",function(){return this.type="descendant",this}),ae("%",function(){return this.type="parent",this}),F("(",p["("],function(h){if(this.procedure=h,this.type="function",this.arguments=[],C.id!==")")for(;C.type==="operator"&&C.id==="?"?(this.type="partial",this.arguments.push(C),A("?")):this.arguments.push(T(0)),C.id===",";)A(",");if(A(")",!0),h.type==="name"&&(h.value==="function"||h.value==="λ")){if(this.arguments.forEach(function(we,_){if(we.type!=="variable")return O({code:"S0208",stack:new Error().stack,position:we.position,token:we.value,value:_+1})}),this.type="lambda",C.id==="<"){for(var b=C.position,G=1,fe="<";G>0&&C.id!=="{"&&C.id!=="(end)";){var _e=A();_e.id===">"?G--:_e.id==="<"&&G++,fe+=_e.value}A(">");try{this.signature=u(fe)}catch(we){return we.position=b+we.offset,O(we)}}A("{"),this.body=T(0),A("}")}return this}),ae("(",function(){for(var h=[];C.id!==")"&&(h.push(T(0)),C.id===";");)A(";");return A(")",!0),this.type="block",this.expressions=h,this}),ae("[",function(){var h=[];if(C.id!=="]")for(;;){var b=T(0);if(C.id===".."){var G={type:"binary",value:"..",position:C.position,lhs:b};A(".."),G.rhs=T(0),b=G}if(h.push(b),C.id!==",")break;A(",")}return A("]",!0),this.expressions=h,this.type="unary",this}),F("[",p["["],function(h){if(C.id==="]"){for(var b=h;b&&b.type==="binary"&&b.value==="[";)b=b.lhs;return b.keepArray=!0,A("]"),h}else return this.lhs=h,this.rhs=T(p["]"]),this.type="binary",A("]",!0),this}),F("^",p["^"],function(h){A("(");for(var b=[];;){var G={descending:!1};if(C.id==="<"?A("<"):C.id===">"&&(G.descending=!0,A(">")),G.expression=T(0),b.push(G),C.id!==",")break;A(",")}return A(")"),this.lhs=h,this.rhs=b,this.type="binary",this});var Ee=function(h){var b=[];if(C.id!=="}")for(;;){var G=T(0);A(":");var fe=T(0);if(b.push([G,fe]),C.id!==",")break;A(",")}return A("}",!0),typeof h>"u"?(this.lhs=b,this.type="unary"):(this.lhs=h,this.rhs=b,this.type="binary"),this};ae("{",Ee),F("{",p["{"],Ee),re(":=",p[":="],function(h){return h.type!=="variable"?O({code:"S0212",stack:new Error().stack,position:h.position,token:h.value}):(this.lhs=h,this.rhs=T(p[":="]-1),this.type="binary",this)}),F("@",p["@"],function(h){return this.lhs=h,this.rhs=T(p["@"]),this.rhs.type!=="variable"?O({code:"S0214",stack:new Error().stack,position:this.rhs.position,token:"@"}):(this.type="binary",this)}),F("#",p["#"],function(h){return this.lhs=h,this.rhs=T(p["#"]),this.rhs.type!=="variable"?O({code:"S0214",stack:new Error().stack,position:this.rhs.position,token:"#"}):(this.type="binary",this)}),F("?",p["?"],function(h){return this.type="condition",this.condition=h,this.then=T(0),C.id===":"&&(A(":"),this.else=T(0)),this}),F("?:",p["?:"],function(h){return this.type="condition",this.condition=JSON.parse(JSON.stringify(h)),this.then=h,this.else=T(0),this}),ae("|",function(){return this.type="transform",this.pattern=T(0),A("|"),this.update=T(0),C.id===","&&(A(","),this.delete=T(0)),A("|"),this});var ve=function(h){var b;if(h.type==="function"&&!h.predicate){var G={type:"lambda",thunk:!0,arguments:[],position:h.position};G.body=h,b=G}else if(h.type==="condition")h.then=ve(h.then),typeof h.else<"u"&&(h.else=ve(h.else)),b=h;else if(h.type==="block"){var fe=h.expressions.length;fe>0&&(h.expressions[fe-1]=ve(h.expressions[fe-1])),b=h}else b=h;return b},pe=0,Te=0,Je=[],ce=function(h,b){switch(h.type){case"name":case"wildcard":b.level--,b.level===0&&(typeof h.ancestor>"u"||(Je[b.index].slot.label=h.ancestor.label),h.ancestor=b,h.tuple=!0);break;case"parent":b.level++;break;case"block":h.expressions.length>0&&(h.tuple=!0,b=ce(h.expressions[h.expressions.length-1],b));break;case"path":h.tuple=!0;var G=h.steps.length-1;for(b=ce(h.steps[G--],b);b.level>0&&G>=0;)b=ce(h.steps[G--],b);break;default:throw{code:"S0217",token:h.type,position:h.position}}return b},me=function(h,b){if(typeof b.seekingParent<"u"||b.type==="parent"){var G=typeof b.seekingParent<"u"?b.seekingParent:[];b.type==="parent"&&G.push(b.slot),typeof h.seekingParent>"u"?h.seekingParent=G:Array.prototype.push.apply(h.seekingParent,G)}},We=function(h){var b=h.steps.length-1,G=h.steps[b],fe=typeof G.seekingParent<"u"?G.seekingParent:[];G.type==="parent"&&fe.push(G.slot);for(var _e=0;_e<fe.length;_e++){var we=fe[_e];for(b=h.steps.length-2;we.level>0;){if(b<0){typeof h.seekingParent>"u"?h.seekingParent=[we]:h.seekingParent.push(we);break}for(var _=h.steps[b--];b>=0&&_.focus&&h.steps[b].focus;)_=h.steps[b--];we=ce(_,we)}}},ie=function(h){var b;switch(h.type){case"binary":switch(h.value){case".":var G=ie(h.lhs);G.type==="path"?b=G:b={type:"path",steps:[G]},G.type==="parent"&&(b.seekingParent=[G.slot]);var fe=ie(h.rhs);fe.type==="path"?Array.prototype.push.apply(b.steps,fe.steps):(typeof fe.predicate<"u"&&(fe.stages=fe.predicate,delete fe.predicate),b.steps.push(fe)),b.steps.filter(function(q){if(q.type==="number"||q.type==="value")throw{code:"S0213",stack:new Error().stack,position:q.position,value:q.value};return q.type==="string"}).forEach(function(q){q.type="name"}),b.steps.filter(function(q){return q.keepArray===!0}).length>0&&(b.keepSingletonArray=!0);var _e=b.steps[0];_e.type==="unary"&&_e.value==="["&&(_e.consarray=!0);var we=b.steps[b.steps.length-1];we.type==="unary"&&we.value==="["&&(we.consarray=!0),We(b);break;case"[":b=ie(h.lhs);var _=b,D="predicate";if(b.type==="path"&&(_=b.steps[b.steps.length-1],D="stages"),typeof _.group<"u")throw{code:"S0209",stack:new Error().stack,position:h.position};typeof _[D]>"u"&&(_[D]=[]);var S=ie(h.rhs);typeof S.seekingParent<"u"&&(S.seekingParent.forEach(q=>{q.level===1?ce(_,q):q.level--}),me(_,S)),_[D].push({type:"filter",expr:S,position:h.position});break;case"{":if(b=ie(h.lhs),typeof b.group<"u")throw{code:"S0210",stack:new Error().stack,position:h.position};b.group={lhs:h.rhs.map(function(q){return[ie(q[0]),ie(q[1])]}),position:h.position};break;case"^":b=ie(h.lhs),b.type!=="path"&&(b={type:"path",steps:[b]});var U={type:"sort",position:h.position};U.terms=h.rhs.map(function(q){var K=ie(q.expression);return me(U,K),{descending:q.descending,expression:K}}),b.steps.push(U),We(b);break;case":=":b={type:"bind",value:h.value,position:h.position},b.lhs=ie(h.lhs),b.rhs=ie(h.rhs),me(b,b.rhs);break;case"@":if(b=ie(h.lhs),_=b,b.type==="path"&&(_=b.steps[b.steps.length-1]),typeof _.stages<"u"||typeof _.predicate<"u")throw{code:"S0215",stack:new Error().stack,position:h.position};if(_.type==="sort")throw{code:"S0216",stack:new Error().stack,position:h.position};h.keepArray&&(_.keepArray=!0),_.focus=h.rhs.value,_.tuple=!0;break;case"#":b=ie(h.lhs),_=b,b.type==="path"?_=b.steps[b.steps.length-1]:(b={type:"path",steps:[b]},typeof _.predicate<"u"&&(_.stages=_.predicate,delete _.predicate)),typeof _.stages>"u"?_.index=h.rhs.value:_.stages.push({type:"index",value:h.rhs.value,position:h.position}),_.tuple=!0;break;case"~>":b={type:"apply",value:h.value,position:h.position},b.lhs=ie(h.lhs),b.rhs=ie(h.rhs),b.keepArray=b.lhs.keepArray||b.rhs.keepArray;break;default:b={type:h.type,value:h.value,position:h.position},b.lhs=ie(h.lhs),b.rhs=ie(h.rhs),me(b,b.lhs),me(b,b.rhs)}break;case"unary":b={type:h.type,value:h.value,position:h.position},h.value==="["?b.expressions=h.expressions.map(function(q){var K=ie(q);return me(b,K),K}):h.value==="{"?b.lhs=h.lhs.map(function(q){var K=ie(q[0]);me(b,K);var he=ie(q[1]);return me(b,he),[K,he]}):(b.expression=ie(h.expression),h.value==="-"&&b.expression.type==="number"?(b=b.expression,b.value=-b.value):me(b,b.expression));break;case"function":case"partial":b={type:h.type,name:h.name,value:h.value,position:h.position},b.arguments=h.arguments.map(function(q){var K=ie(q);return me(b,K),K}),b.procedure=ie(h.procedure);break;case"lambda":b={type:h.type,arguments:h.arguments,signature:h.signature,position:h.position};var B=ie(h.body);b.body=ve(B);break;case"condition":b={type:h.type,position:h.position},b.condition=ie(h.condition),me(b,b.condition),b.then=ie(h.then),me(b,b.then),typeof h.else<"u"&&(b.else=ie(h.else),me(b,b.else));break;case"transform":b={type:h.type,position:h.position},b.pattern=ie(h.pattern),b.update=ie(h.update),typeof h.delete<"u"&&(b.delete=ie(h.delete));break;case"block":b={type:h.type,position:h.position},b.expressions=h.expressions.map(function(q){var K=ie(q);return me(b,K),(K.consarray||K.type==="path"&&K.steps[0].consarray)&&(b.consarray=!0),K});break;case"name":b={type:"path",steps:[h]},h.keepArray&&(b.keepSingletonArray=!0);break;case"parent":b={type:"parent",slot:{label:"!"+pe++,level:1,index:Te++}},Je.push(b);break;case"string":case"number":case"value":case"wildcard":case"descendant":case"variable":case"regex":b=h;break;case"operator":if(h.value==="and"||h.value==="or"||h.value==="in")h.type="name",b=ie(h);else if(h.value==="?")b=h;else throw{code:"S0201",stack:new Error().stack,position:h.position,token:h.value};break;case"error":b=h,h.lhs&&(b=ie(h.lhs));break;default:var I="S0206";h.id==="(end)"&&(I="S0207");var L={code:I,position:h.position,token:h.value};if(w)return ee.push(L),{type:"error",error:L};throw L.stack=new Error().stack,L}return h.keepArray&&(b.keepArray=!0),b};R=P(k),A();var Ce=T(0);if(C.id!=="(end)"){var nt={code:"S0201",position:C.position,token:C.value};O(nt)}if(Ce=ie(Ce),Ce.type==="parent"||typeof Ce.seekingParent<"u")throw{code:"S0217",token:Ce.type,position:Ce.position};return ee.length>0&&(Ce.errors=ee),Ce};return M})();r.exports=o},{"./signature":5}],5:[function(t,r,s){var u=t("./utils");const o=(()=>{var p={a:"arrays",b:"booleans",f:"functions",n:"numbers",o:"objects",s:"strings"};function y(P){for(var M=1,k=[],w=Object.create(null),C=w;M<P.length;){var R=P.charAt(M);if(R===":")break;var N=function(){k.push(w),C=w,w=Object.create(null)},ee=function(F,re,ae,Ee){for(var ve=1,pe=re;pe<F.length;)if(pe++,R=F.charAt(pe),R===Ee){if(ve--,ve===0)break}else R===ae&&ve++;return pe};switch(R){case"s":case"n":case"b":case"l":case"o":w.regex="["+R+"m]",w.type=R,N();break;case"a":w.regex="[asnblfom]",w.type=R,w.array=!0,N();break;case"f":w.regex="f",w.type=R,N();break;case"j":w.regex="[asnblom]",w.type=R,N();break;case"x":w.regex="[asnblfom]",w.type=R,N();break;case"-":C.context=!0,C.contextRegex=new RegExp(C.regex),C.regex+="?";break;case"?":case"+":C.regex+=R;break;case"(":var J=ee(P,M,"(",")"),E=P.substring(M+1,J);if(E.indexOf("<")===-1)w.regex="["+E+"m]";else throw{code:"S0402",stack:new Error().stack,value:E,offset:M};w.type="("+E+")",M=J,N();break;case"<":if(C.type==="a"||C.type==="f"){var v=ee(P,M,"<",">");C.subtype=P.substring(M+1,v),M=v}else throw{code:"S0401",stack:new Error().stack,value:C.type,offset:M};break}M++}var O="^"+k.map(function(F){return"("+F.regex+")"}).join("")+"$",A=new RegExp(O),T=function(F){var re;if(u.isFunction(F))re="f";else{var ae=typeof F;switch(ae){case"string":re="s";break;case"number":re="n";break;case"boolean":re="b";break;case"object":F===null?re="l":Array.isArray(F)?re="a":re="o";break;case"undefined":default:re="m"}}return re},H=function(F,re){for(var ae="^",Ee=0,ve=0;ve<k.length;ve++){ae+=k[ve].regex;var pe=re.match(ae);if(pe===null)throw{code:"T0410",stack:new Error().stack,value:F[Ee],index:Ee+1};Ee=pe[0].length}throw{code:"T0410",stack:new Error().stack,value:F[Ee],index:Ee+1}};return{definition:P,validate:function(F,re){var ae="";F.forEach(function(Te){ae+=T(Te)});var Ee=A.exec(ae);if(Ee){var ve=[],pe=0;return k.forEach(function(Te,Je){var ce=F[pe],me=Ee[Je+1];if(me==="")if(Te.context&&Te.contextRegex){var We=T(re);if(Te.contextRegex.test(We))ve.push(re);else throw{code:"T0411",stack:new Error().stack,value:re,index:pe+1}}else ve.push(ce),pe++;else me.split("").forEach(function(ie){if(ce=F[pe],Te.type==="a"){if(ie==="m")ce=void 0;else{var Ce=!0;if(typeof Te.subtype<"u"){if(ie!=="a"&&me!==Te.subtype)Ce=!1;else if(ie==="a"&&ce.length>0){var nt=T(ce[0]);if(nt!==Te.subtype.charAt(0))Ce=!1;else{var h=ce.filter(function(b){return T(b)!==nt});Ce=h.length===0}}}if(!Ce)throw{code:"T0412",stack:new Error().stack,value:ce,index:pe+1,type:p[Te.subtype]};ie!=="a"&&(ce=[ce])}ve.push(ce),pe++}else ve.push(ce),pe++})}),ve}H(F,ae)}}}return y})();r.exports=o},{"./utils":6}],6:[function(t,r,s){const u=(()=>{function o(v){var O=!1;if(typeof v=="number"&&(O=!isNaN(v),O&&!isFinite(v)))throw{code:"D1001",value:v,stack:new Error().stack};return O}function p(v){var O=!1;return Array.isArray(v)&&(O=v.filter(function(A){return typeof A!="string"}).length===0),O}function y(v){var O=!1;return Array.isArray(v)&&(O=v.filter(function(A){return!o(A)}).length===0),O}function P(v){return v.sequence===!0&&Array.isArray(v)}function M(v){return v&&(v._jsonata_function===!0||v._jsonata_lambda===!0)||typeof v=="function"}function k(v){var O=typeof v.arity=="number"?v.arity:typeof v.implementation=="function"?v.implementation.length:typeof v.length=="number"?v.length:v.arguments.length;return O}function w(v){return v&&v._jsonata_lambda===!0}var C=(typeof Symbol=="function"?Symbol:{}).iterator||"@@iterator";function R(v){return typeof v=="object"&&v!==null&&C in v&&"next"in v&&typeof v.next=="function"}function N(v,O){if(v===O)return!0;if(typeof v=="object"&&typeof O=="object"&&v!==null&&O!==null){if(Array.isArray(v)&&Array.isArray(O)){if(v.length!==O.length)return!1;for(var A=0;A<v.length;A++)if(!N(v[A],O[A]))return!1;return!0}var T=Object.getOwnPropertyNames(v),H=Object.getOwnPropertyNames(O);if(T.length!==H.length)return!1;for(T=T.sort(),H=H.sort(),A=0;A<T.length;A++)if(T[A]!==H[A])return!1;for(A=0;A<T.length;A++){var F=T[A];if(!N(v[F],O[F]))return!1}return!0}return!1}function ee(v){return typeof v=="object"&&v!==null&&"then"in v&&typeof v.then=="function"}function J(v){var O=[];for(let A of v)O.push(A);return O}function E(v){return typeof v=="object"&&v!==null?Object.keys(v):[]}return{isNumeric:o,isArrayOfStrings:p,isArrayOfNumbers:y,isSequence:P,isFunction:M,isLambda:w,isIterable:R,getFunctionArity:k,isDeepEqual:N,stringToArray:J,isPromise:ee,keys:E}})();r.exports=u},{}]},{},[3])(3)})})(Cr)),Cr.exports}xi();const ki=150,hn=10,Si=200,Pi=16,dn=new WeakMap;let pn=!1;function ir(){return typeof navigator>"u"?!1:/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Bt(n){if(n===window)return{x:window.scrollX,y:window.scrollY};const e=n;return{x:e.scrollLeft,y:e.scrollTop}}function Ti(n,e,t){if(n===window){window.scrollTo(e,t);return}const r=n;typeof r.scrollTo=="function"?r.scrollTo(e,t):(r.scrollLeft=e,r.scrollTop=t)}function Ci(n){if(n===window){const t=document.documentElement;return Math.max(0,t.scrollHeight-window.innerHeight)}const e=n;return Math.max(0,e.scrollHeight-e.clientHeight)}function St(n){let e=dn.get(n);if(!e){const t=Bt(n);e={x:t.x,y:t.y,restoring:!1,watching:!1,userEngaged:!1,raf:0,stickyFrames:0},dn.set(n,e)}return e}function sr(n){St(n).userEngaged=!0}function ar(n){const e=St(n);clearTimeout(e.settleTimer),e.settleTimer=setTimeout(()=>{e.userEngaged=!1,e.settleTimer=void 0},ki)}function mn(n,e){return e-n>=Si}function Pt(n){if(!ir())return;const e=St(n);if(e.restoring)return;const t=Bt(n);if(mn(t.y,e.y)){Dr(n);return}e.x=t.x,e.y=t.y}function Di(n){if(!ir())return;const e=St(n),t=Ci(n),r=e.x,s=t>0?Math.min(e.y,t):e.y,{x:u,y:o}=Bt(n);if(!(Math.abs(r-u)<=hn&&Math.abs(s-o)<=hn)){e.restoring=!0;try{Ti(n,r,s)}finally{requestAnimationFrame(()=>{e.restoring=!1})}}}function Dr(n){const e=St(n);if(e.stickyFrames=Pi,e.raf)return;const t=()=>{e.raf=0,Di(n),e.stickyFrames>0&&(e.stickyFrames--,e.raf=requestAnimationFrame(t))};e.raf=requestAnimationFrame(t)}function Rr(n){Dr(n)}function qt(n){if(!ir())return;const e=St(n);if(e.watching)return;e.watching=!0;const t=n===window?window:n,r=()=>{if(e.restoring)return;const{y:R}=Bt(n);if(mn(R,e.y)){Dr(n);return}if(e.userEngaged){Pt(n),ar(n);return}Pt(n)},s=R=>vn(R)===n,u=R=>{s(R)&&(Pt(n),sr(n))},o=R=>{s(R)&&ar(n)},p=R=>{s(R)&&(Pt(n),sr(n),ar(n))};t.addEventListener("scroll",r,{passive:!0}),t.addEventListener("touchstart",u,{passive:!0}),t.addEventListener("touchend",o,{passive:!0}),t.addEventListener("touchcancel",o,{passive:!0}),t.addEventListener("wheel",p,{passive:!0}),t.addEventListener("pointerdown",u,{passive:!0}),t.addEventListener("pointerup",o,{passive:!0}),t.addEventListener("pointercancel",o,{passive:!0});const y=Bt(n);if(e.x=y.x,e.y=y.y,n===window){const R=new ResizeObserver(()=>Rr(window));R.observe(document.documentElement),e.resizeObserver=R;return}const P=n,M=new ResizeObserver(()=>Rr(P));M.observe(P);for(const R of Array.from(P.children))M.observe(R);e.resizeObserver=M;const k=()=>Rr(P),w=new MutationObserver(R=>{for(const N of R)if(N.type==="childList")for(const ee of Array.from(N.addedNodes))ee instanceof Element&&M.observe(ee);k()});w.observe(P,{childList:!0,subtree:!0,characterData:!0});const C=P.getRootNode();C instanceof ShadowRoot&&C.host&&w.observe(C.host,{childList:!0,subtree:!0,characterData:!0}),e.mutationObserver=w}function vn(n){for(const e of n.composedPath())if(!(e===window||e===document)&&e instanceof HTMLElement&&gn(e))return e;return window}function gn(n){if(!(n instanceof HTMLElement)||n===document.documentElement||n===document.body)return!1;const e=getComputedStyle(n).overflowY;return e==="auto"||e==="scroll"||e==="overlay"}function Lr(n){for(const t of n.composedPath())t===window||t===document||t instanceof HTMLElement&&gn(t)&&qt(t);const e=vn(n);qt(e),n.type==="wheel"?(Pt(e),sr(e),ar(e)):(n.type==="touchstart"||n.type==="pointerdown")&&(Pt(e),sr(e))}function or(n){n instanceof Element&&n.classList?.contains("custom-scroll")&&qt(n),n.querySelectorAll?.(".custom-scroll").forEach(e=>{e instanceof HTMLElement&&qt(e)})}function Mr(n){or(n),new MutationObserver(t=>{for(const r of t)for(const s of Array.from(r.addedNodes))s instanceof Element&&or(s)}).observe(n,{childList:!0,subtree:!0})}function Or(n){n.querySelectorAll?.("*").forEach(e=>{e.shadowRoot&&(Mr(e.shadowRoot),Or(e.shadowRoot))})}function Ri(){const n=Element.prototype;if(n.__safariScrollGuardPatched)return;n.__safariScrollGuardPatched=!0;const e=n.attachShadow;n.attachShadow=function(r){const s=e.call(this,r);return Mr(s),s}}function Li(){if(typeof window>"u"||pn||(pn=!0,!ir()))return;qt(window),Ri();const n={capture:!0,passive:!0};window.addEventListener("wheel",Lr,n),window.addEventListener("touchstart",Lr,n),window.addEventListener("pointerdown",Lr,n);const e=()=>{or(document),Or(document)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e,{once:!0}):e(),new MutationObserver(r=>{for(const s of r)for(const u of Array.from(s.addedNodes))u instanceof Element&&(or(u),u.shadowRoot&&Mr(u.shadowRoot),Or(u))}).observe(document.documentElement,{childList:!0,subtree:!0})}const Mi=si,Oi=oi,Ui=Sr,Fi=_r,$i=at,Ni=bi,Ii=er,ji=Pr,Bi=_i;Li(),window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:Mi,Arrays:Oi,DataBindObserver:Ui,Format:Fi,HTML:$i,LocationHandler:Ni,Objects:Ii,PublisherManager:$e,api:ji,URLPattern:Bi,Endpoint:Tr,DataProviderKey:Qt};const qi=`#version 300 es