langgraph-ui-components 0.0.7 → 0.0.8

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 (283) hide show
  1. package/dist/index.es100.js +25 -157
  2. package/dist/index.es100.js.map +1 -1
  3. package/dist/index.es101.js +3130 -176
  4. package/dist/index.es101.js.map +1 -1
  5. package/dist/index.es102.js +36 -13
  6. package/dist/index.es102.js.map +1 -1
  7. package/dist/index.es103.js +5 -30
  8. package/dist/index.es103.js.map +1 -1
  9. package/dist/index.es104.js +69 -30
  10. package/dist/index.es104.js.map +1 -1
  11. package/dist/index.es105.js +28 -3148
  12. package/dist/index.es105.js.map +1 -1
  13. package/dist/index.es106.js +5 -16
  14. package/dist/index.es106.js.map +1 -1
  15. package/dist/index.es107.js +2 -7
  16. package/dist/index.es107.js.map +1 -1
  17. package/dist/index.es108.js +13 -2
  18. package/dist/index.es108.js.map +1 -1
  19. package/dist/index.es109.js +499 -9
  20. package/dist/index.es109.js.map +1 -1
  21. package/dist/index.es11.js +2 -2
  22. package/dist/index.es11.js.map +1 -1
  23. package/dist/index.es110.js +5 -501
  24. package/dist/index.es110.js.map +1 -1
  25. package/dist/index.es111.js +2 -7
  26. package/dist/index.es111.js.map +1 -1
  27. package/dist/index.es112.js +148 -2
  28. package/dist/index.es112.js.map +1 -1
  29. package/dist/index.es113.js +878 -118
  30. package/dist/index.es113.js.map +1 -1
  31. package/dist/index.es114.js +251 -877
  32. package/dist/index.es114.js.map +1 -1
  33. package/dist/index.es115.js +3 -281
  34. package/dist/index.es115.js.map +1 -1
  35. package/dist/index.es116.js +445 -3
  36. package/dist/index.es116.js.map +1 -1
  37. package/dist/index.es117.js +39 -437
  38. package/dist/index.es117.js.map +1 -1
  39. package/dist/index.es118.js +22 -46
  40. package/dist/index.es118.js.map +1 -1
  41. package/dist/index.es119.js +78 -21
  42. package/dist/index.es119.js.map +1 -1
  43. package/dist/index.es120.js +126 -76
  44. package/dist/index.es120.js.map +1 -1
  45. package/dist/index.es121.js +45 -125
  46. package/dist/index.es121.js.map +1 -1
  47. package/dist/index.es122.js +9 -48
  48. package/dist/index.es122.js.map +1 -1
  49. package/dist/index.es123.js +45 -10
  50. package/dist/index.es123.js.map +1 -1
  51. package/dist/index.es124.js +97 -43
  52. package/dist/index.es124.js.map +1 -1
  53. package/dist/index.es125.js +48 -94
  54. package/dist/index.es125.js.map +1 -1
  55. package/dist/index.es126.js +14 -51
  56. package/dist/index.es126.js.map +1 -1
  57. package/dist/index.es127.js +13 -162
  58. package/dist/index.es127.js.map +1 -1
  59. package/dist/index.es128.js +89 -2
  60. package/dist/index.es128.js.map +1 -1
  61. package/dist/index.es129.js +2 -15
  62. package/dist/index.es129.js.map +1 -1
  63. package/dist/index.es130.js +54 -87
  64. package/dist/index.es130.js.map +1 -1
  65. package/dist/index.es131.js +100 -2
  66. package/dist/index.es131.js.map +1 -1
  67. package/dist/index.es132.js +186 -51
  68. package/dist/index.es132.js.map +1 -1
  69. package/dist/index.es133.js +97 -87
  70. package/dist/index.es133.js.map +1 -1
  71. package/dist/index.es134.js +31 -187
  72. package/dist/index.es134.js.map +1 -1
  73. package/dist/index.es135.js +10 -110
  74. package/dist/index.es135.js.map +1 -1
  75. package/dist/index.es136.js +11 -35
  76. package/dist/index.es136.js.map +1 -1
  77. package/dist/index.es137.js +12 -10
  78. package/dist/index.es137.js.map +1 -1
  79. package/dist/index.es138.js +90 -10
  80. package/dist/index.es138.js.map +1 -1
  81. package/dist/index.es139.js +274 -11
  82. package/dist/index.es139.js.map +1 -1
  83. package/dist/index.es140.js +2 -91
  84. package/dist/index.es140.js.map +1 -1
  85. package/dist/index.es141.js +150 -261
  86. package/dist/index.es141.js.map +1 -1
  87. package/dist/index.es142.js +51 -2
  88. package/dist/index.es142.js.map +1 -1
  89. package/dist/index.es143.js +34 -158
  90. package/dist/index.es143.js.map +1 -1
  91. package/dist/index.es144.js +34 -50
  92. package/dist/index.es144.js.map +1 -1
  93. package/dist/index.es145.js +32 -32
  94. package/dist/index.es145.js.map +1 -1
  95. package/dist/index.es146.js +23 -34
  96. package/dist/index.es146.js.map +1 -1
  97. package/dist/index.es147.js +583 -32
  98. package/dist/index.es147.js.map +1 -1
  99. package/dist/index.es148.js +121 -20
  100. package/dist/index.es148.js.map +1 -1
  101. package/dist/index.es149.js +158 -585
  102. package/dist/index.es149.js.map +1 -1
  103. package/dist/index.es15.js +15 -15
  104. package/dist/index.es150.js +2 -125
  105. package/dist/index.es150.js.map +1 -1
  106. package/dist/index.es157.js +2 -2
  107. package/dist/index.es159.js +2 -2
  108. package/dist/index.es161.js +64 -25
  109. package/dist/index.es161.js.map +1 -1
  110. package/dist/index.es162.js +22 -12
  111. package/dist/index.es162.js.map +1 -1
  112. package/dist/index.es163.js +5 -53
  113. package/dist/index.es163.js.map +1 -1
  114. package/dist/index.es164.js +337 -52
  115. package/dist/index.es164.js.map +1 -1
  116. package/dist/index.es165.js +24 -21
  117. package/dist/index.es165.js.map +1 -1
  118. package/dist/index.es166.js +12 -6
  119. package/dist/index.es166.js.map +1 -1
  120. package/dist/index.es167.js +49 -344
  121. package/dist/index.es167.js.map +1 -1
  122. package/dist/index.es175.js +1 -1
  123. package/dist/index.es178.js +1 -1
  124. package/dist/index.es183.js +1 -1
  125. package/dist/index.es195.js +2 -2
  126. package/dist/index.es197.js +2 -2
  127. package/dist/index.es200.js +1 -1
  128. package/dist/index.es201.js +1 -1
  129. package/dist/index.es203.js +1 -1
  130. package/dist/index.es204.js +2 -2
  131. package/dist/index.es206.js +1 -1
  132. package/dist/index.es209.js +3 -3
  133. package/dist/index.es21.js +1 -1
  134. package/dist/index.es210.js +2 -2
  135. package/dist/index.es212.js +1 -1
  136. package/dist/index.es214.js +1 -1
  137. package/dist/index.es215.js +1 -1
  138. package/dist/index.es217.js +1 -1
  139. package/dist/index.es218.js +2 -2
  140. package/dist/index.es219.js +1 -1
  141. package/dist/index.es220.js +1 -1
  142. package/dist/index.es221.js +1 -1
  143. package/dist/index.es222.js +1 -1
  144. package/dist/index.es223.js +1 -1
  145. package/dist/index.es224.js +1 -1
  146. package/dist/index.es225.js +1 -1
  147. package/dist/index.es229.js +2 -2
  148. package/dist/index.es28.js +7 -7
  149. package/dist/index.es29.js +1 -1
  150. package/dist/index.es32.js +4 -4
  151. package/dist/index.es33.js +15 -1191
  152. package/dist/index.es33.js.map +1 -1
  153. package/dist/index.es34.js +117 -6
  154. package/dist/index.es34.js.map +1 -1
  155. package/dist/index.es35.js +70 -8
  156. package/dist/index.es35.js.map +1 -1
  157. package/dist/index.es36.js +19 -148
  158. package/dist/index.es36.js.map +1 -1
  159. package/dist/index.es37.js +255 -112
  160. package/dist/index.es37.js.map +1 -1
  161. package/dist/index.es38.js +40 -68
  162. package/dist/index.es38.js.map +1 -1
  163. package/dist/index.es39.js +214 -17
  164. package/dist/index.es39.js.map +1 -1
  165. package/dist/index.es40.js +53 -247
  166. package/dist/index.es40.js.map +1 -1
  167. package/dist/index.es41.js +123 -24
  168. package/dist/index.es41.js.map +1 -1
  169. package/dist/index.es42.js +14 -205
  170. package/dist/index.es42.js.map +1 -1
  171. package/dist/index.es43.js +221 -58
  172. package/dist/index.es43.js.map +1 -1
  173. package/dist/index.es44.js +7 -140
  174. package/dist/index.es44.js.map +1 -1
  175. package/dist/index.es45.js +1185 -17
  176. package/dist/index.es45.js.map +1 -1
  177. package/dist/index.es46.js +6 -229
  178. package/dist/index.es46.js.map +1 -1
  179. package/dist/index.es47.js +146 -15
  180. package/dist/index.es47.js.map +1 -1
  181. package/dist/index.es49.js +7 -90
  182. package/dist/index.es49.js.map +1 -1
  183. package/dist/index.es50.js +92 -6
  184. package/dist/index.es50.js.map +1 -1
  185. package/dist/index.es51.js +3 -14
  186. package/dist/index.es51.js.map +1 -1
  187. package/dist/index.es52.js +36 -8
  188. package/dist/index.es52.js.map +1 -1
  189. package/dist/index.es53.js +61 -83
  190. package/dist/index.es53.js.map +1 -1
  191. package/dist/index.es54.js +37 -3
  192. package/dist/index.es54.js.map +1 -1
  193. package/dist/index.es55.js +304 -34
  194. package/dist/index.es55.js.map +1 -1
  195. package/dist/index.es56.js +9 -72
  196. package/dist/index.es56.js.map +1 -1
  197. package/dist/index.es57.js +85 -32
  198. package/dist/index.es57.js.map +1 -1
  199. package/dist/index.es58.js +6 -304
  200. package/dist/index.es58.js.map +1 -1
  201. package/dist/index.es59.js +15 -9
  202. package/dist/index.es59.js.map +1 -1
  203. package/dist/index.es60.js +142 -5
  204. package/dist/index.es60.js.map +1 -1
  205. package/dist/index.es61.js +285 -148
  206. package/dist/index.es61.js.map +1 -1
  207. package/dist/index.es62.js +62 -668
  208. package/dist/index.es62.js.map +1 -1
  209. package/dist/index.es63.js +201 -131
  210. package/dist/index.es63.js.map +1 -1
  211. package/dist/index.es64.js +29 -295
  212. package/dist/index.es64.js.map +1 -1
  213. package/dist/index.es65.js +8 -65
  214. package/dist/index.es65.js.map +1 -1
  215. package/dist/index.es66.js +9 -210
  216. package/dist/index.es66.js.map +1 -1
  217. package/dist/index.es67.js +181 -28
  218. package/dist/index.es67.js.map +1 -1
  219. package/dist/index.es68.js +23 -8
  220. package/dist/index.es68.js.map +1 -1
  221. package/dist/index.es69.js +1397 -9
  222. package/dist/index.es69.js.map +1 -1
  223. package/dist/index.es70.js +9 -187
  224. package/dist/index.es70.js.map +1 -1
  225. package/dist/index.es71.js +8 -24
  226. package/dist/index.es71.js.map +1 -1
  227. package/dist/index.es72.js +5 -1399
  228. package/dist/index.es72.js.map +1 -1
  229. package/dist/index.es73.js +163 -9
  230. package/dist/index.es73.js.map +1 -1
  231. package/dist/index.es74.js +672 -8
  232. package/dist/index.es74.js.map +1 -1
  233. package/dist/index.es75.js +11 -36
  234. package/dist/index.es75.js.map +1 -1
  235. package/dist/index.es76.js +40 -5
  236. package/dist/index.es76.js.map +1 -1
  237. package/dist/index.es77.js +32 -71
  238. package/dist/index.es77.js.map +1 -1
  239. package/dist/index.es78.js +225 -30
  240. package/dist/index.es78.js.map +1 -1
  241. package/dist/index.es79.js +29 -11
  242. package/dist/index.es79.js.map +1 -1
  243. package/dist/index.es80.js +72 -37
  244. package/dist/index.es80.js.map +1 -1
  245. package/dist/index.es81.js +74 -32
  246. package/dist/index.es81.js.map +1 -1
  247. package/dist/index.es82.js +46 -226
  248. package/dist/index.es82.js.map +1 -1
  249. package/dist/index.es83.js +6 -6
  250. package/dist/index.es83.js.map +1 -1
  251. package/dist/index.es84.js +39 -71
  252. package/dist/index.es84.js.map +1 -1
  253. package/dist/index.es85.js +54 -73
  254. package/dist/index.es85.js.map +1 -1
  255. package/dist/index.es86.js +13 -52
  256. package/dist/index.es86.js.map +1 -1
  257. package/dist/index.es87.js +135 -28
  258. package/dist/index.es87.js.map +1 -1
  259. package/dist/index.es88.js +20 -42
  260. package/dist/index.es88.js.map +1 -1
  261. package/dist/index.es89.js +175 -50
  262. package/dist/index.es89.js.map +1 -1
  263. package/dist/index.es90.js +240 -12
  264. package/dist/index.es90.js.map +1 -1
  265. package/dist/index.es91.js +348 -130
  266. package/dist/index.es91.js.map +1 -1
  267. package/dist/index.es92.js +134 -18
  268. package/dist/index.es92.js.map +1 -1
  269. package/dist/index.es93.js +62 -174
  270. package/dist/index.es93.js.map +1 -1
  271. package/dist/index.es94.js +30 -234
  272. package/dist/index.es94.js.map +1 -1
  273. package/dist/index.es95.js +26 -344
  274. package/dist/index.es95.js.map +1 -1
  275. package/dist/index.es96.js +156 -127
  276. package/dist/index.es96.js.map +1 -1
  277. package/dist/index.es97.js +196 -63
  278. package/dist/index.es97.js.map +1 -1
  279. package/dist/index.es98.js +14 -37
  280. package/dist/index.es98.js.map +1 -1
  281. package/dist/index.es99.js +27 -34
  282. package/dist/index.es99.js.map +1 -1
  283. package/package.json +1 -1
