@explyt/ai-agent 0.2.0 → 0.2.1

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 (37) hide show
  1. package/README.md +3 -3
  2. package/THIRD-PARTY-NOTICES.md +34 -5
  3. package/dist/cli/engine.js +8 -5
  4. package/dist/cli/index.js +2 -2
  5. package/dist/cli/update.js +7 -3
  6. package/dist/extensions/ask-user-question.js +1 -1
  7. package/dist/extensions/bash.js +1 -1
  8. package/dist/extensions/custom-provider.js +1 -1
  9. package/dist/extensions/hello.js +1 -1
  10. package/dist/extensions/identity.js +1 -1
  11. package/dist/extensions/mcp.js +1 -1
  12. package/dist/extensions/misc-hacks.js +1 -1
  13. package/dist/extensions/policy.js +1 -1
  14. package/dist/extensions/rules.js +1 -1
  15. package/dist/extensions/session-title.js +1 -1
  16. package/dist/extensions/skills.js +1 -1
  17. package/dist/extensions/subagents.js +1 -1
  18. package/dist/extensions/tui.js +1 -1
  19. package/dist/extensions/update-notice.js +1 -1
  20. package/dist/extensions/web-access.js +1 -1
  21. package/dist/extensions/write.js +1 -0
  22. package/dist/mcp-adapter.js +4 -4
  23. package/dist/rpiv-ask-user-question/{chunk-GAM3ZAHN.js → chunk-JNDW3P3A.js} +2 -2
  24. package/dist/rpiv-ask-user-question/index.js +3 -3
  25. package/dist/vendor/model-probe/rules.json +102 -0
  26. package/dist/vendor/model-probe/src/index.js +983 -0
  27. package/dist/vendor/model-probe/src/opencode-models-snapshot.js +8 -0
  28. package/dist/vendor/model-probe/src/opencode-models.js +6 -0
  29. package/dist/vendor/pi-ai-compat.js +2 -0
  30. package/dist/vendor/pi-coding-agent.js +159 -0
  31. package/dist/vendor/pi-web-access-deps/modelcontextprotocol__sdk__client__index.js.js +9 -0
  32. package/dist/vendor/pi-web-access-deps/modelcontextprotocol__sdk__client__streamableHttp.js.js +9 -0
  33. package/dist/vendor/pi-web-access.js +24958 -0
  34. package/dist/vendor/typebox/chunk-6XHASRAZ.js +4819 -0
  35. package/dist/vendor/typebox/index.js +703 -0
  36. package/dist/vendor/typebox/value.js +3736 -0
  37. package/package.json +12 -4
package/README.md CHANGED
@@ -17,8 +17,8 @@ explyt update # install the newer latest, then restart open sessi
17
17
  For a one-off pinned run:
18
18
 
19
19
  ```bash
20
- npx -y "@explyt/ai-agent@0.2.0" # start the terminal UI
21
- npx -y "@explyt/ai-agent@0.2.0" login # store a provider credential, once
20
+ npx -y "@explyt/ai-agent@0.2.1" # start the terminal UI
21
+ npx -y "@explyt/ai-agent@0.2.1" login # store a provider credential, once
22
22
  ```
23
23
 
24
24
  The agent runs with exactly the extensions this build ships with and ignores any
@@ -28,4 +28,4 @@ you get.
28
28
  IDE (ACP) integration is not part of this package: it is provided by the Explyt
29
29
  managed backend, which the Neo plugin downloads and manages.
30
30
 
31
- Run `npx -y @explyt/ai-agent@0.2.0 --help` for the available options.
31
+ Run `npx -y @explyt/ai-agent@0.2.1 --help` for the available options.
@@ -20,7 +20,8 @@ License or other written license agreements with the Company.
20
20
  > depends on or redistributes. The release pipeline additionally generates a
21
21
  > machine-collected list of license metadata for every runtime npm dependency of the
22
22
  > artifact, marking which of them are bundled inside it. The public npm package bundles
23
- > none of them: npm installs them beside it. The managed backend archive redistributes its
23
+ > none of them as packages: npm installs them beside it; it does carry compiled copies of
24
+ > `model-probe` and `typebox` (section 5) and of `pi-web-access` (section 3) under `dist/vendor/`. The managed backend archive redistributes its
24
25
  > whole installed tree. The generated list is not a substitute for reviewing the licenses
25
26
  > and NOTICE files of all transitive dependencies before a commercial release.
26
27
 
@@ -88,6 +89,12 @@ License or other written license agreements with the Company.
88
89
  the unmodified `pi-mcp-adapter` entrypoint (`index.ts`) together with the package's
89
90
  small runtime helper files, so that Node can load it outside the engine's TypeScript
90
91
  loader.
92
+ - The public npm package contains `dist/vendor/pi-web-access.js`, an unobfuscated
93
+ compilation of the unmodified `pi-web-access` entrypoint (`dist/index.js`) carrying the
94
+ package's name, version and licence in a banner, so that its imports of the engine and
95
+ `typebox` resolve to the product's files under `dist/vendor/`; and small generated files
96
+ under `dist/vendor/pi-web-access-deps/` that import the package's own installed copy of
97
+ `@modelcontextprotocol/sdk`. The package's own files are not altered.
91
98
  - In the managed backend archive only, `pi-mcp-adapter` is redistributed with one
92
99
  textual modification made at build time: in its `index.ts`, the slash-command alias
