@uipath/flow-tool 1.201.0-preview.128 → 1.201.0-preview.132

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 (140) hide show
  1. package/dist/{authoring-rezk32bm.js → authoring-7r6g06c7.js} +2 -2
  2. package/dist/{conversion-W6HMHBWW-jnk9z7rw.js → conversion-H2VEEYLB-ng48mbf7.js} +536 -161
  3. package/dist/{de-K6MLR24N-5N5XGLH6-gbwpvdz4.js → de-5HU6GFWV-4EZK6G7N-yrh21f52.js} +273 -13
  4. package/dist/{de-K6MLR24N-00fjz82b.js → de-5HU6GFWV-zheyw6d2.js} +271 -10
  5. package/dist/de-5KVP66U6-f7knj511.js +161 -0
  6. package/dist/de-5KVP66U6-t37qr521.js +161 -0
  7. package/dist/{de-B2KIY5TC-81f703v3.js → de-HKTOVV4H-d5yw5j21.js} +3 -3
  8. package/dist/{de-WMKOGI7B-r1821wpe.js → de-WMKOGI7B-6dc1zdnp.js} +3 -3
  9. package/dist/en-4KXU7N7B-24v330b5.js +118 -0
  10. package/dist/en-4KXU7N7B-66fntxa2.js +118 -0
  11. package/dist/{en-ILA4HPE5-ALHGESZE-zrv4qss8.js → en-MABQK6C4-REWE2WG2-8dp4cqdg.js} +109 -6
  12. package/dist/{en-ILA4HPE5-fhwvq92r.js → en-MABQK6C4-nkzq2j8t.js} +106 -2
  13. package/dist/{en-P6PNWNTO-g1f6cjh5.js → en-P4AS26D7-szrzfxz1.js} +3 -5
  14. package/dist/{en-X4DLPKLJ-dt1wtdm7.js → en-X4DLPKLJ-1h9gj5c1.js} +3 -3
  15. package/dist/{es-BVPGJUWA-9gk2g9yb.js → es-BVPGJUWA-0k59eqfv.js} +3 -3
  16. package/dist/{es-HTQSD352-YTAEDCE5-nhsbg581.js → es-LUTYN7U7-IY5QWOUF-k2aefzc0.js} +273 -13
  17. package/dist/{es-HTQSD352-m9rr3f0g.js → es-LUTYN7U7-ye5zn4sn.js} +271 -10
  18. package/dist/{es-MX-3SP2SSV6-f20qspbr.js → es-MX-H2EAXLYI-qwnqt48x.js} +3 -3
  19. package/dist/{es-MX-FOX525CG-87g500gr.js → es-MX-POESXYP2-9538722k.js} +272 -11
  20. package/dist/{es-MX-FOX525CG-HLM27OEL-whr0t9v3.js → es-MX-POESXYP2-UW6VP5QI-cd3a79g9.js} +274 -14
  21. package/dist/{es-MX-U6YL5KQX-ynwxdjr8.js → es-MX-U6YL5KQX-k4qvpgd4.js} +3 -3
  22. package/dist/es-MX-XAVLOQW3-47a405kf.js +161 -0
  23. package/dist/es-MX-XAVLOQW3-9b3cp9n8.js +161 -0
  24. package/dist/{es-BBX4AUJX-h99fcr53.js → es-O4PAV2CR-jwfaawwk.js} +3 -3
  25. package/dist/es-VFPNVMP5-6sftsdxe.js +161 -0
  26. package/dist/es-VFPNVMP5-thm0z9sr.js +161 -0
  27. package/dist/{fr-FSTBVVGK-t3y57xrb.js → fr-5YRGHXF5-q6b63yg0.js} +3 -3
  28. package/dist/fr-E5MDO4EG-exvrs7ge.js +161 -0
  29. package/dist/fr-E5MDO4EG-f3x1jeqw.js +161 -0
  30. package/dist/{fr-EKTTDR7Z-bmpwp31r.js → fr-EKTTDR7Z-m2t68j0m.js} +3 -3
  31. package/dist/{fr-54THJ4QH-IGABNGU6-fpzw2mba.js → fr-LJIK56LW-STG6QR3T-cextvv8q.js} +274 -14
  32. package/dist/{fr-54THJ4QH-d6ezjbhw.js → fr-LJIK56LW-xf3xf2kh.js} +272 -11
  33. package/dist/{index-6hp3p3eq.js → index-dhcd9b82.js} +2 -2
  34. package/dist/{index-q59ephfh.js → index-er6vy3jk.js} +71 -5
  35. package/dist/index.js +22 -16
  36. package/dist/init.js +19 -13
  37. package/dist/ja-DPO5PPLO-fmbg7zt2.js +161 -0
  38. package/dist/ja-DPO5PPLO-s2a7j3nj.js +161 -0
  39. package/dist/{ja-MHUPLSWO-CS3KE4Y3-mbtkzwd7.js → ja-FGEGLBJ3-MG3BSWXD-vq19zt2p.js} +273 -13
  40. package/dist/{ja-MHUPLSWO-3qwy4jc0.js → ja-FGEGLBJ3-w9byjhze.js} +271 -10
  41. package/dist/{ja-FW33BJBW-htfk4d8t.js → ja-SDAPAVCR-943p5gx7.js} +3 -3
  42. package/dist/{ja-Y2YBTXNN-96cvy5av.js → ja-Y2YBTXNN-5sszk2zv.js} +3 -3
  43. package/dist/ko-ITOPNIYI-aqy82jk8.js +161 -0
  44. package/dist/ko-ITOPNIYI-qz39kamf.js +161 -0
  45. package/dist/{ko-PDO5AXNW-d653t4pc.js → ko-NAGOZLC3-wb3y9yhh.js} +3 -3
  46. package/dist/{ko-S33XAV26-cxf4dn2t.js → ko-S33XAV26-rfsv9myd.js} +3 -3
  47. package/dist/{ko-XPJTXIKK-DNSW4KYQ-956vp61f.js → ko-TUAK3G3A-TBEBKOTM-ns78t2rv.js} +277 -17
  48. package/dist/{ko-XPJTXIKK-w1hs4px7.js → ko-TUAK3G3A-s25w0ckg.js} +275 -14
  49. package/dist/{node-jrxdhf7v.js → node-vf29tmgq.js} +2 -2
  50. package/dist/{packager-tool-cqrsre00.js → packager-tool-0567pxpm.js} +121 -12
  51. package/dist/{packager-tool-3wf3tkrc.js → packager-tool-09xysehb.js} +3 -5
  52. package/dist/{packager-tool-b0s5d4ek.js → packager-tool-0sz8se22.js} +1 -1
  53. package/dist/{packager-tool-03knb0er.js → packager-tool-3wygxefb.js} +116 -17
  54. package/dist/{packager-tool-dj4pqa9j.js → packager-tool-5dgs6c0n.js} +544 -45
  55. package/dist/packager-tool-6ejqwbw9.js +26 -0
  56. package/dist/{packager-tool-ef2aypt3.js → packager-tool-78a3szsp.js} +1317 -465
  57. package/dist/{packager-tool-22byyd1g.js → packager-tool-7j7dtp78.js} +1 -1
  58. package/dist/{packager-tool-y4w92fgx.js → packager-tool-f7ftjhjw.js} +12111 -6271
  59. package/dist/packager-tool-gmrwvnyh.js +1171 -0
  60. package/dist/packager-tool-jysvpt8p.js +11 -0
  61. package/dist/{packager-tool-7xtmgen0.js → packager-tool-kbtxcxjd.js} +5 -5
  62. package/dist/packager-tool-m6x5sczh.js +899 -0
  63. package/dist/packager-tool-mcaf4ewf.js +46 -0
  64. package/dist/packager-tool-p9j43p8h.js +115 -0
  65. package/dist/{packager-tool-v2p6g3fd.js → packager-tool-pkq70dec.js} +1 -1
  66. package/dist/{packager-tool-448hb71a.js → packager-tool-q0w9sjzr.js} +258 -486
  67. package/dist/packager-tool-tq9q9m77.js +115 -0
  68. package/dist/{packager-tool-1yy9x4vk.js → packager-tool-v74yk918.js} +2 -2
  69. package/dist/packager-tool-vdd02vns.js +55924 -0
  70. package/dist/packager-tool-xj0agqpk.js +11 -0
  71. package/dist/packager-tool-yh7qcf17.js +23964 -0
  72. package/dist/packager-tool.js +15 -9
  73. package/dist/{pt-JLZYSSXX-7jth254x.js → pt-7TR74ZMB-1g8my56g.js} +3 -3
  74. package/dist/{pt-BR-TV7NR3ID-PDSSHRHU-nddwzj29.js → pt-BR-7XGDXRDJ-TR5D7JYL-533wvy7p.js} +274 -14
  75. package/dist/{pt-BR-TV7NR3ID-vgd26pj1.js → pt-BR-7XGDXRDJ-espnkgrj.js} +272 -11
  76. package/dist/pt-BR-BXURWX4W-dqr4dnf9.js +161 -0
  77. package/dist/pt-BR-BXURWX4W-xzyndmrx.js +161 -0
  78. package/dist/{pt-BR-LQH3RSBB-kyb4jmcw.js → pt-BR-DXXSYJDO-bn84ewp7.js} +3 -3
  79. package/dist/{pt-BR-JO45SCNI-4kbfnzc4.js → pt-BR-JO45SCNI-mt93s33c.js} +3 -3
  80. package/dist/{pt-4JEPEAST-JO5WN33S-ccdbdab2.js → pt-TMVOOITK-H2ADYHSD-ezpggv33.js} +273 -13
  81. package/dist/{pt-4JEPEAST-40npwxyw.js → pt-TMVOOITK-myha14p9.js} +271 -10
  82. package/dist/{pt-W3NA4LIZ-f02gapvs.js → pt-W3NA4LIZ-fwd1q4j0.js} +3 -3
  83. package/dist/pt-YI4VE4YQ-521681zf.js +161 -0
  84. package/dist/pt-YI4VE4YQ-v7gjeg82.js +161 -0
  85. package/dist/{ro-RKJ74FV3-QS3I6XKJ-kb31d85k.js → ro-2VALF3S5-NXBJUEZN-nqw1zs33.js} +277 -17
  86. package/dist/{ro-RKJ74FV3-qn0ey39v.js → ro-2VALF3S5-cdz5afkr.js} +275 -14
  87. package/dist/{ro-E2EBPQGT-vn573vcr.js → ro-BJFER5OI-334n28rj.js} +3 -3
  88. package/dist/ro-RKXZUG7Z-cm3xn3fj.js +161 -0
  89. package/dist/ro-RKXZUG7Z-pdztdafr.js +161 -0
  90. package/dist/{ro-WLKX6HF5-fcbe2zz8.js → ro-WLKX6HF5-b9tj8q67.js} +3 -3
  91. package/dist/ru-GSCT4ARZ-FTVCGQTL-5nh4jf2e.js +14 -0
  92. package/dist/ru-T73OPRTC-mp5gn7gs.js +10 -0
  93. package/dist/ru-WBLQ5B2U-8xd4gpv2.js +10 -0
  94. package/dist/ru-WBLQ5B2U-mswqs9wc.js +10 -0
  95. package/dist/serialization-GAW7UFOK-9hkdmmd2.js +36541 -0
  96. package/dist/services/flow-eval-schema/deterministic-evaluators.d.ts +110 -0
  97. package/dist/services/flow-eval-schema/evaluator-fields.d.ts +66 -0
  98. package/dist/services/flow-eval-schema/helpers.d.ts +9 -0
  99. package/dist/services/flow-eval-schema/index.d.ts +4 -0
  100. package/dist/services/flow-eval-schema/llm-judge-evaluators.d.ts +174 -0
  101. package/dist/services/flow-eval-schema/prompts.d.ts +2 -0
  102. package/dist/services/flow-eval-schema/registry.d.ts +375 -0
  103. package/dist/services/flow-eval-schema/tool-call-evaluators.d.ts +93 -0
  104. package/dist/services/flow-eval-schema/types.d.ts +78 -0
  105. package/dist/services/flow-eval-types.d.ts +6 -0
  106. package/dist/services/flow-eval-utils.d.ts +14 -0
  107. package/dist/services/flow-validate-service.d.ts +11 -0
  108. package/dist/services/packaging-utils.d.ts +3 -29
  109. package/dist/tool.js +22 -16
  110. package/dist/{tr-3U2W2XCA-zg3zcmq3.js → tr-3U2W2XCA-43ptfc0m.js} +3 -3
  111. package/dist/tr-AA6O2WSR-bj9n80k8.js +161 -0
  112. package/dist/tr-AA6O2WSR-ga1xnymp.js +161 -0
  113. package/dist/{tr-X7R6GQNB-VMEZAWRJ-vdbjqw23.js → tr-RIFCEXFH-BZS7S7QK-q465b62g.js} +279 -19
  114. package/dist/{tr-X7R6GQNB-shwv16dz.js → tr-RIFCEXFH-hgkb4g8y.js} +277 -16
  115. package/dist/{tr-ZUUSMHER-pfn5dq1r.js → tr-RQTZ2DMS-bpgd4kma.js} +3 -3
  116. package/dist/utils/flow-io.d.ts +8 -0
  117. package/dist/validation.js +19 -13
  118. package/dist/{zh-CN-FEZ24J4A-q5b5x20w.js → zh-CN-IP3FMXWM-1cfarhcp.js} +271 -10
  119. package/dist/{zh-CN-FEZ24J4A-LSEMG63K-db8kf6rm.js → zh-CN-IP3FMXWM-H3JI2XUM-ta4yac7h.js} +273 -13
  120. package/dist/{zh-CN-IPZYQR3P-1h76csc4.js → zh-CN-IPZYQR3P-egjmvyjf.js} +3 -3
  121. package/dist/zh-CN-R2KLHXQV-wttmznep.js +161 -0
  122. package/dist/zh-CN-R2KLHXQV-x6gnk2n0.js +161 -0
  123. package/dist/{zh-CN-YFKQ7HBX-w98q5zqf.js → zh-CN-ZC6LT4IN-vty9mvv8.js} +3 -3
  124. package/dist/{zh-TW-GKSCT6NW-JLMWTDAF-g2smq1gm.js → zh-TW-AGIDXIPF-R4XZRDJZ-cgxxz5k4.js} +274 -14
  125. package/dist/{zh-TW-GKSCT6NW-4n1yfre0.js → zh-TW-AGIDXIPF-n6r6w7vy.js} +272 -11
  126. package/dist/{zh-TW-CP5PCVEJ-wvbxf7c7.js → zh-TW-R7Y5KVMU-q81f4z2p.js} +3 -3
  127. package/dist/zh-TW-RJGCQANM-gqn0aca0.js +161 -0
  128. package/dist/zh-TW-RJGCQANM-tt8j5wv2.js +161 -0
  129. package/dist/{zh-TW-YPVSQVGT-wbybwpwt.js → zh-TW-YPVSQVGT-b378ztph.js} +3 -3
  130. package/package.json +36 -36
  131. package/dist/packager-tool-1npbsxx3.js +0 -36187
  132. package/dist/packager-tool-c19w8vg9.js +0 -26
  133. package/dist/packager-tool-gbgfwx8f.js +0 -2
  134. package/dist/packager-tool-jeh5j2xy.js +0 -87554
  135. package/dist/packager-tool-jpcm3xas.js +0 -12
  136. package/dist/packager-tool-pvgqbm48.js +0 -21
  137. package/dist/ru-D6DDND7Z-e4en56d2.js +0 -10
  138. package/dist/ru-GSCT4ARZ-3TVTUGWP-bbg6360z.js +0 -15
  139. package/dist/serialization-GTFWODSH-ajd6b7n2.js +0 -148
  140. /package/dist/{packager-tool-ny53xmsd.js → packager-tool-cvwr40ax.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  en_default
3
- } from "./packager-tool-1yy9x4vk.js";
3
+ } from "./packager-tool-tq9q9m77.js";
4
4
  import {
5
5
  __glob
6
6
  } from "./packager-tool-c23zrhj8.js";
@@ -3017,9 +3017,28 @@ var require_data = __commonJS((exports, module) => {
3017
3017
  var require_utils = __commonJS((exports, module) => {
3018
3018
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
3019
3019
  var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
3020
+ var isPort = RegExp.prototype.test.bind(/^\d*$/u);
3020
3021
  var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
3021
3022
  var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
3022
- var isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
3023
+ var isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);
3024
+ var isQueryFragmentCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u);
3025
+ var isUserinfoCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u);
3026
+ var BYTE_HEX = new Array(256);
3027
+ {
3028
+ const HEX_DIGITS = "0123456789ABCDEF";
3029
+ for (let i = 0;i < 256; i++) {
3030
+ BYTE_HEX[i] = "%" + HEX_DIGITS[i >> 4] + HEX_DIGITS[i & 15];
3031
+ }
3032
+ }
3033
+ function percentEncodeNonAscii(cp) {
3034
+ if (cp < 2048) {
3035
+ return BYTE_HEX[192 | cp >> 6] + BYTE_HEX[128 | cp & 63];
3036
+ }
3037
+ if (cp < 65536) {
3038
+ return BYTE_HEX[224 | cp >> 12] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
3039
+ }
3040
+ return BYTE_HEX[240 | cp >> 18] + BYTE_HEX[128 | cp >> 12 & 63] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
3041
+ }
3023
3042
  function stringArrayToHexStripped(input) {
3024
3043
  let acc = "";
3025
3044
  let code = 0;
@@ -3044,91 +3063,122 @@ var require_utils = __commonJS((exports, module) => {
3044
3063
  }
3045
3064
  return acc;
3046
3065
  }
3066
+ var isHextet = RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/);
3067
+ var isIPvFuture = RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/);
3068
+ var isZoneCharacter = RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/);
3047
3069
  var nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