@@ -1,14 +1,94 @@
1
- import { getEnvironmentVariable } from "./index.es132.js";
2
- const isTracingEnabled = (tracingEnabled) => {
3
- const envVars = [
4
- "LANGSMITH_TRACING_V2",
5
- "LANGCHAIN_TRACING_V2",
6
- "LANGSMITH_TRACING",
7
- "LANGCHAIN_TRACING"
8
- ];
9
- return !!envVars.find((envVar) => getEnvironmentVariable(envVar) === "true");
1
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
2
+ function hasOwnProperty(obj, key) {
3
+ return _hasOwnProperty.call(obj, key);
4
+ }
5
+ function _objectKeys(obj) {
6
+ if (Array.isArray(obj)) {
7
+ const keys$1 = new Array(obj.length);
8
+ for (let k = 0; k < keys$1.length; k++) keys$1[k] = "" + k;
9
+ return keys$1;
10
+ }
11
+ if (Object.keys) return Object.keys(obj);
12
+ let keys = [];
13
+ for (let i in obj) if (hasOwnProperty(obj, i)) keys.push(i);
14
+ return keys;
15
+ }
16
+ function _deepClone(obj) {
17
+ switch (typeof obj) {
18
+ case "object":
19
+ return JSON.parse(JSON.stringify(obj));
20
+ case "undefined":
21
+ return null;
22
+ default:
23
+ return obj;
24
+ }
25
+ }
26
+ function isInteger(str) {
27
+ let i = 0;
28
+ const len = str.length;
29
+ let charCode;
30
+ while (i < len) {
31
+ charCode = str.charCodeAt(i);
32
+ if (charCode >= 48 && charCode <= 57) {
33
+ i++;
34
+ continue;
35
+ }
36
+ return false;
37
+ }
38
+ return true;
39
+ }
40
+ function unescapePathComponent(path) {
41
+ return path.replace(/~1/g, "/").replace(/~0/g, "~");
42
+ }
43
+ function hasUndefined(obj) {
44
+ if (obj === void 0) return true;
45
+ if (obj) {
46
+ if (Array.isArray(obj)) {
47
+ for (let i$1 = 0, len = obj.length; i$1 < len; i$1++) if (hasUndefined(obj[i$1])) return true;
48
+ } else if (typeof obj === "object") {
49
+ const objKeys = _objectKeys(obj);
50
+ const objKeysLength = objKeys.length;
51
+ for (var i = 0; i < objKeysLength; i++) if (hasUndefined(obj[objKeys[i]])) return true;
52
+ }
53
+ }
54
+ return false;
55
+ }
56
+ function patchErrorMessageFormatter(message, args) {
57
+ const messageParts = [message];
58
+ for (const key in args) {
59
+ const value = typeof args[key] === "object" ? JSON.stringify(args[key], null, 2) : args[key];
60
+ if (typeof value !== "undefined") messageParts.push(`${key}: ${value}`);
61
+ }
62
+ return messageParts.join("\n");
63
+ }
64
+ var PatchError = class extends Error {
65
+ constructor(message, name, index, operation, tree) {
66
+ super(patchErrorMessageFormatter(message, {
67
+ name,
68
+ index,
69
+ operation,
70
+ tree
71
+ }));
72
+ this.name = name;
73
+ this.index = index;
74
+ this.operation = operation;
75
+ this.tree = tree;
76
+ Object.setPrototypeOf(this, new.target.prototype);
77
+ this.message = patchErrorMessageFormatter(message, {
78
+ name,
79
+ index,
80
+ operation,
81
+ tree
82
+ });
83
+ }
10
84
  };
11
85
  export {
12
- isTracingEnabled
86
+ PatchError,
87
+ _deepClone,
88
+ _objectKeys,
89
+ hasOwnProperty,
90
+ hasUndefined,
91
+ isInteger,
92
+ unescapePathComponent
13
93
  };
14
94
  //# sourceMappingURL=index.es138.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es138.js","sources":["../node_modules/.pnpm/@langchain+core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/callbacks.js"],"sourcesContent":["import { getEnvironmentVariable } from \"./env.js\";\n\n//#region src/utils/callbacks.ts\nconst isTracingEnabled = (tracingEnabled) => {\n\tif (tracingEnabled !== void 0) return tracingEnabled;\n\tconst envVars = [\n\t\t\"LANGSMITH_TRACING_V2\",\n\t\t\"LANGCHAIN_TRACING_V2\",\n\t\t\"LANGSMITH_TRACING\",\n\t\t\"LANGCHAIN_TRACING\"\n\t];\n\treturn !!envVars.find((envVar) => getEnvironmentVariable(envVar) === \"true\");\n};\n\n//#endregion\nexport { isTracingEnabled };\n//# sourceMappingURL=callbacks.js.map"],"names":[],"mappings":";AAGK,MAAC,mBAAmB,CAAC,mBAAmB;AAE5C,QAAM,UAAU;AAAA,IACf;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACC,SAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,WAAW,uBAAuB,MAAM,MAAM,MAAM;AAC5E;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es138.js","sources":["../node_modules/.pnpm/@langchain+core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.js"],"sourcesContent":["//#region src/utils/fast-json-patch/src/helpers.ts\n/*!\n* https://github.com/Starcounter-Jack/JSON-Patch\n* (c) 2017-2022 Joachim Wester\n* MIT licensed\n*/\nconst _hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwnProperty(obj, key) {\n\treturn _hasOwnProperty.call(obj, key);\n}\nfunction _objectKeys(obj) {\n\tif (Array.isArray(obj)) {\n\t\tconst keys$1 = new Array(obj.length);\n\t\tfor (let k = 0; k < keys$1.length; k++) keys$1[k] = \"\" + k;\n\t\treturn keys$1;\n\t}\n\tif (Object.keys) return Object.keys(obj);\n\tlet keys = [];\n\tfor (let i in obj) if (hasOwnProperty(obj, i)) keys.push(i);\n\treturn keys;\n}\n/**\n* Deeply clone the object.\n* https://jsperf.com/deep-copy-vs-json-stringify-json-parse/25 (recursiveDeepCopy)\n* @param {any} obj value to clone\n* @return {any} cloned obj\n*/\nfunction _deepClone(obj) {\n\tswitch (typeof obj) {\n\t\tcase \"object\": return JSON.parse(JSON.stringify(obj));\n\t\tcase \"undefined\": return null;\n\t\tdefault: return obj;\n\t}\n}\nfunction isInteger(str) {\n\tlet i = 0;\n\tconst len = str.length;\n\tlet charCode;\n\twhile (i < len) {\n\t\tcharCode = str.charCodeAt(i);\n\t\tif (charCode >= 48 && charCode <= 57) {\n\t\t\ti++;\n\t\t\tcontinue;\n\t\t}\n\t\treturn false;\n\t}\n\treturn true;\n}\n/**\n* Escapes a json pointer path\n* @param path The raw pointer\n* @return the Escaped path\n*/\nfunction escapePathComponent(path) {\n\tif (path.indexOf(\"/\") === -1 && path.indexOf(\"~\") === -1) return path;\n\treturn path.replace(/~/g, \"~0\").replace(/\\//g, \"~1\");\n}\n/**\n* Unescapes a json pointer path\n* @param path The escaped pointer\n* @return The unescaped path\n*/\nfunction unescapePathComponent(path) {\n\treturn path.replace(/~1/g, \"/\").replace(/~0/g, \"~\");\n}\n/**\n* Recursively checks whether an object has any undefined values inside.\n*/\nfunction hasUndefined(obj) {\n\tif (obj === void 0) return true;\n\tif (obj) {\n\t\tif (Array.isArray(obj)) {\n\t\t\tfor (let i$1 = 0, len = obj.length; i$1 < len; i$1++) if (hasUndefined(obj[i$1])) return true;\n\t\t} else if (typeof obj === \"object\") {\n\t\t\tconst objKeys = _objectKeys(obj);\n\t\t\tconst objKeysLength = objKeys.length;\n\t\t\tfor (var i = 0; i < objKeysLength; i++) if (hasUndefined(obj[objKeys[i]])) return true;\n\t\t}\n\t}\n\treturn false;\n}\nfunction patchErrorMessageFormatter(message, args) {\n\tconst messageParts = [message];\n\tfor (const key in args) {\n\t\tconst value = typeof args[key] === \"object\" ? JSON.stringify(args[key], null, 2) : args[key];\n\t\tif (typeof value !== \"undefined\") messageParts.push(`${key}: ${value}`);\n\t}\n\treturn messageParts.join(\"\\n\");\n}\nvar PatchError = class extends Error {\n\tconstructor(message, name, index, operation, tree) {\n\t\tsuper(patchErrorMessageFormatter(message, {\n\t\t\tname,\n\t\t\tindex,\n\t\t\toperation,\n\t\t\ttree\n\t\t}));\n\t\tthis.name = name;\n\t\tthis.index = index;\n\t\tthis.operation = operation;\n\t\tthis.tree = tree;\n\t\tObject.setPrototypeOf(this, new.target.prototype);\n\t\tthis.message = patchErrorMessageFormatter(message, {\n\t\t\tname,\n\t\t\tindex,\n\t\t\toperation,\n\t\t\ttree\n\t\t});\n\t}\n};\n\n//#endregion\nexport { PatchError, _deepClone, _objectKeys, escapePathComponent, hasOwnProperty, hasUndefined, isInteger, unescapePathComponent };\n//# sourceMappingURL=helpers.js.map"],"names":[],"mappings":"AAMA,MAAM,kBAAkB,OAAO,UAAU;AACzC,SAAS,eAAe,KAAK,KAAK;AACjC,SAAO,gBAAgB,KAAK,KAAK,GAAG;AACrC;AACA,SAAS,YAAY,KAAK;AACzB,M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AC,EAAG,QAAO;AAAA,IACnF;AAAA,EACD;AACA,SAAO;AACR;AACA,SAAS,2BAA2B,SAAS,MAAM;AAClD,QAAM,eAAe,CAAC,OAAO;AAC7B,aAAW,OAAO,MAAM;AACvB,UAAM,QAAQ,OAAO,KAAK,GAAG,MAAM,WAAW,KAAK,UAAU,KAAK,GAAG,GAAG,MAAM,CAAC,IAAI,KAAK,GAAG;AAC3F,QAAI,OAAO,UAAU,YAAa,cAAa,KAAK,GAAG,GAAG,KAAK,KAAK,EAAE;AAAA,EACvE;AACA,SAAO,aAAa,KAAK,IAAI;AAC9B;AACG,IAAC,aAAa,cAAc,MAAM;AAAA,EACpC,YAAY,SAAS,MAAM,OAAO,WAAW,MAAM;AAClD,UAAM,2BAA2B,SAAS;AAAA,MACzC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACH,CAAG,CAAC;AACF,SAAK,OAAO;AACZ,SAAK,QAAQ;AACb,SAAK,YAAY;AACjB,SAAK,OAAO;AACZ,WAAO,eAAe,MAAM,WAAW,SAAS;AAChD,SAAK,UAAU,2BAA2B,SAAS;AAAA,MAClD;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACH,CAAG;AAAA,EACF;AACD;","x_google_ignoreList":[0]}
@@ -1,15 +1,278 @@
1
- import { getGlobalAsyncLocalStorageInstance, _CONTEXT_VARIABLES_KEY } from "./index.es109.js";
2
- import "./index.es114.js";
3
- function getContextVariable(name) {
4
- const asyncLocalStorageInstance = getGlobalAsyncLocalStorageInstance();
5
- if (asyncLocalStorageInstance === void 0) return void 0;
6
- const runTree = asyncLocalStorageInstance.getStore();
7
- return runTree?.[_CONTEXT_VARIABLES_KEY]?.[name];
1
+ import { __exports as dist } from "./index.es140.js";
2
+ import { __require as requireEventemitter3 } from "./index.es141.js";
3
+ import { __require as requirePTimeout } from "./index.es142.js";
4
+ import { __require as requirePriorityQueue } from "./index.es143.js";
5
+ var hasRequiredDist;
6
+ function requireDist() {
7
+ if (hasRequiredDist) return dist;
8
+ hasRequiredDist = 1;
9
+ Object.defineProperty(dist, "__esModule", { value: true });
10
+ const EventEmitter = requireEventemitter3();
11
+ const p_timeout_1 = requirePTimeout();
12
+ const priority_queue_1 = requirePriorityQueue();
13
+ const empty = () => {
14
+ };
15
+ const timeoutError = new p_timeout_1.TimeoutError();
16
+ class PQueue extends EventEmitter {
17
+ constructor(options) {
18
+ var _a, _b, _c, _d;
19
+ super();
20
+ this._intervalCount = 0;
21
+ this._intervalEnd = 0;
22
+ this._pendingCount = 0;
23
+ this._resolveEmpty = empty;
24
+ this._resolveIdle = empty;
25
+ options = Object.assign({ carryoverConcurrencyCount: false, intervalCap: Infinity, interval: 0, concurrency: Infinity, autoStart: true, queueClass: priority_queue_1.default }, options);
26
+ if (!(typeof options.intervalCap === "number" && options.intervalCap >= 1)) {
27
+ throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(_b = (_a = options.intervalCap) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : ""}\` (${typeof options.intervalCap})`);
28
+ }
29
+ if (options.interval === void 0 || !(Number.isFinite(options.interval) && options.interval >= 0)) {
30
+ throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(_d = (_c = options.interval) === null || _c === void 0 ? void 0 : _c.toString()) !== null && _d !== void 0 ? _d : ""}\` (${typeof options.interval})`);
31
+ }
32
+ this._carryoverConcurrencyCount = options.carryoverConcurrencyCount;
33
+ this._isIntervalIgnored = options.intervalCap === Infinity || options.interval === 0;
34
+ this._intervalCap = options.intervalCap;
35
+ this._interval = options.interval;
36
+ this._queue = new options.queueClass();
37
+ this._queueClass = options.queueClass;
38
+ this.concurrency = options.concurrency;
39
+ this._timeout = options.timeout;
40
+ this._throwOnTimeout = options.throwOnTimeout === true;
41
+ this._isPaused = options.autoStart === false;
42
+ }
43
+ get _doesIntervalAllowAnother() {
44
+ return this._isIntervalIgnored || this._intervalCount < this._intervalCap;
45
+ }
46
+ get _doesConcurrentAllowAnother() {
47
+ return this._pendingCount < this._concurrency;
48
+ }
49
+ _next() {
50
+ this._pendingCount--;
51
+ this._tryToStartAnother();
52
+ this.emit("next");
53
+ }
54
+ _resolvePromises() {
55
+ this._resolveEmpty();
56
+ this._resolveEmpty = empty;
57
+ if (this._pendingCount === 0) {
58
+ this._resolveIdle();
59
+ this._resolveIdle = empty;
60
+ this.emit("idle");
61
+ }
62
+ }
63
+ _onResumeInterval() {
64
+ this._onInterval();
65
+ this._initializeIntervalIfNeeded();
66
+ this._timeoutId = void 0;
67
+ }
68
+ _isIntervalPaused() {
69
+ const now = Date.now();
70
+ if (this._intervalId === void 0) {
71
+ const delay = this._intervalEnd - now;
72
+ if (delay < 0) {
73
+ this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0;
74
+ } else {
75
+ if (this._timeoutId === void 0) {
76
+ this._timeoutId = setTimeout(() => {
77
+ this._onResumeInterval();
78
+ }, delay);
79
+ }
80
+ return true;
81
+ }
82
+ }
83
+ return false;
84
+ }
85
+ _tryToStartAnother() {
86
+ if (this._queue.size === 0) {
87
+ if (this._intervalId) {
88
+ clearInterval(this._intervalId);
89
+ }
90
+ this._intervalId = void 0;
91
+ this._resolvePromises();
92
+ return false;
93
+ }
94
+ if (!this._isPaused) {
95
+ const canInitializeInterval = !this._isIntervalPaused();
96
+ if (this._doesIntervalAllowAnother && this._doesConcurrentAllowAnother) {
97
+ const job = this._queue.dequeue();
98
+ if (!job) {
99
+ return false;
100
+ }
101
+ this.emit("active");
102
+ job();
103
+ if (canInitializeInterval) {
104
+ this._initializeIntervalIfNeeded();
105
+ }
106
+ return true;
107
+ }
108
+ }
109
+ return false;
110
+ }
111
+ _initializeIntervalIfNeeded() {
112
+ if (this._isIntervalIgnored || this._intervalId !== void 0) {
113
+ return;
114
+ }
115
+ this._intervalId = setInterval(() => {
116
+ this._onInterval();
117
+ }, this._interval);
118
+ this._intervalEnd = Date.now() + this._interval;
119
+ }
120
+ _onInterval() {
121
+ if (this._intervalCount === 0 && this._pendingCount === 0 && this._intervalId) {
122
+ clearInterval(this._intervalId);
123
+ this._intervalId = void 0;
124
+ }
125
+ this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0;
126
+ this._processQueue();
127
+ }
128
+ /**
129
+ Executes all queued functions until it reaches the limit.
130
+ */
131
+ _processQueue() {
132
+ while (this._tryToStartAnother()) {
133
+ }
134
+ }
135
+ get concurrency() {
136
+ return this._concurrency;
137
+ }
138
+ set concurrency(newConcurrency) {
139
+ if (!(typeof newConcurrency === "number" && newConcurrency >= 1)) {
140
+ throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${newConcurrency}\` (${typeof newConcurrency})`);
141
+ }
142
+ this._concurrency = newConcurrency;
143
+ this._processQueue();
144
+ }
145
+ /**
146
+ Adds a sync or async task to the queue. Always returns a promise.
147
+ */
148
+ async add(fn, options = {}) {
149
+ return new Promise((resolve, reject) => {
150
+ const run = async () => {
151
+ this._pendingCount++;
152
+ this._intervalCount++;
153
+ try {
154
+ const operation = this._timeout === void 0 && options.timeout === void 0 ? fn() : p_timeout_1.default(Promise.resolve(fn()), options.timeout === void 0 ? this._timeout : options.timeout, () => {
155
+ if (options.throwOnTimeout === void 0 ? this._throwOnTimeout : options.throwOnTimeout) {
156
+ reject(timeoutError);
157
+ }
158
+ return void 0;
159
+ });
160
+ resolve(await operation);
161
+ } catch (error) {
162
+ reject(error);
163
+ }
164
+ this._next();
165
+ };
166
+ this._queue.enqueue(run, options);
167
+ this._tryToStartAnother();
168
+ this.emit("add");
169
+ });
170
+ }
171
+ /**
172
+ Same as `.add()`, but accepts an array of sync or async functions.
173
+
174
+ @returns A promise that resolves when all functions are resolved.
175
+ */
176
+ async addAll(functions, options) {
177
+ return Promise.all(functions.map(async (function_) => this.add(function_, options)));
178
+ }
179
+ /**
180
+ Start (or resume) executing enqueued tasks within concurrency limit. No need to call this if queue is not paused (via `options.autoStart = false` or by `.pause()` method.)
181
+ */
182
+ start() {
183
+ if (!this._isPaused) {
184
+ return this;
185
+ }
186
+ this._isPaused = false;
187
+ this._processQueue();
188
+ return this;
189
+ }
190
+ /**
191
+ Put queue execution on hold.
192
+ */
193
+ pause() {
194
+ this._isPaused = true;
195
+ }
196
+ /**
197
+ Clear the queue.
198
+ */
199
+ clear() {
200
+ this._queue = new this._queueClass();
201
+ }
202
+ /**
203
+ Can be called multiple times. Useful if you for example add additional items at a later time.
204
+
205
+ @returns A promise that settles when the queue becomes empty.
206
+ */
207
+ async onEmpty() {
208
+ if (this._queue.size === 0) {
209
+ return;
210
+ }
211
+ return new Promise((resolve) => {
212
+ const existingResolve = this._resolveEmpty;
213
+ this._resolveEmpty = () => {
214
+ existingResolve();
215
+ resolve();
216
+ };
217
+ });
218
+ }
219
+ /**
220
+ The difference with `.onEmpty` is that `.onIdle` guarantees that all work from the queue has finished. `.onEmpty` merely signals that the queue is empty, but it could mean that some promises haven't completed yet.
221
+
222
+ @returns A promise that settles when the queue becomes empty, and all promises have completed; `queue.size === 0 && queue.pending === 0`.
223
+ */
224
+ async onIdle() {
225
+ if (this._pendingCount === 0 && this._queue.size === 0) {
226
+ return;
227
+ }
228
+ return new Promise((resolve) => {
229
+ const existingResolve = this._resolveIdle;
230
+ this._resolveIdle = () => {
231
+ existingResolve();
232
+ resolve();
233
+ };
234
+ });
235
+ }
236
+ /**
237
+ Size of the queue.
238
+ */
239
+ get size() {
240
+ return this._queue.size;
241
+ }
242
+ /**
243
+ Size of the queue, filtered by the given options.
244
+
245
+ For example, this can be used to find the number of items remaining in the queue with a specific priority level.
246
+ */
247
+ sizeBy(options) {
248
+ return this._queue.filter(options).length;
249
+ }
250
+ /**
251
+ Number of pending promises.
252
+ */
253
+ get pending() {
254
+ return this._pendingCount;
255
+ }
256
+ /**
257
+ Whether the queue is currently paused.
258
+ */
259
+ get isPaused() {
260
+ return this._isPaused;
261
+ }
262
+ get timeout() {
263
+ return this._timeout;
264
+ }
265
+ /**
266
+ Set the timeout for future operations.
267
+ */
268
+ set timeout(milliseconds) {
269
+ this._timeout = milliseconds;
270
+ }
271
+ }
272
+ dist.default = PQueue;
273
+ return dist;
8
274
  }