93
100
  registered as `pi-mcp` (a second name for the package's `mcp` status command) is
@@ -97,6 +104,8 @@ License or other written license agreements with the Company.
97
104
  here as required by the MIT License; the original copyright and license notice above
98
105
  apply to the modified package unchanged. The public npm package does not carry the
99
106
  adapter and therefore carries no modification of it.
107
+ - The public npm package contains `dist/vendor/pi-coding-agent.js`, a generated file that
108
+ re-exports the engine's own bundled entry point by name; it contains no engine code.
100
109
  - The formerly bundled `pi-subagents` package was removed by spec 008; references to it in
101
110
  older release history are historical and do not describe the current artifact.
102
111
  - Seven units of `@earendil-works/pi-coding-agent` 0.84.4 are **copied** (from the TypeScript in
@@ -133,7 +142,7 @@ License or other written license agreements with the Company.
133
142
  - local Explyt extension with current `@earendil-works` imports
134
143
  - shell API-key execution removed; credential files use locked atomic writes and private permissions
135
144
 
136
- ### 5. model-probe, @opencode-ai/models, yaml, minimatch and semver
145
+ ### 5. model-probe, @opencode-ai/models, yaml, minimatch, semver and typebox
137
146
 
138
147
  - `model-probe` 0.6.0, MIT, https://www.npmjs.com/package/model-probe
139
148
  - Copyright (c) 2025 ratatulieoi
@@ -146,9 +155,18 @@ License or other written license agreements with the Company.
146
155
  - Copyright Isaac Z. Schlueter <i@izs.me> and minimatch contributors
147
156
  - `semver` 7.8.5, ISC, https://www.npmjs.com/package/semver
148
157
  - Copyright (c) Isaac Z. Schlueter and Contributors
149
-
150
- The MIT text below applies to the derivative, `model-probe` and `@opencode-ai/models`
151
- with the copyright notices above. The ISC text immediately below applies to `yaml` and
158
+ - `typebox` (the version pinned in the development manifest, which the build compiles; the
159
+ build-time metadata below and each compiled file's banner name it), MIT, https://www.npmjs.com/package/typebox
160
+ - Copyright (c) 2017-2026 Haydn Paterson
161
+
162
+ `model-probe` and `typebox` are also redistributed compiled, unobfuscated and unmodified:
163
+ the public npm package contains `dist/vendor/model-probe/` (the installed `model-probe`
164
+ compiled from its TypeScript, with its `rules.json`) and `dist/vendor/typebox/` (the pinned
165
+ `typebox` in one ESM build), each file carrying the package's name, version and
166
+ licence in a banner that names the exact version compiled.
167
+
168
+ The MIT text below applies to the derivative, `model-probe`, `@opencode-ai/models` and
169
+ `typebox` with the copyright notices above. The ISC text immediately below applies to `yaml` and
152
170
  `semver`, each with its own copyright holder listed above (the ISC terms are identical);
153
171
  `minimatch` is covered by the separate Blue Oak Model License text further down, and its
154
172
  copyright holder is the one listed for it above rather than the one named in the ISC text:
@@ -511,17 +529,28 @@ Consult each package for its complete license text.
511
529
  - @modelcontextprotocol/client@2.0.0: license metadata = MIT (installed by npm beside this package)
512
530
  - @modelcontextprotocol/core@2.0.0: license metadata = MIT (installed by npm beside this package)
513
531
  - @modelcontextprotocol/ext-apps@1.7.5: license metadata = MIT (installed by npm beside this package)
532
+ - @mozilla/readability@0.6.0: license metadata = Apache-2.0 (installed by npm beside this package)
514
533
  - @napi-rs/keyring@1.3.0: license metadata = MIT (installed by npm beside this package)
515
534
  - ajv@8.20.0: license metadata = MIT (installed by npm beside this package)
516
535
  - ajv-formats@3.0.1: license metadata = MIT (installed by npm beside this package)
517
536
  - cross-spawn@7.0.6: license metadata = MIT (installed by npm beside this package)
537
+ - defuddle@0.19.3: license metadata = MIT (installed by npm beside this package)
538
+ - linkedom@0.16.11: license metadata = ISC (installed by npm beside this package)
518
539
  - minimatch@10.2.6: license metadata = BlueOak-1.0.0 (installed by npm beside this package)
519
540
  - model-probe@0.6.0: license metadata = MIT (installed by npm beside this package)
520
541
  - open@10.2.0: license metadata = MIT (installed by npm beside this package)
542
+ - p-limit@6.2.0: license metadata = MIT (installed by npm beside this package)
521
543
  - pi-mcp-adapter@2.31.0: license metadata = MIT (installed by npm beside this package)
522
544
  - pi-web-access@0.31.0: license metadata = MIT (installed by npm beside this package)
545
+ - promise.try@2.0.2: license metadata = MIT (installed by npm beside this package)
523
546
  - recheck@4.5.0: license metadata = MIT (installed by npm beside this package)
524
547
  - semver@7.8.5: license metadata = ISC (installed by npm beside this package)
525
548
  - smol-toml@1.9.0: license metadata = BSD-3-Clause (installed by npm beside this package)
526
549
  - strip-json-comments@5.0.3: license metadata = MIT (installed by npm beside this package)
550
+ - turndown@7.2.4: license metadata = MIT (installed by npm beside this package)
551
+ - undici@8.11.2: license metadata = MIT (installed by npm beside this package)
552
+ - unpdf@1.8.1: license metadata = MIT (installed by npm beside this package)
527
553
  - yaml@2.9.0: license metadata = ISC (installed by npm beside this package)
554
+ - typebox@1.3.24: license metadata = MIT (compiled into dist/vendor/typebox)
555
+ - model-probe@0.6.0: license metadata = MIT (compiled into dist/vendor/model-probe)
556
+ - pi-web-access@0.31.0: license metadata = MIT (compiled into dist/vendor/pi-web-access.js)
@@ -252,7 +252,7 @@ export function isUsableShim(path, os = platform()) {
252
252
  }
253
253
 
254
254
  /**
255
- * PATH with `binDir` in front.
255
+ * Put `binDir` in front of PATH, in place.
256
256
  *
257
257
  * This is how the bundled engine is handed to the ACP adapter: the adapter spawns
258
258
  * the bare command `pi`, so putting our own shim first makes it pick the version
@@ -260,11 +260,14 @@ export function isUsableShim(path, os = platform()) {
260
260
  * globally. The alternative — the adapter's `PI_ACP_PI_COMMAND` override — cannot
261
261
  * be used here, because one of our IDE clients can only pass `command` and `args`
262
262
  * to a backend and never environment variables.
263
+ *
264
+ * In place, and nothing at all without a `binDir`: assigning a missing value to
265
+ * `process.env` stores the string "undefined". `env.PATH` is read on the env itself,
266
+ * which on Windows finds `Path` too; a copy of it would not.
263
267
  */
264
- export function withEnginePath(env, binDir) {
265
- if (!binDir) return { ...env };
266
- const current = env.PATH ?? env.Path ?? "";
267
- return { ...env, PATH: current ? `${binDir}${delimiter}${current}` : binDir };
268
+ export function prependEnginePath(env, binDir) {
269
+ if (!binDir) return;
270
+ env.PATH = env.PATH ? `${binDir}${delimiter}${env.PATH}` : binDir;
268
271
  }
269
272
 
270
273
  /**
package/dist/cli/index.js CHANGED
@@ -52,9 +52,9 @@ import {
52
52
  helpText,
53
53
  interactiveStdin,
54
54
  parseArgs,
55
+ prependEnginePath,
55
56
  terminalEngineArgs,
56
57
  withAgentDir,
57
- withEnginePath,
58
58
  withIsolation,
59
59
  } from "./engine.js";
60
60
 
@@ -265,7 +265,7 @@ if (!adapter) {
265
265
  // one place the `.bin` shim is still needed, and the adapter handles the Windows
266
266
  // `.cmd` case itself.
267
267
  const engine = await requireEngine();
268
- process.env.PATH = withEnginePath(process.env, engine.binDir).PATH;
268
+ prependEnginePath(process.env, engine.binDir);
269
269
 
270
270
  // Point the engine at THIS agent's configuration directory rather than the
271
271
  // `~/.pi/agent` of a pi the user may also run by hand. Set here, in our own process,
@@ -5,7 +5,11 @@ import { realpathSync, unlinkSync, writeFileSync } from "node:fs";
5
5
  import { readFile, rename, unlink, writeFile } from "node:fs/promises";
6
6
  import { homedir } from "node:os";
7
7
  import { join, posix, win32 } from "node:path";
8
- import semver from "semver";
8
+ // The two functions, not the package root, which loads semver's whole API: the update-notice
9
+ // extension imports this file on every start (docs/release.md, "`dist/vendor/`", why the
10
+ // number of files a start opens matters).
11
+ import compareSemver from "semver/functions/compare.js";
12
+ import validSemver from "semver/functions/valid.js";
9
13
  import { writeAtomicallyAsync } from "./atomic-write.js";
10
14
  import { npmInvocation } from "./npm-command.js";
11
15
  import { readViewVersion } from "./npm-view.js";
@@ -26,8 +30,8 @@ const VIEW_LATEST_ARGS = Object.freeze(["view", `${SELF_PACKAGE}@latest`, "versi
26
30
  */
27
31
  export function compareVersions(a, b) {
28
32
  if (typeof a !== "string" || typeof b !== "string") return null;
29
- if (semver.valid(a) !== a || semver.valid(b) !== b) return null;
30
- return semver.compare(a, b);
33
+ if (validSemver(a) !== a || validSemver(b) !== b) return null;
34
+ return compareSemver(a, b);
31
35
  }
32
36
 
33
37
  function isNewer(latest, current) { return compareVersions(latest, current) === 1; }
@@ -1 +1 @@
1
- const a3=b;(function(Q,R){const a2=b,S=Q();while(!![]){try{const T=parseInt(a2(0x194))/0x1+parseInt(a2(0x164))/0x2+-parseInt(a2(0x189))/0x3*(parseInt(a2(0x1b0))/0x4)+parseInt(a2(0x1af))/0x5+-parseInt(a2(0x178))/0x6+-parseInt(a2(0x127))/0x7+-parseInt(a2(0x173))/0x8;if(T===R)break;else S['push'](S['shift']());}catch(U){S['push'](S['shift']());}}}(a,0xad0cc));import{existsSync}from'node:fs';import{fileURLToPath,pathToFileURL}from'node:url';var c=a3(0x16b),d=a3(0x1ba),e={'where':a3(0x1b2),'from':a3(0x14c),'to':a3(0x145)},f={'where':a3(0x123),'from':a3(0x19a),'to':a3(0x139)},g={'where':a3(0x1aa),'from':a3(0x149),'to':a3(0x15f)},h=[{'where':a3(0x1a3),'from':a3(0x18c),'to':a3(0x197)},{'where':a3(0x1a7),'from':a3(0x176),'to':a3(0x151)}],i=[{'where':a3(0x184),'from':a3(0x16f),'to':a3(0x1a8)},{'where':a3(0x1a1),'from':a3(0x12d),'to':a3(0x12a)},{'where':a3(0x153),'from':a3(0x166),'to':a3(0x167)}],j=a3(0x19e);function k(Q,{where:R,from:S,to:T}){const a4=a3,U=Q[a4(0x146)](S);if(U===-0x1||Q[a4(0x146)](S,U+S[a4(0x183)])!==-0x1)throw new Error(a4(0x14f)+R+a4(0x159)+S+'\x22');return Q[a4(0x170)](0x0,U)+T+Q[a4(0x170)](U+S[a4(0x183)]);}function l(Q){const a5=a3;if(Array[a5(0x13c)](Q))return Q[a5(0x14e)](S=>l(S));if(Q===null||typeof Q!==a5(0x128))return Q;const R=Object[a5(0x12b)](Object[a5(0x132)](Q));for(const S of Reflect[a5(0x179)](Q)){const T=Object[a5(0x162)](Q,S);if(a5(0x129)in T)T[a5(0x129)]=l(T[a5(0x129)]);Object[a5(0x12e)](R,S,T);}return R;}function m(Q,R,S){const a6=a3;let T=Q;for(const U of R){T=U===a6(0x135)?T?.[a6(0x135)]:T?.[a6(0x1b6)]?.[U];}if(!T||typeof T[a6(0x13e)]!==a6(0x195))throw new Error(a6(0x15c)+S+'\x20('+R[a6(0x16e)]('.')+')');return T;}function n(Q){const a7=a3,R=l(Q),S=[a7(0x17e),a7(0x135)],T=[[[...S,a7(0x1b8)],e],[[...S,a7(0x1a5)],f],[[...S,a7(0x1b8),a7(0x135),a7(0x1b1)],g]];for(const [U,V]of T){const W=m(R,U,V[a7(0x12c)]);W[a7(0x13e)]=k(W[a7(0x13e)],V);}return R;}function o(Q){const a8=a3;return i[a8(0x155)](k,Q);}function p(Q){const a9=a3,R=[...Q];for(const S of h){const T=R[a9(0x198)](U=>U[a9(0x150)](S[a9(0x160)]));if(T===-0x1)throw new Error(a9(0x14f)+S[a9(0x12c)]+a9(0x13f)+S[a9(0x160)]+'\x22');R[T]=k(R[T],S);}return[...R,j];}function q(Q){const aa=a3;return{'description':o(Q[aa(0x13e)]),'promptGuidelines':p(Q[aa(0x144)]??[]),'parameters':n(Q[aa(0x14b)])};}var r=a3(0x17b),s=[{'where':a3(0x15d),'from':a3(0x18d),'to':a3(0x16a)},{'where':a3(0x131),'from':a3(0x13a),'to':a3(0x15a)}];function t(Q){const ab=a3;return s[ab(0x155)]((R,{from:S,to:T})=>R[ab(0x174)](S)[ab(0x16e)](T),Q);}var u=a3(0x18e),v=a3(0x165),w=0x1,x=a3(0x125),y=a3(0x156);function z(Q){const ac=a3;return ac(0x12f)+Q+ac(0x187);}function A(Q){const ad=a3;return ad(0x192)+Q+ad(0x140);}function B(Q,R){const ae=a3;return JSON[ae(0x190)]({'v':w,'toolCallId':Q,'questions':R[ae(0x17e)][ae(0x14e)](S=>({'question':S[ae(0x142)],'header':S[ae(0x1a5)],'multiSelect':S[ae(0x17f)]===!![],'options':S[ae(0x1b8)][ae(0x14e)](T=>({'label':T[ae(0x175)],'description':T[ae(0x13e)],...typeof T[ae(0x1b1)]===ae(0x195)&&T[ae(0x1b1)][ae(0x183)]>0x0?{'preview':T[ae(0x1b1)]}:{}}))}))});}var C={'kind':a3(0x1a9),'text':A(a3(0x17a))};function D(Q){const af=a3;return typeof Q===af(0x128)&&Q!==null&&!Array[af(0x13c)](Q);}function b(c,d){const e=a();return b=function(f,g){f=f-0x121;let h=e[f];if(b['xfXnie']===undefined){var i=function(m){const n='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let o='',p='';for(let q=0x0,r,s,t=0x0;s=m['charAt'](t++);~s&&(r=q%0x4?r*0x40+s:s,q++%0x4)?o+=String['fromCharCode'](0xff&r>>(-0x2*q&0x6)):0x0){s=n['indexOf'](s);}for(let u=0x0,v=o['length'];u<v;u++){p+='%'+('00'+o['charCodeAt'](u)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(p);};b['HIbcNf']=i,c=arguments,b['xfXnie']=!![];}const j=e[0x0],k=f+j,l=c[k];return!l?(h=b['HIbcNf'](h),c[k]=h):h=l,h;},b(c,d);}function E(Q,R){const ag=a3,S=[...new Set(Q)],T=R[ag(0x14e)](U=>U[ag(0x175)])[ag(0x13b)](U=>S[ag(0x150)](U));return[...T,...S[ag(0x13b)](U=>!T[ag(0x150)](U))];}var F=a3(0x148);function G(Q,R){const ah=a3;if(!D(Q))return void 0x0;const S=Q[ah(0x181)];if(typeof S!==ah(0x1b7)||!Number[ah(0x136)](S)||S<0x0||S>=R[ah(0x17e)][ah(0x183)])return void 0x0;const T=R[ah(0x17e)][S],U=ah(0x157)in Q,V=ah(0x1bd)in Q;if(U===V)return void 0x0;if(U){if(typeof Q[ah(0x157)]!==ah(0x195)||Q[ah(0x157)][ah(0x16c)]()[ah(0x183)]===0x0)return void 0x0;return{'questionIndex':S,'question':T[ah(0x142)],'kind':ah(0x157),'answer':Q[ah(0x157)]};}const W=Q[ah(0x1bd)];if(!Array[ah(0x13c)](W)||!W[ah(0x13d)](Z=>typeof Z===ah(0x195)))return void 0x0;const X=W[ah(0x13b)](Z=>Z[ah(0x183)]>0x0);if(X[ah(0x183)]===0x0)return F;if(T[ah(0x17f)]!==!![]&&X[ah(0x183)]===0x1){const Z=X[0x0],a0=T[ah(0x1b8)][ah(0x18f)](a1=>a1[ah(0x175)]===Z)?.[ah(0x1b1)];return{'questionIndex':S,'question':T[ah(0x142)],'kind':ah(0x199),'answer':Z,...typeof a0===ah(0x195)&&a0[ah(0x183)]>0x0?{'preview':a0}:{}};}const Y=T[ah(0x17f)]===!![]?E(X,T[ah(0x1b8)]):X;return{'questionIndex':S,'question':T[ah(0x142)],'kind':ah(0x1be),'answer':null,'selected':Y};}function H(Q,R){const ai=a3;let S;try{S=JSON[ai(0x180)](Q);}catch{return C;}if(!D(S))return C;switch(S[ai(0x133)]){case ai(0x143):return{'kind':ai(0x185),'result':{'answers':[],'cancelled':!![]}};case ai(0x152):return{'kind':ai(0x1a9),'text':y};case ai(0x1a9):{const T=S[ai(0x196)];if(typeof T!==ai(0x195)||T[ai(0x183)]===0x0||/[\r\n]/[ai(0x14a)](T)||typeof S[ai(0x130)]!==ai(0x1bb))return C;return{'kind':ai(0x1a9),'text':S[ai(0x130)]?A(T):z(T)};}case ai(0x14d):{if(!Array[ai(0x13c)](S[ai(0x17d)])||S[ai(0x17d)][ai(0x183)]===0x0)return C;const U=[],V=new Set();for(const W of S[ai(0x17d)]){const X=G(W,R),Y=D(W)?W[ai(0x181)]:void 0x0;if(!X||V[ai(0x1bc)](Y))return C;V[ai(0x1a4)](Y);if(X!==F)U[ai(0x1b9)](X);}if(U[ai(0x183)]===0x0)return{'kind':ai(0x185),'result':{'answers':[],'cancelled':!![]}};return{'kind':ai(0x185),'result':{'answers':U[ai(0x1ad)]((Z,a0)=>Z[ai(0x177)]-a0[ai(0x177)]),'cancelled':![]}};}default:return C;}}var I=a3(0x15e);function J(Q){const aj=a3;return Q[aj(0x19c)]===aj(0x122)&&process[aj(0x1ae)][u]==='1';}function a(){const aw=['yw5ZD2vYCW','CxvLC3rPB25Z','BxvSD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CIbZA2LWihrOzsbXDwvZDgLVBNmU','zMLUzeLUzgv4','B3b0Aw9U','vMvYEsbZAg9YDcbJAgLWl3rHzYbZAg93BIbUzxH0ihrVihrOzsbXDwvZDgLVBI4','Dgv4Da','Bw9Kzq','BM9YBwfSAxPLuxvLC3rPB25qyxjHBxm','tMv2zxiGDxnLihrOAxmGDg9VBcb0BYbHC2SGzM9YihbHC3n3B3jKCYWGqvbjigTLExmSihrVA2vUCYbVCIbVDgHLCIbZzwnYzxrZoIb0AguGyw5ZD2vYCYbZDgf5ihzPC2LIBguGAw4GDgHLignOyxqU','CMvNAxn0zxjuB29S','Aw5WDxq','Dg9VBcbKzxnJCMLWDgLVBIWGDxnHz2uGBM90zsaY','y2fSBa','ChjVBxb0igD1AwrLBgLUzsaY','ywrK','AgvHzgvY','B25uzxjTAw5HBeLUChv0','ChjVBxb0igD1AwrLBgLUzsaZ','vxnLCNmGy2fUihr5CguGysbJDxn0B20Gyw5ZD2vYihrOCM91z2GGDgHLigzYzwuTDgv4DcbVChrPB24GywrKzwqGDg8GzxzLCNKGCxvLC3rPB24Sig9YihnRAxaGDgHLihf1zxn0Aw9UCY4','zxjYB3i','ChjLDMLLDYbWyxjHBwv0zxiGzgvZy3jPChrPB24','C2v0qwn0AxzLvg9VBhm','AgfZvuK','C29YDa','zw52','mZa2ntK0meHvsNjWqG','nJHAquTArgG','ChjLDMLLDW','B3b0Aw9UCYbWyxjHBwv0zxiGzgvZy3jPChrPB24','yMLUza','zgvMyxvSDa','z2v0qwn0AxzLvg9VBhm','ChjVCgvYDgLLCW','BNvTyMvY','B3b0Aw9UCW','ChvZAa','rvHqtfLux0fts19vu0vsx1fvrvnusu9ox01prfvmrq','yM9VBgvHBG','AgfZ','C2vSzwn0zwq','BxvSDgK','BMfTzq','CNbJ','AgvHzgvYihbHCMfTzxrLCIbKzxnJCMLWDgLVBG','C2vZC2LVBL9ZDgfYDa','vxnLCIbZA2LWCgvKihrOzsbXDwvZDgLVBNmGD2L0Ag91DcbHBNn3zxjPBMCGDgHLBs4GuhjVy2vLzcb3AxrOihjLyxnVBMfIBguGyxnZDw1WDgLVBNmGB3iGyxnRigLUihbSywLUignOyxq7igrVig5VDcbJywXSigfZA191C2vYx3f1zxn0Aw9UigfNywLUigzVCIb0AguGC2fTzsbXDwvZDgLVBNmU','DxjS','mZaWmdC4mwrLCK1uCa','B2jQzwn0','DMfSDwu','vgHLigzYzwuTDgv4DcbVChrPB24GAxmGyxzHAwXHyMXLig9Uigv2zxj5ihf1zxn0Aw9UlcbPBMnSDwrPBMCGD2HLBIbVChrPB25ZignHCNj5igeGyhbYzxzPzxDGlG','y3jLyxrL','D2HLCMu','vgHLicjuExbLihnVBwv0AgLUzY4IihjVDYbPCYbHDMfPBgfIBguGB24GzxzLCNKGCxvLC3rPB24SigLUy2X1zgLUzYb3AgvUig9WDgLVBNmGy2fYCNKGysbGChjLDMLLD2a7igLUihbYzxzPzxCGBw9KzsbPDcbLEhbHBMrZihrVihrOzsbMDwXSihbHBMuGD2LKDgGGD2HPBguGDhLWAw5NihnVihrOzsbJDxn0B20Gyw5ZD2vYigLZig5VDcbJCMfTCgvKigLUDg8GDgHLig5HCNjVDYbVChrPB25ZignVBhvTBI4','zgvMAw5LuhjVCgvYDhK','rxjYB3i6ihrOzsbXDwvZDgLVBNmGy291BgqGBM90igjLihnOB3DUihrVihrOzsb1C2vYicG','C2HVD24','Bg9Hzc1MywLSDxjLihrLEhqSihjLC3rHCNq','z2v0uhjVDg90ExbLt2y','ywn0Aw9U','lcb3AgLJAcbKB2vZig5VDcbLEgLZDdSGyNvPBgqGAxqGD2L0AcbLEhrLBNnPB25Zl2fZAY11C2vYlxf1zxn0Aw9Ul3nPzgvJyxiUBwPZ','AxrLBxm','AxnjBNrLz2vY','DgHLigfKyxb0zxiGy2fUy2vSBgvKihrOzsbYzxf1zxn0','A2LUza','vMvYEsbZAg9YDcbSywjLBcbZAg93BIbUzxH0ihrVihrOzsbXDwvZDgLVBI4','yw5KihjLC3rHCNrPBMCGugKU','zMLSDgvY','AxnbCNjHEq','zxzLCNK','zgvZy3jPChrPB24','ig5VigXVBMDLCIbJB250ywLUCYb0AguGCgHYyxnLifjrltiYihjLCgXHy2vZoIaI','ks4GvgHLEsbTyxKGAgf2zsbHBNn3zxjLzcdIGjqGyxnRigfNywLUigLUihbSywLUignOyxqU','zgv0ywLSCW','CxvLC3rPB24','zgvJBgLUzq','ChjVBxb0r3vPzgvSAw5LCW','qsbMCMvLlxrLEhqGyw5ZD2vYig9WDgLVBIbPCYbHzgrLzcbHDxrVBwf0AwnHBgX5iokaLcbKBYbot1qGyxv0Ag9YigL0lG','Aw5KzxHpzG','y2fUy2vSBgvK','Dw5HBNn3zxjLza','t3b0Aw9UywWGChjLDMLLDYbJB250zw50ihjLBMrLCMvKihDOzw4GDgHPCYbVChrPB24GAxmGzM9JDxnLzc4','DgvZDa','CgfYyw1LDgvYCW','vgHLicDuExbLihnVBwv0AgLUzY4NihjVDYbPCYbHChbLBMrLzcbHDxrVBwf0AwnHBgX5iokaLcbKBYbot1qGyxv0Ag9YigL0lG','ywnJzxb0','BwfW','yxnRx3vZzxjFCxvLC3rPB246ihrOzsbWywnRywDLj3mG','Aw5JBhvKzxm','uhjVDMLKzsbHBIbVChrPB25Zw10UChjLDMLLDYb0zxH0ihDOzw4Gyw4GB3b0Aw9UigjLBMvMAxrZigzYB20GCMLJAgvYignVBNrLEhqGkg1Vy2T1ChmSignVzguGC25PChbLDhmSigrPywDYyw1ZlcbJB25MAwDZksdIGjqGC2LUz2XLlxnLBgvJDcbVBMX5lIbuAguGzNjLzs10zxH0ig9WDgLVBIbPCYbHzgrLzcb0BYbLDMvYEsbXDwvZDgLVBIWGAw5JBhvKAw5NihDOzw4GB3b0Aw9UCYbJyxjYEsbHihbYzxzPzxCU','C3rVChbLza','Dg9VBcbKzxnJCMLWDgLVBIWGChjLDMLLDYbWyxjHz3jHCgG','DgHLigfKyxb0zxiGy291BgqGBM90ihnLBMqGDgHLihjLCxvLC3q','CMvKDwnL','rxjYB3i6ihrOzsbXDwvZDgLVBIbMB3jTihDHCYbJBg9ZzwqGD2L0Ag91DcbHBIbHBNn3zxiGyw5KihrOzsb0DxjUihDHCYbZDg9WCgvKlIbuAguGDxnLCIbKAwqGBM90igrLy2XPBMuUifDHAxqGzM9YihrOzsb1C2vYj3mGBMv4DcbTzxnZywDLoYbKBYbUB3qGyxnRihrOzxnLihf1zxn0Aw9UCYbHz2fPBIb1BMXLC3mGAxqGyxnRCYbMB3iGDgHLBs4','y3vZDg9T','ig5HBwvZia','ig5VigXVBMDLCIbJB250ywLUCYb0AguGCgHYyxnLifjrltiYihjLCgXHy2vZigv4ywn0BhKGB25JztOGiG','yw5KihjLC3rHCNrPBMCGDgHLigfNzw50lG','vg9VBca','yxnRx3vZzxjFCxvLC3rPB246ihrOzsbWywnRywDLj3mGCgfYyw1LDgvYihnJAgvTysbOyxmGBM8G','Bg9Hzc1MywLSDxjLihrLEhqSihj1BM5PBMC','yxnRx3vZzxjFCxvLC3rPB24','t3b0Aw9UywWGChjLDMLLDYbJB250zw50ihnOB3DUihDPDgGGDgHPCYbVChrPB24U','zNjVBq','yMvMB3jLx2fNzw50x3n0yxj0','z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9Y','C2vXDwvUDgLHBa','mJaZmtyZofbjwfPpva','zxHWBhL0lMfZA191C2vYx3f1zxn0Aw9UlNyX','uhjLDMLLDYbJB250zw50igLZihjLBMrLCMvKigfZig1HCMTKB3DUigLUigeGBw9UB3nWywnLigjVEc4GtxvSDgKTBgLUzsb0zxH0ihDPDgGGBMv3BgLUzxmGAxmGC3vWCg9YDgvKlIbxAgvUigfUEsbVChrPB24GAgfZigeGChjLDMLLDYWGDgHLifvjihn3AxrJAgvZihrVigeGC2LKzs1IEs1ZAwrLigXHEw91Dcb3AxrOigeGDMvYDgLJywWGB3b0Aw9UigXPC3qGB24GDgHLigXLzNqGyw5KihbYzxzPzxCGB24GDgHLihjPz2H0lG','uhjLDMLLD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5CW','BwfSzM9YBwvKihf1zxn0Aw9UBMfPCMuGCMvZCg9UC2u','C2vZC2LVBL9SB2fKx2zHAwXLza','ig5VDcbMB3vUza'];a=function(){return aw;};return a();}function K(Q){const ak=a3;return Q[ak(0x19c)]===ak(0x171)||J(Q);}function L(){const al=a3,Q=process[al(0x1ae)][d],R=Q?Q:fileURLToPath(new URL(al(0x18b)+c,import.meta[al(0x126)]));if(!existsSync(R))throw new Error(Q?d+al(0x158)+R+al(0x134):al(0x16d)+R+al(0x169)+d+al(0x191));return R;}function M(Q){const am=a3,R=Q[am(0x141)];if(R?.[am(0x147)]===!![]&&R[am(0x1a9)]===r)return{...Q,'content':Q[am(0x193)][am(0x14e)](S=>typeof S[am(0x19b)]===am(0x195)?{...S,'text':t(S[am(0x19b)])}:S)};if(R?.[am(0x147)]!==!![]||R[am(0x1a9)]!==void 0x0)return Q;return{...Q,'content':[{'type':am(0x19b),'text':x}]};}function N(Q,R,S,T){const U=Q['ui'],V=async()=>{const an=b;let X;try{X=await U[an(0x1a0)](v,B(R,S),{'signal':T});}catch{throw new Error(z(an(0x154)));}if(X===void 0x0)throw new Error(T?.[an(0x182)]?y:z(an(0x137)));const Y=H(X,S);if(Y[an(0x138)]===an(0x185))return Y[an(0x185)];throw new Error(Y[an(0x19b)]);},W=new Proxy(Q['ui'],{'get'(X,Y){const ao=b;if(Y===ao(0x157))return V;if(Y===ao(0x1a6))return void 0x0;return Reflect[ao(0x18a)](X,Y,X);}});return new Proxy(Q,{'get'(X,Y){const ap=b;if(Y===ap(0x19c))return ap(0x171);if(Y===ap(0x1ac))return!![];if(Y==='ui')return W;return Reflect[ap(0x18a)](X,Y,X);}});}function O(Q,R){const aq=a3,S=Q[aq(0x188)],T=q(Q);return{...Q,...T,'executionMode':aq(0x163),async 'execute'(U,V,W,X,Y){const ar=aq;if(Y[ar(0x19c)]===ar(0x122)&&!J(Y))throw new Error(ar(0x15b)+I+ar(0x17c));if(!J(Y))return M(await S[ar(0x1a2)](Q,U,V,W,X,Y));const Z=R[ar(0x19d)](V),a0=await S[ar(0x1a2)](Q,U,V,W,X,N(Y,U,Z,W));return M(a0);}};}async function P(Q){const as=a3,R=await import(pathToFileURL(L())[as(0x168)]);if(typeof R[as(0x1b4)]!==as(0x172)||typeof R[as(0x19d)]!==as(0x172))throw new Error(L()+as(0x186));const S=new Proxy(Q,{'get'(T,U){const at=as;if(U===at(0x19f))return W=>Q[at(0x19f)](W?.[at(0x121)]===I?O(W,R):W);if(U==='on')return(W,X)=>{const au=at,Y=W===au(0x161)?(Z,a0)=>K(a0)?X(Z,a0):void 0x0:X;return Q['on'](W,Y);};const V=Reflect[at(0x18a)](T,U,T);return typeof V===at(0x172)?V[at(0x1b3)](T):V;}});R[as(0x1b4)](S),Q['on'](as(0x124),(T,U)=>{const av=as;if(K(U))return;const V=Q[av(0x1b5)]();if(V[av(0x150)](I))Q[av(0x1ab)](V[av(0x13b)](W=>W!==I));});}export{u as ELICITATION_ENV,d as MODULE_ENV,v as QUESTIONNAIRE_TITLE,x as SKIP_TEXT,y as STOPPED_TEXT,I as TOOL_NAME,L as bundlePath,P as default,z as notShownText,K as toolOffered,A as unreadableText};
1
+ const a3=b;(function(Q,R){const a2=b,S=Q();while(!![]){try{const T=-parseInt(a2(0xa5))/0x1+-parseInt(a2(0xcc))/0x2*(-parseInt(a2(0x139))/0x3)+parseInt(a2(0x9d))/0x4*(-parseInt(a2(0xf8))/0x5)+parseInt(a2(0x115))/0x6+-parseInt(a2(0x130))/0x7+parseInt(a2(0xe8))/0x8*(-parseInt(a2(0xb9))/0x9)+-parseInt(a2(0xbc))/0xa*(-parseInt(a2(0xb8))/0xb);if(T===R)break;else S['push'](S['shift']());}catch(U){S['push'](S['shift']());}}}(a,0x66d81));import{existsSync}from'node:fs';import{fileURLToPath,pathToFileURL}from'node:url';var c=a3(0xd6),d=a3(0xb4),e={'where':a3(0x108),'from':a3(0x9b),'to':a3(0xe5)},f={'where':a3(0xa7),'from':a3(0xf7),'to':a3(0xe7)},g={'where':a3(0xde),'from':a3(0x11d),'to':a3(0xf6)},h=[{'where':a3(0xa6),'from':a3(0xa2),'to':a3(0xb5)},{'where':a3(0xfb),'from':a3(0x121),'to':a3(0x10e)}],i=[{'where':a3(0xe1),'from':a3(0xfc),'to':a3(0x137)},{'where':a3(0xc0),'from':a3(0xf5),'to':a3(0xa1)},{'where':a3(0xbf),'from':a3(0xf2),'to':a3(0xcd)}],j=a3(0x134);function k(Q,{where:R,from:S,to:T}){const a4=a3,U=Q[a4(0x129)](S);if(U===-0x1||Q[a4(0x129)](S,U+S[a4(0xf0)])!==-0x1)throw new Error(a4(0x12b)+R+a4(0x12f)+S+'\x22');return Q[a4(0xed)](0x0,U)+T+Q[a4(0xed)](U+S[a4(0xf0)]);}function l(Q){const a5=a3;if(Array[a5(0xf4)](Q))return Q[a5(0xf3)](S=>l(S));if(Q===null||typeof Q!==a5(0xa3))return Q;const R=Object[a5(0xe6)](Object[a5(0xd2)](Q));for(const S of Reflect[a5(0xea)](Q)){const T=Object[a5(0xc8)](Q,S);if(a5(0x11b)in T)T[a5(0x11b)]=l(T[a5(0x11b)]);Object[a5(0x9c)](R,S,T);}return R;}function m(Q,R,S){const a6=a3;let T=Q;for(const U of R){T=U===a6(0xfa)?T?.[a6(0xfa)]:T?.[a6(0x124)]?.[U];}if(!T||typeof T[a6(0x120)]!==a6(0xe0))throw new Error(a6(0x132)+S+'\x20('+R[a6(0xf1)]('.')+')');return T;}function n(Q){const a7=a3,R=l(Q),S=[a7(0x131),a7(0xfa)],T=[[[...S,a7(0xca)],e],[[...S,a7(0x123)],f],[[...S,a7(0xca),a7(0xfa),a7(0xba)],g]];for(const [U,V]of T){const W=m(R,U,V[a7(0x136)]);W[a7(0x120)]=k(W[a7(0x120)],V);}return R;}function o(Q){const a8=a3;return i[a8(0xa4)](k,Q);}function p(Q){const a9=a3,R=[...Q];for(const S of h){const T=R[a9(0x110)](U=>U[a9(0xcf)](S[a9(0xee)]));if(T===-0x1)throw new Error(a9(0x12b)+S[a9(0x136)]+a9(0xb1)+S[a9(0xee)]+'\x22');R[T]=k(R[T],S);}return[...R,j];}function q(Q){const aa=a3;return{'description':o(Q[aa(0x120)]),'promptGuidelines':p(Q[aa(0xe2)]??[]),'parameters':n(Q[aa(0xdf)])};}var r=a3(0x133),s=[{'where':a3(0x100),'from':a3(0x12e),'to':a3(0x126)},{'where':a3(0xbe),'from':a3(0xc5),'to':a3(0x11c)}];function t(Q){const ab=a3;return s[ab(0xa4)]((R,{from:S,to:T})=>R[ab(0xff)](S)[ab(0xf1)](T),Q);}var u=a3(0xe4),v=a3(0xb2),w=0x1,x=a3(0x9f),y=a3(0x9e);function b(c,d){const e=a();return b=function(f,g){f=f-0x9a;let h=e[f];if(b['jQBXTx']===undefined){var i=function(m){const n='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let o='',p='';for(let q=0x0,r,s,t=0x0;s=m['charAt'](t++);~s&&(r=q%0x4?r*0x40+s:s,q++%0x4)?o+=String['fromCharCode'](0xff&r>>(-0x2*q&0x6)):0x0){s=n['indexOf'](s);}for(let u=0x0,v=o['length'];u<v;u++){p+='%'+('00'+o['charCodeAt'](u)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(p);};b['HrHDVI']=i,c=arguments,b['jQBXTx']=!![];}const j=e[0x0],k=f+j,l=c[k];return!l?(h=b['HrHDVI'](h),c[k]=h):h=l,h;},b(c,d);}function z(Q){const ac=a3;return ac(0xce)+Q+ac(0x10a);}function A(Q){const ad=a3;return ad(0xfd)+Q+ad(0xa9);}function B(Q,R){const ae=a3;return JSON[ae(0xd4)]({'v':w,'toolCallId':Q,'questions':R[ae(0x131)][ae(0xf3)](S=>({'question':S[ae(0x109)],'header':S[ae(0x123)],'multiSelect':S[ae(0xec)]===!![],'options':S[ae(0xca)][ae(0xf3)](T=>({'label':T[ae(0xf9)],'description':T[ae(0x120)],...typeof T[ae(0xba)]===ae(0xe0)&&T[ae(0xba)][ae(0xf0)]>0x0?{'preview':T[ae(0xba)]}:{}}))}))});}var C={'kind':a3(0xac),'text':A(a3(0xa8))};function D(Q){const af=a3;return typeof Q===af(0xa3)&&Q!==null&&!Array[af(0xf4)](Q);}function E(Q,R){const ag=a3,S=[...new Set(Q)],T=R[ag(0xf3)](U=>U[ag(0xf9)])[ag(0xb6)](U=>S[ag(0xcf)](U));return[...T,...S[ag(0xb6)](U=>!T[ag(0xcf)](U))];}var F=a3(0x11f);function G(Q,R){const ah=a3;if(!D(Q))return void 0x0;const S=Q[ah(0xe9)];if(typeof S!==ah(0x103)||!Number[ah(0x122)](S)||S<0x0||S>=R[ah(0x131)][ah(0xf0)])return void 0x0;const T=R[ah(0x131)][S],U=ah(0xad)in Q,V=ah(0xeb)in Q;if(U===V)return void 0x0;if(U){if(typeof Q[ah(0xad)]!==ah(0xe0)||Q[ah(0xad)][ah(0x9a)]()[ah(0xf0)]===0x0)return void 0x0;return{'questionIndex':S,'question':T[ah(0x109)],'kind':ah(0xad),'answer':Q[ah(0xad)]};}const W=Q[ah(0xeb)];if(!Array[ah(0xf4)](W)||!W[ah(0xc2)](Z=>typeof Z===ah(0xe0)))return void 0x0;const X=W[ah(0xb6)](Z=>Z[ah(0xf0)]>0x0);if(X[ah(0xf0)]===0x0)return F;if(T[ah(0xec)]!==!![]&&X[ah(0xf0)]===0x1){const Z=X[0x0],a0=T[ah(0xca)][ah(0x11a)](a1=>a1[ah(0xf9)]===Z)?.[ah(0xba)];return{'questionIndex':S,'question':T[ah(0x109)],'kind':ah(0x106),'answer':Z,...typeof a0===ah(0xe0)&&a0[ah(0xf0)]>0x0?{'preview':a0}:{}};}const Y=T[ah(0xec)]===!![]?E(X,T[ah(0xca)]):X;return{'questionIndex':S,'question':T[ah(0x109)],'kind':ah(0x10d),'answer':null,'selected':Y};}function H(Q,R){const ai=a3;let S;try{S=JSON[ai(0x138)](Q);}catch{return C;}if(!D(S))return C;switch(S[ai(0xb7)]){case ai(0xef):return{'kind':ai(0xd5),'result':{'answers':[],'cancelled':!![]}};case ai(0x13a):return{'kind':ai(0xac),'text':y};case ai(0xac):{const T=S[ai(0x113)];if(typeof T!==ai(0xe0)||T[ai(0xf0)]===0x0||/[\r\n]/[ai(0x111)](T)||typeof S[ai(0x101)]!==ai(0x118))return C;return{'kind':ai(0xac),'text':S[ai(0x101)]?A(T):z(T)};}case ai(0x12c):{if(!Array[ai(0xf4)](S[ai(0x12a)])||S[ai(0x12a)][ai(0xf0)]===0x0)return C;const U=[],V=new Set();for(const W of S[ai(0x12a)]){const X=G(W,R),Y=D(W)?W[ai(0xe9)]:void 0x0;if(!X||V[ai(0x112)](Y))return C;V[ai(0xd9)](Y);if(X!==F)U[ai(0xb0)](X);}if(U[ai(0xf0)]===0x0)return{'kind':ai(0xd5),'result':{'answers':[],'cancelled':!![]}};return{'kind':ai(0xd5),'result':{'answers':U[ai(0x116)]((Z,a0)=>Z[ai(0xa0)]-a0[ai(0xa0)]),'cancelled':![]}};}default:return C;}}var I=a3(0x117);function J(Q){const aj=a3;return Q[aj(0xda)]===aj(0xd3)&&process[aj(0xae)][u]==='1';}function K(Q){const ak=a3;return Q[ak(0xda)]===ak(0xd8)||J(Q);}function L(){const al=a3,Q=process[al(0xae)][d],R=Q?Q:fileURLToPath(new URL(al(0xc1)+c,import.meta[al(0xaa)]));if(!existsSync(R))throw new Error(Q?d+al(0x105)+R+al(0x11e):al(0x10b)+R+al(0xd0)+d+al(0xbd));return R;}function M(Q){const am=a3,R=Q[am(0xe3)];if(R?.[am(0xdd)]===!![]&&R[am(0xac)]===r)return{...Q,'content':Q[am(0xfe)][am(0xf3)](S=>typeof S[am(0xbb)]===am(0xe0)?{...S,'text':t(S[am(0xbb)])}:S)};if(R?.[am(0xdd)]!==!![]||R[am(0xac)]!==void 0x0)return Q;return{...Q,'content':[{'type':am(0xbb),'text':x}]};}function N(Q,R,S,T){const U=Q['ui'],V=async()=>{const an=b;let X;try{X=await U[an(0x104)](v,B(R,S),{'signal':T});}catch{throw new Error(z(an(0xdb)));}if(X===void 0x0)throw new Error(T?.[an(0x107)]?y:z(an(0xdc)));const Y=H(X,S);if(Y[an(0x10c)]===an(0xd5))return Y[an(0xd5)];throw new Error(Y[an(0xbb)]);},W=new Proxy(Q['ui'],{'get'(X,Y){const ao=b;if(Y===ao(0xad))return V;if(Y===ao(0xd7))return void 0x0;return Reflect[ao(0x125)](X,Y,X);}});return new Proxy(Q,{'get'(X,Y){const ap=b;if(Y===ap(0xda))return ap(0xd8);if(Y===ap(0x102))return!![];if(Y==='ui')return W;return Reflect[ap(0x125)](X,Y,X);}});}function O(Q,R){const aq=a3,S=Q[aq(0xcb)],T=q(Q);return{...Q,...T,'executionMode':aq(0xc3),async 'execute'(U,V,W,X,Y){const ar=aq;if(Y[ar(0xda)]===ar(0xd3)&&!J(Y))throw new Error(ar(0xc9)+I+ar(0x114));if(!J(Y))return M(await S[ar(0x10f)](Q,U,V,W,X,Y));const Z=R[ar(0x119)](V),a0=await S[ar(0x10f)](Q,U,V,W,X,N(Y,U,Z,W));return M(a0);}};}async function P(Q){const as=a3,R=await import(pathToFileURL(L())[as(0xc6)]);if(typeof R[as(0xaf)]!==as(0x128)||typeof R[as(0x119)]!==as(0x128))throw new Error(L()+as(0x127));const S=new Proxy(Q,{'get'(T,U){const at=as;if(U===at(0xc4))return W=>Q[at(0xc4)](W?.[at(0x135)]===I?O(W,R):W);if(U==='on')return(W,X)=>{const au=at,Y=W===au(0x12d)?(Z,a0)=>K(a0)?X(Z,a0):void 0x0:X;return Q['on'](W,Y);};const V=Reflect[at(0x125)](T,U,T);return typeof V===at(0x128)?V[at(0xb3)](T):V;}});R[as(0xaf)](S),Q['on'](as(0xc7),(T,U)=>{const av=as;if(K(U))return;const V=Q[av(0xab)]();if(V[av(0xcf)](I))Q[av(0xd1)](V[av(0xb6)](W=>W!==I));});}function a(){const aw=['CNbPDI1HC2STDxnLCI1XDwvZDgLVBI9PBMrLEc5QCW','B25uzxjTAw5HBeLUChv0','DhvP','ywrK','Bw9Kzq','DgHLigfKyxb0zxiGy291BgqGBM90ihnLBMqGDgHLihjLCxvLC3q','DgHLigfKyxb0zxiGy2fUy2vSBgvKihrOzsbYzxf1zxn0','y2fUy2vSBgvK','ChjLDMLLDYbWyxjHBwv0zxiGzgvZy3jPChrPB24','CgfYyw1LDgvYCW','C3rYAw5N','Dg9VBcbKzxnJCMLWDgLVBIWGDxnHz2uGBM90zsaX','ChjVBxb0r3vPzgvSAw5LCW','zgv0ywLSCW','rvHqtfLux0fduf9fteLdsvrbveLptL9gt1jn','qsbMCMvLlxrLEhqGyw5ZD2vYig9WDgLVBIbPCYbHzgrLzcbHDxrVBwf0AwnHBgX5iokaLcbKBYbot1qGyxv0Ag9YigL0lG','y3jLyxrL','vMvYEsbZAg9YDcbSywjLBcbZAg93BIbUzxH0ihrVihrOzsbXDwvZDgLVBI4','mZjurxfxALm','Aw5KzxG','B3DUs2v5CW','C2vSzwn0zwq','BxvSDgLtzwXLy3q','C2XPy2u','zNjVBq','zgvJBgLUzq','BgvUz3rO','AM9PBG','uhjLDMLLDYbJB250zw50igLZihjLBMrLCMvKigfZig1HCMTKB3DUigLUigeGBw9UB3nWywnLigjVEc4GtxvSDgKTBgLUzsb0zxH0ihDPDgGGBMv3BgLUzxmGAxmGC3vWCg9YDgvKlIbxAgvUigfUEsbVChrPB24GAgfZigeGChjLDMLLDYWGDgHLifvjihn3AxrJAgvZihrVigeGC2LKzs1IEs1ZAwrLigXHEw91Dcb3AxrOigeGDMvYDgLJywWGB3b0Aw9UigXPC3qGB24GDgHLigXLzNqGyw5KihbYzxzPzxCGB24GDgHLihjPz2H0lG','BwfW','AxnbCNjHEq','vgHLicjuExbLihnVBwv0AgLUzY4IihjVDYbPCYbHDMfPBgfIBguGB24GzxzLCNKGCxvLC3rPB24SigLUy2X1zgLUzYb3AgvUig9WDgLVBNmGy2fYCNKGysbGChjLDMLLD2a7igLUihbYzxzPzxCGBw9KzsbPDcbLEhbHBMrZihrVihrOzsbMDwXSihbHBMuGD2LKDgGGD2HPBguGDhLWAw5NihnVihrOzsbJDxn0B20Gyw5ZD2vYigLZig5VDcbJCMfTCgvKigLUDg8GDgHLig5HCNjVDYbVChrPB25ZignVBhvTBI4','t3b0Aw9UywWGChjLDMLLDYbJB250zw50ihnOB3DUihDPDgGGDgHPCYbVChrPB24U','vMvYEsbZAg9YDcbJAgLWl3rHzYbZAg93BIbUzxH0ihrVihrOzsbXDwvZDgLVBI4','mZiWnJq2mgXVyLjiqq','BgfIzwW','AxrLBxm','ChjVBxb0igD1AwrLBgLUzsaZ','vxnLCNmGy2fUihr5CguGysbJDxn0B20Gyw5ZD2vYihzPysb0AguGyxv0B21HDgLJywXSEsbHChbLBMrLzcaIvhLWzsbZB21LDgHPBMCUiIbYB3CGB24GzxzLCNKGCxvLC3rPB24GB3iGChjLC3mGrxnJihrVigfIyw5KB24GDgHLihf1zxn0Aw9UBMfPCMuU','rxjYB3i6ihrOzsb1C2vYj3mGyw5ZD2vYignVDwXKig5VDcbIzsbYzwfKicG','y29UDgvUDa','C3bSAxq','Bg9Hzc1MywLSDxjLihrLEhqSihj1BM5PBMC','C2HVD24','AgfZvuK','BNvTyMvY','Aw5WDxq','ig5HBwvZia','B3b0Aw9U','ywjVCNrLza','B3b0Aw9UCYbWyxjHBwv0zxiGzgvZy3jPChrPB24','CxvLC3rPB24','ks4GvgHLihvZzxiGBMv2zxiGC2f3ihrOzw0G4OcuigrVie5pvcb0CMvHDcb0AgLZigfZigeGzgvJBgLUzs4GqxnRihrOzsbXDwvZDgLVBNmGAw4GCgXHAw4Gy2HHDcbPBNn0zwfKlcb3AxrOB3v0ihvZAw5NihrOAxmGDg9VBc4','DgHLigfZA191C2vYx3f1zxn0Aw9Uigj1BMrSzsbPCYbTAxnZAw5Nigf0ia','A2LUza','BxvSDgK','uhjVDMLKzsbHBIbVChrPB25Zw10UChjLDMLLDYb0zxH0ihDOzw4Gyw4GB3b0Aw9UigjLBMvMAxrZigzYB20GCMLJA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NrVihrOzsbUyxjYB3CGB3b0Aw9UCYbJB2X1Bw4U','AxnjBNrLz2vY','AgvHzgvY','ChjVCgvYDgLLCW','z2v0','D2HPBguGDgHLigfNzw50ihDHCYbYDw5UAw5N','igLZig5VDcb0AguGyxnRx3vZzxjFCxvLC3rPB24GyNvUzgXLoIbPDcbSywnRCYb0AguGCgfJA2fNzsDZigrLzMf1BhqGzxHWB3j0ig9Yig5VCM1HBgL6zvf1zxn0Aw9UugfYyw1Z','zNvUy3rPB24','Aw5KzxHpzG','yw5ZD2vYCW','yxnRx3vZzxjFCxvLC3rPB246ihrOzsbWywnRywDLj3mG','ywnJzxb0','yMvMB3jLx2fNzw50x3n0yxj0','D2HPBguGugKGD2fZihj1BM5PBMC','ig5VigXVBMDLCIbJB250ywLUCYb0AguGCgHYyxnLifjrltiYihjLCgXHy2vZigv4ywn0BhKGB25JztOGiG','mJC5mJCYn1PXswT2sW','CxvLC3rPB25Z','yxnRx3vZzxjFCxvLC3rPB246ihrOzsbWywnRywDLj3mGCgfYyw1LDgvYihnJAgvTysbOyxmGBM8G','C2vZC2LVBL9SB2fKx2zHAwXLza','tMv2zxiGDxnLihrOAxmGDg9VBcb0BYbHC2SGzM9YihbHC3n3B3jKCYWGqvbjigTLExmSihrVA2vUCYbVCIbVDgHLCIbZzwnYzxrZoIb0AguGyw5ZD2vYCYbZDgf5ihzPC2LIBguGAw4GDgHLignOyxqU','BMfTzq','D2HLCMu','vxnLCNmGy2fUihr5CguGysbJDxn0B20Gyw5ZD2vYihrOCM91z2GGDgHLigzYzwuTDgv4DcbVChrPB24GywrKzwqGDg8GzxzLCNKGCxvLC3rPB24Sig9YihnRAxaGDgHLihf1zxn0Aw9UCY4','CgfYC2u','m1rkqwTxCq','C3rVChbLza','DhjPBq','vgHLicDuExbLihnVBwv0AgLUzY4NihjVDYbPCYbHChbLBMrLzcbHDxrVBwf0AwnHBgX5iokaLcbKBYbot1qGyxv0Ag9YigL0lG','zgvMAw5LuhjVCgvYDhK','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DxjS','z2v0qwn0AxzLvg9VBhm','zxjYB3i','y3vZDg9T','zw52','zgvMyxvSDa','ChvZAa','ig5VigXVBMDLCIbJB250ywLUCYb0AguGCgHYyxnLifjrltiYihjLCgXHy2vZoIaI','zxHWBhL0lMfZA191C2vYx3f1zxn0Aw9UlNyX','yMLUza','rvHqtfLux0fts19vu0vsx1fvrvnusu9ox01prfvmrq','vgHLihvZzxiGy2fUigfKzgL0Aw9UywXSEsb0ExbLigeGy3vZDg9TigfUC3DLCIb0AhjVDwDOihrOzsbMCMvLlxrLEhqGB3b0Aw9UigfKzgvKihrVigv2zxj5ihf1zxn0Aw9UlcbVCIbZA2LWihrOzsbXDwvZDgLVBNmU','zMLSDgvY','ywn0Aw9U','mJC1nta0owfmqKrZCG','ndu4odi5Bhj4q01u','ChjLDMLLDW','Dgv4Da','ndbSvLvbAuW','ihrVihrOzsbIDw5KBguGyNvPBhqGyNKGzxH0zw5ZAw9UCY9HC2STDxnLCI1XDwvZDgLVBI9ZAwrLy2fYlM1QCW','Bg9Hzc1MywLSDxjLihrLEhqSihjLC3rHCNq','Dg9VBcbKzxnJCMLWDgLVBIWGChjLDMLLDYbWyxjHz3jHCgG','Dg9VBcbKzxnJCMLWDgLVBIWGDxnHz2uGBM90zsaY','lI4V','zxzLCNK','C2vXDwvUDgLHBa','CMvNAxn0zxjuB29S','yw5KihjLC3rHCNrPBMCGugKU','AhjLzG','C2vZC2LVBL9ZDgfYDa','z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9Y','vg9VBca','B3b0Aw9UCW','zxHLy3v0zq','mtuWmdGYnNLwvMDZtW','uhjLDMLLDYbJB250zw50igLZihnOB3DUihrVihrOzsb1C2vYihDPDgGGDgHLig9WDgLVBJSGBxvSDgKTBgLUzsb0zxH0ihDPDgGGBMv3BgLUzxmGAxmGC3vWCg9YDgvKlG','rxjYB3i6ihrOzsbXDwvZDgLVBNmGy291BgqGBM90igjLihnOB3DUihrVihrOzsb1C2vYicG','Aw5JBhvKzxm','oYbHihnVDxjJzsbYDw4GBxvZDcbZzxqG','C2v0qwn0AxzLvg9VBhm','z2v0uhjVDg90ExbLt2y','CNbJ','C3rYAw5NAwz5','CMvZDwX0'];a=function(){return aw;};return a();}export{u as ELICITATION_ENV,d as MODULE_ENV,v as QUESTIONNAIRE_TITLE,x as SKIP_TEXT,y as STOPPED_TEXT,I as TOOL_NAME,L as bundlePath,P as default,z as notShownText,K as toolOffered,A as unreadableText};