3048
- function consumeIsZone(buffer) {
3049
- buffer.length = 0;
3050
- return true;
3051
- }
3052
- function consumeHextets(buffer, address, output) {
3053
- if (buffer.length) {
3054
- const hex3 = stringArrayToHexStripped(buffer);
3055
- if (hex3 !== "") {
3056
- address.push(hex3);
3057
- } else {
3058
- output.error = true;
3059
- return false;
3070
+ function isZoneIdentifier(zone) {
3071
+ if (zone.length === 0)
3072
+ return false;
3073
+ for (let i = 0;i < zone.length; i++) {
3074
+ if (isZoneCharacter(zone[i]))
3075
+ continue;
3076
+ if (zone[i] === "%" && i + 2 < zone.length && isHexPair(zone.slice(i + 1, i + 3))) {
3077
+ i += 2;
3078
+ continue;
3060
3079
  }
3061
- buffer.length = 0;
3080
+ return false;
3062
3081
  }
3063
3082
  return true;
3064
3083
  }
3065
- function getIPV6(input) {
3066
- let tokenCount = 0;
3067
- const output = { error: false, address: "", zone: "" };
3068
- const address = [];
3069
- const buffer = [];
3070
- let endipv6Encountered = false;
3071
- let endIpv6 = false;
3072
- let consume = consumeHextets;
3073
- for (let i = 0;i < input.length; i++) {
3074
- const cursor = input[i];
3075
- if (cursor === "[" || cursor === "]") {
3076
- continue;
3077
- }
3078
- if (cursor === ":") {
3079
- if (endipv6Encountered === true) {
3080
- endIpv6 = true;
3084
+ function compressIPv6ZeroRun(hextets) {
3085
+ let bestStart = -1;
3086
+ let bestLength = 0;
3087
+ let runStart = -1;
3088
+ let runLength = 0;
3089
+ for (let i = 0;i < hextets.length; i++) {
3090
+ if (hextets[i] === "0") {
3091
+ if (runStart === -1)
3092
+ runStart = i;
3093
+ runLength++;
3094
+ if (runLength > bestLength) {
3095
+ bestLength = runLength;
3096
+ bestStart = runStart;
3081
3097
  }
3082
- if (!consume(buffer, address, output)) {
3083
- break;
3084
- }
3085
- if (++tokenCount > 7) {
3086
- output.error = true;
3087
- break;
3088
- }
3089
- if (i > 0 && input[i - 1] === ":") {
3090
- endipv6Encountered = true;
3091
- }
3092
- address.push(":");
3093
- continue;
3094
- } else if (cursor === "%") {
3095
- if (!consume(buffer, address, output)) {
3096
- break;
3097
- }
3098
- consume = consumeIsZone;
3099
3098
  } else {
3100
- buffer.push(cursor);
3101
- continue;
3099
+ runStart = -1;
3100
+ runLength = 0;
3102
3101
  }
3103
3102
  }
3104
- if (buffer.length) {
3105
- if (consume === consumeIsZone) {
3106
- output.zone = buffer.join("");
3107
- } else if (endIpv6) {
3108
- address.push(buffer.join(""));
3109
- } else {
3110
- address.push(stringArrayToHexStripped(buffer));
3103
+ if (bestLength < 2)
3104
+ return hextets.join(":");
3105
+ const head = hextets.slice(0, bestStart).join(":");
3106
+ const tail = hextets.slice(bestStart + bestLength).join(":");
3107
+ return head + "::" + tail;
3108
+ }
3109
+ function normalizeIPv6Address(input) {
3110
+ const compression = input.indexOf("::");
3111
+ if (compression !== -1 && input.indexOf("::", compression + 1) !== -1)
3112
+ return;
3113
+ const left = compression === -1 ? input.split(":") : input.slice(0, compression).split(":");
3114
+ const right = compression === -1 ? [] : input.slice(compression + 2).split(":");
3115
+ if (compression !== -1) {
3116
+ if (left.length === 1 && left[0] === "")
3117
+ left.length = 0;
3118
+ if (right.length === 1 && right[0] === "")
3119
+ right.length = 0;
3120
+ }
3121
+ const parts = left.concat(right);
3122
+ let hextetCount = 0;
3123
+ for (let i = 0;i < parts.length; i++) {
3124
+ const part = parts[i];
3125
+ if (part === "")
3126
+ return;
3127
+ if (part.indexOf(".") !== -1) {
3128
+ if (i !== parts.length - 1 || compression !== -1 && right.length === 0 || !isIPv4(part))
3129
+ return;
3130
+ hextetCount += 2;
3131
+ continue;
3111
3132
  }
3133
+ if (!isHextet(part))
3134
+ return;
3135
+ parts[i] = parseInt(part, 16).toString(16);
3136
+ hextetCount++;
3112
3137
  }
3113
- output.address = address.join("");
3114
- return output;
3138
+ if (compression === -1) {
3139
+ if (hextetCount !== 8)
3140
+ return;
3141
+ return compressIPv6ZeroRun(parts);
3142
+ }
3143
+ if (hextetCount >= 8)
3144
+ return;
3145
+ const expanded = parts.slice(0, left.length);
3146
+ for (let i = hextetCount;i < 8; i++)
3147
+ expanded.push("0");
3148
+ for (let i = left.length;i < parts.length; i++)
3149
+ expanded.push(parts[i]);
3150
+ return compressIPv6ZeroRun(expanded);
3115
3151
  }
3116
3152
  function normalizeIPv6(host) {
3117
- if (findToken(host, ":") < 2) {
3118
- return { host, isIPV6: false };
3119
- }
3120
- const ipv63 = getIPV6(host);
3121
- if (!ipv63.error) {
3122
- let newHost = ipv63.address;
3123
- let escapedHost = ipv63.address;
3124
- if (ipv63.zone) {
3125
- newHost += "%" + ipv63.zone;
3126
- escapedHost += "%25" + ipv63.zone;
3127
- }
3128
- return { host: newHost, isIPV6: true, escapedHost };
3129
- } else {
3130
- return { host, isIPV6: false };
3131
- }
3153
+ const bracketed = host[0] === "[" && host[host.length - 1] === "]";
3154
+ const hasBracket = host[0] === "[" || host[host.length - 1] === "]";
3155
+ if (hasBracket && !bracketed)
3156
+ return { host, isIPV6: false, error: true };
3157
+ let input = bracketed ? host.slice(1, -1) : host;
3158
+ if (bracketed && isIPvFuture(input)) {
3159
+ input = input.toLowerCase();
3160
+ return { host: `[${input}]`, escapedHost: input, isIPV6: false, isIPVFuture: true };
3161
+ }
3162
+ if (findToken(input, ":") < 2) {
3163
+ return { host, isIPV6: false, error: bracketed };
3164
+ }
3165
+ let zoneIdentifier = "";
3166
+ const zoneSeparator = input.indexOf("%");
3167
+ if (zoneSeparator !== -1) {
3168
+ const separatorLength = input.slice(zoneSeparator, zoneSeparator + 3).toLowerCase() === "%25" ? 3 : 1;
3169
+ zoneIdentifier = input.slice(zoneSeparator + separatorLength);
3170
+ if (!isZoneIdentifier(zoneIdentifier))
3171
+ return { host, isIPV6: false, error: true };
3172
+ input = input.slice(0, zoneSeparator);
3173
+ }
3174
+ const address = normalizeIPv6Address(input);
3175
+ if (address === undefined)
3176
+ return { host, isIPV6: false, error: true };
3177
+ return {
3178
+ host: address + (zoneIdentifier ? "%" + zoneIdentifier : ""),
3179
+ escapedHost: address + (zoneIdentifier ? "%25" + zoneIdentifier : ""),
3180
+ isIPV6: true
3181
+ };
3132
3182
  }
3133
3183
  function findToken(str, token) {
3134
3184
  let ind = 0;
@@ -3248,7 +3298,8 @@ var require_utils = __commonJS((exports, module) => {
3248
3298
  function normalizePathEncoding(input) {
3249
3299
  let output = "";
3250
3300
  for (let i = 0;i < input.length; i++) {
3251
- if (input[i] === "%" && i + 2 < input.length) {
3301
+ const ch = input[i];
3302
+ if (ch === "%" && i + 2 < input.length) {
3252
3303
  const hex3 = input.slice(i + 1, i + 3);
3253
3304
  if (isHexPair(hex3)) {
3254
3305
  const normalizedHex = hex3.toUpperCase();
@@ -3262,10 +3313,152 @@ var require_utils = __commonJS((exports, module) => {
3262
3313
  continue;
3263
3314
  }
3264
3315
  }
3265
- if (isPathCharacter(input[i])) {
3266
- output += input[i];
3316
+ if (isPathCharacter(ch)) {
3317
+ output += ch;
3267
3318
  } else {
3268
- output += escape(input[i]);
3319
+ const code = input.charCodeAt(i);
3320
+ if (code < 128) {
3321
+ output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
3322
+ } else if (code < 55296 || code > 57343) {
3323
+ output += percentEncodeNonAscii(code);
3324
+ } else if (code <= 56319 && i + 1 < input.length) {
3325
+ const low = input.charCodeAt(i + 1);
3326
+ if (low >= 56320 && low <= 57343) {
3327
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3328
+ i++;
3329
+ } else {
3330
+ output += percentEncodeNonAscii(65533);
3331
+ }
3332
+ } else {
3333
+ output += percentEncodeNonAscii(65533);
3334
+ }
3335
+ }
3336
+ }
3337
+ return output;
3338
+ }
3339
+ function serializePathEncoding(input, pathNoScheme = false) {
3340
+ let output = "";
3341
+ let firstSegment = pathNoScheme && input[0] !== "/";
3342
+ for (let i = 0;i < input.length; i++) {
3343
+ const ch = input[i];
3344
+ if (ch === "%" && i + 2 < input.length) {
3345
+ const hex3 = input.slice(i + 1, i + 3);
3346
+ if (isHexPair(hex3)) {
3347
+ output += "%" + hex3.toUpperCase();
3348
+ i += 2;
3349
+ continue;
3350
+ }
3351
+ }
3352
+ if (ch === "/") {
3353
+ firstSegment = false;
3354
+ }
3355
+ if (isPathCharacter(ch) && (ch !== ":" || !firstSegment)) {
3356
+ output += ch;
3357
+ } else {
3358
+ const code = input.charCodeAt(i);
3359
+ if (code < 128) {
3360
+ output += BYTE_HEX[code];
3361
+ } else if (code < 55296 || code > 57343) {
3362
+ output += percentEncodeNonAscii(code);
3363
+ } else if (code <= 56319 && i + 1 < input.length) {
3364
+ const low = input.charCodeAt(i + 1);
3365
+ if (low >= 56320 && low <= 57343) {
3366
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3367
+ i++;
3368
+ } else {
3369
+ output += percentEncodeNonAscii(65533);
3370
+ }
3371
+ } else {
3372
+ output += percentEncodeNonAscii(65533);
3373
+ }
3374
+ }
3375
+ }
3376
+ return output;
3377
+ }
3378
+ function encodeComponent(input, isAllowed) {
3379
+ let output = "";
3380
+ for (let i = 0;i < input.length; i++) {
3381
+ const ch = input[i];
3382
+ if (ch === "%" && i + 2 < input.length) {
3383
+ const hex3 = input.slice(i + 1, i + 3);
3384
+ if (isHexPair(hex3)) {
3385
+ output += "%" + hex3.toUpperCase();
3386
+ i += 2;
3387
+ continue;
3388
+ }
3389
+ }
3390
+ if (isAllowed(ch)) {
3391
+ output += ch;
3392
+ } else {
3393
+ const code = input.charCodeAt(i);
3394
+ if (code < 128) {
3395
+ output += BYTE_HEX[code];
3396
+ } else if (code < 55296 || code > 57343) {
3397
+ output += percentEncodeNonAscii(code);
3398
+ } else if (code <= 56319 && i + 1 < input.length) {
3399
+ const low = input.charCodeAt(i + 1);
3400
+ if (low >= 56320 && low <= 57343) {
3401
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3402
+ i++;
3403
+ } else {
3404
+ output += percentEncodeNonAscii(65533);
3405
+ }
3406
+ } else {
3407
+ output += percentEncodeNonAscii(65533);
3408
+ }
3409
+ }
3410
+ }
3411
+ return output;
3412
+ }
3413
+ function encodeUserinfo(input) {
3414
+ return encodeComponent(input, isUserinfoCharacter);
3415
+ }
3416
+ function encodeQuery(input) {
3417
+ return encodeComponent(input, isQueryFragmentCharacter);
3418
+ }
3419
+ function encodeFragment(input) {
3420
+ return encodeComponent(input, isQueryFragmentCharacter);
3421
+ }
3422
+ function isEscapeSafe(cp) {
3423
+ return cp >= 48 && cp <= 57 || cp >= 65 && cp <= 90 || cp >= 97 && cp <= 122 || cp === 42 || cp === 43 || cp === 45 || cp === 46 || cp === 47 || cp === 64 || cp === 95;
3424
+ }
3425
+ function normalizeQueryFragmentEncoding(input) {
3426
+ let output = "";
3427
+ for (let i = 0;i < input.length; i++) {
3428
+ const ch = input[i];
3429
+ if (ch === "%" && i + 2 < input.length) {
3430
+ const hex3 = input.slice(i + 1, i + 3);
3431
+ if (isHexPair(hex3)) {
3432
+ const normalizedHex = hex3.toUpperCase();
3433
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
3434
+ if (isUnreserved(decoded)) {
3435
+ output += decoded;
3436
+ } else {
3437
+ output += "%" + normalizedHex;
3438
+ }
3439
+ i += 2;
3440
+ continue;
3441
+ }
3442
+ }
3443
+ if (isQueryFragmentCharacter(ch)) {
3444
+ output += ch;
3445
+ } else {
3446
+ const code = input.charCodeAt(i);
3447
+ if (code < 128) {
3448
+ output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
3449
+ } else if (code < 55296 || code > 57343) {
3450
+ output += percentEncodeNonAscii(code);
3451
+ } else if (code <= 56319 && i + 1 < input.length) {
3452
+ const low = input.charCodeAt(i + 1);
3453
+ if (low >= 56320 && low <= 57343) {
3454
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3455
+ i++;
3456
+ } else {
3457
+ output += percentEncodeNonAscii(65533);
3458
+ }
3459
+ } else {
3460
+ output += percentEncodeNonAscii(65533);
3461
+ }
3269
3462
  }
3270
3463
  }
3271
3464
  return output;
@@ -3288,14 +3481,18 @@ var require_utils = __commonJS((exports, module) => {
3288
3481
  function recomposeAuthority(component) {
3289
3482
  const uriTokens = [];
3290
3483
  if (component.userinfo !== undefined) {
3291
- uriTokens.push(component.userinfo);
3484
+ uriTokens.push(encodeUserinfo(component.userinfo));
3292
3485
  uriTokens.push("@");
3293
3486
  }
3294
3487
  if (component.host !== undefined) {
3295
- let host = unescape(component.host);
3488
+ let host = component.host;
3296
3489
  if (!isIPv4(host)) {
3297
- const ipV6res = normalizeIPv6(host);
3298
- if (ipV6res.isIPV6 === true) {
3490
+ let ipV6res = normalizeIPv6(host);
3491
+ if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {
3492
+ host = normalizePercentEncoding(host, true);
3493
+ ipV6res = normalizeIPv6(host);
3494
+ }
3495
+ if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) {
3299
3496
  host = `[${ipV6res.escapedHost}]`;
3300
3497
  } else {
3301
3498
  host = reescapeHostDelimiters(host, false);
@@ -3304,8 +3501,12 @@ var require_utils = __commonJS((exports, module) => {
3304
3501
  uriTokens.push(host);
3305
3502
  }
3306
3503
  if (typeof component.port === "number" || typeof component.port === "string") {
3504
+ const port = String(component.port);
3505
+ if (!isPort(port)) {
3506
+ throw new TypeError("URI port is malformed.");
3507
+ }
3307
3508
  uriTokens.push(":");
3308
- uriTokens.push(String(component.port));
3509
+ uriTokens.push(port);
3309
3510
  }
3310
3511
  return uriTokens.length ? uriTokens.join("") : undefined;
3311
3512
  }
@@ -3315,6 +3516,11 @@ var require_utils = __commonJS((exports, module) => {
3315
3516
  reescapeHostDelimiters,
3316
3517
  normalizePercentEncoding,
3317
3518
  normalizePathEncoding,
3519
+ serializePathEncoding,
3520
+ normalizeQueryFragmentEncoding,
3521
+ encodeUserinfo,
3522
+ encodeQuery,
3523
+ encodeFragment,
3318
3524
  escapePreservingEscapes,
3319
3525
  removeDotSegments,
3320
3526
  isIPv4,
@@ -3327,7 +3533,7 @@ var require_utils = __commonJS((exports, module) => {
3327
3533
  // ../../node_modules/fast-uri/lib/schemes.js
3328
3534
  var require_schemes = __commonJS((exports, module) => {
3329
3535
  var { isUUID } = require_utils();
3330
- var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
3536
+ var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
3331
3537
  var supportedSchemeNames = [
3332
3538
  "http",
3333
3539
  "https",
@@ -3382,9 +3588,10 @@ var require_schemes = __commonJS((exports, module) => {
3382
3588
  wsComponent.secure = undefined;
3383
3589
  }
3384
3590
  if (wsComponent.resourceName) {
3385
- const [path, query] = wsComponent.resourceName.split("?");
3591
+ const queryIndex = wsComponent.resourceName.indexOf("?");
3592
+ const path = queryIndex === -1 ? wsComponent.resourceName : wsComponent.resourceName.slice(0, queryIndex);
3386
3593
  wsComponent.path = path && path !== "/" ? path : undefined;
3387
- wsComponent.query = query;
3594
+ wsComponent.query = queryIndex === -1 ? undefined : wsComponent.resourceName.slice(queryIndex + 1);
3388
3595
  wsComponent.resourceName = undefined;
3389
3596
  }
3390
3597
  wsComponent.fragment = undefined;
@@ -3396,7 +3603,7 @@ var require_schemes = __commonJS((exports, module) => {
3396
3603
  return urnComponent;
3397
3604
  }
3398
3605
  const matches = urnComponent.path.match(URN_REG);
3399
- if (matches) {
3606
+ if (matches && matches[0] === urnComponent.path) {
3400
3607
  const scheme = options.scheme || urnComponent.scheme || "urn";
3401
3608
  urnComponent.nid = matches[1].toLowerCase();
3402
3609
  urnComponent.nss = matches[2];
@@ -3500,8 +3707,17 @@ var require_schemes = __commonJS((exports, module) => {
3500
3707
 
3501
3708
  // ../../node_modules/fast-uri/index.js
3502
3709
  var require_fast_uri = __commonJS((exports, module) => {
3503
- var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
3710
+ var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
3504
3711
  var { SCHEMES, getSchemeHandler } = require_schemes();
3712
+ var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
3713
+ var MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
3714
+ function decodeValidScheme(scheme) {
3715
+ const decodedScheme = unescape(String(scheme));
3716
+ if (!VALID_SCHEME.test(decodedScheme)) {
3717
+ throw new TypeError(MALFORMED_SCHEME_ERROR);
3718
+ }
3719
+ return decodedScheme;
3720
+ }
3505
3721
  function normalize(uri, options) {
3506
3722
  if (typeof uri === "string") {
3507
3723
  uri = normalizeString(uri, options);
@@ -3512,12 +3728,34 @@ var require_fast_uri = __commonJS((exports, module) => {
3512
3728
  }
3513
3729
  function resolve(baseURI, relativeURI, options) {
3514
3730
  const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
3515
- const { parsed: baseParsed, malformedAuthorityOrPort: baseMalformed } = parseWithStatus(baseURI, schemelessOptions);
3516
- const { parsed: relativeParsed, malformedAuthorityOrPort: relativeMalformed } = parseWithStatus(relativeURI, schemelessOptions);
3517
- if (baseMalformed || relativeMalformed) {
3731
+ const {
3732
+ parsed: baseParsed,
3733
+ malformedAuthorityOrPort: baseMalformed,
3734
+ malformedPercentEncoding: baseMalformedPercentEncoding,
3735
+ malformedSchemeSpecific: baseMalformedSchemeSpecific,
3736
+ malformedHost: baseMalformedHost,
3737
+ malformedScheme: baseMalformedScheme
3738
+ } = parseWithStatus(baseURI, schemelessOptions);
3739
+ const {
3740
+ parsed: relativeParsed,
3741
+ malformedAuthorityOrPort: relativeMalformed,
3742
+ malformedPercentEncoding: relativeMalformedPercentEncoding,
3743
+ malformedSchemeSpecific: relativeMalformedSchemeSpecific,
3744
+ malformedHost: relativeMalformedHost,
3745
+ malformedScheme: relativeMalformedScheme
3746
+ } = parseWithStatus(relativeURI, schemelessOptions);
3747
+ if (baseMalformed || relativeMalformed || baseMalformedPercentEncoding || relativeMalformedPercentEncoding || baseMalformedSchemeSpecific || relativeMalformedSchemeSpecific || baseMalformedHost || relativeMalformedHost || baseMalformedScheme || relativeMalformedScheme) {
3518
3748
  throw new Error(baseParsed.error || relativeParsed.error || "URI is malformed.");
3519
3749
  }
3520
3750
  const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
3751
+ const resolvedSchemeHandler = getSchemeHandler(options && options.scheme || resolved.scheme);
3752
+ const resolvedHost = resolved.host;
3753
+ const resolvedHostIsIP = resolvedHost !== undefined && resolvedHost !== "" && (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
3754
+ canonicalizeHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP);
3755
+ const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !/\P{ASCII}/u.test(resolvedHost);
3756
+ if (resolved.error && !encodedASCIIHost) {
3757
+ throw new Error(resolved.error);
3758
+ }
3521
3759
  schemelessOptions.skipEscape = true;
3522
3760
  return serialize(resolved, schemelessOptions);
3523
3761
  }
@@ -3577,7 +3815,7 @@ var require_fast_uri = __commonJS((exports, module) => {
3577
3815
  function equal(uriA, uriB, options) {
3578
3816
  const normalizedA = normalizeComparableURI(uriA, options);
3579
3817
  const normalizedB = normalizeComparableURI(uriB, options);
3580
- return normalizedA !== undefined && normalizedB !== undefined && normalizedA.toLowerCase() === normalizedB.toLowerCase();
3818
+ return normalizedA !== undefined && normalizedB !== undefined && normalizedA === normalizedB;
3581
3819
  }
3582
3820
  function serialize(cmpts, opts) {
3583
3821
  const component = {
@@ -3598,20 +3836,23 @@ var require_fast_uri = __commonJS((exports, module) => {
3598
3836
  };
3599
3837
  const options = Object.assign({}, opts);
3600
3838
  const uriTokens = [];
3839
+ if (component.scheme) {
3840
+ component.scheme = decodeValidScheme(component.scheme);
3841
+ }
3601
3842
  const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
3602
3843
  if (schemeHandler && schemeHandler.serialize)
3603
3844
  schemeHandler.serialize(component, options);
3845
+ const hasAuthority = component.userinfo !== undefined || component.host !== undefined || component.port !== undefined;
3846
+ const pathNoScheme = !options.skipEscape && component.scheme === undefined && !hasAuthority;
3604
3847
  if (component.path !== undefined) {
3605
3848
  if (!options.skipEscape) {
3606
- component.path = escapePreservingEscapes(component.path);
3607
- if (component.scheme !== undefined) {
3608
- component.path = component.path.split("%3A").join(":");
3609
- }
3849
+ component.path = serializePathEncoding(component.path, pathNoScheme);
3610
3850
  } else {
3611
3851
  component.path = normalizePercentEncoding(component.path);
3612
3852
  }
3613
3853
  }
3614
3854
  if (options.reference !== "suffix" && component.scheme) {
3855
+ component.scheme = decodeValidScheme(component.scheme);
3615
3856
  uriTokens.push(component.scheme, ":");
3616
3857
  }
3617
3858
  const authority = recomposeAuthority(component);
@@ -3629,16 +3870,19 @@ var require_fast_uri = __commonJS((exports, module) => {
3629
3870
  if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
3630
3871
  s = removeDotSegments(s);
3631
3872
  }
3873
+ if (pathNoScheme) {
3874
+ s = serializePathEncoding(s, true);
3875
+ }
3632
3876
  if (authority === undefined && s[0] === "/" && s[1] === "/") {
3633
3877
  s = "/%2F" + s.slice(2);
3634
3878
  }
3635
3879
  uriTokens.push(s);
3636
3880
  }
3637
3881
  if (component.query !== undefined) {
3638
- uriTokens.push("?", component.query);
3882
+ uriTokens.push("?", encodeQuery(component.query));
3639
3883
  }
3640
3884
  if (component.fragment !== undefined) {
3641
- uriTokens.push("#", component.fragment);
3885
+ uriTokens.push("#", encodeFragment(component.fragment));
3642
3886
  }
3643
3887
  return uriTokens.join("");
3644
3888
  }
@@ -3654,6 +3898,36 @@ var require_fast_uri = __commonJS((exports, module) => {
3654
3898
  }
3655
3899
  return;
3656
3900
  }
3901
+ function hasMalformedPercentEncoding(component) {
3902
+ if (component === undefined)
3903
+ return false;
3904
+ let percent = component.indexOf("%");
3905
+ while (percent !== -1) {
3906
+ if (percent + 2 >= component.length || !/^[\da-f]{2}$/iu.test(component.slice(percent + 1, percent + 3))) {
3907
+ return true;
3908
+ }
3909
+ percent = component.indexOf("%", percent + 3);
3910
+ }
3911
+ return false;
3912
+ }
3913
+ function isIPLiteral(host) {
3914
+ return host[0] === "[" && host[host.length - 1] === "]";
3915
+ }
3916
+ function hasMalformedComponentPercentEncoding(matches) {
3917
+ const host = matches[4];
3918
+ return hasMalformedPercentEncoding(matches[3]) || host !== undefined && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
3919
+ }
3920
+ function canonicalizeHost(parsed, options, schemeHandler, isIP) {
3921
+ if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
3922
+ try {
3923
+ parsed.host = new URL("http://" + parsed.host).hostname;
3924
+ } catch (e) {
3925
+ parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
3926
+ return true;
3927
+ }
3928
+ }
3929
+ return false;
3930
+ }
3657
3931
  function parseWithStatus(uri, opts) {
3658
3932
  const options = Object.assign({}, opts);
3659
3933
  const parsed = {
@@ -3666,6 +3940,11 @@ var require_fast_uri = __commonJS((exports, module) => {
3666
3940
  fragment: undefined
3667
3941
  };
3668
3942
  let malformedAuthorityOrPort = false;
3943
+ let malformedPercentEncoding = false;
3944
+ let malformedSchemeSpecific = false;
3945
+ let malformedHost = false;
3946
+ let malformedIPLiteral = false;
3947
+ let malformedScheme = false;
3669
3948
  let isIP = false;
3670
3949
  if (options.reference === "suffix") {
3671
3950
  if (options.scheme) {
@@ -3702,6 +3981,19 @@ var require_fast_uri = __commonJS((exports, module) => {
3702
3981
  parsed.path = matches[6] || "";
3703
3982
  parsed.query = matches[7];
3704
3983
  parsed.fragment = matches[8];
3984
+ if (parsed.scheme !== undefined) {
3985
+ const decodedScheme = unescape(parsed.scheme);
3986
+ if (VALID_SCHEME.test(decodedScheme)) {
3987
+ parsed.scheme = decodedScheme.toLowerCase();
3988
+ } else {
3989
+ parsed.error = parsed.error || MALFORMED_SCHEME_ERROR;
3990
+ malformedScheme = true;
3991
+ }
3992
+ }
3993
+ malformedPercentEncoding = hasMalformedComponentPercentEncoding(matches);
3994
+ if (malformedPercentEncoding) {
3995
+ parsed.error = parsed.error || "URI contains malformed percent-encoding.";
3996
+ }
3705
3997
  if (isNaN(parsed.port)) {
3706
3998
  parsed.port = matches[5];
3707
3999
  }
@@ -3713,9 +4005,16 @@ var require_fast_uri = __commonJS((exports, module) => {
3713
4005
  if (parsed.host) {
3714
4006
  const ipv4result = isIPv4(parsed.host);
3715
4007
  if (ipv4result === false) {
4008
+ const bracketedIPLiteral = isIPLiteral(parsed.host);
4009
+ const hasIPLiteralBracket = parsed.host.indexOf("[") !== -1 || parsed.host.indexOf("]") !== -1;
3716
4010
  const ipv6result = normalizeIPv6(parsed.host);
3717
- parsed.host = ipv6result.host.toLowerCase();
3718
- isIP = ipv6result.isIPV6;
4011
+ isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
4012
+ malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
4013
+ parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
4014
+ if (malformedIPLiteral) {
4015
+ parsed.error = parsed.error || "URI host is malformed.";
4016
+ malformedAuthorityOrPort = true;
4017
+ }
3719
4018
  } else {
3720
4019
  isIP = true;
3721
4020
  }
@@ -3733,42 +4032,36 @@ var require_fast_uri = __commonJS((exports, module) => {
3733
4032
  parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
3734
4033
  }
3735
4034
  const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
3736
- if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
3737
- if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
3738
- try {
3739
- parsed.host = new URL("http://" + parsed.host).hostname;
3740
- } catch (e) {
3741
- parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
3742
- }
3743
- }
4035
+ if (!malformedIPLiteral) {
4036
+ malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
3744
4037
  }
3745
4038
  if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
3746
4039
  if (uri.indexOf("%") !== -1) {
3747
- if (parsed.scheme !== undefined) {
3748
- parsed.scheme = unescape(parsed.scheme);
3749
- }
3750
- if (parsed.host !== undefined) {
3751
- parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP);
4040
+ if (parsed.host !== undefined && !malformedIPLiteral) {
4041
+ const host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
4042
+ parsed.host = reescapeHostDelimiters(host, isIP);
3752
4043
  }
3753
4044
  }
3754
4045
  if (parsed.path) {
3755
4046
  parsed.path = normalizePathEncoding(parsed.path);
3756
4047
  }
4048
+ if (parsed.query) {
4049
+ parsed.query = normalizeQueryFragmentEncoding(parsed.query);
4050
+ }
3757
4051
  if (parsed.fragment) {
3758
- try {
3759
- parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
3760
- } catch {
3761
- parsed.error = parsed.error || "URI malformed";
3762
- }
4052
+ parsed.fragment = normalizeQueryFragmentEncoding(parsed.fragment);
3763
4053
  }
3764
4054
  }
3765
4055
  if (schemeHandler && schemeHandler.parse) {
3766
4056
  schemeHandler.parse(parsed, options);
4057
+ if (schemeHandler === SCHEMES.urn && parsed.nid === undefined) {
4058
+ malformedSchemeSpecific = true;
4059
+ }
3767
4060
  }
3768
4061
  } else {
3769
4062
  parsed.error = parsed.error || "URI can not be parsed.";
3770
4063
  }
3771
- return { parsed, malformedAuthorityOrPort };
4064
+ return { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme };
3772
4065
  }
3773
4066
  function parse5(uri, opts) {
3774
4067
  return parseWithStatus(uri, opts).parsed;
@@ -3777,20 +4070,28 @@ var require_fast_uri = __commonJS((exports, module) => {
3777
4070
  return normalizeStringWithStatus(uri, opts).normalized;
3778
4071
  }
3779
4072
  function normalizeStringWithStatus(uri, opts) {
3780
- const { parsed, malformedAuthorityOrPort } = parseWithStatus(uri, opts);
4073
+ const { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = parseWithStatus(uri, opts);
3781
4074
  return {
3782
- normalized: malformedAuthorityOrPort ? uri : serialize(parsed, opts),
3783
- malformedAuthorityOrPort
4075
+ normalized: malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? uri : serialize(parsed, opts),
4076
+ malformedAuthorityOrPort,
4077
+ malformedPercentEncoding,
4078
+ malformedSchemeSpecific,
4079
+ malformedHost,
4080
+ malformedScheme
3784
4081
  };
3785
4082
  }
3786
4083
  function normalizeComparableURI(uri, opts) {
3787
- if (typeof uri === "string") {
3788
- const { normalized, malformedAuthorityOrPort } = normalizeStringWithStatus(uri, opts);
3789
- return malformedAuthorityOrPort ? undefined : normalized;
4084
+ if (typeof uri !== "string" && typeof uri !== "object") {
4085
+ return;
3790
4086
  }
3791
- if (typeof uri === "object") {
3792
- return serialize(uri, opts);
4087
+ let value;
4088
+ try {
4089
+ value = typeof uri === "string" ? uri : serialize(uri, opts);
4090
+ } catch {
4091
+ return;
3793
4092
  }
4093
+ const { normalized, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = normalizeStringWithStatus(value, opts);
4094
+ return malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? undefined : normalized;
3794
4095
  }
3795
4096
  var fastUri = {
3796
4097
  SCHEMES,
@@ -6580,7 +6881,7 @@ var require_dist = __commonJS((exports, module) => {
6580
6881
  module.exports.default = ajvErrors;
6581
6882
  });
6582
6883
 
6583
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/internal/constants.js
6884
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/internal/constants.js
6584
6885
  var require_constants = __commonJS((exports, module) => {
6585
6886
  var SEMVER_SPEC_VERSION = "2.0.0";
6586
6887
  var MAX_LENGTH = 256;
@@ -6608,13 +6909,13 @@ var require_constants = __commonJS((exports, module) => {
6608
6909
  };
6609
6910
  });
6610
6911
 
6611
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/internal/debug.js
6912
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/internal/debug.js
6612
6913
  var require_debug = __commonJS((exports, module) => {
6613
6914
  var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
6614
6915
  module.exports = debug;
6615
6916
  });
6616
6917
 
6617
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/internal/re.js
6918
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/internal/re.js
6618
6919
  var require_re = __commonJS((exports, module) => {
6619
6920
  var {
6620
6921
  MAX_SAFE_COMPONENT_LENGTH,
@@ -6699,7 +7000,7 @@ var require_re = __commonJS((exports, module) => {
6699
7000
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
6700
7001
  });
6701
7002
 
6702
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/internal/parse-options.js
7003
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/internal/parse-options.js
6703
7004
  var require_parse_options = __commonJS((exports, module) => {
6704
7005
  var looseOption = Object.freeze({ loose: true });
6705
7006
  var emptyOpts = Object.freeze({});
@@ -6715,7 +7016,7 @@ var require_parse_options = __commonJS((exports, module) => {
6715
7016
  module.exports = parseOptions;
6716
7017
  });
6717
7018
 
6718
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/internal/identifiers.js
7019
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/internal/identifiers.js
6719
7020
  var require_identifiers = __commonJS((exports, module) => {
6720
7021
  var numeric = /^[0-9]+$/;
6721
7022
  var compareIdentifiers = (a, b) => {
@@ -6737,7 +7038,7 @@ var require_identifiers = __commonJS((exports, module) => {
6737
7038
  };
6738
7039
  });
6739
7040
 
6740
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/classes/semver.js
7041
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/classes/semver.js
6741
7042
  var require_semver = __commonJS((exports, module) => {
6742
7043
  var debug = require_debug();
6743
7044
  var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
@@ -7006,7 +7307,7 @@ var require_semver = __commonJS((exports, module) => {
7006
7307
  module.exports = SemVer;
7007
7308
  });
7008
7309
 
7009
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/parse.js
7310
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/parse.js
7010
7311
  var require_parse = __commonJS((exports, module) => {
7011
7312
  var SemVer = require_semver();
7012
7313
  var parse9 = (version3, options, throwErrors = false) => {
@@ -7025,7 +7326,7 @@ var require_parse = __commonJS((exports, module) => {
7025
7326
  module.exports = parse9;
7026
7327
  });
7027
7328
 
7028
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/valid.js
7329
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/valid.js
7029
7330
  var require_valid = __commonJS((exports, module) => {
7030
7331
  var parse9 = require_parse();
7031
7332
  var valid = (version3, options) => {
@@ -7035,7 +7336,7 @@ var require_valid = __commonJS((exports, module) => {
7035
7336
  module.exports = valid;
7036
7337
  });
7037
7338
 
7038
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/clean.js
7339
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/clean.js
7039
7340
  var require_clean = __commonJS((exports, module) => {
7040
7341
  var parse9 = require_parse();
7041
7342
  var clean = (version3, options) => {
@@ -7045,7 +7346,7 @@ var require_clean = __commonJS((exports, module) => {
7045
7346
  module.exports = clean;
7046
7347
  });
7047
7348
 
7048
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/inc.js
7349
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/inc.js
7049
7350
  var require_inc = __commonJS((exports, module) => {
7050
7351
  var SemVer = require_semver();
7051
7352
  var inc = (version3, release, options, identifier, identifierBase) => {
@@ -7063,7 +7364,7 @@ var require_inc = __commonJS((exports, module) => {
7063
7364
  module.exports = inc;
7064
7365
  });
7065
7366
 
7066
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/diff.js
7367
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/diff.js
7067
7368
  var require_diff = __commonJS((exports, module) => {
7068
7369
  var parse9 = require_parse();
7069
7370
  var diff = (version1, version22) => {
@@ -7104,28 +7405,28 @@ var require_diff = __commonJS((exports, module) => {
7104
7405
  module.exports = diff;
7105
7406
  });
7106
7407
 
7107
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/major.js
7408
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/major.js
7108
7409
  var require_major = __commonJS((exports, module) => {
7109
7410
  var SemVer = require_semver();
7110
7411
  var major = (a, loose) => new SemVer(a, loose).major;
7111
7412
  module.exports = major;
7112
7413
  });
7113
7414
 
7114
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/minor.js
7415
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/minor.js
7115
7416
  var require_minor = __commonJS((exports, module) => {
7116
7417
  var SemVer = require_semver();
7117
7418
  var minor = (a, loose) => new SemVer(a, loose).minor;
7118
7419
  module.exports = minor;
7119
7420
  });
7120
7421
 
7121
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/patch.js
7422
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/patch.js
7122
7423
  var require_patch = __commonJS((exports, module) => {
7123
7424
  var SemVer = require_semver();
7124
7425
  var patch = (a, loose) => new SemVer(a, loose).patch;
7125
7426
  module.exports = patch;
7126
7427
  });
7127
7428
 
7128
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/prerelease.js
7429
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/prerelease.js
7129
7430
  var require_prerelease = __commonJS((exports, module) => {
7130
7431
  var parse9 = require_parse();
7131
7432
  var prerelease = (version3, options) => {
@@ -7135,28 +7436,28 @@ var require_prerelease = __commonJS((exports, module) => {
7135
7436
  module.exports = prerelease;
7136
7437
  });
7137
7438
 
7138
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/compare.js
7439
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/compare.js
7139
7440
  var require_compare = __commonJS((exports, module) => {
7140
7441
  var SemVer = require_semver();
7141
7442
  var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
7142
7443
  module.exports = compare;
7143
7444
  });
7144
7445
 
7145
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/rcompare.js
7446
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/rcompare.js
7146
7447
  var require_rcompare = __commonJS((exports, module) => {
7147
7448
  var compare = require_compare();
7148
7449
  var rcompare = (a, b, loose) => compare(b, a, loose);
7149
7450
  module.exports = rcompare;
7150
7451
  });
7151
7452
 
7152
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/compare-loose.js
7453
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/compare-loose.js
7153
7454
  var require_compare_loose = __commonJS((exports, module) => {
7154
7455
  var compare = require_compare();
7155
7456
  var compareLoose = (a, b) => compare(a, b, true);
7156
7457
  module.exports = compareLoose;
7157
7458
  });
7158
7459
 
7159
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/compare-build.js
7460
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/compare-build.js
7160
7461
  var require_compare_build = __commonJS((exports, module) => {
7161
7462
  var SemVer = require_semver();
7162
7463
  var compareBuild = (a, b, loose) => {
@@ -7167,63 +7468,63 @@ var require_compare_build = __commonJS((exports, module) => {
7167
7468
  module.exports = compareBuild;
7168
7469
  });
7169
7470
 
7170
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/sort.js
7471
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/sort.js
7171
7472
  var require_sort = __commonJS((exports, module) => {
7172
7473
  var compareBuild = require_compare_build();
7173
7474
  var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
7174
7475
  module.exports = sort;
7175
7476
  });
7176
7477
 
7177
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/rsort.js
7478
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/rsort.js
7178
7479
  var require_rsort = __commonJS((exports, module) => {
7179
7480
  var compareBuild = require_compare_build();
7180
7481
  var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
7181
7482
  module.exports = rsort;
7182
7483
  });
7183
7484
 
7184
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/gt.js
7485
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/gt.js
7185
7486
  var require_gt = __commonJS((exports, module) => {
7186
7487
  var compare = require_compare();
7187
7488
  var gt = (a, b, loose) => compare(a, b, loose) > 0;
7188
7489
  module.exports = gt;
7189
7490
  });
7190
7491
 
7191
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/lt.js
7492
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/lt.js
7192
7493
  var require_lt = __commonJS((exports, module) => {
7193
7494
  var compare = require_compare();
7194
7495
  var lt = (a, b, loose) => compare(a, b, loose) < 0;
7195
7496
  module.exports = lt;
7196
7497
  });
7197
7498
 
7198
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/eq.js
7499
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/eq.js
7199
7500
  var require_eq = __commonJS((exports, module) => {
7200
7501
  var compare = require_compare();
7201
7502
  var eq = (a, b, loose) => compare(a, b, loose) === 0;
7202
7503
  module.exports = eq;
7203
7504
  });
7204
7505
 
7205
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/neq.js
7506
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/neq.js
7206
7507
  var require_neq = __commonJS((exports, module) => {
7207
7508
  var compare = require_compare();
7208
7509
  var neq = (a, b, loose) => compare(a, b, loose) !== 0;
7209
7510
  module.exports = neq;
7210
7511
  });
7211
7512
 
7212
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/gte.js
7513
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/gte.js
7213
7514
  var require_gte = __commonJS((exports, module) => {
7214
7515
  var compare = require_compare();
7215
7516
  var gte = (a, b, loose) => compare(a, b, loose) >= 0;
7216
7517
  module.exports = gte;
7217
7518
  });
7218
7519
 
7219
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/lte.js
7520
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/lte.js
7220
7521
  var require_lte = __commonJS((exports, module) => {
7221
7522
  var compare = require_compare();
7222
7523
  var lte = (a, b, loose) => compare(a, b, loose) <= 0;
7223
7524
  module.exports = lte;
7224
7525
  });
7225
7526
 
7226
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/cmp.js
7527
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/cmp.js
7227
7528
  var require_cmp = __commonJS((exports, module) => {
7228
7529
  var eq = require_eq();
7229
7530
  var neq = require_neq();
@@ -7270,7 +7571,7 @@ var require_cmp = __commonJS((exports, module) => {
7270
7571
  module.exports = cmp;
7271
7572
  });
7272
7573
 
7273
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/coerce.js
7574
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/coerce.js
7274
7575
  var require_coerce = __commonJS((exports, module) => {
7275
7576
  var SemVer = require_semver();
7276
7577
  var parse9 = require_parse();
@@ -7313,7 +7614,7 @@ var require_coerce = __commonJS((exports, module) => {
7313
7614
  module.exports = coerce;
7314
7615
  });
7315
7616
 
7316
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/truncate.js
7617
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/truncate.js
7317
7618
  var require_truncate = __commonJS((exports, module) => {
7318
7619
  var parse9 = require_parse();
7319
7620
  var constants = require_constants();
@@ -7351,7 +7652,7 @@ var require_truncate = __commonJS((exports, module) => {
7351
7652
  module.exports = truncate;
7352
7653
  });
7353
7654
 
7354
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/internal/lrucache.js
7655
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/internal/lrucache.js
7355
7656
  var require_lrucache = __commonJS((exports, module) => {
7356
7657
  class LRUCache {
7357
7658
  constructor() {
@@ -7386,7 +7687,7 @@ var require_lrucache = __commonJS((exports, module) => {
7386
7687
  module.exports = LRUCache;
7387
7688
  });
7388
7689
 
7389
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/classes/range.js
7690
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/classes/range.js
7390
7691
  var require_range = __commonJS((exports, module) => {
7391
7692
  var SPACE_CHARACTERS = /\s+/g;
7392
7693
 
@@ -7760,7 +8061,7 @@ var require_range = __commonJS((exports, module) => {
7760
8061
  };
7761
8062
  });
7762
8063
 
7763
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/classes/comparator.js
8064
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/classes/comparator.js
7764
8065
  var require_comparator = __commonJS((exports, module) => {
7765
8066
  var ANY = Symbol("SemVer ANY");
7766
8067
 
@@ -7871,7 +8172,7 @@ var require_comparator = __commonJS((exports, module) => {
7871
8172
  var Range = require_range();
7872
8173
  });
7873
8174
 
7874
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/satisfies.js
8175
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/functions/satisfies.js
7875
8176
  var require_satisfies = __commonJS((exports, module) => {
7876
8177
  var Range = require_range();
7877
8178
  var satisfies = (version3, range, options) => {
@@ -7885,14 +8186,14 @@ var require_satisfies = __commonJS((exports, module) => {
7885
8186
  module.exports = satisfies;
7886
8187
  });
7887
8188
 
7888
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/to-comparators.js
8189
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/to-comparators.js
7889
8190
  var require_to_comparators = __commonJS((exports, module) => {
7890
8191
  var Range = require_range();
7891
8192
  var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
7892
8193
  module.exports = toComparators;
7893
8194
  });
7894
8195
 
7895
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/max-satisfying.js
8196
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/max-satisfying.js
7896
8197
  var require_max_satisfying = __commonJS((exports, module) => {
7897
8198
  var SemVer = require_semver();
7898
8199
  var Range = require_range();
@@ -7918,7 +8219,7 @@ var require_max_satisfying = __commonJS((exports, module) => {
7918
8219
  module.exports = maxSatisfying;
7919
8220
  });
7920
8221
 
7921
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/min-satisfying.js
8222
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/min-satisfying.js
7922
8223
  var require_min_satisfying = __commonJS((exports, module) => {
7923
8224
  var SemVer = require_semver();
7924
8225
  var Range = require_range();
@@ -7944,7 +8245,7 @@ var require_min_satisfying = __commonJS((exports, module) => {
7944
8245
  module.exports = minSatisfying;
7945
8246
  });
7946
8247
 
7947
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/min-version.js
8248
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/min-version.js
7948
8249
  var require_min_version = __commonJS((exports, module) => {
7949
8250
  var SemVer = require_semver();
7950
8251
  var Range = require_range();
@@ -7998,7 +8299,7 @@ var require_min_version = __commonJS((exports, module) => {
7998
8299
  module.exports = minVersion;
7999
8300
  });
8000
8301
 
8001
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/valid.js
8302
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/valid.js
8002
8303
  var require_valid2 = __commonJS((exports, module) => {
8003
8304
  var Range = require_range();
8004
8305
  var validRange = (range, options) => {
@@ -8011,7 +8312,7 @@ var require_valid2 = __commonJS((exports, module) => {
8011
8312
  module.exports = validRange;
8012
8313
  });
8013
8314
 
8014
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/outside.js
8315
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/outside.js
8015
8316
  var require_outside = __commonJS((exports, module) => {
8016
8317
  var SemVer = require_semver();
8017
8318
  var Comparator = require_comparator();
@@ -8077,21 +8378,21 @@ var require_outside = __commonJS((exports, module) => {
8077
8378
  module.exports = outside;
8078
8379
  });
8079
8380
 
8080
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/gtr.js
8381
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/gtr.js
8081
8382
  var require_gtr = __commonJS((exports, module) => {
8082
8383
  var outside = require_outside();
8083
8384
  var gtr = (version3, range, options) => outside(version3, range, ">", options);
8084
8385
  module.exports = gtr;
8085
8386
  });
8086
8387
 
8087
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/ltr.js
8388
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/ltr.js
8088
8389
  var require_ltr = __commonJS((exports, module) => {
8089
8390
  var outside = require_outside();
8090
8391
  var ltr = (version3, range, options) => outside(version3, range, "<", options);
8091
8392
  module.exports = ltr;
8092
8393
  });
8093
8394
 
8094
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/intersects.js
8395
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/intersects.js
8095
8396
  var require_intersects = __commonJS((exports, module) => {
8096
8397
  var Range = require_range();
8097
8398
  var intersects = (r1, r2, options) => {
@@ -8102,7 +8403,7 @@ var require_intersects = __commonJS((exports, module) => {
8102
8403
  module.exports = intersects;
8103
8404
  });
8104
8405
 
8105
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/simplify.js
8406
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/simplify.js
8106
8407
  var require_simplify = __commonJS((exports, module) => {
8107
8408
  var satisfies = require_satisfies();
8108
8409
  var compare = require_compare();
@@ -8149,7 +8450,7 @@ var require_simplify = __commonJS((exports, module) => {
8149
8450
  };
8150
8451
  });
8151
8452
 
8152
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/subset.js
8453
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/ranges/subset.js
8153
8454
  var require_subset = __commonJS((exports, module) => {
8154
8455
  var Range = require_range();
8155
8456
  var Comparator = require_comparator();
@@ -8309,7 +8610,7 @@ var require_subset = __commonJS((exports, module) => {
8309
8610
  module.exports = subset;
8310
8611
  });
8311
8612
 
8312
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/semver/index.js
8613
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/semver/index.js
8313
8614
  var require_semver2 = __commonJS((exports, module) => {
8314
8615
  var internalRe = require_re();
8315
8616
  var constants = require_constants();
@@ -8470,7 +8771,7 @@ var require_index_cjs = __commonJS((exports, module) => {
8470
8771
  module.exports = index;
8471
8772
  });
8472
8773
 
8473
- // ../../node_modules/@uipath/flow-schema/dist/chunk-OH7PIV4M.js
8774
+ // ../../node_modules/@uipath/flow-schema/dist/chunk-4LDHBBA7.js
8474
8775
  var SUPPORTED_LOCALES = ["en", "es", "pt", "de", "fr", "ja", "ko", "ru", "tr", "ro", "zh-CN", "zh-TW", "pt-BR", "es-MX"];
8475
8776
  var DEFAULT_LOCALE = "en";
8476
8777
  function normalizeCasing(locale) {
@@ -8532,20 +8833,20 @@ function createI18nRegistrar(options) {
8532
8833
  };
8533
8834
  }
8534
8835
  var globImport_locales_json = __glob({
8535
- "../../locales/de.json": () => import("./de-WMKOGI7B-r1821wpe.js"),
8536
- "../../locales/en.json": () => import("./en-X4DLPKLJ-dt1wtdm7.js"),
8537
- "../../locales/es-MX.json": () => import("./es-MX-U6YL5KQX-ynwxdjr8.js"),
8538
- "../../locales/es.json": () => import("./es-BVPGJUWA-9gk2g9yb.js"),
8539
- "../../locales/fr.json": () => import("./fr-EKTTDR7Z-bmpwp31r.js"),
8540
- "../../locales/ja.json": () => import("./ja-Y2YBTXNN-96cvy5av.js"),
8541
- "../../locales/ko.json": () => import("./ko-S33XAV26-cxf4dn2t.js"),
8542
- "../../locales/pt-BR.json": () => import("./pt-BR-JO45SCNI-4kbfnzc4.js"),
8543
- "../../locales/pt.json": () => import("./pt-W3NA4LIZ-f02gapvs.js"),
8544
- "../../locales/ro.json": () => import("./ro-WLKX6HF5-fcbe2zz8.js"),
8836
+ "../../locales/de.json": () => import("./de-5KVP66U6-f7knj511.js"),
8837
+ "../../locales/en.json": () => import("./en-4KXU7N7B-66fntxa2.js"),
8838
+ "../../locales/es-MX.json": () => import("./es-MX-XAVLOQW3-9b3cp9n8.js"),
8839
+ "../../locales/es.json": () => import("./es-VFPNVMP5-thm0z9sr.js"),
8840
+ "../../locales/fr.json": () => import("./fr-E5MDO4EG-exvrs7ge.js"),
8841
+ "../../locales/ja.json": () => import("./ja-DPO5PPLO-s2a7j3nj.js"),
8842
+ "../../locales/ko.json": () => import("./ko-ITOPNIYI-qz39kamf.js"),
8843
+ "../../locales/pt-BR.json": () => import("./pt-BR-BXURWX4W-dqr4dnf9.js"),
8844
+ "../../locales/pt.json": () => import("./pt-YI4VE4YQ-v7gjeg82.js"),
8845
+ "../../locales/ro.json": () => import("./ro-RKXZUG7Z-cm3xn3fj.js"),
8545
8846
  "../../locales/ru.json": () => import("./ru-WBLQ5B2U-awt245ky.js"),
8546
- "../../locales/tr.json": () => import("./tr-3U2W2XCA-zg3zcmq3.js"),
8547
- "../../locales/zh-CN.json": () => import("./zh-CN-IPZYQR3P-1h76csc4.js"),
8548
- "../../locales/zh-TW.json": () => import("./zh-TW-YPVSQVGT-wbybwpwt.js")
8847
+ "../../locales/tr.json": () => import("./tr-AA6O2WSR-ga1xnymp.js"),
8848
+ "../../locales/zh-CN.json": () => import("./zh-CN-R2KLHXQV-wttmznep.js"),
8849
+ "../../locales/zh-TW.json": () => import("./zh-TW-RJGCQANM-gqn0aca0.js")
8549
8850
  });
8550
8851
  var VALIDATION_NAMESPACE = "validation";
8551
8852
  var registerFlowSchemaI18n = createI18nRegistrar({
@@ -8554,6 +8855,122 @@ var registerFlowSchemaI18n = createI18nRegistrar({
8554
8855
  loadCatalog: (lng) => globImport_locales_json(`../../locales/${lng}.json`)
8555
8856
  });
8556
8857
 
8858
+ // ../../node_modules/@uipath/flow-schema/dist/chunk-756NT5WJ.js
8859
+ var RESERVED_WORDS = [
8860
+ "break",
8861
+ "case",
8862
+ "catch",
8863
+ "continue",
8864
+ "debugger",
8865
+ "default",
8866
+ "delete",
8867
+ "do",
8868
+ "else",
8869
+ "finally",
8870
+ "for",
8871
+ "function",
8872
+ "if",
8873
+ "in",
8874
+ "instanceof",
8875
+ "new",
8876
+ "return",
8877
+ "switch",
8878
+ "this",
8879
+ "throw",
8880
+ "try",
8881
+ "typeof",
8882
+ "var",
8883
+ "void",
8884
+ "while",
8885
+ "with",
8886
+ "class",
8887
+ "const",
8888
+ "enum",
8889
+ "export",
8890
+ "extends",
8891
+ "import",
8892
+ "super",
8893
+ "implements",
8894
+ "interface",
8895
+ "let",
8896
+ "package",
8897
+ "private",
8898
+ "protected",
8899
+ "public",
8900
+ "static",
8901
+ "yield"
8902
+ ];
8903
+ var VALID_IDENTIFIER_PATTERN = /^[a-zA-Z_][a-zA-Z0-9_]*$/;
8904
+ var FLAT_SEP = "__";
8905
+ function generateRandomId(length) {
8906
+ const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
8907
+ let result = "";
8908
+ for (let i = 0;i < length; i++) {
8909
+ result += chars.charAt(Math.floor(Math.random() * chars.length));
8910
+ }
8911
+ return result;
8912
+ }
8913
+ function generateNextId(prefix, count = 6) {
8914
+ return `${prefix}${generateRandomId(count)}`;
8915
+ }
8916
+ function isPlainObject(value) {
8917
+ return value !== null && typeof value === "object" && !Array.isArray(value);
8918
+ }
8919
+ function deepEqual(a, b) {
8920
+ if (a === b)
8921
+ return true;
8922
+ if (a === null || b === null)
8923
+ return a === b;
8924
+ if (a === undefined || b === undefined)
8925
+ return a === b;
8926
+ if (typeof a !== typeof b)
8927
+ return false;
8928
+ if (Array.isArray(a)) {
8929
+ if (!Array.isArray(b) || a.length !== b.length)
8930
+ return false;
8931
+ return a.every((val, i) => deepEqual(val, b[i]));
8932
+ }
8933
+ if (typeof a === "object") {
8934
+ if (Array.isArray(b))
8935
+ return false;
8936
+ const objA = a;
8937
+ const objB = b;
8938
+ const keysA = Object.keys(objA);
8939
+ const keysB = Object.keys(objB);
8940
+ if (keysA.length !== keysB.length)
8941
+ return false;
8942
+ return keysA.every((key) => (key in objB) && deepEqual(objA[key], objB[key]));
8943
+ }
8944
+ return false;
8945
+ }
8946
+ var IN_FILTER_OPERATOR = "is any of";
8947
+ function resolveReadResultMode(cfg) {
8948
+ return cfg?.resultMode === "multiple" ? "multiple" : "single";
8949
+ }
8950
+ function readExpressionText(value) {
8951
+ if (typeof value === "string")
8952
+ return value;
8953
+ if (!value || typeof value !== "object" || Array.isArray(value))
8954
+ return "";
8955
+ const expression = value.expression;
8956
+ return typeof expression === "string" ? expression : "";
8957
+ }
8958
+ function isJsExpressionShape(value) {
8959
+ if (!value || typeof value !== "object" || Array.isArray(value))
8960
+ return false;
8961
+ return value.type === "jsExpression";
8962
+ }
8963
+ function readEntityFilterValueListIsEmpty(row, multiRecord) {
8964
+ if (!multiRecord || row?.operator !== IN_FILTER_OPERATOR)
8965
+ return false;
8966
+ const text = readExpressionText(row.value);
8967
+ if (!row.field || !text.trim())
8968
+ return false;
8969
+ if (isJsExpressionShape(row.value))
8970
+ return false;
8971
+ return text.split(",").every((part) => !part.trim());
8972
+ }
8973
+
8557
8974
  // ../../node_modules/zod/v4/classic/external.js
8558
8975
  var exports_external = {};
8559
8976
  __export(exports_external, {
@@ -9185,7 +9602,7 @@ __export(exports_util, {
9185
9602
  jsonStringifyReplacer: () => jsonStringifyReplacer,
9186
9603
  joinValues: () => joinValues,
9187
9604
  issue: () => issue,
9188
- isPlainObject: () => isPlainObject,
9605
+ isPlainObject: () => isPlainObject2,
9189
9606
  isObject: () => isObject,
9190
9607
  hexToUint8Array: () => hexToUint8Array,
9191
9608
  getSizableOrigin: () => getSizableOrigin,
@@ -9367,7 +9784,7 @@ var allowsEval = /* @__PURE__ */ cached(() => {
9367
9784
  return false;
9368
9785
  }
9369
9786
  });
9370
- function isPlainObject(o) {
9787
+ function isPlainObject2(o) {
9371
9788
  if (isObject(o) === false)
9372
9789
  return false;
9373
9790
  const ctor = o.constructor;
@@ -9384,7 +9801,7 @@ function isPlainObject(o) {
9384
9801
  return true;
9385
9802
  }
9386
9803
  function shallowClone(o) {
9387
- if (isPlainObject(o))
9804
+ if (isPlainObject2(o))
9388
9805
  return { ...o };
9389
9806
  if (Array.isArray(o))
9390
9807
  return [...o];
@@ -9588,7 +10005,7 @@ function omit(schema, mask) {
9588
10005
  return clone(schema, def);
9589
10006
  }
9590
10007
  function extend(schema, shape) {
9591
- if (!isPlainObject(shape)) {
10008
+ if (!isPlainObject2(shape)) {
9592
10009
  throw new Error("Invalid input to extend: expected a plain object");
9593
10010
  }
9594
10011
  const checks = schema._zod.def.checks;
@@ -9611,7 +10028,7 @@ function extend(schema, shape) {
9611
10028
  return clone(schema, def);
9612
10029
  }
9613
10030
  function safeExtend(schema, shape) {
9614
- if (!isPlainObject(shape)) {
10031
+ if (!isPlainObject2(shape)) {
9615
10032
  throw new Error("Invalid input to safeExtend: expected a plain object");
9616
10033
  }
9617
10034
  const def = mergeDefs(schema._zod.def, {
@@ -11954,7 +12371,7 @@ function mergeValues(a, b) {
11954
12371
  if (a instanceof Date && b instanceof Date && +a === +b) {
11955
12372
  return { valid: true, data: a };
11956
12373
  }
11957
- if (isPlainObject(a) && isPlainObject(b)) {
12374
+ if (isPlainObject2(a) && isPlainObject2(b)) {
11958
12375
  const bKeys = Object.keys(b);
11959
12376
  const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
11960
12377
  const newObj = { ...a, ...b };
@@ -12140,7 +12557,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
12140
12557
  $ZodType.init(inst, def);
12141
12558
  inst._zod.parse = (payload, ctx) => {
12142
12559
  const input = payload.value;
12143
- if (!isPlainObject(input)) {
12560
+ if (!isPlainObject2(input)) {
12144
12561
  payload.issues.push({
12145
12562
  expected: "record",
12146
12563
  code: "invalid_type",
@@ -22830,7 +23247,7 @@ function date4(params) {
22830
23247
 
22831
23248
  // ../../node_modules/zod/v4/classic/external.js
22832
23249
  config(en_default2());
22833
- // ../../node_modules/@uipath/flow-schema/dist/chunk-7MRFRSDM.js
23250
+ // ../../node_modules/@uipath/flow-schema/dist/chunk-3ANVRIJ3.js
22834
23251
  var import_ajv = __toESM(require_ajv(), 1);
22835
23252
  var import_ajv_errors = __toESM(require_dist(), 1);
22836
23253
 
@@ -25385,7 +25802,7 @@ var hasLoadedNamespace = instance.hasLoadedNamespace;
25385
25802
  var loadNamespaces = instance.loadNamespaces;
25386
25803
  var loadLanguages = instance.loadLanguages;
25387
25804
 
25388
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/classic/external.js
25805
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/classic/external.js
25389
25806
  var exports_external2 = {};
25390
25807
  __export(exports_external2, {
25391
25808
  xid: () => xid4,
@@ -25597,7 +26014,7 @@ __export(exports_external2, {
25597
26014
  $brand: () => $brand2
25598
26015
  });
25599
26016
 
25600
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/index.js
26017
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/index.js
25601
26018
  var exports_core4 = {};
25602
26019
  __export(exports_core4, {
25603
26020
  version: () => version2,
@@ -25841,7 +26258,7 @@ __export(exports_core4, {
25841
26258
  $ZodAny: () => $ZodAny2
25842
26259
  });
25843
26260
 
25844
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/core.js
26261
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/core.js
25845
26262
  var NEVER2 = Object.freeze({
25846
26263
  status: "aborted"
25847
26264
  });
@@ -25901,7 +26318,7 @@ function config2(newConfig) {
25901
26318
  Object.assign(globalConfig2, newConfig);
25902
26319
  return globalConfig2;
25903
26320
  }
25904
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/util.js
26321
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/util.js
25905
26322
  var exports_util2 = {};
25906
26323
  __export(exports_util2, {
25907
26324
  unwrapMessage: () => unwrapMessage2,
@@ -25923,7 +26340,7 @@ __export(exports_util2, {
25923
26340
  jsonStringifyReplacer: () => jsonStringifyReplacer2,
25924
26341
  joinValues: () => joinValues2,
25925
26342
  issue: () => issue2,
25926
- isPlainObject: () => isPlainObject2,
26343
+ isPlainObject: () => isPlainObject3,
25927
26344
  isObject: () => isObject2,
25928
26345
  getSizableOrigin: () => getSizableOrigin2,
25929
26346
  getParsedType: () => getParsedType2,
@@ -26077,7 +26494,7 @@ var allowsEval2 = cached2(() => {
26077
26494
  return false;
26078
26495
  }
26079
26496
  });
26080
- function isPlainObject2(o) {
26497
+ function isPlainObject3(o) {
26081
26498
  if (isObject2(o) === false)
26082
26499
  return false;
26083
26500
  const ctor = o.constructor;
@@ -26262,7 +26679,7 @@ function omit2(schema, mask) {
26262
26679
  });
26263
26680
  }
26264
26681
  function extend2(schema, shape) {
26265
- if (!isPlainObject2(shape)) {
26682
+ if (!isPlainObject3(shape)) {
26266
26683
  throw new Error("Invalid input to extend: expected a plain object");
26267
26684
  }
26268
26685
  const def = {
@@ -26415,7 +26832,7 @@ class Class2 {
26415
26832
  constructor(..._args) {}
26416
26833
  }
26417
26834
 
26418
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/errors.js
26835
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/errors.js
26419
26836
  var initializer3 = (inst, def) => {
26420
26837
  inst.name = "$ZodError";
26421
26838
  Object.defineProperty(inst, "_zod", {
@@ -26562,7 +26979,7 @@ function prettifyError2(error51) {
26562
26979
  `);
26563
26980
  }
26564
26981
 
26565
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/parse.js
26982
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/parse.js
26566
26983
  var _parse2 = (_Err) => (schema, value, _ctx, _params) => {
26567
26984
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
26568
26985
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -26613,7 +27030,7 @@ var _safeParseAsync2 = (_Err) => async (schema, value, _ctx) => {
26613
27030
  } : { success: true, data: result.value };
26614
27031
  };
26615
27032
  var safeParseAsync3 = /* @__PURE__ */ _safeParseAsync2($ZodRealError2);
26616
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/regexes.js
27033
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/regexes.js
26617
27034
  var exports_regexes2 = {};
26618
27035
  __export(exports_regexes2, {
26619
27036
  xid: () => xid3,
@@ -26726,7 +27143,7 @@ var _undefined4 = /undefined/i;
26726
27143
  var lowercase2 = /^[^A-Z]*$/;
26727
27144
  var uppercase2 = /^[^a-z]*$/;
26728
27145
 
26729
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/checks.js
27146
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/checks.js
26730
27147
  var $ZodCheck2 = /* @__PURE__ */ $constructor2("$ZodCheck", (inst, def) => {
26731
27148
  var _a3;
26732
27149
  inst._zod ?? (inst._zod = {});
@@ -27263,7 +27680,7 @@ var $ZodCheckOverwrite2 = /* @__PURE__ */ $constructor2("$ZodCheckOverwrite", (i
27263
27680
  };
27264
27681
  });
27265
27682
 
27266
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/doc.js
27683
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/doc.js
27267
27684
  class Doc2 {
27268
27685
  constructor(args = []) {
27269
27686
  this.content = [];
@@ -27301,14 +27718,14 @@ class Doc2 {
27301
27718
  }
27302
27719
  }
27303
27720
 
27304
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/versions.js
27721
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/versions.js
27305
27722
  var version2 = {
27306
27723
  major: 4,
27307
27724
  minor: 0,
27308
27725
  patch: 0
27309
27726
  };
27310
27727
 
27311
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/schemas.js
27728
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/schemas.js
27312
27729
  var $ZodType2 = /* @__PURE__ */ $constructor2("$ZodType", (inst, def) => {
27313
27730
  var _a3;
27314
27731
  inst ?? (inst = {});
@@ -28251,7 +28668,7 @@ function mergeValues2(a, b) {
28251
28668
  if (a instanceof Date && b instanceof Date && +a === +b) {
28252
28669
  return { valid: true, data: a };
28253
28670
  }
28254
- if (isPlainObject2(a) && isPlainObject2(b)) {
28671
+ if (isPlainObject3(a) && isPlainObject3(b)) {
28255
28672
  const bKeys = Object.keys(b);
28256
28673
  const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
28257
28674
  const newObj = { ...a, ...b };
@@ -28381,7 +28798,7 @@ var $ZodRecord2 = /* @__PURE__ */ $constructor2("$ZodRecord", (inst, def) => {
28381
28798
  $ZodType2.init(inst, def);
28382
28799
  inst._zod.parse = (payload, ctx) => {
28383
28800
  const input = payload.value;
28384
- if (!isPlainObject2(input)) {
28801
+ if (!isPlainObject3(input)) {
28385
28802
  payload.issues.push({
28386
28803
  expected: "record",
28387
28804
  code: "invalid_type",
@@ -28926,7 +29343,7 @@ function handleRefineResult2(result, payload, input, inst) {
28926
29343
  payload.issues.push(issue2(_iss));
28927
29344
  }
28928
29345
  }
28929
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/index.js
29346
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/index.js
28930
29347
  var exports_locales2 = {};
28931
29348
  __export(exports_locales2, {
28932
29349
  zhTW: () => zh_TW_default2,
@@ -28970,7 +29387,7 @@ __export(exports_locales2, {
28970
29387
  ar: () => ar_default2
28971
29388
  });
28972
29389
 
28973
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ar.js
29390
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ar.js
28974
29391
  var error51 = () => {
28975
29392
  const Sizable = {
28976
29393
  string: { unit: "حرف", verb: "أن يحوي" },
@@ -29086,7 +29503,7 @@ function ar_default2() {
29086
29503
  localeError: error51()
29087
29504
  };
29088
29505
  }
29089
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/az.js
29506
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/az.js
29090
29507
  var error52 = () => {
29091
29508
  const Sizable = {
29092
29509
  string: { unit: "simvol", verb: "olmalıdır" },
@@ -29201,7 +29618,7 @@ function az_default2() {
29201
29618
  localeError: error52()
29202
29619
  };
29203
29620
  }
29204
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/be.js
29621
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/be.js
29205
29622
  function getBelarusianPlural2(count, one, few, many) {
29206
29623
  const absCount = Math.abs(count);
29207
29624
  const lastDigit = absCount % 10;
@@ -29365,7 +29782,7 @@ function be_default2() {
29365
29782
  localeError: error53()
29366
29783
  };
29367
29784
  }
29368
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ca.js
29785
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ca.js
29369
29786
  var error54 = () => {
29370
29787
  const Sizable = {
29371
29788
  string: { unit: "caràcters", verb: "contenir" },
@@ -29482,7 +29899,7 @@ function ca_default2() {
29482
29899
  localeError: error54()
29483
29900
  };
29484
29901
  }
29485
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/cs.js
29902
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/cs.js
29486
29903
  var error55 = () => {
29487
29904
  const Sizable = {
29488
29905
  string: { unit: "znaků", verb: "mít" },
@@ -29617,7 +30034,7 @@ function cs_default2() {
29617
30034
  localeError: error55()
29618
30035
  };
29619
30036
  }
29620
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/de.js
30037
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/de.js
29621
30038
  var error56 = () => {
29622
30039
  const Sizable = {
29623
30040
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -29733,7 +30150,7 @@ function de_default2() {
29733
30150
  localeError: error56()
29734
30151
  };
29735
30152
  }
29736
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/en.js
30153
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/en.js
29737
30154
  var parsedType2 = (data) => {
29738
30155
  const t2 = typeof data;
29739
30156
  switch (t2) {
@@ -29850,7 +30267,7 @@ function en_default3() {
29850
30267
  localeError: error57()
29851
30268
  };
29852
30269
  }
29853
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/eo.js
30270
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/eo.js
29854
30271
  var parsedType3 = (data) => {
29855
30272
  const t2 = typeof data;
29856
30273
  switch (t2) {
@@ -29966,7 +30383,7 @@ function eo_default2() {
29966
30383
  localeError: error58()
29967
30384
  };
29968
30385
  }
29969
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/es.js
30386
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/es.js
29970
30387
  var error59 = () => {
29971
30388
  const Sizable = {
29972
30389
  string: { unit: "caracteres", verb: "tener" },
@@ -30082,7 +30499,7 @@ function es_default2() {
30082
30499
  localeError: error59()
30083
30500
  };
30084
30501
  }
30085
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/fa.js
30502
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/fa.js
30086
30503
  var error60 = () => {
30087
30504
  const Sizable = {
30088
30505
  string: { unit: "کاراکتر", verb: "داشته باشد" },
@@ -30204,7 +30621,7 @@ function fa_default2() {
30204
30621
  localeError: error60()
30205
30622
  };
30206
30623
  }
30207
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/fi.js
30624
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/fi.js
30208
30625
  var error61 = () => {
30209
30626
  const Sizable = {
30210
30627
  string: { unit: "merkkiä", subject: "merkkijonon" },
@@ -30326,7 +30743,7 @@ function fi_default2() {
30326
30743
  localeError: error61()
30327
30744
  };
30328
30745
  }
30329
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/fr.js
30746
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/fr.js
30330
30747
  var error62 = () => {
30331
30748
  const Sizable = {
30332
30749
  string: { unit: "caractères", verb: "avoir" },
@@ -30442,7 +30859,7 @@ function fr_default2() {
30442
30859
  localeError: error62()
30443
30860
  };
30444
30861
  }
30445
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/fr-CA.js
30862
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/fr-CA.js
30446
30863
  var error63 = () => {
30447
30864
  const Sizable = {
30448
30865
  string: { unit: "caractères", verb: "avoir" },
@@ -30559,7 +30976,7 @@ function fr_CA_default2() {
30559
30976
  localeError: error63()
30560
30977
  };
30561
30978
  }
30562
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/he.js
30979
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/he.js
30563
30980
  var error64 = () => {
30564
30981
  const Sizable = {
30565
30982
  string: { unit: "אותיות", verb: "לכלול" },
@@ -30675,7 +31092,7 @@ function he_default2() {
30675
31092
  localeError: error64()
30676
31093
  };
30677
31094
  }
30678
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/hu.js
31095
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/hu.js
30679
31096
  var error65 = () => {
30680
31097
  const Sizable = {
30681
31098
  string: { unit: "karakter", verb: "legyen" },
@@ -30791,7 +31208,7 @@ function hu_default2() {
30791
31208
  localeError: error65()
30792
31209
  };
30793
31210
  }
30794
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/id.js
31211
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/id.js
30795
31212
  var error66 = () => {
30796
31213
  const Sizable = {
30797
31214
  string: { unit: "karakter", verb: "memiliki" },
@@ -30907,7 +31324,7 @@ function id_default2() {
30907
31324
  localeError: error66()
30908
31325
  };
30909
31326
  }
30910
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/it.js
31327
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/it.js
30911
31328
  var error67 = () => {
30912
31329
  const Sizable = {
30913
31330
  string: { unit: "caratteri", verb: "avere" },
@@ -31023,7 +31440,7 @@ function it_default2() {
31023
31440
  localeError: error67()
31024
31441
  };
31025
31442
  }
31026
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ja.js
31443
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ja.js
31027
31444
  var error68 = () => {
31028
31445
  const Sizable = {
31029
31446
  string: { unit: "文字", verb: "である" },
@@ -31138,7 +31555,7 @@ function ja_default2() {
31138
31555
  localeError: error68()
31139
31556
  };
31140
31557
  }
31141
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/kh.js
31558
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/kh.js
31142
31559
  var error69 = () => {
31143
31560
  const Sizable = {
31144
31561
  string: { unit: "តួអក្សរ", verb: "គួរមាន" },
@@ -31255,7 +31672,7 @@ function kh_default2() {
31255
31672
  localeError: error69()
31256
31673
  };
31257
31674
  }
31258
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ko.js
31675
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ko.js
31259
31676
  var error70 = () => {
31260
31677
  const Sizable = {
31261
31678
  string: { unit: "문자", verb: "to have" },
@@ -31376,7 +31793,7 @@ function ko_default2() {
31376
31793
  localeError: error70()
31377
31794
  };
31378
31795
  }
31379
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/mk.js
31796
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/mk.js
31380
31797
  var error71 = () => {
31381
31798
  const Sizable = {
31382
31799
  string: { unit: "знаци", verb: "да имаат" },
@@ -31493,7 +31910,7 @@ function mk_default2() {
31493
31910
  localeError: error71()
31494
31911
  };
31495
31912
  }
31496
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ms.js
31913
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ms.js
31497
31914
  var error72 = () => {
31498
31915
  const Sizable = {
31499
31916
  string: { unit: "aksara", verb: "mempunyai" },
@@ -31609,7 +32026,7 @@ function ms_default2() {
31609
32026
  localeError: error72()
31610
32027
  };
31611
32028
  }
31612
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/nl.js
32029
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/nl.js
31613
32030
  var error73 = () => {
31614
32031
  const Sizable = {
31615
32032
  string: { unit: "tekens" },
@@ -31726,7 +32143,7 @@ function nl_default2() {
31726
32143
  localeError: error73()
31727
32144
  };
31728
32145
  }
31729
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/no.js
32146
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/no.js
31730
32147
  var error74 = () => {
31731
32148
  const Sizable = {
31732
32149
  string: { unit: "tegn", verb: "å ha" },
@@ -31842,7 +32259,7 @@ function no_default2() {
31842
32259
  localeError: error74()
31843
32260
  };
31844
32261
  }
31845
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ota.js
32262
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ota.js
31846
32263
  var error75 = () => {
31847
32264
  const Sizable = {
31848
32265
  string: { unit: "harf", verb: "olmalıdır" },
@@ -31958,7 +32375,7 @@ function ota_default2() {
31958
32375
  localeError: error75()
31959
32376
  };
31960
32377
  }
31961
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ps.js
32378
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ps.js
31962
32379
  var error76 = () => {
31963
32380
  const Sizable = {
31964
32381
  string: { unit: "توکي", verb: "ولري" },
@@ -32080,7 +32497,7 @@ function ps_default2() {
32080
32497
  localeError: error76()
32081
32498
  };
32082
32499
  }
32083
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/pl.js
32500
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/pl.js
32084
32501
  var error77 = () => {
32085
32502
  const Sizable = {
32086
32503
  string: { unit: "znaków", verb: "mieć" },
@@ -32197,7 +32614,7 @@ function pl_default2() {
32197
32614
  localeError: error77()
32198
32615
  };
32199
32616
  }
32200
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/pt.js
32617
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/pt.js
32201
32618
  var error78 = () => {
32202
32619
  const Sizable = {
32203
32620
  string: { unit: "caracteres", verb: "ter" },
@@ -32313,7 +32730,7 @@ function pt_default2() {
32313
32730
  localeError: error78()
32314
32731
  };
32315
32732
  }
32316
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ru.js
32733
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ru.js
32317
32734
  function getRussianPlural2(count, one, few, many) {
32318
32735
  const absCount = Math.abs(count);
32319
32736
  const lastDigit = absCount % 10;
@@ -32477,7 +32894,7 @@ function ru_default2() {
32477
32894
  localeError: error79()
32478
32895
  };
32479
32896
  }
32480
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/sl.js
32897
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/sl.js
32481
32898
  var error80 = () => {
32482
32899
  const Sizable = {
32483
32900
  string: { unit: "znakov", verb: "imeti" },
@@ -32594,7 +33011,7 @@ function sl_default2() {
32594
33011
  localeError: error80()
32595
33012
  };
32596
33013
  }
32597
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/sv.js
33014
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/sv.js
32598
33015
  var error81 = () => {
32599
33016
  const Sizable = {
32600
33017
  string: { unit: "tecken", verb: "att ha" },
@@ -32712,7 +33129,7 @@ function sv_default2() {
32712
33129
  localeError: error81()
32713
33130
  };
32714
33131
  }
32715
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ta.js
33132
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ta.js
32716
33133
  var error82 = () => {
32717
33134
  const Sizable = {
32718
33135
  string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
@@ -32829,7 +33246,7 @@ function ta_default2() {
32829
33246
  localeError: error82()
32830
33247
  };
32831
33248
  }
32832
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/th.js
33249
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/th.js
32833
33250
  var error83 = () => {
32834
33251
  const Sizable = {
32835
33252
  string: { unit: "ตัวอักษร", verb: "ควรมี" },
@@ -32946,7 +33363,7 @@ function th_default2() {
32946
33363
  localeError: error83()
32947
33364
  };
32948
33365
  }
32949
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/tr.js
33366
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/tr.js
32950
33367
  var parsedType4 = (data) => {
32951
33368
  const t2 = typeof data;
32952
33369
  switch (t2) {
@@ -33061,7 +33478,7 @@ function tr_default2() {
33061
33478
  localeError: error84()
33062
33479
  };
33063
33480
  }
33064
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ua.js
33481
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ua.js
33065
33482
  var error85 = () => {
33066
33483
  const Sizable = {
33067
33484
  string: { unit: "символів", verb: "матиме" },
@@ -33177,7 +33594,7 @@ function ua_default2() {
33177
33594
  localeError: error85()
33178
33595
  };
33179
33596
  }
33180
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ur.js
33597
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/ur.js
33181
33598
  var error86 = () => {
33182
33599
  const Sizable = {
33183
33600
  string: { unit: "حروف", verb: "ہونا" },
@@ -33294,7 +33711,7 @@ function ur_default2() {
33294
33711
  localeError: error86()
33295
33712
  };
33296
33713
  }
33297
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/vi.js
33714
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/vi.js
33298
33715
  var error87 = () => {
33299
33716
  const Sizable = {
33300
33717
  string: { unit: "ký tự", verb: "có" },
@@ -33410,7 +33827,7 @@ function vi_default2() {
33410
33827
  localeError: error87()
33411
33828
  };
33412
33829
  }
33413
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/zh-CN.js
33830
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/zh-CN.js
33414
33831
  var error88 = () => {
33415
33832
  const Sizable = {
33416
33833
  string: { unit: "字符", verb: "包含" },
@@ -33526,7 +33943,7 @@ function zh_CN_default2() {
33526
33943
  localeError: error88()
33527
33944
  };
33528
33945
  }
33529
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/zh-TW.js
33946
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/locales/zh-TW.js
33530
33947
  var error89 = () => {
33531
33948
  const Sizable = {
33532
33949
  string: { unit: "字元", verb: "擁有" },
@@ -33643,7 +34060,7 @@ function zh_TW_default2() {
33643
34060
  localeError: error89()
33644
34061
  };
33645
34062
  }
33646
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/registries.js
34063
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/registries.js
33647
34064
  var $output2 = Symbol("ZodOutput");
33648
34065
  var $input2 = Symbol("ZodInput");
33649
34066
 
@@ -33693,7 +34110,7 @@ function registry2() {
33693
34110
  return new $ZodRegistry2;
33694
34111
  }
33695
34112
  var globalRegistry2 = /* @__PURE__ */ registry2();
33696
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/api.js
34113
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/api.js
33697
34114
  function _string2(Class3, params) {
33698
34115
  return new Class3({
33699
34116
  type: "string",
@@ -34548,7 +34965,7 @@ function _stringFormat2(Class3, format, fnOrRegex, _params = {}) {
34548
34965
  return inst;
34549
34966
  }
34550
34967
 
34551
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/function.js
34968
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/function.js
34552
34969
  class $ZodFunction2 {
34553
34970
  constructor(def) {
34554
34971
  this._def = def;
@@ -34617,7 +35034,7 @@ function _function2(params) {
34617
35034
  output: params?.output ?? _unknown2($ZodUnknown2)
34618
35035
  });
34619
35036
  }
34620
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/to-json-schema.js
35037
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/to-json-schema.js
34621
35038
  class JSONSchemaGenerator2 {
34622
35039
  constructor(params) {
34623
35040
  this.counter = 0;
@@ -35369,9 +35786,9 @@ function isTransforming2(_schema, _ctx) {
35369
35786
  }
35370
35787
  throw new Error(`Unknown schema type: ${def.type}`);
35371
35788
  }
35372
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/json-schema.js
35789
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/json-schema.js
35373
35790
  var exports_json_schema2 = {};
35374
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/classic/iso.js
35791
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/classic/iso.js
35375
35792
  var exports_iso2 = {};
35376
35793
  __export(exports_iso2, {
35377
35794
  time: () => time4,
@@ -35412,7 +35829,7 @@ function duration4(params) {
35412
35829
  return _isoDuration2(ZodISODuration2, params);
35413
35830
  }
35414
35831
 
35415
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/classic/errors.js
35832
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/classic/errors.js
35416
35833
  var initializer4 = (inst, issues) => {
35417
35834
  $ZodError2.init(inst, issues);
35418
35835
  inst.name = "ZodError";
@@ -35441,13 +35858,13 @@ var ZodRealError2 = $constructor2("ZodError", initializer4, {
35441
35858
  Parent: Error
35442
35859
  });
35443
35860
 
35444
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/classic/parse.js
35861
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/classic/parse.js
35445
35862
  var parse7 = /* @__PURE__ */ _parse2(ZodRealError2);
35446
35863
  var parseAsync4 = /* @__PURE__ */ _parseAsync2(ZodRealError2);
35447
35864
  var safeParse4 = /* @__PURE__ */ _safeParse2(ZodRealError2);
35448
35865
  var safeParseAsync4 = /* @__PURE__ */ _safeParseAsync2(ZodRealError2);
35449
35866
 
35450
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/classic/schemas.js
35867
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/classic/schemas.js
35451
35868
  var ZodType2 = /* @__PURE__ */ $constructor2("ZodType", (inst, def) => {
35452
35869
  $ZodType2.init(inst, def);
35453
35870
  inst.def = def;
@@ -36378,7 +36795,7 @@ function json2(params) {
36378
36795
  function preprocess2(fn, schema) {
36379
36796
  return pipe2(transform2(fn), schema);
36380
36797
  }
36381
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/classic/compat.js
36798
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/classic/compat.js
36382
36799
  var ZodIssueCode2 = {
36383
36800
  invalid_type: "invalid_type",
36384
36801
  too_big: "too_big",
@@ -36400,7 +36817,7 @@ function setErrorMap2(map3) {
36400
36817
  function getErrorMap2() {
36401
36818
  return config2().customError;
36402
36819
  }
36403
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/classic/coerce.js
36820
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/classic/coerce.js
36404
36821
  var exports_coerce2 = {};
36405
36822
  __export(exports_coerce2, {
36406
36823
  string: () => string6,
@@ -36425,9 +36842,9 @@ function date8(params) {
36425
36842
  return _coercedDate2(ZodDate2, params);
36426
36843
  }
36427
36844
 
36428
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/classic/external.js
36845
+ // ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/classic/external.js
36429
36846
  config2(en_default3());
36430
- // ../../node_modules/@uipath/flow-schema/node_modules/@uipath/agents-storage-schemas/dist/index.js
36847
+ // ../../node_modules/@uipath/agents-storage-schemas/dist/index.js
36431
36848
  var import_semver = __toESM(require_semver2(), 1);
36432
36849
  var createStorageSchema = (factory) => {
36433
36850
  return factory();
@@ -45600,6 +46017,58 @@ var migrationV50 = createMigration({
45600
46017
  };
45601
46018
  }
45602
46019
  });
46020
+ var migrations = [
46021
+ migrationV1,
46022
+ migrationV2,
46023
+ migrationV3,
46024
+ migrationV4,
46025
+ migrationV5,
46026
+ migrationV6,
46027
+ migrationV7,
46028
+ migrationV8,
46029
+ migrationV9,
46030
+ migrationV10,
46031
+ migrationV11,
46032
+ migrationV12,
46033
+ migrationV13,
46034
+ migrationV14,
46035
+ migrationV15,
46036
+ migrationV16,
46037
+ migrationV17,
46038
+ migrationV18,
46039
+ migrationV19,
46040
+ migrationV20,
46041
+ migrationV21,
46042
+ migrationV22,
46043
+ migrationV23,
46044
+ migrationV24,
46045
+ migrationV25,
46046
+ migrationV26,
46047
+ migrationV27,
46048
+ migrationV28,
46049
+ migrationV29,
46050
+ migrationV30,
46051
+ migrationV31,
46052
+ migrationV32,
46053
+ migrationV33,
46054
+ migrationV34,
46055
+ migrationV35,
46056
+ migrationV36,
46057
+ migrationV37,
46058
+ migrationV38,
46059
+ migrationV39,
46060
+ migrationV40,
46061
+ migrationV41,
46062
+ migrationV42,
46063
+ migrationV43,
46064
+ migrationV44,
46065
+ migrationV45,
46066
+ migrationV46,
46067
+ migrationV47,
46068
+ migrationV48,
46069
+ migrationV49,
46070
+ migrationV50
46071
+ ];
45603
46072
  var currentStorageSchemaMigration = migrationV50;
45604
46073
  var currentStorageSchema = currentStorageSchemaMigration.to;
45605
46074
  var currentAgentStorageSchema = currentStorageSchemaMigration.entities.agent;
@@ -45608,6 +46077,43 @@ var currentFeatureStorageSchema = currentStorageSchemaMigration.entities.feature
45608
46077
  var currentEvaluationSetStorageSchema = currentStorageSchemaMigration.entities.evalSet;
45609
46078
  var currentCodedAgentStorageSchema = currentStorageSchemaMigration.entities.codedAgent;
45610
46079
  var currentFlowLayoutStorageSchema = currentStorageSchemaMigration.entities.flowLayout;
46080
+ var applyMigrations = async (migrations2, data, currentVersion9, options = {}) => {
46081
+ const parsedCurrentVersion = import_semver.coerce(currentVersion9);
46082
+ if (!parsedCurrentVersion) {
46083
+ throw new Error(`Invalid current version: ${currentVersion9}`);
46084
+ }
46085
+ const migrationsToApply = migrations2.filter((migration) => {
46086
+ const toVersion = import_semver.coerce(migration.to.version);
46087
+ if (!toVersion) {
46088
+ throw new Error(`Invalid target version: ${migration.to.version}`);
46089
+ }
46090
+ return import_semver.lt(parsedCurrentVersion, toVersion);
46091
+ });
46092
+ console.debug("Applying migrations", {
46093
+ currentVersion: currentVersion9,
46094
+ migrationsToApply: migrationsToApply.map((m) => `${m.from.version} -> ${m.to.version}`)
46095
+ });
46096
+ let currentData = data;
46097
+ for (const migration of migrationsToApply) {
46098
+ try {
46099
+ console.debug(`Applying migration: ${migration.from.version} -> ${migration.to.version}`);
46100
+ currentData = migration.apply(currentData, options.errorTracker);
46101
+ } catch (error90) {
46102
+ const migrationError = new Error(`Migration failed: ${migration.from.version} -> ${migration.to.version}`);
46103
+ options.errorTracker?.trackError(migrationError, "critical", {
46104
+ originalError: error90,
46105
+ migration: `${migration.from.version} -> ${migration.to.version}`
46106
+ });
46107
+ throw migrationError;
46108
+ }
46109
+ }
46110
+ return currentData;
46111
+ };
46112
+ var getLatestVersion = (migrations2) => {
46113
+ if (migrations2.length === 0)
46114
+ throw new Error("No migrations available");
46115
+ return migrations2[migrations2.length - 1].to.version;
46116
+ };
45611
46117
 
45612
46118
  // ../../node_modules/jsep/dist/jsep.js
45613
46119
  class Hooks {
@@ -46286,7 +46792,7 @@ var ternary = {
46286
46792
  };
46287
46793
  jsep.plugins.register(ternary);
46288
46794
 
46289
- // ../../node_modules/@uipath/flow-schema/dist/chunk-7MRFRSDM.js
46795
+ // ../../node_modules/@uipath/flow-schema/dist/chunk-3ANVRIJ3.js
46290
46796
  function isBlockingSeverity(severity) {
46291
46797
  return severity === "error" || severity === "critical";
46292
46798
  }
@@ -46484,6 +46990,54 @@ function hasMustacheInterpolation(s) {
46484
46990
  const stripped = s.replace(/\\\{/g, "").replace(/\\\}/g, "");
46485
46991
  return /\{\{[^{}]+\}\}/.test(stripped);
46486
46992
  }
46993
+ var ESCAPED_MUSTACHE_PLACEHOLDER = "__FLOW_ESCAPED_MUSTACHE__";
46994
+ var ESCAPED_MUSTACHE_REGEX = /\\\{\{/g;
46995
+ var hasMustache = (value) => {
46996
+ if (!value)
46997
+ return false;
46998
+ const open = value.indexOf("{{");
46999
+ return open !== -1 && value.indexOf("}}", open + 2) !== -1;
47000
+ };
47001
+ var parseMustacheSegments = (value) => {
47002
+ if (!value)
47003
+ return { segments: [], tail: "" };
47004
+ const segments = [];
47005
+ let pos = 0;
47006
+ while (pos < value.length) {
47007
+ const openIdx = value.indexOf("{{", pos);
47008
+ if (openIdx === -1)
47009
+ break;
47010
+ const closeIdx = value.indexOf("}}", openIdx + 2);
47011
+ if (closeIdx === -1)
47012
+ break;
47013
+ segments.push({
47014
+ staticText: value.slice(pos, openIdx),
47015
+ expression: value.slice(openIdx + 2, closeIdx).trim()
47016
+ });
47017
+ pos = closeIdx + 2;
47018
+ }
47019
+ return { segments, tail: value.slice(pos) };
47020
+ };
47021
+ function templateInterpolationBody(expr) {
47022
+ if (!hasMustache(expr))
47023
+ return;
47024
+ const input = expr.replace(ESCAPED_MUSTACHE_REGEX, ESCAPED_MUSTACHE_PLACEHOLDER);
47025
+ const restore = (s) => s.replace(new RegExp(ESCAPED_MUSTACHE_PLACEHOLDER, "g"), "{{");
47026
+ const { segments, tail } = parseMustacheSegments(input);
47027
+ let result = "";
47028
+ for (const seg of segments)
47029
+ result += restore(seg.staticText) + "${" + seg.expression + "}";
47030
+ return result + restore(tail);
47031
+ }
47032
+ var QES_UNSAFE_CHAR = /["\\\s\u0000-\u001f]/;
47033
+ function isQesUncarryableValue(value) {
47034
+ const jsBody = getJsExpressionBody(value);
47035
+ if (jsBody !== undefined)
47036
+ return jsBody.trim() !== "" && QES_UNSAFE_CHAR.test(jsBody);
47037
+ const text = isExpressionValue(value) ? value.expression : typeof value === "string" ? value : "";
47038
+ const templateBody = templateInterpolationBody(text);
47039
+ return templateBody !== undefined && QES_UNSAFE_CHAR.test(templateBody);
47040
+ }
46487
47041
  var t2 = instance.getFixedT(null, VALIDATION_NAMESPACE);
46488
47042
  function isExpression(value) {
46489
47043
  if (isExpressionValue(value))
@@ -46846,7 +47400,7 @@ function isTriggerNodeType(nodeType2) {
46846
47400
  return nodeType2.startsWith("core.trigger") || nodeType2.toLowerCase().includes("trigger");
46847
47401
  }
46848
47402
  function isEndNodeType(nodeType2) {
46849
- return nodeType2 === "core.control.end" || nodeType2 === "core.logic.terminate";
47403
+ return nodeType2 === "core.control.end" || nodeType2 === "core.logic.terminate" || nodeType2 === "core.control.response";
46850
47404
  }
46851
47405
  var LOOP_NODE_TYPE = "core.logic.loop";
46852
47406
  var DOWHILE_NODE_TYPE = "core.logic.dowhile";
@@ -46884,10 +47438,15 @@ function resolveDoWhileLimit(raw) {
46884
47438
  }
46885
47439
  var DECISION_NODE_TYPE = "core.logic.decision";
46886
47440
  var SWITCH_NODE_TYPE = "core.logic.switch";
47441
+ var MERGE_NODE_TYPE = "core.logic.merge";
47442
+ var MOCK_NODE_TYPE = "core.logic.mock";
46887
47443
  var SYNTHETIC_GATEWAY_OUTPUT_KEYS = ["matchedCase", "matchedCaseId"];
46888
47444
  function isGatewayNodeType(nodeType2) {
46889
47445
  return nodeType2 === DECISION_NODE_TYPE || nodeType2 === SWITCH_NODE_TYPE;
46890
47446
  }
47447
+ function supportsVariableUpdates(nodeType2) {
47448
+ return nodeType2 !== DECISION_NODE_TYPE && nodeType2 !== SWITCH_NODE_TYPE && nodeType2 !== MERGE_NODE_TYPE;
47449
+ }
46891
47450
  var SUBFLOW_NODE_TYPE = "core.subflow";
46892
47451
  function isSubflowNodeType(nodeType2) {
46893
47452
  return nodeType2 === SUBFLOW_NODE_TYPE;
@@ -46939,6 +47498,10 @@ function isAgentResourceNodeType(nodeType2) {
46939
47498
  return nodeType2.startsWith(AGENT_RESOURCE_PREFIX);
46940
47499
  }
46941
47500
  var CONVERSATIONAL_VOICE_END_CALL_NODE_TYPE = "uipath.conversational.voice.end-call";
47501
+ var CONVERSATION_TRIGGER_NODE_TYPE = "core.trigger.conversation";
47502
+ function isConversationalRuntimeNodeType(nodeType2) {
47503
+ return nodeType2 === CONVERSATION_TRIGGER_NODE_TYPE;
47504
+ }
46942
47505
  function manifestExposesCallContext(manifest) {
46943
47506
  const properties = manifest.inputDefinition?.properties;
46944
47507
  return !!properties && Object.prototype.hasOwnProperty.call(properties, "callContext");
@@ -47569,11 +48132,46 @@ var governanceRule = {
47569
48132
  return errors5;
47570
48133
  }
47571
48134
  };
48135
+ var DEFAULT_TRIGGER_OUTCOME = {
48136
+ id: "submit",
48137
+ name: "Submit",
48138
+ action: "Continue",
48139
+ isPrimary: true
48140
+ };
48141
+ var isObject3 = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
48142
+ function withDefaultTriggerOutcome(schema) {
48143
+ const source = schema ?? {};
48144
+ const outcomes = source.outcomes;
48145
+ if (Array.isArray(outcomes) && outcomes.length > 0)
48146
+ return { ...source, outcomes };
48147
+ return { ...source, outcomes: [{ ...DEFAULT_TRIGGER_OUTCOME }] };
48148
+ }
48149
+ function soleOutcome(outcomes) {
48150
+ const authored = Array.isArray(outcomes) ? outcomes.filter(isObject3) : [];
48151
+ const chosen = authored.find((outcome) => outcome.isPrimary) ?? authored[0];
48152
+ if (!chosen)
48153
+ return { ...DEFAULT_TRIGGER_OUTCOME };
48154
+ return { ...chosen, action: "Continue", isPrimary: true };
48155
+ }
48156
+ function normalizeFormTriggerSchema(schema) {
48157
+ const source = schema;
48158
+ const fields = source?.fields;
48159
+ if (!source || !isObject3(source) || !Array.isArray(fields) || fields.length === 0)
48160
+ return null;
48161
+ return {
48162
+ ...source,
48163
+ fields: fields.map((field) => {
48164
+ const { binding: _binding, variable: _variable, ...rest } = field ?? {};
48165
+ return { ...rest, direction: "output" };
48166
+ }),
48167
+ outcomes: [soleOutcome(source.outcomes)]
48168
+ };
48169
+ }
47572
48170
  function getHitlFieldChannelKey(field) {
47573
- if (field.label)
47574
- return field.label;
47575
48171
  if (field.id)
47576
48172
  return field.id;
48173
+ if (field.label)
48174
+ return field.label;
47577
48175
  return null;
47578
48176
  }
47579
48177
  function isHitlInputDirectionField(field) {
@@ -47646,8 +48244,7 @@ var escalationValidationRule = {
47646
48244
  const manifest = getManifestForNode(node, ctx.manifests);
47647
48245
  const label = getNodeLabel(node, manifest);
47648
48246
  const isQuickForm = resolveEscalationTaskType(node.type, inputs.type) === ESCALATION_TASK_TYPE.QuickForm;
47649
- const name = inputs.name;
47650
- if (!name || !name.trim()) {
48247
+ if (!readStringField(inputs.name).trim()) {
47651
48248
  errors5.push({
47652
48249
  code: "ESCALATION_NAME_REQUIRED",
47653
48250
  ...localized6("escalation_nameRequired_message", { label }, "{{label}}: Escalation name is required"),
@@ -47682,6 +48279,19 @@ var escalationValidationRule = {
47682
48279
  });
47683
48280
  }
47684
48281
  }
48282
+ if (inputs.agentMemory === true) {
48283
+ const fieldSettings = inputs.memoryFieldSettings;
48284
+ if (!Array.isArray(fieldSettings) || fieldSettings.length === 0) {
48285
+ errors5.push({
48286
+ code: "ESCALATION_MEMORY_ARGUMENT_REQUIRED",
48287
+ ...localized6("escalation_memoryArgumentRequired_message", { label }, "{{label}}: Add at least one argument for agent memory, or turn agent memory off"),
48288
+ severity: "error",
48289
+ nodeId: node.id,
48290
+ fieldPath: "inputs.memoryFieldSettings",
48291
+ layer: "node"
48292
+ });
48293
+ }
48294
+ }
47685
48295
  const recipients = inputs.recipients;
47686
48296
  const hasValidRecipient = Array.isArray(recipients) && recipients.length > 0 && recipients.some((r) => r.value && String(r.value).trim() !== "");
47687
48297
  if (!hasValidRecipient) {
@@ -47821,66 +48431,6 @@ var conditionExpressionRule = {
47821
48431
  return errors5;
47822
48432
  }
47823
48433
  };
47824
- var RESERVED_WORDS = [
47825
- "break",
47826
- "case",
47827
- "catch",
47828
- "continue",
47829
- "debugger",
47830
- "default",
47831
- "delete",
47832
- "do",
47833
- "else",
47834
- "finally",
47835
- "for",
47836
- "function",
47837
- "if",
47838
- "in",
47839
- "instanceof",
47840
- "new",
47841
- "return",
47842
- "switch",
47843
- "this",
47844
- "throw",
47845
- "try",
47846
- "typeof",
47847
- "var",
47848
- "void",
47849
- "while",
47850
- "with",
47851
- "class",
47852
- "const",
47853
- "enum",
47854
- "export",
47855
- "extends",
47856
- "import",
47857
- "super",
47858
- "implements",
47859
- "interface",
47860
- "let",
47861
- "package",
47862
- "private",
47863
- "protected",
47864
- "public",
47865
- "static",
47866
- "yield"
47867
- ];
47868
- var VALID_IDENTIFIER_PATTERN = /^[a-zA-Z_][a-zA-Z0-9_]*$/;
47869
- var FLAT_SEP = "__";
47870
- function generateRandomId(length) {
47871
- const chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
47872
- let result = "";
47873
- for (let i = 0;i < length; i++) {
47874
- result += chars2.charAt(Math.floor(Math.random() * chars2.length));
47875
- }
47876
- return result;
47877
- }
47878
- function generateNextId(prefix, count = 6) {
47879
- return `${prefix}${generateRandomId(count)}`;
47880
- }
47881
- function isPlainObject3(value) {
47882
- return value !== null && typeof value === "object" && !Array.isArray(value);
47883
- }
47884
48434
  var t9 = instance.getFixedT(null, VALIDATION_NAMESPACE);
47885
48435
  function localized8(key, params, defaultValue) {
47886
48436
  return {
@@ -47889,10 +48439,23 @@ function localized8(key, params, defaultValue) {
47889
48439
  };
47890
48440
  }
47891
48441
  var INPUT_REF_REGEX = /\{\{\s*\$agent\.([a-zA-Z_][a-zA-Z0-9_.]*)\s*\}\}/g;
47892
- var VARS_REF_REGEX = /\{\{\s*\$vars\.([a-zA-Z_][a-zA-Z0-9_.]*)\s*\}\}/g;
48442
+ var VARS_PATH_CAPTURE = String.raw`[a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*|\[\d+\])*`;
48443
+ var VARS_REF_REGEX = new RegExp(String.raw`\{\{\s*\$vars\.(${VARS_PATH_CAPTURE})\s*\}\}`, "g");
48444
+ var RAW_VARS_REF_REGEX = new RegExp(String.raw`(?<!\w)\$vars\.(${VARS_PATH_CAPTURE})`, "g");
47893
48445
  function getNodeType2(node) {
47894
48446
  return node.data?.type ?? node.type ?? "";
47895
48447
  }
48448
+ function collectStringsDeep(value, out = []) {
48449
+ if (typeof value === "string")
48450
+ out.push(value);
48451
+ else if (Array.isArray(value))
48452
+ for (const item of value)
48453
+ collectStringsDeep(item, out);
48454
+ else if (value && typeof value === "object")
48455
+ for (const item of Object.values(value))
48456
+ collectStringsDeep(item, out);
48457
+ return out;
48458
+ }
47896
48459
  function extractMatches(text, regex) {
47897
48460
  const refs = /* @__PURE__ */ new Set;
47898
48461
  regex.lastIndex = 0;
@@ -47912,29 +48475,10 @@ var agentInputRefsRule = {
47912
48475
  for (const n of ctx.nodes)
47913
48476
  knownRootSegments.add(n.id);
47914
48477
  }
47915
- const collidingVarIds = ctx.workflowVariableIds?.filter((id) => id.includes(FLAT_SEP)) ?? [];
47916
- const collidingNodeIds = ctx.nodes.filter((n) => n.id.includes(FLAT_SEP)).map((n) => n.id);
48478
+ const nodeById = new Map(ctx.nodes.map((n) => [n.id, n]));
47917
48479
  for (const node of ctx.nodes) {
47918
48480
  if (!isAgentNodeType(getNodeType2(node)))
47919
48481
  continue;
47920
- for (const collidingId of collidingVarIds) {
47921
- errors5.push({
47922
- code: "AGENT_FLAT_NAME_COLLISION",
47923
- ...localized8("agentInputRefs_variableCollision_message", { id: collidingId, sep: FLAT_SEP }, 'Process variable "{{id}}" contains "{{sep}}". Inline agents encode references by joining path segments with "{{sep}}", so "{{id}}" would collide with another path at runtime. Rename the variable to remove "{{sep}}".'),
47924
- severity: "error",
47925
- nodeId: node.id,
47926
- layer: "node"
47927
- });
47928
- }
47929
- for (const collidingId of collidingNodeIds) {
47930
- errors5.push({
47931
- code: "AGENT_FLAT_NAME_COLLISION",
47932
- ...localized8("agentInputRefs_nodeCollision_message", { id: collidingId, sep: FLAT_SEP }, 'Node "{{id}}" contains "{{sep}}". Inline agents encode references by joining path segments with "{{sep}}", so "$vars.{{id}}.output.field" would collide with another path at runtime. Rename the node to remove "{{sep}}".'),
47933
- severity: "error",
47934
- nodeId: node.id,
47935
- layer: "node"
47936
- });
47937
- }
47938
48482
  const inputs = node.data?.inputs;
47939
48483
  if (!inputs)
47940
48484
  continue;
@@ -47954,23 +48498,75 @@ var agentInputRefsRule = {
47954
48498
  layer: "node"
47955
48499
  });
47956
48500
  }
48501
+ const mustacheVarsRefs = /* @__PURE__ */ new Set;
48502
+ for (const ref of extractMatches(systemPrompt, VARS_REF_REGEX))
48503
+ mustacheVarsRefs.add(ref);
48504
+ for (const ref of extractMatches(userPrompt, VARS_REF_REGEX))
48505
+ mustacheVarsRefs.add(ref);
48506
+ const rootCheckRefs = new Set(mustacheVarsRefs);
48507
+ for (const ref of extractMatches(systemPrompt, RAW_VARS_REF_REGEX))
48508
+ rootCheckRefs.add(ref);
48509
+ for (const ref of extractMatches(userPrompt, RAW_VARS_REF_REGEX))
48510
+ rootCheckRefs.add(ref);
48511
+ for (const edge of ctx.edges) {
48512
+ if (edge.source !== node.id)
48513
+ continue;
48514
+ const target = nodeById.get(edge.target);
48515
+ if (!target || !isAgentResourceNode(getNodeType2(target)))
48516
+ continue;
48517
+ for (const s of collectStringsDeep(target.data?.inputs ?? undefined)) {
48518
+ for (const ref of extractMatches(s, RAW_VARS_REF_REGEX))
48519
+ rootCheckRefs.add(ref);
48520
+ }
48521
+ }
48522
+ const stripIndex = (s) => s.replace(/\[\d+\]/g, "");
48523
+ const reportedProblems = /* @__PURE__ */ new Set;
48524
+ const flaggedRoots = /* @__PURE__ */ new Set;
48525
+ for (const ref of rootCheckRefs) {
48526
+ const segments = ref.split(".");
48527
+ const rootSegment = stripIndex(segments[0]);
48528
+ if (rootSegment === "metadata") {
48529
+ flaggedRoots.add(rootSegment);
48530
+ if (reportedProblems.has("metadata"))
48531
+ continue;
48532
+ reportedProblems.add("metadata");
48533
+ errors5.push({
48534
+ code: "AGENT_RESERVED_METADATA_ROOT",
48535
+ ...localized8("agentInputRefs_reservedMetadataRoot_message", { ref }, 'Prompt references "$vars.{{ref}}", but a variable or node named "metadata" collides with the "$metadata" namespace once serialized for the agent and cannot round-trip. Rename it to something other than "metadata".'),
48536
+ severity: "error",
48537
+ nodeId: node.id,
48538
+ layer: "node"
48539
+ });
48540
+ continue;
48541
+ }
48542
+ const indexed = /\[\d+\]/.test(ref);
48543
+ const offending = (indexed ? segments : [segments[0]]).map(stripIndex).find((s) => s.includes("__"));
48544
+ if (offending) {
48545
+ flaggedRoots.add(rootSegment);
48546
+ if (reportedProblems.has(offending))
48547
+ continue;
48548
+ reportedProblems.add(offending);
48549
+ errors5.push({
48550
+ code: "AGENT_AMBIGUOUS_UNDERSCORE_ROOT",
48551
+ ...localized8("agentInputRefs_ambiguousUnderscoreRoot_message", { ref, rootSegment: offending }, 'Prompt references "$vars.{{ref}}", but the name "{{rootSegment}}" contains "__", which is reserved as the agent-input encoding separator and cannot round-trip. Rename it to remove the double underscore.'),
48552
+ severity: "error",
48553
+ nodeId: node.id,
48554
+ layer: "node"
48555
+ });
48556
+ }
48557
+ }
47957
48558
  if (knownRootSegments) {
47958
- const varsRefs = /* @__PURE__ */ new Set;
47959
- for (const ref of extractMatches(systemPrompt, VARS_REF_REGEX))
47960
- varsRefs.add(ref);
47961
- for (const ref of extractMatches(userPrompt, VARS_REF_REGEX))
47962
- varsRefs.add(ref);
47963
- for (const ref of varsRefs) {
47964
- const rootSegment = ref.split(".")[0];
47965
- if (!knownRootSegments.has(rootSegment)) {
47966
- errors5.push({
47967
- code: "AGENT_UNRESOLVED_VARS_REF",
47968
- ...localized8("agentInputRefs_unresolvedRef_message", { ref, rootSegment }, 'Prompt references "$vars.{{ref}}" but no workflow variable or node "{{rootSegment}}" exists. Add the variable/node to the flow or remove the reference.'),
47969
- severity: "error",
47970
- nodeId: node.id,
47971
- layer: "node"
47972
- });
47973
- }
48559
+ for (const ref of mustacheVarsRefs) {
48560
+ const rootSegment = stripIndex(ref.split(".")[0]);
48561
+ if (flaggedRoots.has(rootSegment) || knownRootSegments.has(rootSegment))
48562
+ continue;
48563
+ errors5.push({
48564
+ code: "AGENT_UNRESOLVED_VARS_REF",
48565
+ ...localized8("agentInputRefs_unresolvedRef_message", { ref, rootSegment }, 'Prompt references "$vars.{{ref}}" but no workflow variable or node "{{rootSegment}}" exists. Add the variable/node to the flow or remove the reference.'),
48566
+ severity: "error",
48567
+ nodeId: node.id,
48568
+ layer: "node"
48569
+ });
47974
48570
  }
47975
48571
  }
47976
48572
  }
@@ -48049,6 +48645,7 @@ var HITL_QUICK_FORM_NODE_TYPE = "uipath.human-in-the-loop.quick-form";
48049
48645
  var HITL_CODED_ACTION_NODE_TYPE = "uipath.human-in-the-loop.coded-action-app";
48050
48646
  var HITL_DOC_VALIDATION_NODE_TYPE = "uipath.human-in-the-loop.document-validation";
48051
48647
  var DYNAMIC_EXTRACT_NODE_TYPE = "uipath.ixp.extract-document-builder";
48648
+ var FORM_TRIGGER_NODE_TYPE = "core.trigger.form";
48052
48649
  var HITL_NODE_TYPES = /* @__PURE__ */ new Set([
48053
48650
  HITL_QUICK_FORM_NODE_TYPE,
48054
48651
  HITL_CODED_ACTION_NODE_TYPE,
@@ -48058,6 +48655,9 @@ var HITL_NODE_TYPES = /* @__PURE__ */ new Set([
48058
48655
  function isHitlNodeType(t13) {
48059
48656
  return HITL_NODE_TYPES.has(t13);
48060
48657
  }
48658
+ function isHumanActionNodeType(t13) {
48659
+ return HITL_NODE_TYPES.has(t13) || isEscalationNode(t13);
48660
+ }
48061
48661
  var HITL_VARS_REF = /\$?vars\.([A-Za-z_$][\w$]*)/g;
48062
48662
  function nodeType(node) {
48063
48663
  return node.data?.type ?? node.type ?? "";
@@ -48097,10 +48697,15 @@ function addHitlMapTargets(node, out) {
48097
48697
  }
48098
48698
  function collectWrittenGlobalIds(nodes, workflowVariables) {
48099
48699
  const written = /* @__PURE__ */ new Set;
48100
- for (const updates of Object.values(workflowVariables?.variableUpdates ?? {}))
48700
+ const unsupportedNodeIds = new Set(nodes.filter((node) => !supportsVariableUpdates(nodeType(node))).map((node) => node.id));
48701
+ for (const [nodeId, updates] of Object.entries(workflowVariables?.variableUpdates ?? {})) {
48702
+ if (unsupportedNodeIds.has(nodeId))
48703
+ continue;
48101
48704
  addUpdateTargets(updates, written);
48705
+ }
48102
48706
  for (const node of nodes) {
48103
- addUpdateTargets(node.data?.variableUpdates, written);
48707
+ if (supportsVariableUpdates(nodeType(node)))
48708
+ addUpdateTargets(node.data?.variableUpdates, written);
48104
48709
  addEndOutputTargets(node, written);
48105
48710
  addHitlMapTargets(node, written);
48106
48711
  }
@@ -48486,11 +49091,11 @@ var hitlQuickFormRule = {
48486
49091
  const errors5 = [];
48487
49092
  for (const node of ctx.nodes) {
48488
49093
  const nodeType2 = node.data?.type ?? node.type ?? "";
48489
- if (nodeType2 !== HITL_QUICK_FORM_NODE_TYPE)
49094
+ if (nodeType2 !== HITL_QUICK_FORM_NODE_TYPE && nodeType2 !== FORM_TRIGGER_NODE_TYPE)
48490
49095
  continue;
48491
49096
  const inputs = node.data?.inputs;
48492
49097
  const schema = inputs?.schema;
48493
- const fields = schema?.fields ?? [];
49098
+ const fields = Array.isArray(schema?.fields) ? schema.fields : [];
48494
49099
  if (fields.length === 0) {
48495
49100
  errors5.push({
48496
49101
  code: "HITL_QUICK_FORM_EMPTY_SCHEMA",
@@ -48503,7 +49108,8 @@ var hitlQuickFormRule = {
48503
49108
  continue;
48504
49109
  }
48505
49110
  fields.forEach((field, index) => {
48506
- if (!readStringField(field?.label).trim()) {
49111
+ const label = field && typeof field === "object" && !Array.isArray(field) ? field.label : undefined;
49112
+ if (!readStringField(label).trim()) {
48507
49113
  errors5.push({
48508
49114
  code: "HITL_QUICK_FORM_FIELD_LABEL_REQUIRED",
48509
49115
  ...localized9("hitlQuickForm_fieldLabelRequired_message", {}, "Field label is required"),
@@ -48561,7 +49167,7 @@ var hitlDocValidationRule = {
48561
49167
  continue;
48562
49168
  const inputs = node.data?.inputs;
48563
49169
  const renderType = inputs?.["validationRenderType"];
48564
- const extractionResult = inputs?.["extractionResult"]?.trim() ?? "";
49170
+ const extractionResult = readStringField(inputs?.["extractionResult"]).trim();
48565
49171
  if (!extractionResult) {
48566
49172
  errors5.push({
48567
49173
  code: "HITL_DOC_VALIDATION_EXTRACTION_RESULT_REQUIRED",
@@ -48573,7 +49179,7 @@ var hitlDocValidationRule = {
48573
49179
  });
48574
49180
  }
48575
49181
  if (renderType === CUSTOM_RENDER_TYPE) {
48576
- const taxonomy = inputs?.["taxonomy"]?.trim() ?? "";
49182
+ const taxonomy = readStringField(inputs?.["taxonomy"]).trim();
48577
49183
  if (!taxonomy) {
48578
49184
  errors5.push({
48579
49185
  code: "HITL_DOC_VALIDATION_TAXONOMY_REQUIRED",
@@ -48691,6 +49297,72 @@ var scriptMustacheRule = {
48691
49297
  return errors5;
48692
49298
  }
48693
49299
  };
49300
+ var READ_ENTITY = "core.datafabric.read";
49301
+ var RECORD_TARGET_NODES = /* @__PURE__ */ new Set(["core.datafabric.update", "core.datafabric.delete"]);
49302
+ var PROBLEM_CODES = {
49303
+ uncarryable: "ENTITY_QUERY_EXPRESSION_UNCARRYABLE",
49304
+ cleared: "ENTITY_QUERY_FILTER_EXPRESSION_EMPTY",
49305
+ emptyList: "ENTITY_QUERY_FILTER_VALUE_LIST_EMPTY"
49306
+ };
49307
+ var SELF_REFERENCE = /(^|[^\w$])\$self\b/;
49308
+ function isSelfReferential(value) {
49309
+ const body = getJsExpressionBody(value);
49310
+ return body !== undefined && SELF_REFERENCE.test(body);
49311
+ }
49312
+ function isUnqueryable(value) {
49313
+ return isQesUncarryableValue(value) || isSelfReferential(value);
49314
+ }
49315
+ function isFilterExpressionCleared(f) {
49316
+ const body = getJsExpressionBody(f.value);
49317
+ return body !== undefined && body.trim() === "";
49318
+ }
49319
+ var entityQueryExpressionRule = {
49320
+ id: "entity-query-expression",
49321
+ severity: "error",
49322
+ validate(ctx) {
49323
+ const errors5 = [];
49324
+ for (const node of ctx.nodes) {
49325
+ const entityConfig = node.data.inputs?.entityConfig ?? {};
49326
+ let problem;
49327
+ if (node.type === READ_ENTITY) {
49328
+ const filters = Array.isArray(entityConfig._filters) ? entityConfig._filters : [];
49329
+ const multiRecord = resolveReadResultMode(entityConfig) === "multiple";
49330
+ const compiles = (f) => Boolean(f?.field) && (f.operator !== IN_FILTER_OPERATOR || multiRecord);
49331
+ if (filters.some((f) => compiles(f) && isUnqueryable(f.value)))
49332
+ problem = "uncarryable";
49333
+ else if (multiRecord && (isUnqueryable(entityConfig._recordLimit) || isUnqueryable(entityConfig._skip)))
49334
+ problem = "uncarryable";
49335
+ else if (filters.some((f) => compiles(f) && isFilterExpressionCleared(f)))
49336
+ problem = "cleared";
49337
+ else if (filters.some((f) => readEntityFilterValueListIsEmpty(f, multiRecord)))
49338
+ problem = "emptyList";
49339
+ } else if (RECORD_TARGET_NODES.has(node.type)) {
49340
+ if (isRecordTargetedById(entityConfig) && isUnqueryable(entityConfig.recordId))
49341
+ problem = "uncarryable";
49342
+ }
49343
+ if (problem) {
49344
+ errors5.push({
49345
+ code: PROBLEM_CODES[problem],
49346
+ ...problem === "cleared" ? localized("entityQuery_emptyFilterExpression_message", {}, "Write an expression for every filter, or remove the filter") : problem === "emptyList" ? localized("entityQuery_emptyFilterValueList_message", {}, "Add at least one value to the filter, or remove the filter") : localized("entityQuery_uncarryableExpression_message", {}, "Store this expression in a variable, or write it without spaces, quotes, or backslashes"),
49347
+ severity: "error",
49348
+ nodeId: node.id,
49349
+ fieldPath: "inputs.entityConfig",
49350
+ layer: "field"
49351
+ });
49352
+ }
49353
+ }
49354
+ return errors5;
49355
+ }
49356
+ };
49357
+ function isRecordTargetedById(entityConfig) {
49358
+ if (entityConfig.recordSource === "byId")
49359
+ return true;
49360
+ if (entityConfig.recordSource === "fromRead" || entityConfig.readEntityNodeId)
49361
+ return false;
49362
+ const recordId = entityConfig.recordId;
49363
+ const text = isExpressionValue(recordId) ? recordId.expression : typeof recordId === "string" ? recordId : "";
49364
+ return text.trim() !== "";
49365
+ }
48694
49366
  function getNodeType5(node) {
48695
49367
  return node.data?.type ?? node.type ?? "";
48696
49368
  }
@@ -48764,6 +49436,7 @@ var generalRules = [
48764
49436
  hitlDocValidationRule,
48765
49437
  ixpSchemaDraftRule,
48766
49438
  scriptMustacheRule,
49439
+ entityQueryExpressionRule,
48767
49440
  singleConversationTriggerRule,
48768
49441
  doWhileLimitRule
48769
49442
  ];
@@ -48771,10 +49444,30 @@ var cliRules = [...generalRules, expressionRefRule];
48771
49444
  function runRules(rules, ctx) {
48772
49445
  const errors5 = [];
48773
49446
  for (const rule of rules) {
48774
- errors5.push(...rule.validate(ctx));
49447
+ try {
49448
+ errors5.push(...rule.validate(ctx));
49449
+ } catch (err) {
49450
+ console.error(`[validation] rule '${rule.id}' threw and was skipped`, err);
49451
+ }
48775
49452
  }
48776
49453
  return errors5;
48777
49454
  }
49455
+ function toSerializedNode(node, extraData) {
49456
+ return {
49457
+ id: node.id,
49458
+ type: node.type,
49459
+ data: {
49460
+ inputs: node.inputs ?? {},
49461
+ outputs: node.outputs ?? {},
49462
+ ...node.typeVersion !== undefined && { typeVersion: node.typeVersion },
49463
+ ...node.display != null && { display: node.display, label: node.display.label },
49464
+ ...extraData
49465
+ }
49466
+ };
49467
+ }
49468
+ function toSerializedNodes(nodes, extraData) {
49469
+ return nodes.map((node) => toSerializedNode(node, extraData?.(node)));
49470
+ }
48778
49471
 
48779
49472
  // ../../node_modules/@uipath/flow-schema/dist/index.js
48780
49473
  var import_object = __toESM(require_index_cjs(), 1);
@@ -48815,18 +49508,29 @@ var EMPTY_VARIABLES = Object.freeze({ globals: [], nodes: [], variableUpdates: {
48815
49508
  var workflowConnectionSchema = exports_external.object({
48816
49509
  type: exports_external.enum(["cloud", "local"]),
48817
49510
  environment: exports_external.enum(["cloud", "staging", "alpha"]).optional(),
49511
+ baseUrl: exports_external.string().optional(),
48818
49512
  organizationId: exports_external.string().optional(),
48819
49513
  tenantId: exports_external.string().optional(),
48820
49514
  tenantName: exports_external.string().optional(),
48821
49515
  localUrl: exports_external.string().url().optional()
48822
49516
  });
48823
- var nodeLayoutSchema = exports_external.object({
49517
+ var nodeLayoutSchema = exports_external.looseObject({
48824
49518
  position: exports_external.object({ x: exports_external.number(), y: exports_external.number() }),
48825
49519
  size: exports_external.object({ width: exports_external.number(), height: exports_external.number() }).optional(),
48826
49520
  collapsed: exports_external.boolean().optional()
48827
- }).passthrough();
49521
+ });
49522
+ var waypointSchema = exports_external.object({
49523
+ id: exports_external.string(),
49524
+ x: exports_external.number(),
49525
+ y: exports_external.number()
49526
+ });
49527
+ var edgeLayoutSchema = exports_external.looseObject({
49528
+ waypoints: exports_external.array(waypointSchema).optional(),
49529
+ routedWaypoints: exports_external.array(waypointSchema).optional()
49530
+ });
48828
49531
  var layoutSchema = exports_external.object({
48829
- nodes: exports_external.record(exports_external.string(), nodeLayoutSchema)
49532
+ nodes: exports_external.record(exports_external.string(), nodeLayoutSchema),
49533
+ edges: exports_external.record(exports_external.string(), edgeLayoutSchema).optional()
48830
49534
  });
48831
49535
  var bindingSchema = exports_external.object({
48832
49536
  id: exports_external.string(),
@@ -48933,6 +49637,12 @@ var handleGroupOverrideSchema = exports_external.object({
48933
49637
  handles: exports_external.array(handleManifestSchema),
48934
49638
  visible: exports_external.boolean().optional()
48935
49639
  });
49640
+ var nodeShapeSchema = exports_external["enum"]([
49641
+ "circle",
49642
+ "square",
49643
+ "rectangle",
49644
+ "container"
49645
+ ]);
48936
49646
  var toolbarActionSchema = exports_external.object({
48937
49647
  id: exports_external.string(),
48938
49648
  icon: exports_external.string(),
@@ -48942,6 +49652,7 @@ var toolbarActionSchema = exports_external.object({
48942
49652
  requiresPermissions: exports_external.array(exports_external.string()).optional(),
48943
49653
  hideOnExecution: exports_external.boolean().optional(),
48944
49654
  nodeTypes: exports_external.array(exports_external.string()).optional(),
49655
+ shapes: exports_external.array(nodeShapeSchema).optional(),
48945
49656
  handles: exports_external.array(exports_external.object({
48946
49657
  handleType: exports_external["enum"]([
48947
49658
  "output",
@@ -48960,12 +49671,6 @@ var modeToolbarConfigSchema = exports_external.object({
48960
49671
  overflowActions: exports_external.array(toolbarActionSchema).optional()
48961
49672
  });
48962
49673
  var toolbarConfigurationSchema = exports_external.record(exports_external.string(), modeToolbarConfigSchema);
48963
- var nodeShapeSchema = exports_external["enum"]([
48964
- "circle",
48965
- "square",
48966
- "rectangle",
48967
- "container"
48968
- ]);
48969
49674
  var nodeDebugManifestSchema = exports_external.object({
48970
49675
  runtime: exports_external.string().min(1)
48971
49676
  });
@@ -49034,12 +49739,23 @@ var displayConfigSchema = exports_external.object({
49034
49739
  footerVariant: exports_external.string().optional(),
49035
49740
  shadow: exports_external.boolean().optional()
49036
49741
  }).catchall(exports_external.unknown());
49742
+ var waypointSchema2 = exports_external.object({
49743
+ id: exports_external.string().min(1),
49744
+ x: exports_external.number(),
49745
+ y: exports_external.number()
49746
+ });
49747
+ var edgeUiSchema = exports_external.object({
49748
+ waypoints: exports_external.array(waypointSchema2).optional(),
49749
+ routedWaypoints: exports_external.array(waypointSchema2).optional(),
49750
+ autoRouted: exports_external.boolean().optional()
49751
+ }).catchall(exports_external.unknown());
49037
49752
  var edgeSchema = exports_external.object({
49038
49753
  id: idSchema,
49039
49754
  sourceNodeId: idSchema,
49040
49755
  sourcePort: exports_external.string().min(1),
49041
49756
  targetNodeId: idSchema,
49042
49757
  targetPort: exports_external.string().min(1),
49758
+ ui: edgeUiSchema.nullish().transform((value) => value ?? undefined).optional(),
49043
49759
  data: exports_external.object({
49044
49760
  label: exports_external.string().optional()
49045
49761
  }).passthrough().optional()
@@ -49069,13 +49785,17 @@ var nodeSchema = exports_external.object({
49069
49785
  model: exports_external.unknown().optional(),
49070
49786
  parentId: idSchema.optional()
49071
49787
  });
49788
+ var edgeSchema2 = edgeSchema.extend({
49789
+ ui: edgeLayoutSchema.optional()
49790
+ });
49072
49791
  var nodeSchema2 = nodeSchema.extend({
49073
49792
  typeVersion: exports_external.string().regex(/^\d+\.\d+(\.\d+)?$/, 'Version must be in format "x.y" or "x.y.z"')
49074
49793
  });
49075
49794
  var nodeManifestSchema2 = exports_external.lazy(() => nodeManifestSchema.extend({
49076
49795
  projectId: exports_external.string().optional(),
49077
49796
  entryPointPath: exports_external.string().optional(),
49078
- unsupportedRuntime: exports_external.boolean().optional()
49797
+ unsupportedRuntime: exports_external.boolean().optional(),
49798
+ takeoverTabs: exports_external.array(exports_external.string()).optional()
49079
49799
  }));
49080
49800
  var categoryManifestSchema2 = exports_external.lazy(() => categoryManifestSchema.extend({
49081
49801
  displayIfEmpty: exports_external.boolean().optional()
@@ -49083,7 +49803,7 @@ var categoryManifestSchema2 = exports_external.lazy(() => categoryManifestSchema
49083
49803
  var versionSchema2 = exports_external.string().regex(/^\d+\.\d+(\.\d+)?$/, 'Version must be in format "x.y" or "x.y.z"');
49084
49804
  var subflowEntrySchema = exports_external.object({
49085
49805
  nodes: exports_external.array(nodeSchema2),
49086
- edges: exports_external.array(edgeSchema),
49806
+ edges: exports_external.array(edgeSchema2),
49087
49807
  variables: workflowVariablesSchema.optional()
49088
49808
  });
49089
49809
  var workflowSchema = exports_external.object({
@@ -49093,7 +49813,7 @@ var workflowSchema = exports_external.object({
49093
49813
  description: exports_external.string().optional(),
49094
49814
  runtime: workflowRuntimeSchema.optional(),
49095
49815
  nodes: exports_external.array(nodeSchema2),
49096
- edges: exports_external.array(edgeSchema),
49816
+ edges: exports_external.array(edgeSchema2),
49097
49817
  definitions: exports_external.array(nodeManifestSchema2),
49098
49818
  bindings: exports_external.array(bindingSchema).optional(),
49099
49819
  variables: workflowVariablesSchema.optional(),
@@ -49105,7 +49825,7 @@ var fileFormatNodeSchema = exports_external.lazy(() => nodeSchema2.extend({
49105
49825
  }));
49106
49826
  var subflowFileSchema = exports_external.object({
49107
49827
  nodes: exports_external.array(fileFormatNodeSchema),
49108
- edges: exports_external.array(edgeSchema),
49828
+ edges: exports_external.array(edgeSchema2),
49109
49829
  variables: workflowVariablesSchema.optional(),
49110
49830
  layout: layoutSchema.optional()
49111
49831
  });
@@ -49116,7 +49836,7 @@ var workflowSchemaV1_0_0 = exports_external.object({
49116
49836
  description: exports_external.string().optional(),
49117
49837
  runtime: workflowRuntimeSchema.optional(),
49118
49838
  nodes: exports_external.array(fileFormatNodeSchema),
49119
- edges: exports_external.array(edgeSchema),
49839
+ edges: exports_external.array(edgeSchema2),
49120
49840
  definitions: exports_external.array(nodeManifestSchema2),
49121
49841
  bindings: exports_external.array(bindingSchema).optional(),
49122
49842
  variables: workflowVariablesSchema.optional(),
@@ -49129,7 +49849,7 @@ var fileFormatNodeSchema2 = exports_external.lazy(() => nodeSchema2.extend({
49129
49849
  }));
49130
49850
  var subflowFileSchema2 = exports_external.object({
49131
49851
  nodes: exports_external.array(fileFormatNodeSchema2),
49132
- edges: exports_external.array(edgeSchema),
49852
+ edges: exports_external.array(edgeSchema2),
49133
49853
  variables: workflowVariablesSchema.optional(),
49134
49854
  layout: layoutSchema.optional()
49135
49855
  });
@@ -49140,7 +49860,7 @@ var workflowSchemaV1_0 = exports_external.object({
49140
49860
  description: exports_external.string().optional(),
49141
49861
  runtime: workflowRuntimeSchema.optional(),
49142
49862
  nodes: exports_external.array(fileFormatNodeSchema2),
49143
- edges: exports_external.array(edgeSchema),
49863
+ edges: exports_external.array(edgeSchema2),
49144
49864
  definitions: exports_external.array(nodeManifestSchema2),
49145
49865
  bindings: exports_external.array(bindingSchema).optional(),
49146
49866
  variables: workflowVariablesSchema.optional(),
@@ -49168,7 +49888,7 @@ var v1_3WorkflowVariablesSchema = exports_external.object({
49168
49888
  });
49169
49889
  var subflowFileSchema3 = exports_external.object({
49170
49890
  nodes: exports_external.array(fileFormatNodeSchema3),
49171
- edges: exports_external.array(edgeSchema),
49891
+ edges: exports_external.array(edgeSchema2),
49172
49892
  variables: v1_3WorkflowVariablesSchema.optional(),
49173
49893
  layout: layoutSchema.optional()
49174
49894
  });
@@ -49179,7 +49899,7 @@ var workflowSchemaV1_3 = exports_external.object({
49179
49899
  description: exports_external.string().optional(),
49180
49900
  runtime: workflowRuntimeSchema.optional(),
49181
49901
  nodes: exports_external.array(fileFormatNodeSchema3),
49182
- edges: exports_external.array(edgeSchema),
49902
+ edges: exports_external.array(edgeSchema2),
49183
49903
  definitions: exports_external.array(nodeManifestSchema2),
49184
49904
  bindings: exports_external.array(bindingSchema).optional(),
49185
49905
  variables: v1_3WorkflowVariablesSchema.optional(),
@@ -49201,7 +49921,7 @@ var v1_4WorkflowVariablesSchema = exports_external.object({
49201
49921
  });
49202
49922
  var subflowFileSchema4 = exports_external.object({
49203
49923
  nodes: exports_external.array(fileFormatNodeSchema4),
49204
- edges: exports_external.array(edgeSchema),
49924
+ edges: exports_external.array(edgeSchema2),
49205
49925
  variables: v1_4WorkflowVariablesSchema.optional(),
49206
49926
  layout: layoutSchema.optional()
49207
49927
  });
@@ -49212,7 +49932,7 @@ var workflowSchemaV1_4 = exports_external.object({
49212
49932
  description: exports_external.string().optional(),
49213
49933
  runtime: workflowRuntimeSchema.optional(),
49214
49934
  nodes: exports_external.array(fileFormatNodeSchema4),
49215
- edges: exports_external.array(edgeSchema),
49935
+ edges: exports_external.array(edgeSchema2),
49216
49936
  definitions: exports_external.array(nodeManifestSchema2),
49217
49937
  bindings: exports_external.array(bindingSchema).optional(),
49218
49938
  variables: v1_4WorkflowVariablesSchema.optional(),
@@ -49247,7 +49967,7 @@ var fileFormatNodeSchema5 = exports_external.lazy(() => nodeSchema2.extend({
49247
49967
  }));
49248
49968
  var subflowFileSchema5 = exports_external.object({
49249
49969
  nodes: exports_external.array(fileFormatNodeSchema5),
49250
- edges: exports_external.array(edgeSchema),
49970
+ edges: exports_external.array(edgeSchema2),
49251
49971
  variables: workflowVariablesSchema.optional(),
49252
49972
  layout: layoutSchema.optional()
49253
49973
  });
@@ -50055,6 +50775,7 @@ function fileFormatToInMemoryWorkflow(file3) {
50055
50775
  ...rest,
50056
50776
  runtime: file3.runtime ?? DEFAULT_WORKFLOW_RUNTIME,
50057
50777
  nodes: file3.nodes ? mergeLayout(file3.nodes, file3.layout?.nodes) : [],
50778
+ ...file3.edges && { edges: mergeEdgeLayout(file3.edges, file3.layout?.edges) },
50058
50779
  subflows: file3.subflows ? mapValues(file3.subflows, subflowFileToMemory) : undefined
50059
50780
  };
50060
50781
  }
@@ -50073,11 +50794,13 @@ function inMemoryWorkflowToFileFormat(workflow) {
50073
50794
  }
50074
50795
  const { subflows: _, ...rest } = workflow;
50075
50796
  const { layout: nodeLayout, nodes } = extractLayout(workflow.nodes);
50797
+ const { layout: edgeLayout, edges } = extractEdgeLayout(workflow.edges);
50076
50798
  return {
50077
50799
  ...rest,
50078
50800
  version: rest.version,
50079
50801
  nodes,
50080
- layout: { nodes: nodeLayout },
50802
+ ...workflow.edges && { edges },
50803
+ layout: { nodes: nodeLayout, ...edgeLayout && { edges: edgeLayout } },
50081
50804
  subflows: workflow.subflows ? mapValues(workflow.subflows, subflowMemoryToFile) : undefined
50082
50805
  };
50083
50806
  }
@@ -50089,6 +50812,30 @@ function mergeLayout(nodes, layoutNodes) {
50089
50812
  return { ...node, ui };
50090
50813
  });
50091
50814
  }
50815
+ function mergeEdgeLayout(edges, layoutEdges) {
50816
+ if (!layoutEdges)
50817
+ return edges;
50818
+ return edges.map((edge) => {
50819
+ const layoutEntry = edge.id ? layoutEdges[edge.id] : undefined;
50820
+ return layoutEntry ? { ...edge, ui: { ...edge.ui, ...layoutEntry } } : edge;
50821
+ });
50822
+ }
50823
+ function extractEdgeLayout(edges) {
50824
+ if (!edges)
50825
+ return { layout: undefined, edges: [] };
50826
+ const hasLayout = (edge) => Boolean(edge.id && edge.ui && Object.keys(edge.ui).length > 0);
50827
+ if (!edges.some(hasLayout))
50828
+ return { layout: undefined, edges };
50829
+ const layout = {};
50830
+ const strippedEdges = edges.map((edge) => {
50831
+ if (hasLayout(edge)) {
50832
+ layout[edge.id] = edge.ui;
50833
+ }
50834
+ const { ui: _, ...rest } = edge;
50835
+ return rest;
50836
+ });
50837
+ return { layout, edges: strippedEdges };
50838
+ }
50092
50839
  function extractLayout(nodes) {
50093
50840
  const layout = {};
50094
50841
  const strippedNodes = nodes.map((node) => {
@@ -50104,15 +50851,18 @@ function subflowFileToMemory(subflow) {
50104
50851
  const { layout: _, ...rest } = subflow;
50105
50852
  return {
50106
50853
  ...rest,
50107
- nodes: mergeLayout(subflow.nodes, subflow.layout?.nodes)
50854
+ nodes: mergeLayout(subflow.nodes, subflow.layout?.nodes),
50855
+ ...subflow.edges && { edges: mergeEdgeLayout(subflow.edges, subflow.layout?.edges) }
50108
50856
  };
50109
50857
  }
50110
50858
  function subflowMemoryToFile(subflow) {
50111
50859
  const { layout: nodeLayout, nodes } = extractLayout(subflow.nodes);
50860
+ const { layout: edgeLayout, edges } = extractEdgeLayout(subflow.edges);
50112
50861
  return {
50113
50862
  ...subflow,
50114
50863
  nodes,
50115
- layout: { nodes: nodeLayout }
50864
+ ...subflow.edges && { edges },
50865
+ layout: { nodes: nodeLayout, ...edgeLayout && { edges: edgeLayout } }
50116
50866
  };
50117
50867
  }
50118
50868
  function mapValues(record3, fn) {
@@ -50228,6 +50978,15 @@ ${formatted}`,
50228
50978
  };
50229
50979
  }
50230
50980
  }
50981
+ var workflowScopes = (workflow) => [
50982
+ { nodes: workflow.nodes ?? [], edges: workflow.edges ?? [], variables: workflow.variables },
50983
+ ...Object.values(workflow.subflows ?? {}).map((entry) => ({
50984
+ nodes: entry.nodes ?? [],
50985
+ edges: entry.edges ?? [],
50986
+ variables: entry.variables
50987
+ }))
50988
+ ];
50989
+ var collectWorkflowNodesDeep = (workflow) => workflowScopes(workflow).flatMap((scope) => scope.nodes);
50231
50990
  function compareVersions(a, b) {
50232
50991
  const pa = a.split(".");
50233
50992
  const pb = b.split(".");
@@ -50451,6 +51210,9 @@ function getCronExpressionFromTimeCycleValue(timeCycleValue) {
50451
51210
  var BINDINGS_PATH_PREFIX = "=bindings.";
50452
51211
  var BINDINGS_PLACEHOLDER_PATH_PREFIX = "bindings.";
50453
51212
  var PROPERTY_RESOURCE = "Property";
51213
+ var FORM_TRIGGER_RESOURCE = "FormTrigger";
51214
+ var ENTRY_POINT_UNIQUE_ID = "EntryPointUniqueId";
51215
+ var GUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
50454
51216
  var EntryPointType = {
50455
51217
  ProcessOrchestration: "processorchestration",
50456
51218
  Agent: "agent"
@@ -50520,6 +51282,74 @@ var mapTypeToJsonSchema = (type) => {
50520
51282
  var isValidDefaultValueForVariable = (value) => {
50521
51283
  return value !== undefined && value !== "";
50522
51284
  };
51285
+ var JOB_ATTACHMENT_DEFINITION_KEY = "job-attachment";
51286
+ var JOB_ATTACHMENT_REF = `#/definitions/${JOB_ATTACHMENT_DEFINITION_KEY}`;
51287
+ var isJobAttachmentRef = (node) => {
51288
+ const ref = node?.$ref;
51289
+ return typeof ref === "string" && ref.endsWith(`/${JOB_ATTACHMENT_DEFINITION_KEY}`);
51290
+ };
51291
+ var convertFileTypesToRefs = (schema) => {
51292
+ if (!schema || typeof schema !== "object" || Array.isArray(schema))
51293
+ return { schema, hasFile: false };
51294
+ const node = schema;
51295
+ if (node.type === "file") {
51296
+ const { type: _type, ...rest } = node;
51297
+ return { schema: { ...rest, $ref: JOB_ATTACHMENT_REF }, hasFile: true };
51298
+ }
51299
+ let hasFile = false;
51300
+ const out = { ...node };
51301
+ for (const key of ["items", "additionalProperties"]) {
51302
+ const child = node[key];
51303
+ if (child && typeof child === "object" && !Array.isArray(child)) {
51304
+ const converted = convertFileTypesToRefs(child);
51305
+ out[key] = converted.schema;
51306
+ if (converted.hasFile)
51307
+ hasFile = true;
51308
+ }
51309
+ }
51310
+ if (node.properties && typeof node.properties === "object" && !Array.isArray(node.properties)) {
51311
+ const props = {};
51312
+ for (const [propKey, propSchema] of Object.entries(node.properties)) {
51313
+ const converted = convertFileTypesToRefs(propSchema);
51314
+ props[propKey] = converted.schema;
51315
+ if (converted.hasFile)
51316
+ hasFile = true;
51317
+ }
51318
+ out.properties = props;
51319
+ }
51320
+ return { schema: out, hasFile };
51321
+ };
51322
+ var convertJobAttachmentRefsToFileTypes = (schema) => {
51323
+ if (!schema || typeof schema !== "object" || Array.isArray(schema))
51324
+ return schema;
51325
+ const node = schema;
51326
+ if (isJobAttachmentRef(node)) {
51327
+ const { $ref: _ref, ...rest } = node;
51328
+ return { ...rest, type: "file" };
51329
+ }
51330
+ const out = { ...node };
51331
+ for (const key of ["items", "additionalProperties"]) {
51332
+ const child = node[key];
51333
+ if (child && typeof child === "object" && !Array.isArray(child))
51334
+ out[key] = convertJobAttachmentRefsToFileTypes(child);
51335
+ }
51336
+ if (node.properties && typeof node.properties === "object" && !Array.isArray(node.properties)) {
51337
+ const props = {};
51338
+ for (const [propKey, propSchema] of Object.entries(node.properties)) {
51339
+ props[propKey] = convertJobAttachmentRefsToFileTypes(propSchema);
51340
+ }
51341
+ out.properties = props;
51342
+ }
51343
+ return out;
51344
+ };
51345
+ var variableHasFileType = (variable) => {
51346
+ if (variable.type === "file")
51347
+ return true;
51348
+ if ((variable.type === "array" || variable.type === "object") && variable.schema) {
51349
+ return convertFileTypesToRefs(variable.schema).hasFile;
51350
+ }
51351
+ return false;
51352
+ };
50523
51353
  var variableToJsonSchema = (variable) => {
50524
51354
  if (variable.type === "jsonSchema") {
50525
51355
  const body = variable.body ?? variable.schema;
@@ -50531,7 +51361,7 @@ var variableToJsonSchema = (variable) => {
50531
51361
  return { type: "object" };
50532
51362
  }
50533
51363
  if (variable.type === "file") {
50534
- return { $ref: "#/definitions/job-attachment" };
51364
+ return { $ref: JOB_ATTACHMENT_REF };
50535
51365
  }
50536
51366
  const defaults = {
50537
51367
  ...isValidDefaultValueForVariable(variable.defaultValue) ? { default: variable.defaultValue } : {},
@@ -50539,7 +51369,7 @@ var variableToJsonSchema = (variable) => {
50539
51369
  };
50540
51370
  if ((variable.type === "array" || variable.type === "object") && variable.schema) {
50541
51371
  const { $schema: _$schema, ...rest } = variable.schema;
50542
- return { ...rest, title: variable.id, ...defaults };
51372
+ return convertFileTypesToRefs({ ...rest, title: variable.id, ...defaults }).schema;
50543
51373
  }
50544
51374
  const { type, format } = mapTypeToJsonSchema(variable.type);
50545
51375
  return {
@@ -50561,12 +51391,20 @@ var getBindingResourceValue = (binding, manifestModel, allBindings = []) => {
50561
51391
  if (resourceType === "Entity") {
50562
51392
  const nameBinding = allBindings.find((b) => b.resourceKey === binding.resourceKey && (b.propertyAttribute === "name" || b.name === "name"));
50563
51393
  const nameValue = nameBinding?.default ?? binding.default;
51394
+ const folderKeyBinding = allBindings.find((b) => b.resourceKey === binding.resourceKey && bindingFieldMatches(b, "folderKey"));
51395
+ const folderKeyValue = folderKeyBinding?.default;
50564
51396
  return {
50565
51397
  name: {
50566
51398
  ...nameValue ? { defaultValue: nameValue } : {},
50567
51399
  isExpression: false,
50568
51400
  displayName: RESOURCE_CONFIG.Entity.displayName
50569
- }
51401
+ },
51402
+ ...folderKeyValue ? {
51403
+ folderKey: {
51404
+ defaultValue: folderKeyValue,
51405
+ isExpression: false
51406
+ }
51407
+ } : {}
50570
51408
  };
50571
51409
  }
50572
51410
  if (RESOURCE_CONFIG[resourceType]) {
@@ -50629,7 +51467,7 @@ var getConnectionMetadata = (manifestModel, node) => {
50629
51467
  Connector: connector
50630
51468
  };
50631
51469
  };
50632
- var getBindingResources = (nodes, bindings, definitions = [], subflows) => {
51470
+ var getBindingResources = (nodes, bindings, definitions = [], subflows, options = {}) => {
50633
51471
  const bindingResources = [];
50634
51472
  for (const binding of bindings) {
50635
51473
  const node = nodes.find((n) => modelMatchesBinding(getManifestModel(n, definitions), binding) || inputsMatchBinding(n, binding) || entityConfigMatchesBinding(n, binding));
@@ -50726,8 +51564,38 @@ var getBindingResources = (nodes, bindings, definitions = [], subflows) => {
50726
51564
  }
50727
51565
  });
50728
51566
  }
51567
+ if (options.includeFormTriggers) {
51568
+ bindingResources.push(...buildFormTriggerResources(nodes));
51569
+ }
50729
51570
  return bindingResources;
50730
51571
  };
51572
+ function buildFormTriggerResources(nodes) {
51573
+ const resources = [];
51574
+ for (const node of nodes) {
51575
+ if (node.type !== FORM_TRIGGER_NODE_TYPE)
51576
+ continue;
51577
+ const entryPointId = node.inputs?.entryPointId;
51578
+ if (typeof entryPointId !== "string" || !GUID_PATTERN.test(entryPointId))
51579
+ continue;
51580
+ const form = normalizeFormTriggerSchema(node.inputs?.schema);
51581
+ if (!form)
51582
+ continue;
51583
+ resources.push({
51584
+ resource: FORM_TRIGGER_RESOURCE,
51585
+ key: entryPointId,
51586
+ id: `${FORM_TRIGGER_RESOURCE}_${entryPointId}`,
51587
+ value: {
51588
+ [ENTRY_POINT_UNIQUE_ID]: { defaultValue: entryPointId, isExpression: false }
51589
+ },
51590
+ metadata: {
51591
+ ActivityName: "Form Trigger",
51592
+ BindingsVersion: "2.2",
51593
+ FormDefinition: form
51594
+ }
51595
+ });
51596
+ }
51597
+ return resources;
51598
+ }
50731
51599
  function findConnectionBindingForTrigger(triggerNode, bindings, manifestModel) {
50732
51600
  const connectionBindings = bindings.filter((b) => b.resource === "connection");
50733
51601
  const dapDetail = triggerNode.inputs?.detail;
@@ -50922,36 +51790,32 @@ var getEffectiveTriggerInputs = (startNode, definitions, globals) => {
50922
51790
  }
50923
51791
  return (globals ?? []).filter((g) => g.direction === "in" && g.triggerNodeId === startNode.id);
50924
51792
  };
50925
- var buildInputSchema = (variables, startNode, definitions) => {
50926
- const inputVars = getEffectiveTriggerInputs(startNode, definitions, variables.globals);
50927
- let hasFileType = false;
51793
+ var buildSchemaProperties = (variables) => {
50928
51794
  const properties = {};
50929
- for (const variable of inputVars) {
50930
- if (variable.type === "file") {
51795
+ let hasFileType = false;
51796
+ for (const variable of variables) {
51797
+ if (variableHasFileType(variable))
50931
51798
  hasFileType = true;
50932
- }
50933
51799
  properties[variable.id] = variableToJsonSchema(variable);
50934
51800
  }
51801
+ return { properties, ...hasFileType ? { definitions: JOB_ATTACHMENTS_DEFINITION } : {} };
51802
+ };
51803
+ var buildInputSchema = (variables, startNode, definitions) => {
51804
+ const inputVars = getEffectiveTriggerInputs(startNode, definitions, variables.globals);
51805
+ const { properties, definitions: fileDefinitions } = buildSchemaProperties(inputVars);
50935
51806
  return {
50936
51807
  type: "object",
50937
51808
  properties,
50938
- ...hasFileType && { definitions: JOB_ATTACHMENTS_DEFINITION }
51809
+ ...fileDefinitions && { definitions: fileDefinitions }
50939
51810
  };
50940
51811
  };
50941
51812
  var buildOutputSchema = (variables) => {
50942
51813
  const outputVars = (variables.globals || []).filter((v) => v.direction === "out");
50943
- let hasFileType = false;
50944
- const properties = {};
50945
- for (const variable of outputVars) {
50946
- if (variable.type === "file") {
50947
- hasFileType = true;
50948
- }
50949
- properties[variable.id] = variableToJsonSchema(variable);
50950
- }
51814
+ const { properties, definitions } = buildSchemaProperties(outputVars);
50951
51815
  return {
50952
51816
  type: "object",
50953
51817
  properties,
50954
- ...hasFileType && { definitions: JOB_ATTACHMENTS_DEFINITION }
51818
+ ...definitions && { definitions }
50955
51819
  };
50956
51820
  };
50957
51821
  var getEntryPoints = (bpmnFileName, nodes, variables, definitions, projectType = ProjectType.ProcessOrchestration) => {
@@ -51027,28 +51891,38 @@ var deduplicateBindings = (bindings) => {
51027
51891
  return Array.from(seen.values());
51028
51892
  };
51029
51893
  var mergeBindingResources = (resources) => {
51030
- const seen = /* @__PURE__ */ new Set;
51894
+ const seen = /* @__PURE__ */ new Map;
51031
51895
  const result = [];
51032
51896
  for (const r of resources) {
51033
51897
  if (!r.key && !r.id) {
51034
51898
  console.warn("[packaging] binding resource has neither key nor id; may collapse with a sibling", { resource: r.resource });
51035
51899
  }
51036
51900
  const k = `${(r.resource ?? "").toLowerCase()}\x00${r.key ?? r.id ?? ""}`;
51037
- if (seen.has(k))
51901
+ const existing = seen.get(k);
51902
+ if (existing) {
51903
+ assertNoFormTriggerConflict(existing, r);
51038
51904
  continue;
51039
- seen.add(k);
51905
+ }
51906
+ seen.set(k, r);
51040
51907
  result.push(r);
51041
51908
  }
51042
51909
  return result;
51043
51910
  };
51911
+ function assertNoFormTriggerConflict(existing, incoming) {
51912
+ if (incoming.resource !== FORM_TRIGGER_RESOURCE)
51913
+ return;
51914
+ if (JSON.stringify(existing) === JSON.stringify(incoming))
51915
+ return;
51916
+ throw new Error(`Two Form Triggers share entry-point id ${incoming.key}. Each Form Trigger needs its own id; this usually means a .flow file was copied.`);
51917
+ }
51044
51918
  var sanitizeFileName = (name) => {
51045
51919
  return name.replace(/[^a-zA-Z0-9_-]/g, "_");
51046
51920
  };
51047
51921
  async function generateWorkflowPackaging(options) {
51048
- const { fileName, nodes, bindings, definitions, subflows, toBpmn } = options;
51922
+ const { fileName, nodes, bindings, definitions, subflows, includeFormTriggers = false, toBpmn } = options;
51049
51923
  const bpmnFileName = fileName.replace(/\.flow$/, ".bpmn");
51050
51924
  const bpmnXml = await toBpmn();
51051
- const bindingResources = getBindingResources(nodes, bindings, definitions, subflows);
51925
+ const bindingResources = getBindingResources(nodes, bindings, definitions, subflows, { includeFormTriggers });
51052
51926
  return { bpmnXml, bpmnFileName, bindingResources };
51053
51927
  }
51054
51928
  var BINDINGS_REF_PREFIX = "=bindings.";
@@ -51099,15 +51973,9 @@ function applyConnectionOverwritesToWorkflow(workflow, overwrites) {
51099
51973
  return false;
51100
51974
  const byKey = indexOverwrites(overwrites);
51101
51975
  let changed = patchBindings(workflow.bindings, byKey);
51102
- changed = patchNodes(workflow.nodes, byKey) || changed;
51103
- for (const subflow of Object.values(workflow.subflows ?? {})) {
51104
- changed = patchNodes(subflow.nodes, byKey) || changed;
51105
- }
51976
+ changed = patchNodes(collectWorkflowNodesDeep(workflow), byKey) || changed;
51106
51977
  return changed;
51107
51978
  }
51108
- function allNodes(workflow) {
51109
- return [...workflow.nodes ?? [], ...Object.values(workflow.subflows ?? {}).flatMap((s) => s.nodes ?? [])];
51110
- }
51111
51979
  function candidateConnectionBindingIds(workflow, candidateKeys) {
51112
51980
  const keyByBindingId = /* @__PURE__ */ new Map;
51113
51981
  for (const b of workflow.bindings ?? []) {
@@ -51132,7 +52000,7 @@ function collectNodeConnectionKeys(detail, candidateKeys, keyByBindingId, refere
51132
52000
  function referencedConnectionKeys(workflow, candidateKeys) {
51133
52001
  const keyByBindingId = candidateConnectionBindingIds(workflow, candidateKeys);
51134
52002
  const referenced = /* @__PURE__ */ new Set;
51135
- for (const node of allNodes(workflow)) {
52003
+ for (const node of collectWorkflowNodesDeep(workflow)) {
51136
52004
  const detail = node.inputs?.detail;
51137
52005
  if (detail)
51138
52006
  collectNodeConnectionKeys(detail, candidateKeys, keyByBindingId, referenced);
@@ -51290,8 +52158,7 @@ var BINDING_REFERENCE_PREFIX = "=bindings.";
51290
52158
  function resolveContextBindingPlaceholders(context, bindings, nodeResourceKey, nodeBindingResource) {
51291
52159
  if (!bindings.length)
51292
52160
  return context;
51293
- const candidates = nodeBindingResource ? bindings.filter((b) => b.resource === nodeBindingResource) : bindings;
51294
- if (!candidates.length)
52161
+ if (nodeBindingResource && !bindings.some((b) => b.resource === nodeBindingResource))
51295
52162
  return context;
51296
52163
  return context.map((entry) => {
51297
52164
  if (typeof entry.value !== "string")
@@ -51299,9 +52166,7 @@ function resolveContextBindingPlaceholders(context, bindings, nodeResourceKey, n
51299
52166
  const match = entry.value.match(CONTEXT_BINDING_RE);
51300
52167
  if (!match)
51301
52168
  return entry;
51302
- const name = match[1];
51303
- const hasScope = typeof nodeResourceKey === "string" && nodeResourceKey.length > 0;
51304
- const binding = hasScope ? candidates.find((b) => b.name === name && b.resourceKey === nodeResourceKey) : candidates.find((b) => b.name === name);
52169
+ const [binding] = matchContextBindings(match[1], bindings, nodeResourceKey, nodeBindingResource);
51305
52170
  if (!binding) {
51306
52171
  console.warn(`[flow-schema] Unresolved context binding placeholder "${entry.value}" (node resourceKey=${nodeResourceKey ?? "n/a"}, resource=${nodeBindingResource ?? "n/a"})`);
51307
52172
  return entry;
@@ -51309,6 +52174,11 @@ function resolveContextBindingPlaceholders(context, bindings, nodeResourceKey, n
51309
52174
  return { ...entry, value: `${BINDING_REFERENCE_PREFIX}${binding.id}` };
51310
52175
  });
51311
52176
  }
52177
+ function matchContextBindings(name, bindings, nodeResourceKey, nodeBindingResource) {
52178
+ const candidates = nodeBindingResource ? bindings.filter((b) => b.resource === nodeBindingResource) : bindings;
52179
+ const hasScope = typeof nodeResourceKey === "string" && nodeResourceKey.length > 0;
52180
+ return hasScope ? candidates.filter((b) => b.name === name && b.resourceKey === nodeResourceKey) : candidates.filter((b) => b.name === name);
52181
+ }
51312
52182
  var CONVERSATIONAL_AGENT_SETTINGS = {
51313
52183
  model: "anthropic.claude-sonnet-4-5-20250929-v1:0",
51314
52184
  maxTokens: 8192,
@@ -51341,11 +52211,18 @@ if (!defaultVoiceModel) {
51341
52211
  var DEFAULT_CONVERSATIONAL_VOICE_MODEL_ENTRY = defaultVoiceModel;
51342
52212
  var getVoiceModel = (name) => VOICE_MODELS.find((m) => m.name === name) ?? DEFAULT_CONVERSATIONAL_VOICE_MODEL_ENTRY;
51343
52213
  var getPersonasForModel = (modelName) => getVoiceModel(modelName).personas;
52214
+ var VOICE_TURN_DETECTION_SENSITIVITIES = ["low", "high"];
52215
+ var VOICE_TURN_DETECTION_LIMITS = {
52216
+ silenceDurationMs: { min: 0, max: 5000 },
52217
+ prefixPaddingMs: { min: 0, max: 5000 }
52218
+ };
52219
+ var DEFAULT_VOICE_AGENT_SPEAKS_FIRST = true;
51344
52220
  var DEFAULT_CONVERSATIONAL_VOICE_SETTINGS = {
51345
52221
  model: DEFAULT_CONVERSATIONAL_VOICE_MODEL,
51346
52222
  maxTokens: DEFAULT_CONVERSATIONAL_VOICE_MODEL_ENTRY.maxTokens,
51347
52223
  temperature: 0,
51348
- persona: DEFAULT_CONVERSATIONAL_VOICE_MODEL_ENTRY.personas[0]
52224
+ persona: DEFAULT_CONVERSATIONAL_VOICE_MODEL_ENTRY.personas[0],
52225
+ agentSpeaksFirst: DEFAULT_VOICE_AGENT_SPEAKS_FIRST
51349
52226
  };
51350
52227
  var JobAttachmentSchema = {
51351
52228
  type: "object",
@@ -51694,31 +52571,6 @@ function navigateToParent(doc3, pointer) {
51694
52571
  return { parent: null, key: "" };
51695
52572
  }
51696
52573
  }
51697
- function deepEqual(a, b) {
51698
- if (a === b)
51699
- return true;
51700
- if (a === null || b === null)
51701
- return a === b;
51702
- if (a === undefined || b === undefined)
51703
- return a === b;
51704
- if (typeof a !== typeof b)
51705
- return false;
51706
- if (Array.isArray(a)) {
51707
- if (!Array.isArray(b) || a.length !== b.length)
51708
- return false;
51709
- return a.every((val, i) => deepEqual(val, b[i]));
51710
- }
51711
- if (typeof a === "object") {
51712
- const objA = a;
51713
- const objB = b;
51714
- const keysA = Object.keys(objA);
51715
- const keysB = Object.keys(objB);
51716
- if (keysA.length !== keysB.length)
51717
- return false;
51718
- return keysA.every((key) => (key in objB) && deepEqual(objA[key], objB[key]));
51719
- }
51720
- return false;
51721
- }
51722
52574
  function createRefResolver(readFile) {
51723
52575
  return async (refPath, baseUri) => {
51724
52576
  const resolvedPath = resolveRelativePath(baseUri, refPath);
@@ -51856,6 +52708,6 @@ async function executeWritePlan(plan, callbacks) {
51856
52708
  inlinedRefs: plan.inlinedRefs
51857
52709
  };
51858
52710
  }
51859
- export { SUPPORTED_LOCALES, DEFAULT_LOCALE, normalizeLocale, resolveSupportedLocale, createI18nRegistrar, VALIDATION_NAMESPACE, registerFlowSchemaI18n, exports_external, instance, currentStorageSchema, currentAgentStorageSchema, isBlockingSeverity, shouldBlockAction, agentEnforcementsSchema, JS_EXPRESSION_PREFIX, expressionFieldTypeSchema, expressionModeSchema, expressionValueSchema, expressionLikeSchema, isExpressionValue, isEmptyExpressionValue, encodeLiteral, decodeLiteral, coerceToExpressionValue, getJsExpressionBody, expectedTypeToFieldType, coerceInputsViaSchema, isExpression, decodeLiteralForValidation, decodeLiteralsForValidation, isJsonSchema, normalizeInputDefinition, resolveNestedFieldSchema, getFieldValidator, getNodeValidator, schemaErrorsToValidationErrors, clearValidatorCache, getManifestForNode, getNodeLabel, resolveTemplate, isTriggerNodeType, isEndNodeType, LOOP_NODE_TYPE, DOWHILE_NODE_TYPE, isLoopNodeType, isCollectionLoopNodeType, isDoWhileNodeType, DOWHILE_MAX_LIMIT, DOWHILE_MIN_LIMIT, parseDoWhileLimit, resolveDoWhileLimit, DECISION_NODE_TYPE, SWITCH_NODE_TYPE, SYNTHETIC_GATEWAY_OUTPUT_KEYS, isGatewayNodeType, SUBFLOW_NODE_TYPE, isSubflowNodeType, AUTONOMOUS_AGENT_NODE_TYPE, CONVERSATIONAL_AGENT_NODE_TYPE, VOICE_AGENT_NODE_TYPE, CONVERSATIONAL_AGENT_ICON, AGENT_NODE_TYPES, isConversationalOrVoiceAgentNodeType, isVoiceAgentNodeType, isAutonomousAgentNodeType, isAgentNodeType, isAgentToolNodeType, AGENT_RESOURCE_PREFIX, isAgentResourceNodeType, CONVERSATIONAL_VOICE_END_CALL_NODE_TYPE, isCallContextEmpty, schemaValidationRule, minConnectionsRule, triggerRequiredRule, dataTransformRule, outputMappingRule, ESCALATION_QUICK_FORM_NODE_TYPE, ESCALATION_TASK_TYPE, ESCALATION_TYPE_CODE, resolveEscalationTaskType, AGENT_RESOURCE_SOURCE_HANDLES, isToolNode, isContextNode, isEscalationNode, isQuickFormEscalationNode, isMcpNode, isA2aNode, isMemoryNode, isAgentResourceNode, DEFAULT_STORAGE_VERSION, getDefaultAgentContent, RecipientType, BYO_VALIDATOR_TYPE, temperatureExceededMessage, maxTokensExceededMessage, maxIterationsExceededMessage, modelNotAvailableMessage, governanceRule, getHitlFieldChannelKey, isHitlInputDirectionField, isHitlOutputDirectionField, findDuplicateHitlChannelKeys, isAutoDerivedFieldBinding, stripAutoDerivedFieldBindings, conditionExpressionRule, RESERVED_WORDS, VALID_IDENTIFIER_PATTERN, FLAT_SEP, generateRandomId, generateNextId, isPlainObject3 as isPlainObject, agentDuplicateToolNamesRule, HITL_NODE_TYPE, HITL_QUICK_FORM_NODE_TYPE, HITL_CODED_ACTION_NODE_TYPE, HITL_DOC_VALIDATION_NODE_TYPE, DYNAMIC_EXTRACT_NODE_TYPE, HITL_NODE_TYPES, isHitlNodeType, collectWrittenGlobalIds, agentEmptyVarRule, IXP_SCHEMA_EDITOR_DRAFT_EXTENSION, IXP_SCHEMA_EDITOR_ISSUES_EXTENSION, IXP_SCHEMA_INVALID_ERROR_CODE, readIxpSchemaEditorDraft, stripIxpSchemaEditorDraft, attachIxpSchemaEditorDraft, ixpSchemaDraftRule, generalRules, cliRules, runRules, workflowRuntimeSchema, DEFAULT_WORKFLOW_RUNTIME, argumentBindingSchema, workflowVariableSchema, variableUpdateSchema, nodeVariableSchema, workflowVariablesSchema, EMPTY_VARIABLES, workflowConnectionSchema, nodeLayoutSchema, layoutSchema, bindingSchema, nodeManifestSchema, idSchema, edgeSchema, nodeSchema2, nodeManifestSchema2, categoryManifestSchema2, versionSchema2, subflowEntrySchema, workflowSchema, workflowSchemaV1_0_0, workflowSchemaV1_0, workflowSchemaV1_1, workflowSchemaV1_2, workflowSchemaV1_3, workflowSchemaV1_4, workflowSchemaV1_5, workflowSchemaV1_6, workflowSchemaV1_7, workflowSchemaV1_8, workflowSchemaV1_9, workflowSchemaV1_10, WORKFLOW_VERSIONS, CURRENT_WORKFLOW_VERSION, MINIMUM_SUPPORTED_SCHEMA_VERSION, workflowFileSchema, subflowFileSchema5, workflowManifestSchema, manifestResponseSchema, handleTargetSchema2, addNodePanelSearchScopeSchema, addNodePanelCreateActionSchema, addNodePanelConfigSchema, connectionConstraintSchema2, constraintWithAddNodePanel, evaluateExpression, evaluateTemplate, evaluateCondition, matchesTypePattern, checkCategoryConstraint, validateConnection, canAcceptMoreConnections, meetsMinimumConnections, resolveRefs, containsRef, applyJsonPointer, parsePointerTokens, toJsonPointer, fileFormatToInMemoryWorkflow, resolveAndConvertWorkflow, inMemoryWorkflowToFileFormat, parseWorkflowJson, compareVersions, CONNECTOR_NODE_PREFIX, CONNECTOR_TRIGGER_PREFIX, CONNECTOR_EVENT_PREFIX, TRIGGER_NODE_PREFIX, TRIGGER_TYPE_PREFIXES, buildConnectorNodeType, parseConnectorNodeType, WEEKDAYS, isQuartzCron, isValidQuartzCron, getTimeCycleFromCronExpression, getCronExpressionFromTimeCycleValue, BINDINGS_PATH_PREFIX, BINDINGS_PLACEHOLDER_PATH_PREFIX, EntryPointType, ProjectType, AGENT_TARGET_RUNTIME, variableToJsonSchema, getBindingResourceValue, getBindingResources, isStartEventNode, getEffectiveTriggerInputs, buildInputSchema, buildOutputSchema, getEntryPoints, getStartEventNodes, generateOperateJson, generatePackageDescriptor, generateBindingsJson, generateEntryPointsJson, deduplicateBindings, mergeBindingResources, sanitizeFileName, generateWorkflowPackaging, applyConnectionOverwritesToWorkflow, applyConnectionRemovalsToWorkflow, createBindingPackage, findDefaultEntryPointNodeId, getAllEntryPoints, serializeFrequencyToCron, parseCronToFrequency, resolveContextBindingPlaceholders, CONVERSATIONAL_AGENT_SETTINGS, CONVERSATIONAL_OUTPUTS_MIN_VERSION, DEFAULT_CONVERSATIONAL_VOICE_MODEL, VOICE_MODELS, getVoiceModel, getPersonasForModel, DEFAULT_CONVERSATIONAL_VOICE_SETTINGS, JobAttachmentSchema, ANALYZE_FILES_SCHEMA, SUMMARIZE_SCHEMA, BATCH_TRANSFORM_SCHEMA, HTTP_REQUEST_SCHEMA, BUILT_IN_TOOL_SCHEMAS, getToolFields, getBuiltInToolSchema, createInputSchemaFromAppSchema, createOutputSchemaFromAppSchema, createDotNetTypeMapping, createOutcomeMappingFromSchema, getOutcomeNames, unresolveRefs, deepEqual, createRefResolver, planWriteThrough, executeWritePlan };
52711
+ export { SUPPORTED_LOCALES, DEFAULT_LOCALE, normalizeLocale, resolveSupportedLocale, createI18nRegistrar, VALIDATION_NAMESPACE, registerFlowSchemaI18n, RESERVED_WORDS, VALID_IDENTIFIER_PATTERN, FLAT_SEP, generateRandomId, generateNextId, isPlainObject, deepEqual, exports_external, require_ajv, require_dist, instance, migrations, currentStorageSchemaMigration, currentStorageSchema, currentAgentStorageSchema, currentResourceStorageSchema, currentFeatureStorageSchema, currentFlowLayoutStorageSchema, applyMigrations, getLatestVersion, jsep, isBlockingSeverity, shouldBlockAction, agentEnforcementsSchema, JS_EXPRESSION_PREFIX, expressionFieldTypeSchema, expressionModeSchema, expressionValueSchema, expressionLikeSchema, isExpressionValue, isEmptyExpressionValue, encodeLiteral, decodeLiteral, coerceToExpressionValue, getJsExpressionBody, expectedTypeToFieldType, coerceInputsViaSchema, ESCAPED_MUSTACHE_PLACEHOLDER, hasMustache, parseMustacheSegments, templateInterpolationBody, QES_UNSAFE_CHAR, isQesUncarryableValue, isExpression, decodeLiteralForValidation, decodeLiteralsForValidation, isJsonSchema, normalizeInputDefinition, resolveNestedFieldSchema, getFieldValidator, getNodeValidator, schemaErrorsToValidationErrors, clearValidatorCache, getManifestForNode, getNodeLabel, resolveTemplate, isTriggerNodeType, isEndNodeType, LOOP_NODE_TYPE, DOWHILE_NODE_TYPE, isLoopNodeType, isCollectionLoopNodeType, isDoWhileNodeType, DOWHILE_MAX_LIMIT, DOWHILE_MIN_LIMIT, parseDoWhileLimit, resolveDoWhileLimit, DECISION_NODE_TYPE, SWITCH_NODE_TYPE, MERGE_NODE_TYPE, MOCK_NODE_TYPE, SYNTHETIC_GATEWAY_OUTPUT_KEYS, isGatewayNodeType, supportsVariableUpdates, SUBFLOW_NODE_TYPE, isSubflowNodeType, AUTONOMOUS_AGENT_NODE_TYPE, CONVERSATIONAL_AGENT_NODE_TYPE, VOICE_AGENT_NODE_TYPE, CONVERSATIONAL_AGENT_ICON, AGENT_NODE_TYPES, isConversationalOrVoiceAgentNodeType, isVoiceAgentNodeType, isAutonomousAgentNodeType, isAgentNodeType, isPublishedAgentNodeType, isAgentToolNodeType, AGENT_RESOURCE_PREFIX, isAgentResourceNodeType, CONVERSATIONAL_VOICE_END_CALL_NODE_TYPE, CONVERSATION_TRIGGER_NODE_TYPE, isConversationalRuntimeNodeType, isCallContextEmpty, schemaValidationRule, minConnectionsRule, triggerRequiredRule, dataTransformRule, outputMappingRule, ESCALATION_QUICK_FORM_NODE_TYPE, ESCALATION_TASK_TYPE, ESCALATION_TYPE_CODE, resolveEscalationTaskType, AGENT_RESOURCE_SOURCE_HANDLES, isToolNode, isContextNode, isEscalationNode, isQuickFormEscalationNode, isMcpNode, isA2aNode, isMemoryNode, isAgentResourceNode, DEFAULT_STORAGE_VERSION, getDefaultAgentContent, RecipientType, BYO_VALIDATOR_TYPE, temperatureExceededMessage, maxTokensExceededMessage, maxIterationsExceededMessage, modelNotAvailableMessage, governanceRule, DEFAULT_TRIGGER_OUTCOME, withDefaultTriggerOutcome, normalizeFormTriggerSchema, getHitlFieldChannelKey, isHitlInputDirectionField, isHitlOutputDirectionField, findDuplicateHitlChannelKeys, isAutoDerivedFieldBinding, stripAutoDerivedFieldBindings, conditionExpressionRule, agentDuplicateToolNamesRule, HITL_NODE_TYPE, HITL_QUICK_FORM_NODE_TYPE, HITL_CODED_ACTION_NODE_TYPE, HITL_DOC_VALIDATION_NODE_TYPE, DYNAMIC_EXTRACT_NODE_TYPE, FORM_TRIGGER_NODE_TYPE, HITL_NODE_TYPES, isHitlNodeType, isHumanActionNodeType, collectWrittenGlobalIds, agentEmptyVarRule, IXP_SCHEMA_EDITOR_DRAFT_EXTENSION, IXP_SCHEMA_EDITOR_ISSUES_EXTENSION, IXP_SCHEMA_INVALID_ERROR_CODE, readIxpSchemaEditorDraft, stripIxpSchemaEditorDraft, attachIxpSchemaEditorDraft, ixpSchemaDraftRule, generalRules, cliRules, runRules, toSerializedNode, toSerializedNodes, require_index_cjs, workflowRuntimeSchema, DEFAULT_WORKFLOW_RUNTIME, argumentBindingSchema, workflowVariableSchema, variableUpdateSchema, nodeVariableSchema, workflowVariablesSchema, EMPTY_VARIABLES, workflowConnectionSchema, nodeLayoutSchema, waypointSchema, edgeLayoutSchema, layoutSchema, bindingSchema, nodeManifestSchema, idSchema, edgeSchema2, nodeSchema2, nodeManifestSchema2, categoryManifestSchema2, versionSchema2, subflowEntrySchema, workflowSchema, workflowSchemaV1_0_0, workflowSchemaV1_0, workflowSchemaV1_1, workflowSchemaV1_2, workflowSchemaV1_3, workflowSchemaV1_4, workflowSchemaV1_5, workflowSchemaV1_6, workflowSchemaV1_7, workflowSchemaV1_8, workflowSchemaV1_9, workflowSchemaV1_10, WORKFLOW_VERSIONS, CURRENT_WORKFLOW_VERSION, MINIMUM_SUPPORTED_SCHEMA_VERSION, workflowFileSchema, subflowFileSchema5, workflowManifestSchema, manifestResponseSchema, handleTargetSchema2, addNodePanelSearchScopeSchema, addNodePanelCreateActionSchema, addNodePanelConfigSchema, connectionConstraintSchema2, constraintWithAddNodePanel, evaluateExpression, evaluateTemplate, evaluateCondition, matchesTypePattern, checkCategoryConstraint, validateConnection, canAcceptMoreConnections, meetsMinimumConnections, resolveRefs, containsRef, applyJsonPointer, parsePointerTokens, toJsonPointer, fileFormatToInMemoryWorkflow, resolveAndConvertWorkflow, inMemoryWorkflowToFileFormat, parseWorkflowJson, workflowScopes, collectWorkflowNodesDeep, compareVersions, CONNECTOR_NODE_PREFIX, CONNECTOR_TRIGGER_PREFIX, CONNECTOR_EVENT_PREFIX, TRIGGER_NODE_PREFIX, TRIGGER_TYPE_PREFIXES, buildConnectorNodeType, parseConnectorNodeType, WEEKDAYS, isQuartzCron, isValidQuartzCron, getTimeCycleFromCronExpression, getCronExpressionFromTimeCycleValue, BINDINGS_PATH_PREFIX, BINDINGS_PLACEHOLDER_PATH_PREFIX, EntryPointType, ProjectType, AGENT_TARGET_RUNTIME, JOB_ATTACHMENT_DEFINITION_KEY, JOB_ATTACHMENT_REF, isJobAttachmentRef, convertFileTypesToRefs, convertJobAttachmentRefsToFileTypes, variableToJsonSchema, getBindingResourceValue, getBindingResources, isStartEventNode, getEffectiveTriggerInputs, buildSchemaProperties, buildInputSchema, buildOutputSchema, getEntryPoints, getStartEventNodes, generateOperateJson, generatePackageDescriptor, generateBindingsJson, generateEntryPointsJson, deduplicateBindings, mergeBindingResources, sanitizeFileName, generateWorkflowPackaging, applyConnectionOverwritesToWorkflow, applyConnectionRemovalsToWorkflow, createBindingPackage, findDefaultEntryPointNodeId, getAllEntryPoints, serializeFrequencyToCron, parseCronToFrequency, resolveContextBindingPlaceholders, matchContextBindings, CONVERSATIONAL_AGENT_SETTINGS, CONVERSATIONAL_OUTPUTS_MIN_VERSION, DEFAULT_CONVERSATIONAL_VOICE_MODEL, VOICE_MODELS, getVoiceModel, getPersonasForModel, VOICE_TURN_DETECTION_SENSITIVITIES, VOICE_TURN_DETECTION_LIMITS, DEFAULT_VOICE_AGENT_SPEAKS_FIRST, DEFAULT_CONVERSATIONAL_VOICE_SETTINGS, JobAttachmentSchema, ANALYZE_FILES_SCHEMA, SUMMARIZE_SCHEMA, BATCH_TRANSFORM_SCHEMA, HTTP_REQUEST_SCHEMA, BUILT_IN_TOOL_SCHEMAS, getToolFields, getBuiltInToolSchema, createInputSchemaFromAppSchema, createOutputSchemaFromAppSchema, createDotNetTypeMapping, createOutcomeMappingFromSchema, getOutcomeNames, unresolveRefs, createRefResolver, planWriteThrough, executeWritePlan };
51860
52712
 
51861
- //# debugId=0E15CC2629F42B9664756E2164756E21
52713
+ //# debugId=B9B6CA9FC715027364756E2164756E21