9
- const LC_CONFIGURE_HOOKS_KEY = /* @__PURE__ */ Symbol("lc:configure_hooks");
10
- const _getConfigureHooks = () => getContextVariable(LC_CONFIGURE_HOOKS_KEY) || [];
11
275
  export {
12
- _getConfigureHooks,
13
- getContextVariable
276
+ requireDist as __require
14
277
  };
15
278
  //# sourceMappingURL=index.es139.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es139.js","sources":["../node_modules/.pnpm/@langchain+core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/async_local_storage/context.js"],"sourcesContent":["import { _CONTEXT_VARIABLES_KEY, getGlobalAsyncLocalStorageInstance } from \"./globals.js\";\nimport { RunTree, isRunTree } from \"langsmith/run_trees\";\n\n//#region src/singletons/async_local_storage/context.ts\n/**\n* Set a context variable. Context variables are scoped to any\n* child runnables called by the current runnable, or globally if set outside\n* of any runnable.\n*\n* @remarks\n* This function is only supported in environments that support AsyncLocalStorage,\n* including Node.js, Deno, and Cloudflare Workers.\n*\n* @example\n* ```ts\n* import { RunnableLambda } from \"@langchain/core/runnables\";\n* import {\n* getContextVariable,\n* setContextVariable\n* } from \"@langchain/core/context\";\n*\n* const nested = RunnableLambda.from(() => {\n* // \"bar\" because it was set by a parent\n* console.log(getContextVariable(\"foo\"));\n*\n* // Override to \"baz\", but only for child runnables\n* setContextVariable(\"foo\", \"baz\");\n*\n* // Now \"baz\", but only for child runnables\n* return getContextVariable(\"foo\");\n* });\n*\n* const runnable = RunnableLambda.from(async () => {\n* // Set a context variable named \"foo\"\n* setContextVariable(\"foo\", \"bar\");\n*\n* const res = await nested.invoke({});\n*\n* // Still \"bar\" since child changes do not affect parents\n* console.log(getContextVariable(\"foo\"));\n*\n* return res;\n* });\n*\n* // undefined, because context variable has not been set yet\n* console.log(getContextVariable(\"foo\"));\n*\n* // Final return value is \"baz\"\n* const result = await runnable.invoke({});\n* ```\n*\n* @param name The name of the context variable.\n* @param value The value to set.\n*/\nfunction setContextVariable(name, value) {\n\tconst asyncLocalStorageInstance = getGlobalAsyncLocalStorageInstance();\n\tif (asyncLocalStorageInstance === void 0) throw new Error(`Internal error: Global shared async local storage instance has not been initialized.`);\n\tconst runTree = asyncLocalStorageInstance.getStore();\n\tconst contextVars = { ...runTree?.[_CONTEXT_VARIABLES_KEY] };\n\tcontextVars[name] = value;\n\tlet newValue = {};\n\tif (isRunTree(runTree)) newValue = new RunTree(runTree);\n\tnewValue[_CONTEXT_VARIABLES_KEY] = contextVars;\n\tasyncLocalStorageInstance.enterWith(newValue);\n}\n/**\n* Get the value of a previously set context variable. Context variables\n* are scoped to any child runnables called by the current runnable,\n* or globally if set outside of any runnable.\n*\n* @remarks\n* This function is only supported in environments that support AsyncLocalStorage,\n* including Node.js, Deno, and Cloudflare Workers.\n*\n* @example\n* ```ts\n* import { RunnableLambda } from \"@langchain/core/runnables\";\n* import {\n* getContextVariable,\n* setContextVariable\n* } from \"@langchain/core/context\";\n*\n* const nested = RunnableLambda.from(() => {\n* // \"bar\" because it was set by a parent\n* console.log(getContextVariable(\"foo\"));\n*\n* // Override to \"baz\", but only for child runnables\n* setContextVariable(\"foo\", \"baz\");\n*\n* // Now \"baz\", but only for child runnables\n* return getContextVariable(\"foo\");\n* });\n*\n* const runnable = RunnableLambda.from(async () => {\n* // Set a context variable named \"foo\"\n* setContextVariable(\"foo\", \"bar\");\n*\n* const res = await nested.invoke({});\n*\n* // Still \"bar\" since child changes do not affect parents\n* console.log(getContextVariable(\"foo\"));\n*\n* return res;\n* });\n*\n* // undefined, because context variable has not been set yet\n* console.log(getContextVariable(\"foo\"));\n*\n* // Final return value is \"baz\"\n* const result = await runnable.invoke({});\n* ```\n*\n* @param name The name of the context variable.\n*/\nfunction getContextVariable(name) {\n\tconst asyncLocalStorageInstance = getGlobalAsyncLocalStorageInstance();\n\tif (asyncLocalStorageInstance === void 0) return void 0;\n\tconst runTree = asyncLocalStorageInstance.getStore();\n\treturn runTree?.[_CONTEXT_VARIABLES_KEY]?.[name];\n}\nconst LC_CONFIGURE_HOOKS_KEY = Symbol(\"lc:configure_hooks\");\nconst _getConfigureHooks = () => getContextVariable(LC_CONFIGURE_HOOKS_KEY) || [];\n/**\n* Register a callback configure hook to automatically add callback handlers to all runs.\n*\n* There are two ways to use this:\n*\n* 1. Using a context variable:\n* - Set `contextVar` to specify the variable name\n* - Use `setContextVariable()` to store your handler instance\n*\n* 2. Using an environment variable:\n* - Set both `envVar` and `handlerClass`\n* - The handler will be instantiated when the env var is set to \"true\".\n*\n* @example\n* ```typescript\n* // Method 1: Using context variable\n* import {\n* registerConfigureHook,\n* setContextVariable\n* } from \"@langchain/core/context\";\n*\n* const tracer = new MyCallbackHandler();\n* registerConfigureHook({\n* contextVar: \"my_tracer\",\n* });\n* setContextVariable(\"my_tracer\", tracer);\n*\n* // ...run code here\n*\n* // Method 2: Using environment variable\n* registerConfigureHook({\n* handlerClass: MyCallbackHandler,\n* envVar: \"MY_TRACER_ENABLED\",\n* });\n* process.env.MY_TRACER_ENABLED = \"true\";\n*\n* // ...run code here\n* ```\n*\n* @param config Configuration object for the hook\n* @param config.contextVar Name of the context variable containing the handler instance\n* @param config.inheritable Whether child runs should inherit this handler\n* @param config.handlerClass Optional callback handler class (required if using envVar)\n* @param config.envVar Optional environment variable name to control handler activation\n*/\nconst registerConfigureHook = (config) => {\n\tif (config.envVar && !config.handlerClass) throw new Error(\"If envVar is set, handlerClass must also be set to a non-None value.\");\n\tsetContextVariable(LC_CONFIGURE_HOOKS_KEY, [..._getConfigureHooks(), config]);\n};\n\n//#endregion\nexport { _getConfigureHooks, getContextVariable, registerConfigureHook, setContextVariable };\n//# sourceMappingURL=context.js.map"],"names":[],"mappings":";;AAkHA,SAAS,mBAAmB,MAAM;AACjC,QAAM,4BAA4B,mCAAkC;AACpE,MAAI,8BAA8B,OAAQ,QAAO;AACjD,QAAM,UAAU,0BAA0B,SAAQ;AAClD,SAAO,UAAU,sBAAsB,IAAI,IAAI;AAChD;AACA,MAAM,yBAAyB,uBAAO,oBAAoB;AACrD,MAAC,qBAAqB,MAAM,mBAAmB,sBAAsB,KAAK,CAAA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es139.js","sources":["../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst EventEmitter = require(\"eventemitter3\");\nconst p_timeout_1 = require(\"p-timeout\");\nconst priority_queue_1 = require(\"./priority-queue\");\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst empty = () => { };\nconst timeoutError = new p_timeout_1.TimeoutError();\n/**\nPromise queue with concurrency control.\n*/\nclass PQueue extends EventEmitter {\n constructor(options) {\n var _a, _b, _c, _d;\n super();\n this._intervalCount = 0;\n this._intervalEnd = 0;\n this._pendingCount = 0;\n this._resolveEmpty = empty;\n this._resolveIdle = empty;\n // eslint-disable-next-line @typescript-eslint/consistent-type-assertions\n options = Object.assign({ carryoverConcurrencyCount: false, intervalCap: Infinity, interval: 0, concurrency: Infinity, autoStart: true, queueClass: priority_queue_1.default }, options);\n if (!(typeof options.intervalCap === 'number' && options.intervalCap >= 1)) {\n throw new TypeError(`Expected \\`intervalCap\\` to be a number from 1 and up, got \\`${(_b = (_a = options.intervalCap) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : ''}\\` (${typeof options.intervalCap})`);\n }\n if (options.interval === undefined || !(Number.isFinite(options.interval) && options.interval >= 0)) {\n throw new TypeError(`Expected \\`interval\\` to be a finite number >= 0, got \\`${(_d = (_c = options.interval) === null || _c === void 0 ? void 0 : _c.toString()) !== null && _d !== void 0 ? _d : ''}\\` (${typeof options.interval})`);\n }\n this._carryoverConcurrencyCount = options.carryoverConcurrencyCount;\n this._isIntervalIgnored = options.intervalCap === Infinity || options.interval === 0;\n this._intervalCap = options.intervalCap;\n this._interval = options.interval;\n this._queue = new options.queueClass();\n this._queueClass = options.queueClass;\n this.concurrency = options.concurrency;\n this._timeout = options.timeout;\n this._throwOnTimeout = options.throwOnTimeout === true;\n this._isPaused = options.autoStart === false;\n }\n get _doesIntervalAllowAnother() {\n return this._isIntervalIgnored || this._intervalCount < this._intervalCap;\n }\n get _doesConcurrentAllowAnother() {\n return this._pendingCount < this._concurrency;\n }\n _next() {\n this._pendingCount--;\n this._tryToStartAnother();\n this.emit('next');\n }\n _resolvePromises() {\n this._resolveEmpty();\n this._resolveEmpty = empty;\n if (this._pendingCount === 0) {\n this._resolveIdle();\n this._resolveIdle = empty;\n this.emit('idle');\n }\n }\n _onResumeInterval() {\n this._onInterval();\n this._initializeIntervalIfNeeded();\n this._timeoutId = undefined;\n }\n _isIntervalPaused() {\n const now = Date.now();\n if (this._intervalId === undefined) {\n const delay = this._intervalEnd - now;\n if (delay < 0) {\n // Act as the interval was done\n // We don't need to resume it here because it will be resumed on line 160\n this._intervalCount = (this._carryoverConcurrencyCount) ? this._pendingCount : 0;\n }\n else {\n // Act as the interval is pending\n if (this._timeoutId === undefined) {\n this._timeoutId = setTimeout(() => {\n this._onResumeInterval();\n }, delay);\n }\n return true;\n }\n }\n return false;\n }\n _tryToStartAnother() {\n if (this._queue.size === 0) {\n // We can clear the interval (\"pause\")\n // Because we can redo it later (\"resume\")\n if (this._intervalId) {\n clearInterval(this._intervalId);\n }\n this._intervalId = undefined;\n this._resolvePromises();\n return false;\n }\n if (!this._isPaused) {\n const canInitializeInterval = !this._isIntervalPaused();\n if (this._doesIntervalAllowAnother && this._doesConcurrentAllowAnother) {\n const job = this._queue.dequeue();\n if (!job) {\n return false;\n }\n this.emit('active');\n job();\n if (canInitializeInterval) {\n this._initializeIntervalIfNeeded();\n }\n return true;\n }\n }\n return false;\n }\n _initializeIntervalIfNeeded() {\n if (this._isIntervalIgnored || this._intervalId !== undefined) {\n return;\n }\n this._intervalId = setInterval(() => {\n this._onInterval();\n }, this._interval);\n this._intervalEnd = Date.now() + this._interval;\n }\n _onInterval() {\n if (this._intervalCount === 0 && this._pendingCount === 0 && this._intervalId) {\n clearInterval(this._intervalId);\n this._intervalId = undefined;\n }\n this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0;\n this._processQueue();\n }\n /**\n Executes all queued functions until it reaches the limit.\n */\n _processQueue() {\n // eslint-disable-next-line no-empty\n while (this._tryToStartAnother()) { }\n }\n get concurrency() {\n return this._concurrency;\n }\n set concurrency(newConcurrency) {\n if (!(typeof newConcurrency === 'number' && newConcurrency >= 1)) {\n throw new TypeError(`Expected \\`concurrency\\` to be a number from 1 and up, got \\`${newConcurrency}\\` (${typeof newConcurrency})`);\n }\n this._concurrency = newConcurrency;\n this._processQueue();\n }\n /**\n Adds a sync or async task to the queue. Always returns a promise.\n */\n async add(fn, options = {}) {\n return new Promise((resolve, reject) => {\n const run = async () => {\n this._pendingCount++;\n this._intervalCount++;\n try {\n const operation = (this._timeout === undefined && options.timeout === undefined) ? fn() : p_timeout_1.default(Promise.resolve(fn()), (options.timeout === undefined ? this._timeout : options.timeout), () => {\n if (options.throwOnTimeout === undefined ? this._throwOnTimeout : options.throwOnTimeout) {\n reject(timeoutError);\n }\n return undefined;\n });\n resolve(await operation);\n }\n catch (error) {\n reject(error);\n }\n this._next();\n };\n this._queue.enqueue(run, options);\n this._tryToStartAnother();\n this.emit('add');\n });\n }\n /**\n Same as `.add()`, but accepts an array of sync or async functions.\n\n @returns A promise that resolves when all functions are resolved.\n */\n async addAll(functions, options) {\n return Promise.all(functions.map(async (function_) => this.add(function_, options)));\n }\n /**\n Start (or resume) executing enqueued tasks within concurrency limit. No need to call this if queue is not paused (via `options.autoStart = false` or by `.pause()` method.)\n */\n start() {\n if (!this._isPaused) {\n return this;\n }\n this._isPaused = false;\n this._processQueue();\n return this;\n }\n /**\n Put queue execution on hold.\n */\n pause() {\n this._isPaused = true;\n }\n /**\n Clear the queue.\n */\n clear() {\n this._queue = new this._queueClass();\n }\n /**\n Can be called multiple times. Useful if you for example add additional items at a later time.\n\n @returns A promise that settles when the queue becomes empty.\n */\n async onEmpty() {\n // Instantly resolve if the queue is empty\n if (this._queue.size === 0) {\n return;\n }\n return new Promise(resolve => {\n const existingResolve = this._resolveEmpty;\n this._resolveEmpty = () => {\n existingResolve();\n resolve();\n };\n });\n }\n /**\n The difference with `.onEmpty` is that `.onIdle` guarantees that all work from the queue has finished. `.onEmpty` merely signals that the queue is empty, but it could mean that some promises haven't completed yet.\n\n @returns A promise that settles when the queue becomes empty, and all promises have completed; `queue.size === 0 && queue.pending === 0`.\n */\n async onIdle() {\n // Instantly resolve if none pending and if nothing else is queued\n if (this._pendingCount === 0 && this._queue.size === 0) {\n return;\n }\n return new Promise(resolve => {\n const existingResolve = this._resolveIdle;\n this._resolveIdle = () => {\n existingResolve();\n resolve();\n };\n });\n }\n /**\n Size of the queue.\n */\n get size() {\n return this._queue.size;\n }\n /**\n Size of the queue, filtered by the given options.\n\n For example, this can be used to find the number of items remaining in the queue with a specific priority level.\n */\n sizeBy(options) {\n // eslint-disable-next-line unicorn/no-fn-reference-in-iterator\n return this._queue.filter(options).length;\n }\n /**\n Number of pending promises.\n */\n get pending() {\n return this._pendingCount;\n }\n /**\n Whether the queue is currently paused.\n */\n get isPaused() {\n return this._isPaused;\n }\n get timeout() {\n return this._timeout;\n }\n /**\n Set the timeout for future operations.\n */\n set timeout(milliseconds) {\n this._timeout = milliseconds;\n }\n}\nexports.default = PQueue;\n"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;AACA,SAAO,eAAe,MAAS,cAAc,EAAE,OAAO,MAAM;AAC5D,QAAM,eAAeA,qBAAA;AACrB,QAAM,cAAcC,gBAAA;AACpB,QAAM,mBAAmBC,qBAAA;AAEzB,QAAM,QAAQ,MAAM;AAAA,EAAA;AACpB,QAAM,eAAe,IAAI,YAAY,aAAY;AAAA,EAIjD,MAAM,eAAe,aAAa;AAAA,IAC9B,YAAY,SAAS;AACjB,UAAI,IA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AAe,MAAM;AACtB,0BAAe;AACf,kBAAO;AAAA,QACvB;AAAA,MACA,CAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAII,IAAI,OAAO;AACP,aAAO,KAAK,OAAO;AAAA,IAC3B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMI,OAAO,SAAS;AAEZ,aAAO,KAAK,OAAO,OAAO,OAAO,EAAE;AAAA,IAC3C;AAAA;AAAA;AAAA;AAAA,IAII,IAAI,UAAU;AACV,aAAO,KAAK;AAAA,IACpB;AAAA;AAAA;AAAA;AAAA,IAII,IAAI,WAAW;AACX,aAAO,KAAK;AAAA,IACpB;AAAA,IACI,IAAI,UAAU;AACV,aAAO,KAAK;AAAA,IACpB;AAAA;AAAA;AAAA;AAAA,IAII,IAAI,QAAQ,cAAc;AACtB,WAAK,WAAW;AAAA,IACxB;AAAA,EACA;AACA,OAAA,UAAkB;;;","x_google_ignoreList":[0]}
@@ -1,94 +1,5 @@
1
- const _hasOwnProperty = Object.prototype.hasOwnProperty;
2
- function hasOwnProperty(obj, key) {
3
- return _hasOwnProperty.call(obj, key);
4
- }
5
- function _objectKeys(obj) {
6
- if (Array.isArray(obj)) {
7
- const keys$1 = new Array(obj.length);
8
- for (let k = 0; k < keys$1.length; k++) keys$1[k] = "" + k;
9
- return keys$1;
10
- }
11
- if (Object.keys) return Object.keys(obj);
12
- let keys = [];
13
- for (let i in obj) if (hasOwnProperty(obj, i)) keys.push(i);
14
- return keys;
15
- }
16
- function _deepClone(obj) {
17
- switch (typeof obj) {
18
- case "object":
19
- return JSON.parse(JSON.stringify(obj));
20
- case "undefined":
21
- return null;
22
- default:
23
- return obj;
24
- }
25
- }
26
- function isInteger(str) {
27
- let i = 0;
28
- const len = str.length;
29
- let charCode;
30
- while (i < len) {
31
- charCode = str.charCodeAt(i);
32
- if (charCode >= 48 && charCode <= 57) {
33
- i++;
34
- continue;
35
- }
36
- return false;
37
- }
38
- return true;
39
- }
40
- function unescapePathComponent(path) {
41
- return path.replace(/~1/g, "/").replace(/~0/g, "~");
42
- }
43
- function hasUndefined(obj) {
44
- if (obj === void 0) return true;
45
- if (obj) {
46
- if (Array.isArray(obj)) {
47
- for (let i$1 = 0, len = obj.length; i$1 < len; i$1++) if (hasUndefined(obj[i$1])) return true;
48
- } else if (typeof obj === "object") {
49
- const objKeys = _objectKeys(obj);
50
- const objKeysLength = objKeys.length;
51
- for (var i = 0; i < objKeysLength; i++) if (hasUndefined(obj[objKeys[i]])) return true;
52
- }
53
- }
54
- return false;
55
- }
56
- function patchErrorMessageFormatter(message, args) {
57
- const messageParts = [message];
58
- for (const key in args) {
59
- const value = typeof args[key] === "object" ? JSON.stringify(args[key], null, 2) : args[key];
60
- if (typeof value !== "undefined") messageParts.push(`${key}: ${value}`);
61
- }
62
- return messageParts.join("\n");
63
- }
64
- var PatchError = class extends Error {
65
- constructor(message, name, index, operation, tree) {
66
- super(patchErrorMessageFormatter(message, {
67
- name,
68
- index,
69
- operation,
70
- tree
71
- }));
72
- this.name = name;
73
- this.index = index;
74
- this.operation = operation;
75
- this.tree = tree;
76
- Object.setPrototypeOf(this, new.target.prototype);
77
- this.message = patchErrorMessageFormatter(message, {
78
- name,
79
- index,
80
- operation,
81
- tree
82
- });
83
- }
84
- };
1
+ var dist = {};
85
2
  export {
86
- PatchError,
87
- _deepClone,
88
- _objectKeys,
89
- hasOwnProperty,
90
- hasUndefined,
91
- isInteger,
92
- unescapePathComponent
3
+ dist as __exports
93
4
  };
94
5
  //# sourceMappingURL=index.es140.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es140.js","sources":["../node_modules/.pnpm/@langchain+core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.js"],"sourcesContent":["//#region src/utils/fast-json-patch/src/helpers.ts\n/*!\n* https://github.com/Starcounter-Jack/JSON-Patch\n* (c) 2017-2022 Joachim Wester\n* MIT licensed\n*/\nconst _hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwnProperty(obj, key) {\n\treturn _hasOwnProperty.call(obj, key);\n}\nfunction _objectKeys(obj) {\n\tif (Array.isArray(obj)) {\n\t\tconst keys$1 = new Array(obj.length);\n\t\tfor (let k = 0; k < keys$1.length; k++) keys$1[k] = \"\" + k;\n\t\treturn keys$1;\n\t}\n\tif (Object.keys) return Object.keys(obj);\n\tlet keys = [];\n\tfor (let i in obj) if (hasOwnProperty(obj, i)) keys.push(i);\n\treturn keys;\n}\n/**\n* Deeply clone the object.\n* https://jsperf.com/deep-copy-vs-json-stringify-json-parse/25 (recursiveDeepCopy)\n* @param {any} obj value to clone\n* @return {any} cloned obj\n*/\nfunction _deepClone(obj) {\n\tswitch (typeof obj) {\n\t\tcase \"object\": return JSON.parse(JSON.stringify(obj));\n\t\tcase \"undefined\": return null;\n\t\tdefault: return obj;\n\t}\n}\nfunction isInteger(str) {\n\tlet i = 0;\n\tconst len = str.length;\n\tlet charCode;\n\twhile (i < len) {\n\t\tcharCode = str.charCodeAt(i);\n\t\tif (charCode >= 48 && charCode <= 57) {\n\t\t\ti++;\n\t\t\tcontinue;\n\t\t}\n\t\treturn false;\n\t}\n\treturn true;\n}\n/**\n* Escapes a json pointer path\n* @param path The raw pointer\n* @return the Escaped path\n*/\nfunction escapePathComponent(path) {\n\tif (path.indexOf(\"/\") === -1 && path.indexOf(\"~\") === -1) return path;\n\treturn path.replace(/~/g, \"~0\").replace(/\\//g, \"~1\");\n}\n/**\n* Unescapes a json pointer path\n* @param path The escaped pointer\n* @return The unescaped path\n*/\nfunction unescapePathComponent(path) {\n\treturn path.replace(/~1/g, \"/\").replace(/~0/g, \"~\");\n}\n/**\n* Recursively checks whether an object has any undefined values inside.\n*/\nfunction hasUndefined(obj) {\n\tif (obj === void 0) return true;\n\tif (obj) {\n\t\tif (Array.isArray(obj)) {\n\t\t\tfor (let i$1 = 0, len = obj.length; i$1 < len; i$1++) if (hasUndefined(obj[i$1])) return true;\n\t\t} else if (typeof obj === \"object\") {\n\t\t\tconst objKeys = _objectKeys(obj);\n\t\t\tconst objKeysLength = objKeys.length;\n\t\t\tfor (var i = 0; i < objKeysLength; i++) if (hasUndefined(obj[objKeys[i]])) return true;\n\t\t}\n\t}\n\treturn false;\n}\nfunction patchErrorMessageFormatter(message, args) {\n\tconst messageParts = [message];\n\tfor (const key in args) {\n\t\tconst value = typeof args[key] === \"object\" ? JSON.stringify(args[key], null, 2) : args[key];\n\t\tif (typeof value !== \"undefined\") messageParts.push(`${key}: ${value}`);\n\t}\n\treturn messageParts.join(\"\\n\");\n}\nvar PatchError = class extends Error {\n\tconstructor(message, name, index, operation, tree) {\n\t\tsuper(patchErrorMessageFormatter(message, {\n\t\t\tname,\n\t\t\tindex,\n\t\t\toperation,\n\t\t\ttree\n\t\t}));\n\t\tthis.name = name;\n\t\tthis.index = index;\n\t\tthis.operation = operation;\n\t\tthis.tree = tree;\n\t\tObject.setPrototypeOf(this, new.target.prototype);\n\t\tthis.message = patchErrorMessageFormatter(message, {\n\t\t\tname,\n\t\t\tindex,\n\t\t\toperation,\n\t\t\ttree\n\t\t});\n\t}\n};\n\n//#endregion\nexport { PatchError, _deepClone, _objectKeys, escapePathComponent, hasOwnProperty, hasUndefined, isInteger, unescapePathComponent };\n//# sourceMappingURL=helpers.js.map"],"names":[],"mappings":"AAMA,MAAM,kBAAkB,OAAO,UAAU;AACzC,SAAS,eAAe,KAAK,KAAK;AACjC,SAAO,gBAAgB,KAAK,KAAK,GAAG;AACrC;AACA,SAAS,YAAY,KAAK;AACzB,MAAI,MAAM,QAAQ,GAAG,GAAG;AACvB,UAAM,SAAS,IAAI,MAAM,IAAI,MAAM;AACnC,aAAS,IAAI,GAAG,IAAI,OAAO,QAAQ,IAAK,QAAO,CAAC,IAAI,KAAK;AACzD,WAAO;AAAA,EACR;AACA,MAAI,OAAO,KAAM,QAAO,OAAO,KAAK,GAAG;AACvC,MAAI,OAAO,CAAA;AACX,WAAS,KAAK,IAAK,KAAI,eAAe,KAAK,CA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