@powerhousedao/shared 6.2.3-dev.0 → 6.2.3-dev.2

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.
@@ -1,359 +1,6 @@
1
1
  import { BOILERPLATE_ALLOWED_BUILDS, MINIMUM_NODE_VERSION } from "./constants.mjs";
2
- //#region \0rolldown/runtime.js
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
12
- key = keys[i];
13
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: ((k) => from[k]).bind(null, key),
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
21
- value: mod,
22
- enumerable: true
23
- }) : target, mod));
24
- //#endregion
25
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js
26
- var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
27
- module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
28
- }));
29
- //#endregion
30
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js
31
- var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32
- const SEMVER_SPEC_VERSION = "2.0.0";
33
- const MAX_LENGTH = 256;
34
- const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
35
- module.exports = {
36
- MAX_LENGTH,
37
- MAX_SAFE_COMPONENT_LENGTH: 16,
38
- MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
39
- MAX_SAFE_INTEGER,
40
- RELEASE_TYPES: [
41
- "major",
42
- "premajor",
43
- "minor",
44
- "preminor",
45
- "patch",
46
- "prepatch",
47
- "prerelease"
48
- ],
49
- SEMVER_SPEC_VERSION,
50
- FLAG_INCLUDE_PRERELEASE: 1,
51
- FLAG_LOOSE: 2
52
- };
53
- }));
54
- //#endregion
55
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js
56
- var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
57
- const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
58
- const debug = require_debug();
59
- exports = module.exports = {};
60
- const re = exports.re = [];
61
- const safeRe = exports.safeRe = [];
62
- const src = exports.src = [];
63
- const safeSrc = exports.safeSrc = [];
64
- const t = exports.t = {};
65
- let R = 0;
66
- const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
67
- const safeRegexReplacements = [
68
- ["\\s", 1],
69
- ["\\d", MAX_LENGTH],
70
- [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
71
- ];
72
- const makeSafeRegex = (value) => {
73
- for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
74
- return value;
75
- };
76
- const createToken = (name, value, isGlobal) => {
77
- const safe = makeSafeRegex(value);
78
- const index = R++;
79
- debug(name, index, value);
80
- t[name] = index;
81
- src[index] = value;
82
- safeSrc[index] = safe;
83
- re[index] = new RegExp(value, isGlobal ? "g" : void 0);
84
- safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
85
- };
86
- createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
87
- createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
88
- createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
89
- createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
90
- createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
91
- createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
92
- createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
93
- createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
94
- createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
95
- createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
96
- createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
97
- createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
98
- createToken("FULL", `^${src[t.FULLPLAIN]}$`);
99
- createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
100
- createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
101
- createToken("GTLT", "((?:<|>)?=?)");
102
- createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
103
- createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
104
- createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
105
- createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
106
- createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
107
- createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
108
- createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
109
- createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
110
- createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
111
- createToken("COERCERTL", src[t.COERCE], true);
112
- createToken("COERCERTLFULL", src[t.COERCEFULL], true);
113
- createToken("LONETILDE", "(?:~>?)");
114
- createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
115
- exports.tildeTrimReplace = "$1~";
116
- createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
117
- createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
118
- createToken("LONECARET", "(?:\\^)");
119
- createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
120
- exports.caretTrimReplace = "$1^";
121
- createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
122
- createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
123
- createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
124
- createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
125
- createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
126
- exports.comparatorTrimReplace = "$1$2$3";
127
- createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
128
- createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
129
- createToken("STAR", "(<|>)?=?\\s*\\*");
130
- createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
131
- createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
132
- }));
133
- //#endregion
134
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js
135
- var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136
- const looseOption = Object.freeze({ loose: true });
137
- const emptyOpts = Object.freeze({});
138
- const parseOptions = (options) => {
139
- if (!options) return emptyOpts;
140
- if (typeof options !== "object") return looseOption;
141
- return options;
142
- };
143
- module.exports = parseOptions;
144
- }));
145
- //#endregion
146
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js
147
- var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
148
- const numeric = /^[0-9]+$/;
149
- const compareIdentifiers = (a, b) => {
150
- if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
151
- const anum = numeric.test(a);
152
- const bnum = numeric.test(b);
153
- if (anum && bnum) {
154
- a = +a;
155
- b = +b;
156
- }
157
- return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
158
- };
159
- const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
160
- module.exports = {
161
- compareIdentifiers,
162
- rcompareIdentifiers
163
- };
164
- }));
165
- //#endregion
166
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js
167
- var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
168
- const debug = require_debug();
169
- const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
170
- const { safeRe: re, t } = require_re();
171
- const parseOptions = require_parse_options();
172
- const { compareIdentifiers } = require_identifiers();
173
- module.exports = class SemVer {
174
- constructor(version, options) {
175
- options = parseOptions(options);
176
- if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
177
- else version = version.version;
178
- else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
179
- if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
180
- debug("SemVer", version, options);
181
- this.options = options;
182
- this.loose = !!options.loose;
183
- this.includePrerelease = !!options.includePrerelease;
184
- const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
185
- if (!m) throw new TypeError(`Invalid Version: ${version}`);
186
- this.raw = version;
187
- this.major = +m[1];
188
- this.minor = +m[2];
189
- this.patch = +m[3];
190
- if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
191
- if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
192
- if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
193
- if (!m[4]) this.prerelease = [];
194
- else this.prerelease = m[4].split(".").map((id) => {
195
- if (/^[0-9]+$/.test(id)) {
196
- const num = +id;
197
- if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
198
- }
199
- return id;
200
- });
201
- this.build = m[5] ? m[5].split(".") : [];
202
- this.format();
203
- }
204
- format() {
205
- this.version = `${this.major}.${this.minor}.${this.patch}`;
206
- if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
207
- return this.version;
208
- }
209
- toString() {
210
- return this.version;
211
- }
212
- compare(other) {
213
- debug("SemVer.compare", this.version, this.options, other);
214
- if (!(other instanceof SemVer)) {
215
- if (typeof other === "string" && other === this.version) return 0;
216
- other = new SemVer(other, this.options);
217
- }
218
- if (other.version === this.version) return 0;
219
- return this.compareMain(other) || this.comparePre(other);
220
- }
221
- compareMain(other) {
222
- if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
223
- if (this.major < other.major) return -1;
224
- if (this.major > other.major) return 1;
225
- if (this.minor < other.minor) return -1;
226
- if (this.minor > other.minor) return 1;
227
- if (this.patch < other.patch) return -1;
228
- if (this.patch > other.patch) return 1;
229
- return 0;
230
- }
231
- comparePre(other) {
232
- if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
233
- if (this.prerelease.length && !other.prerelease.length) return -1;
234
- else if (!this.prerelease.length && other.prerelease.length) return 1;
235
- else if (!this.prerelease.length && !other.prerelease.length) return 0;
236
- let i = 0;
237
- do {
238
- const a = this.prerelease[i];
239
- const b = other.prerelease[i];
240
- debug("prerelease compare", i, a, b);
241
- if (a === void 0 && b === void 0) return 0;
242
- else if (b === void 0) return 1;
243
- else if (a === void 0) return -1;
244
- else if (a === b) continue;
245
- else return compareIdentifiers(a, b);
246
- } while (++i);
247
- }
248
- compareBuild(other) {
249
- if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
250
- let i = 0;
251
- do {
252
- const a = this.build[i];
253
- const b = other.build[i];
254
- debug("build compare", i, a, b);
255
- if (a === void 0 && b === void 0) return 0;
256
- else if (b === void 0) return 1;
257
- else if (a === void 0) return -1;
258
- else if (a === b) continue;
259
- else return compareIdentifiers(a, b);
260
- } while (++i);
261
- }
262
- inc(release, identifier, identifierBase) {
263
- if (release.startsWith("pre")) {
264
- if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
265
- if (identifier) {
266
- const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
267
- if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
268
- }
269
- }
270
- switch (release) {
271
- case "premajor":
272
- this.prerelease.length = 0;
273
- this.patch = 0;
274
- this.minor = 0;
275
- this.major++;
276
- this.inc("pre", identifier, identifierBase);
277
- break;
278
- case "preminor":
279
- this.prerelease.length = 0;
280
- this.patch = 0;
281
- this.minor++;
282
- this.inc("pre", identifier, identifierBase);
283
- break;
284
- case "prepatch":
285
- this.prerelease.length = 0;
286
- this.inc("patch", identifier, identifierBase);
287
- this.inc("pre", identifier, identifierBase);
288
- break;
289
- case "prerelease":
290
- if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
291
- this.inc("pre", identifier, identifierBase);
292
- break;
293
- case "release":
294
- if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
295
- this.prerelease.length = 0;
296
- break;
297
- case "major":
298
- if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
299
- this.minor = 0;
300
- this.patch = 0;
301
- this.prerelease = [];
302
- break;
303
- case "minor":
304
- if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
305
- this.patch = 0;
306
- this.prerelease = [];
307
- break;
308
- case "patch":
309
- if (this.prerelease.length === 0) this.patch++;
310
- this.prerelease = [];
311
- break;
312
- case "pre": {
313
- const base = Number(identifierBase) ? 1 : 0;
314
- if (this.prerelease.length === 0) this.prerelease = [base];
315
- else {
316
- let i = this.prerelease.length;
317
- while (--i >= 0) if (typeof this.prerelease[i] === "number") {
318
- this.prerelease[i]++;
319
- i = -2;
320
- }
321
- if (i === -1) {
322
- if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
323
- this.prerelease.push(base);
324
- }
325
- }
326
- if (identifier) {
327
- let prerelease = [identifier, base];
328
- if (identifierBase === false) prerelease = [identifier];
329
- if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
330
- if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
331
- } else this.prerelease = prerelease;
332
- }
333
- break;
334
- }
335
- default: throw new Error(`invalid increment argument: ${release}`);
336
- }
337
- this.raw = this.format();
338
- if (this.build.length) this.raw += `+${this.build.join(".")}`;
339
- return this;
340
- }
341
- };
342
- }));
343
- //#endregion
344
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js
345
- var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
346
- const SemVer = require_semver();
347
- const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
348
- module.exports = compare;
349
- }));
350
- //#endregion
2
+ import lt from "semver/functions/lt.js";
351
3
  //#region clis/utils.ts
352
- var import_lt = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
353
- const compare = require_compare();
354
- const lt = (a, b, loose) => compare(a, b, loose) < 0;
355
- module.exports = lt;
356
- })))(), 1);
357
4
  /**
358
5
  * Mutates a resolved `pnpm dlx ...` command to add one `--allow-build=<pkg>`
359
6
  * flag per package in {@link BOILERPLATE_ALLOWED_BUILDS}, so pnpm 11's
@@ -380,7 +27,7 @@ var NodeVersionError = class extends Error {
380
27
  };
381
28
  function assertNodeVersion(nodeVersion = process.versions.node) {
382
29
  if (!nodeVersion) return;
383
- if ((0, import_lt.default)(nodeVersion, "24.0.0")) throw new NodeVersionError(nodeVersion, MINIMUM_NODE_VERSION);
30
+ if (lt(nodeVersion, "24.0.0")) throw new NodeVersionError(nodeVersion, MINIMUM_NODE_VERSION);
384
31
  }
385
32
  //#endregion
386
33
  export { NodeVersionError, assertNodeVersion, injectPnpmAllowBuilds };
@@ -1 +1 @@
1
- {"version":3,"file":"utils.mjs","names":[],"sources":["../../../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js","../../../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js","../../../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js","../../../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js","../../../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js","../../../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js","../../../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js","../../../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js","../../clis/utils.ts"],"sourcesContent":["'use strict'\n\nconst debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","'use strict'\n\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\nconst RELEASE_TYPES = [\n 'major',\n 'premajor',\n 'minor',\n 'preminor',\n 'patch',\n 'prepatch',\n 'prerelease',\n]\n\nmodule.exports = {\n MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER,\n RELEASE_TYPES,\n SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 0b001,\n FLAG_LOOSE: 0b010,\n}\n","'use strict'\n\nconst {\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_LENGTH,\n} = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst safeRe = exports.safeRe = []\nconst src = exports.src = []\nconst safeSrc = exports.safeSrc = []\nconst t = exports.t = {}\nlet R = 0\n\nconst LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nconst makeSafeRegex = (value) => {\n for (const [token, max] of safeRegexReplacements) {\n value = value\n .split(`${token}*`).join(`${token}{0,${max}}`)\n .split(`${token}+`).join(`${token}{1,${max}}`)\n }\n return value\n}\n\nconst createToken = (name, value, isGlobal) => {\n const safe = makeSafeRegex(value)\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n safeSrc[index] = safe\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '\\\\d+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n// Non-numeric identifiers include numeric identifiers but can be longer.\n// Therefore non-numeric identifiers must go first.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER]\n}|${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER]\n}|${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCEPLAIN', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`)\ncreateToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`)\ncreateToken('COERCEFULL', src[t.COERCEPLAIN] +\n `(?:${src[t.PRERELEASE]})?` +\n `(?:${src[t.BUILD]})?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\ncreateToken('COERCERTLFULL', src[t.COERCEFULL], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n","'use strict'\n\n// parse out just the options we care about\nconst looseOption = Object.freeze({ loose: true })\nconst emptyOpts = Object.freeze({ })\nconst parseOptions = options => {\n if (!options) {\n return emptyOpts\n }\n\n if (typeof options !== 'object') {\n return looseOption\n }\n\n return options\n}\nmodule.exports = parseOptions\n","'use strict'\n\nconst numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n if (typeof a === 'number' && typeof b === 'number') {\n return a === b ? 0 : a < b ? -1 : 1\n }\n\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n","'use strict'\n\nconst debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n if (this.major < other.major) {\n return -1\n }\n if (this.major > other.major) {\n return 1\n }\n if (this.minor < other.minor) {\n return -1\n }\n if (this.minor > other.minor) {\n return 1\n }\n if (this.patch < other.patch) {\n return -1\n }\n if (this.patch > other.patch) {\n return 1\n }\n return 0\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('build compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n if (release.startsWith('pre')) {\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n // Avoid an invalid semver results\n if (identifier) {\n const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE])\n if (!match || match[1] !== identifier) {\n throw new Error(`invalid identifier: ${identifier}`)\n }\n }\n }\n\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n case 'release':\n if (this.prerelease.length === 0) {\n throw new Error(`version ${this.raw} is not a prerelease`)\n }\n this.prerelease.length = 0\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.raw = this.format()\n if (this.build.length) {\n this.raw += `+${this.build.join('.')}`\n }\n return this\n }\n}\n\nmodule.exports = SemVer\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","'use strict'\n\nconst compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","// Sub-path: this module loads on the cold path of every CLI invocation.\nimport lt from \"semver/functions/lt.js\";\nimport {\n BOILERPLATE_ALLOWED_BUILDS,\n MINIMUM_NODE_VERSION,\n} from \"./constants.js\";\n\n/**\n * Mutates a resolved `pnpm dlx ...` command to add one `--allow-build=<pkg>`\n * flag per package in {@link BOILERPLATE_ALLOWED_BUILDS}, so pnpm 11's\n * `strict-dep-builds=true` default doesn't prompt for approval during the\n * outer dlx download. No-op for other package managers or non-dlx commands.\n */\nexport function injectPnpmAllowBuilds(\n pm: string,\n resolved: { command: string; args: string[] },\n): void {\n if (pm !== \"pnpm\" || resolved.args[0] !== \"dlx\") return;\n const flags = BOILERPLATE_ALLOWED_BUILDS.map((pkg) => `--allow-build=${pkg}`);\n resolved.args = [resolved.args[0], ...flags, ...resolved.args.slice(1)];\n}\n\nexport class NodeVersionError extends Error {\n constructor(currentVersion: string, minimumVersion: string) {\n super(\n `Node version ${minimumVersion} or higher is required. Current version: ${currentVersion}`,\n );\n this.name = \"NodeVersionError\";\n }\n\n static isError(error: unknown): error is NodeVersionError {\n return error instanceof Error && error.name === \"NodeVersionError\";\n }\n}\n\nexport function assertNodeVersion(nodeVersion = process.versions.node) {\n if (!nodeVersion) return;\n\n if (lt(nodeVersion, MINIMUM_NODE_VERSION)) {\n throw new NodeVersionError(nodeVersion, MINIMUM_NODE_VERSION);\n }\n}\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,QAAO,UAPL,OAAO,YAAY,YACnB,QAAQ,OACR,QAAQ,IAAI,cACZ,cAAc,KAAK,QAAQ,IAAI,WAAW,IACvC,GAAG,SAAS,QAAQ,MAAM,UAAU,GAAG,KAAK,SACvC;;;;;CCJV,MAAM,sBAAsB;CAE5B,MAAM,aAAa;CACnB,MAAM,mBAAmB,OAAO,oBACL;AAmB3B,QAAO,UAAU;EACf;EACA,2BAlBgC;EAmBhC,uBAf4B,aAAa;EAgBzC;EACA,eAfoB;GACpB;GACA;GACA;GACA;GACA;GACA;GACA;GACD;EAQC;EACA,yBAAyB;EACzB,YAAY;EACb;;;;;CClCD,MAAM,EACJ,2BACA,uBACA,eAAA,mBAAA;CAEF,MAAM,QAAA,eAAA;AACN,WAAU,OAAO,UAAU,EAAE;CAG7B,MAAM,KAAK,QAAQ,KAAK,EAAE;CAC1B,MAAM,SAAS,QAAQ,SAAS,EAAE;CAClC,MA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rB,IAAI,OAAO,GAAG,MAAM,CAAC,QAAQ,IAAI,OAAO,GAAG,MAAM,CAAC;AAEpD,QAAO,UAAU;;;;;CCJjB,MAAM,UAAA,iBAAA;CACN,MAAM,MAAM,GAAG,GAAG,UAAU,QAAQ,GAAG,GAAG,MAAM,GAAG;AACnD,QAAO,UAAU;;;;;;;;ACSjB,SAAgB,sBACd,IACA,UACM;AACN,KAAI,OAAO,UAAU,SAAS,KAAK,OAAO,MAAO;CACjD,MAAM,QAAQ,2BAA2B,KAAK,QAAQ,iBAAiB,MAAM;AAC7E,UAAS,OAAO;EAAC,SAAS,KAAK;EAAI,GAAG;EAAO,GAAG,SAAS,KAAK,MAAM,EAAE;EAAC;;AAGzE,IAAa,mBAAb,cAAsC,MAAM;CAC1C,YAAY,gBAAwB,gBAAwB;AAC1D,QACE,gBAAgB,eAAe,2CAA2C,iBAC3E;AACD,OAAK,OAAO;;CAGd,OAAO,QAAQ,OAA2C;AACxD,SAAO,iBAAiB,SAAS,MAAM,SAAS;;;AAIpD,SAAgB,kBAAkB,cAAc,QAAQ,SAAS,MAAM;AACrE,KAAI,CAAC,YAAa;AAElB,MAAA,GAAA,UAAA,SAAO,aAAA,SAAkC,CACvC,OAAM,IAAI,iBAAiB,aAAa,qBAAqB"}
1
+ {"version":3,"file":"utils.mjs","names":[],"sources":["../../clis/utils.ts"],"sourcesContent":["// Sub-path: this module loads on the cold path of every CLI invocation.\nimport lt from \"semver/functions/lt.js\";\nimport {\n BOILERPLATE_ALLOWED_BUILDS,\n MINIMUM_NODE_VERSION,\n} from \"./constants.js\";\n\n/**\n * Mutates a resolved `pnpm dlx ...` command to add one `--allow-build=<pkg>`\n * flag per package in {@link BOILERPLATE_ALLOWED_BUILDS}, so pnpm 11's\n * `strict-dep-builds=true` default doesn't prompt for approval during the\n * outer dlx download. No-op for other package managers or non-dlx commands.\n */\nexport function injectPnpmAllowBuilds(\n pm: string,\n resolved: { command: string; args: string[] },\n): void {\n if (pm !== \"pnpm\" || resolved.args[0] !== \"dlx\") return;\n const flags = BOILERPLATE_ALLOWED_BUILDS.map((pkg) => `--allow-build=${pkg}`);\n resolved.args = [resolved.args[0], ...flags, ...resolved.args.slice(1)];\n}\n\nexport class NodeVersionError extends Error {\n constructor(currentVersion: string, minimumVersion: string) {\n super(\n `Node version ${minimumVersion} or higher is required. Current version: ${currentVersion}`,\n );\n this.name = \"NodeVersionError\";\n }\n\n static isError(error: unknown): error is NodeVersionError {\n return error instanceof Error && error.name === \"NodeVersionError\";\n }\n}\n\nexport function assertNodeVersion(nodeVersion = process.versions.node) {\n if (!nodeVersion) return;\n\n if (lt(nodeVersion, MINIMUM_NODE_VERSION)) {\n throw new NodeVersionError(nodeVersion, MINIMUM_NODE_VERSION);\n }\n}\n"],"mappings":";;;;;;;;;AAaA,SAAgB,sBACd,IACA,UACM;AACN,KAAI,OAAO,UAAU,SAAS,KAAK,OAAO,MAAO;CACjD,MAAM,QAAQ,2BAA2B,KAAK,QAAQ,iBAAiB,MAAM;AAC7E,UAAS,OAAO;EAAC,SAAS,KAAK;EAAI,GAAG;EAAO,GAAG,SAAS,KAAK,MAAM,EAAE;EAAC;;AAGzE,IAAa,mBAAb,cAAsC,MAAM;CAC1C,YAAY,gBAAwB,gBAAwB;AAC1D,QACE,gBAAgB,eAAe,2CAA2C,iBAC3E;AACD,OAAK,OAAO;;CAGd,OAAO,QAAQ,OAA2C;AACxD,SAAO,iBAAiB,SAAS,MAAM,SAAS;;;AAIpD,SAAgB,kBAAkB,cAAc,QAAQ,SAAS,MAAM;AACrE,KAAI,CAAC,YAAa;AAElB,KAAI,GAAG,aAAA,SAAkC,CACvC,OAAM,IAAI,iBAAiB,aAAa,qBAAqB"}
@@ -1,4 +1,4 @@
1
- import { D as PHConnectRuntimeConfig } from "../types-__rCq4pt.js";
1
+ import { D as PHConnectRuntimeConfig } from "../types-CpnWmiFY.js";
2
2
 
3
3
  //#region connect/config-loader.d.ts
4
4
  /** Recursive Partial. Arrays are leaves — `write({ packages: [...] })`
@@ -1,4 +1,4 @@
1
- import { D as PHConnectRuntimeConfig, I as PowerhouseConfig, L as PowerhousePackage, S as PHConnectPwaUrlPattern, _ as PHConnectPwaCacheStrategy, b as PHConnectPwaManifest, g as PHConnectPwa, v as PHConnectPwaFileHandler, x as PHConnectPwaRuntimeCaching, y as PHConnectPwaIcon } from "../types-__rCq4pt.js";
1
+ import { D as PHConnectRuntimeConfig, I as PowerhouseConfig, L as PowerhousePackage, S as PHConnectPwaUrlPattern, _ as PHConnectPwaCacheStrategy, b as PHConnectPwaManifest, g as PHConnectPwa, v as PHConnectPwaFileHandler, x as PHConnectPwaRuntimeCaching, y as PHConnectPwaIcon } from "../types-CpnWmiFY.js";
2
2
  import { ConfigAdapter, ConfigLoader, ConfigShape, DeepPartial, deepMerge } from "./config-loader.js";
3
3
  import { JsonConfigAdapter, JsonConfigAdapterOptions } from "./json-adapter.js";
4
4
  import { z } from "zod";
@@ -1,5 +1,5 @@
1
- import { Bt as DocumentModelGlobalState, En as IsStateOfType, On as LoadFromInput, Qu as PHBaseState, Rn as Maybe, Tn as IsDocumentOfType, bi as SaveToFileHandle, ei as Reducer, gt as CreateDocument, ot as AssertIsDocumentOfType, st as AssertIsStateOfType, yt as CreateState } from "../types-__rCq4pt.js";
2
- import { $ as LegacySynchronizationUnit, A as TriggerData, C as RemoveTriggerInput, D as SetSharingTypeInput, E as SetDriveNameInput, G as DriveInput, J as SharingType, K as GenerateNodesCopyIdGenerator, M as TriggerType, N as UpdateFileInput, O as TransmitterType, P as UpdateNodeInput, Q as LegacyAddFileInput, S as RemoveListenerInput, T as SetDriveIconInput, U as DocumentDrivePHState, W as DriveDocumentModelModule, X as DocumentDriveDocument, Y as DocumentDriveAction, Z as LegacyAddFileAction, _ as ListenerInput, _t as SetDriveNameAction, a as CopyNodeInput, at as DocumentDriveNodeOperations, b as PullResponderTriggerData, c as DocumentDriveLocalState, ct as UpdateNodeAction, d as FolderNode, dt as DocumentDriveDriveAction, et as AddFileAction, f as Listener, ft as DocumentDriveDriveOperations, g as ListenerFilterInput, gt as SetDriveIconAction, h as ListenerFilter, ht as SetAvailableOfflineAction, i as AddTriggerInput, it as DocumentDriveNodeAction, j as TriggerInput, k as Trigger, l as DocumentDrivePHState$1, lt as AddListenerAction, m as ListenerCallInfoInput, mt as RemoveTriggerAction, n as AddFolderInput, nt as CopyNodeAction, o as DeleteNodeInput, ot as MoveNodeAction, p as ListenerCallInfo, pt as RemoveListenerAction, q as GenerateNodesCopySrc, r as AddListenerInput, rt as DeleteNodeAction, s as DocumentDriveGlobalState, st as UpdateFileAction, t as AddFileInput, tt as AddFolderAction, u as FileNode, ut as AddTriggerAction, v as MoveNodeInput, vt as SetSharingTypeAction, w as SetAvailableOfflineInput, x as PullResponderTriggerDataInput, y as Node } from "../types-D0P0CIQB.js";
1
+ import { Bt as DocumentModelGlobalState, En as IsStateOfType, On as LoadFromInput, Qu as PHBaseState, Rn as Maybe, Tn as IsDocumentOfType, bi as SaveToFileHandle, ei as Reducer, gt as CreateDocument, ot as AssertIsDocumentOfType, st as AssertIsStateOfType, yt as CreateState } from "../types-CpnWmiFY.js";
2
+ import { $ as LegacySynchronizationUnit, A as TriggerData, C as RemoveTriggerInput, D as SetSharingTypeInput, E as SetDriveNameInput, G as DriveInput, J as SharingType, K as GenerateNodesCopyIdGenerator, M as TriggerType, N as UpdateFileInput, O as TransmitterType, P as UpdateNodeInput, Q as LegacyAddFileInput, S as RemoveListenerInput, T as SetDriveIconInput, U as DocumentDrivePHState, W as DriveDocumentModelModule, X as DocumentDriveDocument, Y as DocumentDriveAction, Z as LegacyAddFileAction, _ as ListenerInput, _t as SetDriveNameAction, a as CopyNodeInput, at as DocumentDriveNodeOperations, b as PullResponderTriggerData, c as DocumentDriveLocalState, ct as UpdateNodeAction, d as FolderNode, dt as DocumentDriveDriveAction, et as AddFileAction, f as Listener, ft as DocumentDriveDriveOperations, g as ListenerFilterInput, gt as SetDriveIconAction, h as ListenerFilter, ht as SetAvailableOfflineAction, i as AddTriggerInput, it as DocumentDriveNodeAction, j as TriggerInput, k as Trigger, l as DocumentDrivePHState$1, lt as AddListenerAction, m as ListenerCallInfoInput, mt as RemoveTriggerAction, n as AddFolderInput, nt as CopyNodeAction, o as DeleteNodeInput, ot as MoveNodeAction, p as ListenerCallInfo, pt as RemoveListenerAction, q as GenerateNodesCopySrc, r as AddListenerInput, rt as DeleteNodeAction, s as DocumentDriveGlobalState, st as UpdateFileAction, t as AddFileInput, tt as AddFolderAction, u as FileNode, ut as AddTriggerAction, v as MoveNodeInput, vt as SetSharingTypeAction, w as SetAvailableOfflineInput, x as PullResponderTriggerDataInput, y as Node } from "../types-YqLqb0Zb.js";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region document-drive/constants.d.ts
@@ -1,4 +1,4 @@
1
- import { $ as AddOperationExampleAction, $a as UpgradeReducer, $c as deleteOperationExample, $i as SetOperationErrorCodeAction, $l as baseCreateDocument, $n as MutationDeleteOperationErrorArgs, $o as SetAuthorWebsiteInputSchema, $r as RedoActionInput, $t as DocumentModelOperationExampleOperations, $u as PHDocumentState, Aa as SigningParameters, Ai as SetAuthorNameAction, Al as setOperationErrorDescription, An as LoadStateActionInput, Ao as ModuleSchema, Ar as MutationSetOperationTemplateArgs, As as UpdateStateExampleInputSchema, At as DeleteOperationErrorInput, Au as sortMappedOperations, Ba as UpdateChangeLogItemAction, Bc as addModule, Bi as SetModelIdAction, Bl as undo, Bn as ModuleSpecification, Bo as PublisherSchema, Br as OperationsByScope, Bt as DocumentModelGlobalState, Bu as operationOutcome, Ca as Set_PreferredEditor, Ci as SchemaNOOPAction, Cl as setModelId, Cn as Incremental, Co as DocumentModelInputSchema, Cr as MutationSetOperationErrorCodeArgs, Cs as Set_PreferredEditorSchema, Ct as DeleteChildDocumentSignal, Cu as prepareOperations, Da as SignalResults, Di as SchemaSetPreferredEditorAction, Dl as setName, Dn as LoadFromFile, Do as LoadStateActionStateInputSchema, Dr as MutationSetOperationNameArgs, Ds as UndoSchema, Dt as DeleteModuleInput, Du as reshuffleByTimestamp, Ea as SignalResult, Ei as SchemaSetNameAction, El as setModuleName, En as IsStateOfType, Eo as LoadStateActionSchema, Er as MutationSetOperationErrorTemplateArgs, Es as UndoActionSchema, Et as DeleteModuleAction, Eu as replayDocument, Fa as SubgraphModule, Fc as actionContext, Fi as SetInitialStateInput, Fl as setOperationSchema, Fn as MakeOptional, Fo as PowerhouseModuleSchema, Fr as MutationUpdateStateExampleArgs, Ft as DeleteStateExampleInput, Fu as Operation, G as Actions, Ga as UpdateRelationshipActionInput, Gc as baseActions, Gi as SetModuleDescriptionInput, Gl as IntegrityIssueSubType, Gn as MutationAddModuleArgs, Go as ReorderChangeLogItemsInputSchema, Gr as PowerhouseModule, Gt as DocumentModelLocalState, Gu as undoOperationV2, H as ActionSignatureContext, Ha as UpdateOperationExampleAction, Hc as addOperationError, Hi as SetModelNameAction, Hl as updateOperationExample, Hn as MoveOperationInput, Ho as RedoActionInputSchema, Hr as PartialState, Ht as DocumentModelHeaderOperations, Hu as setNameOperation, Ia as Undo, Ic as actionFromAction, Ii as SetModelDescriptionAction, Il as setOperationScope, In as Manifest, Io as PowerhouseModulesSchema, Ir as NOOPAction, It as DocumentAction, Iu as OperationContext, J as AddModuleAction, Ja as UpgradeDocumentAction, Jc as createAction, Ji as SetNameAction, Jl as PHDocumentHeader, Jn as MutationAddOperationExampleArgs, Jo as ReorderOperationErrorsInputSchema, Jr as PruneActionInput, Jt as DocumentModelModuleOperations, Ju as Condition, K as AddChangeLogItemAction, Ka as UpdateStateExampleAction, Kc as buildOperationSignature, Ki as SetModuleNameAction, Kl as IntegrityIssueType, Kn as MutationAddOperationArgs, Ko as ReorderModuleOperationsInputSchema, Kr as Prune, Kt as DocumentModelModule, Ku as AuthGroups, La as UndoAction, Lc as actionSigner, Li as SetModelDescriptionInput, Ll as setOperationTemplate, Ln as MappedOperation, Lo as PruneActionInputSchema, Lr as OperationErrorSpecification, Lt as DocumentModelAction, Lu as OperationOutcome, Ma as SkipHeaderOperations, Mi as SetAuthorWebsiteAction, Ml as setOperationErrorTemplate, Mn as Load_State, Mo as OperationErrorSchema, Mr as MutationUndoArgs, Ms as isDefinedNonNullAny, Mt as DeleteOperationExampleInput, Mu as split, Na as State, Nc as Action, Ni as SetAuthorWebsiteInput, Nl as setOperationName, Nn as MakeEmpty, No as OperationScopeSchema, Nr as MutationUpdateChangeLogItemInputArgs, Nt as DeleteOperationInput, Nu as updateHeaderRevision, Oa as SignalType, Oi as SchemaUndoAction, Ol as setOperationDescription, On as LoadFromInput, Oo as Load_StateSchema, Or as MutationSetOperationReducerArgs, Os as UpdateChangeLogItemInputSchema, Ot as DeleteOperationAction, Ou as reshuffleByTimestampAndIndex, Pa as StateReducer, Pc as ActionContext, Pi as SetInitialStateAction, Pl as setOperationReducer, Pn as MakeMaybe, Po as OperationSpecificationSchema, Pr as MutationUpdateOperationExampleArgs, Pt as DeleteStateExampleAction, Pu as DocumentOperations, Q as AddOperationErrorInput, Qa as UpgradeManifest, Qc as deleteOperationError, Qi as SetOperationDescriptionInput, Ql as attachBranch, Qn as MutationDeleteOperationArgs, Qo as SetAuthorNameInputSchema, Qr as RedoAction, Qt as DocumentModelOperationExampleAction, Qu as PHBaseState, Ra as UndoActionInput, Rc as actions, Ri as SetModelExtensionAction, Rl as setPreferredEditor, Rn as Maybe, Ro as PruneActionSchema, Rr as OperationIndex, Rt as DocumentModelDocument, Ru as OperationWithContext, Sa as Set_Name, Sd as serializeSignature, Si as SchemaLoadStateAction, Sl as setModelExtension, Sn as ISigner, So as DocumentModelGlobalStateSchema, Sr as MutationSetOperationDescriptionArgs, Ss as Set_NameSchema, St as DeleteChildDocumentInput, Su as precedes, Ta as SignalDispatch, Ti as SchemaRedoAction, Tl as setModuleDescription, Tn as IsDocumentOfType, To as LoadStateActionInputSchema, Tr as MutationSetOperationErrorNameArgs, Ts as UndoActionInputSchema, Tt as DeleteDocumentActionInput, Tu as removeExistingOperations, U as ActionSigningHandler, Ua as UpdateOperationExampleInput, Uc as addOperationExample, Ui as SetModelNameInput, Ul as updateStateExample, Un as Mutation, Uo as RedoActionSchema, Ur as PhAiToolAnnotations, Ut as DocumentModelInput, Uu as setPreferredEditorOperation, V as ActionErrorCallback, Va as UpdateChangeLogItemInput, Vc as addOperation, Vi as SetModelIdInput, Vl as updateChangeLogItem, Vn as MoveOperationAction, Vo as PwaConfigSchema, Vr as PartialRecord, Vt as DocumentModelHeaderAction, Vu as redoOperation, W as ActionVerificationHandler, Wa as UpdateRelationshipAction, Wc as addStateExample, Wi as SetModuleDescriptionAction, Wl as verifyOperationSignature, Wn as MutationAddChangeLogItemInputArgs, Wo as RedoSchema, Wr as PhAiToolDescriptor, Wt as DocumentModelLib, Wu as undoOperation, X as AddOperationAction, Xa as User, Xc as deleteModule, Xi as SetNameOperation, Xl as addUndo, Xn as MutationDeleteChangeLogItemInputArgs, Xo as ReorderStateExamplesInputSchema, Xr as Query, Xt as DocumentModelOperationErrorAction, Xu as Operand, Y as AddModuleInput, Ya as UpgradeDocumentActionInput, Yc as deleteChangeLogItem, Yi as SetNameActionInput, Yl as PHDocumentMeta, Yn as MutationAddStateExampleArgs, Yo as ReorderOperationExamplesInputSchema, Yr as Publisher, Yt as DocumentModelOperationAction, Yu as Grant, Z as AddOperationErrorAction, Za as ValidationError, Zc as deleteOperation, Zi as SetOperationDescriptionAction, Zl as appendWithoutApplying, Zn as MutationDeleteModuleArgs, Zo as ScopeStateSchema, Zr as Redo, Zt as DocumentModelOperationErrorOperations, Zu as PHAuthState, _a as SetPreferredEditorAction, _d as HashConfig, _i as ReplayDocumentOptions, _l as reorderStateExamples, _n as ID, _o as DeleteOperationErrorInputSchema, _r as MutationSetModelIdArgs, _s as SetOperationScopeInputSchema, _t as CreateDocumentAction, _u as mapSkippedOperationsV2, aa as SetOperationErrorTemplateAction, ad as createDocumentState, ai as ReorderChangeLogItemsAction, al as operationExampleCreators, an as DocumentModelVersioningAction, ao as AddChangeLogItemInputSchema, ar as MutationRedoArgs, as as SetModuleDescriptionInputSchema, at as AddStateExampleInput, au as filterDuplicatedOperations, ba as SetStateSchemaAction, bd as UserActionSigner, bi as SaveToFileHandle, bl as setInitialState, bn as ISignal, bo as DeleteStateExampleInputSchema, br as MutationSetModuleNameArgs, bs as SetPreferredEditorActionSchema, bt as DeleteChangeLogItemAction, bu as operationsAreEqual, ca as SetOperationNameInput, cd as createState, ci as ReorderModuleOperationsInput, cl as operationWithContext, cn as DocumentSpecification, co as AddOperationExampleInputSchema, cr as MutationReorderModulesArgs, cs as SetNameActionSchema, ct as Author, cu as garbageCollectV2, da as SetOperationSchemaAction, dd as defaultDocumentState, di as ReorderOperationErrorsAction, dl as releaseNewVersion, dn as EditorModule, do as AuthorSchema, dr as MutationReorderStateExamplesArgs, ds as SetOperationErrorDescriptionInputSchema, dt as ConfigEntryType, du as hashDocumentStateForScope, ea as SetOperationErrorCodeInput, ed as PHGroupState, ei as Reducer, el as deleteStateExample, en as DocumentModelOperationOperations, eo as UpgradeTransition, er as MutationDeleteOperationExampleArgs, es as SetInitialStateInputSchema, et as AddOperationExampleInput, eu as baseReducerVersion, fa as SetOperationSchemaInput, fd as defaultGlobalState, fi as ReorderOperationErrorsInput, fl as reorderChangeLogItems, fn as EditorProps, fo as CodeExampleSchema, fr as MutationSetAuthorNameArgs, fs as SetOperationErrorNameInputSchema, ft as CopyChildDocumentInput, fu as isDocumentAction, ga as SetOperationTemplateInput, gd as AppActionSigner, gi as ReorderStateExamplesInput, gl as reorderOperationExamples, gn as IAction, go as DeleteModuleInputSchema, gr as MutationSetModelExtensionArgs, gs as SetOperationSchemaInputSchema, gt as CreateDocument, gu as mapSkippedOperations, ha as SetOperationTemplateAction, hd as ActionSigner, hi as ReorderStateExamplesAction, hl as reorderOperationErrors, hn as GetDocumentOptions, ho as DeleteChangeLogItemInputSchema, hr as MutationSetModelDescriptionArgs, hs as SetOperationReducerInputSchema, ht as CreateChildDocumentSignal, hu as isUndoRedo, ia as SetOperationErrorNameInput, id as createBaseState, ii as RemoveRelationshipActionInput, il as noop, in as DocumentModelUtils, io as normalizeDocumentModelVersion, ir as MutationPruneArgs, is as SetModelNameInputSchema, it as AddStateExampleAction, iu as filterDocumentOperationsResultingState, ja as SkipHeaderOperationIndex, ji as SetAuthorNameInput, jl as setOperationErrorName, jn as LoadStateActionStateInput, jo as MoveOperationInputSchema, jr as MutationSetStateSchemaArgs, js as definedNonNullAnySchema, jt as DeleteOperationExampleAction, ju as sortOperations, ka as SignatureVerificationHandler, ki as ScopeState, kl as setOperationErrorCode, kn as LoadStateAction, ko as ManifestSchema, kr as MutationSetOperationSchemaArgs, ks as UpdateOperationExampleInputSchema, kt as DeleteOperationErrorAction, ku as skipHeaderOperations, la as SetOperationReducerAction, ld as defaultAuthState, li as ReorderModulesAction, ll as prune, ln as ENSInfo, lo as AddOperationInputSchema, lr as MutationReorderOperationErrorsArgs, ls as SetOperationDescriptionInputSchema, lt as CodeExample, lu as getDocumentLastModified, ma as SetOperationScopeInput, md as defaultPHState, mi as ReorderOperationExamplesInput, ml as reorderModules, mn as FileInput, mo as ConfigEntryTypeSchema, mr as MutationSetInitialStateArgs, ms as SetOperationNameInputSchema, mt as CreateChildDocumentInput, mu as isUndo, na as SetOperationErrorDescriptionInput, nd as backfillAuthState, ni as ReleaseNewVersionAction, nl as loadState, nn as DocumentModelStateAction, no as applyUpgradeDocumentAction, nr as MutationLoadStateArgs, ns as SetModelExtensionInputSchema, nt as AddRelationshipAction, nu as checkOperationsIntegrity, oa as SetOperationErrorTemplateInput, od as createGlobalState, oi as ReorderChangeLogItemsInput, ol as operationFromAction, on as DocumentModelVersioningOperations, oo as AddModuleInputSchema, or as MutationReorderChangeLogItemsInputArgs, os as SetModuleNameInputSchema, ot as AssertIsDocumentOfType, ou as garbageCollect, pa as SetOperationScopeAction, pd as defaultLocalState, pi as ReorderOperationExamplesAction, pl as reorderModuleOperations, pn as Exact, po as ConfigEntrySchema, pr as MutationSetAuthorWebsiteArgs, ps as SetOperationErrorTemplateInputSchema, pt as CopyChildDocumentSignal, pu as isNoopOperation, q as AddChangeLogItemInput, qa as UpdateStateExampleInput, qc as buildSignedAction, qi as SetModuleNameInput, ql as PHDocument, qn as MutationAddOperationErrorArgs, qo as ReorderModulesInputSchema, qr as PruneAction, qt as DocumentModelModuleAction, qu as Capability, ra as SetOperationErrorNameAction, rd as createAuthState, ri as RemoveRelationshipAction, rl as moveOperation, rn as DocumentModelStateOperations, ro as computeUpgradeTransitions, rr as MutationMoveOperationArgs, rs as SetModelIdInputSchema, rt as AddRelationshipActionInput, ru as diffOperations, sa as SetOperationNameAction, sd as createLocalState, si as ReorderModuleOperationsAction, sl as operationFromOperation, sn as DocumentOperationsIgnoreMap, so as AddOperationErrorInputSchema, sr as MutationReorderModuleOperationsArgs, ss as SetNameActionInputSchema, st as AssertIsStateOfType, su as garbageCollectDocumentOperations, ta as SetOperationErrorDescriptionAction, td as Principal, ti as ReducerOptions, tl as documentModelActions, tn as DocumentModelPHState, to as applyDeleteDocumentAction, tr as MutationDeleteStateExampleArgs, ts as SetModelDescriptionInputSchema, tt as AddOperationInput, tu as checkCleanedOperationsIntegrity, ua as SetOperationReducerInput, ud as defaultBaseState, ui as ReorderModulesInput, ul as redo, un as EditorDispatch, uo as AddStateExampleInputSchema, ur as MutationReorderOperationExamplesArgs, us as SetOperationErrorCodeInputSchema, ut as ConfigEntry, uu as groupOperationsByScope, va as SetPreferredEditorActionInput, vd as PHDocumentSignatureInfo, vi as RevisionsFilter, vl as setAuthorName, vn as IDocument, vo as DeleteOperationExampleInputSchema, vr as MutationSetModelNameArgs, vs as SetOperationTemplateInputSchema, vt as CreateDocumentActionInput, vu as merge, wa as Signal, wi as SchemaPruneAction, wl as setModelName, wn as InputMaybe, wo as DocumentSpecificationSchema, wr as MutationSetOperationErrorDescriptionArgs, ws as StateSchema, wt as DeleteDocumentAction, wu as readOnly, xa as SetStateSchemaInput, xd as deserializeSignature, xi as Scalars, xl as setModelDescription, xn as ISignalResult, xo as DocumentActionSchema, xr as MutationSetNameArgs, xs as SetStateSchemaInputSchema, xt as DeleteChangeLogItemInput, xu as parseResultingState, ya as SetPreferredEditorOperation, yd as Signature, yi as SaveToFile, yl as setAuthorWebsite, yn as IOperation, yo as DeleteOperationInputSchema, yr as MutationSetModuleDescriptionArgs, ys as SetPreferredEditorActionInputSchema, yt as CreateState, yu as nextSkipNumber, za as UndoRedoAction, zc as addChangeLogItem, zi as SetModelExtensionInput, zl as setStateSchema, zn as MinimalBackupData, zo as PruneSchema, zr as OperationSpecification, zt as DocumentModelDocumentModelModule, zu as loadStateOperation } from "../types-__rCq4pt.js";
2
- import { $ as getFileBrowser, $n as mentionedGroupIds, $t as documentModelInitialLocalState, A as documentModelVersioningReducer, An as InitializeAuthActionInputSchema, At as isDocumentModelDocument, B as createVerificationSigner, Bn as SetGrantActionInputSchema, Bt as buildOperationSignatureMessage, C as documentModelModuleReducer, Cn as AuthRefusal, Ct as BaseDocumentHeaderSchema, D as documentModelReducer, Dn as ConditionContext, Dt as DocumentModelSchema, E as documentModelOperationReducer, En as AuthVerb, Et as DocumentModelPHStateSchema, F as replayOperations, Fn as RemoveGrantAction, Ft as DOCUMENT_DELETED_REASON, G as baseLoadFromInput, Gn as applySetGrantAction, Gt as HASH_ALGORITHM_SHA1, H as validateHeader, Hn as applyInitializeAuthAction, Ht as getUnixTimestamp, I as updateDocument, In as RemoveGrantActionInput, It as isDenied, J as createMinimalZip, Jn as decide, Jt as HASH_ENCODING_BASE64, K as baseLoadFromInputVersioned, Kn as assertAuthPreservedOnDuplicate, Kt as HASH_ALGORITHM_SHA256, L as createPresignedHeader, Ln as RemoveGrantActionInputSchema, Lt as ab2hex, M as createReducer, Mn as MoveGrantAction, Mt as AUTH_DENIED_BY_GRANT_REASON, N as processUndoRedo, Nn as MoveGrantActionInput, Nt as AUTH_NO_GRANT_REASON, O as documentModelStateReducer, On as InitializeAuthAction, Ot as assertIsDocumentModelDocument, P as pruneOperation, Pn as MoveGrantActionInputSchema, Pt as AUTH_VERSION_UNSUPPORTED_REASON, Q as fetchFileBrowser, Qn as isDocumentCreator, Qt as documentModelInitialGlobalState, R as createSignedHeader, Rn as SetGrantAction, Rt as base58Decode, S as documentModelHeaderReducer, Sn as AuthEvaluation, St as groupMembershipActionTypes, T as documentModelOperationExampleReducer, Tn as AuthSubject, Tt as DocumentModelHeaderSchema, U as verify, Un as applyMoveGrantAction, Ut as hashBrowser, V as sign, Vn as applyAuthAction, Vt as buildOperationSignatureParams, W as BulkArchiveEntry, Wn as applyRemoveGrantAction, Wt as hex2ab, X as documentModelLoadFromInput, Xn as initializeAuth, Xt as documentModelFileExtension, Y as createZip, Yn as evaluate, Yt as HASH_ENCODING_HEX, Z as documentModelSaveToFileHandle, Zn as isAuthAction, Zt as documentModelGlobalState, _ as validateModuleOperation, _n as isPlainValue, _t as InvalidActionInputZodError, a as assertOperationErrorIdUnique, an as MAX_AUTH_GRANTS, ar as TransportActionContext, at as VersionedReducers, b as validateOperations, bn as AuthAction, bt as documentModelDocumentType, c as findModuleOrThrow, cn as MAX_CONDITION_NODES, ct as AuthActionNotAllowedError, d as findOperationOrThrow, dn as assertValidGrantUpsert, dt as AuthPolicyNotPreservedError, en as AuthAdministrationLockoutError, er as moveGrant, et as isDocumentZip, f as getAllOperationNames, fn as assertValidInitialGrants, ft as DowngradeNotSupportedError, g as validateModule, gn as grantProblem, gt as InvalidActionInputError, h as validateInitialState, hn as evaluateGrants, ht as HashMismatchError, i as assertModuleIdUnique, in as InvalidGrantError, ir as TransportAction, it as zipEntries, j as baseReducer, jn as MAX_SUPPORTED_AUTH_VERSION, jt as isDocumentModelState, k as documentModelStateSchemaReducer, kn as InitializeAuthActionInput, kt as assertIsDocumentModelState, l as findOperationErrorOrThrow, ln as assertAuthAdministrationRetained, lt as AuthAlreadyInitializedError, m as isValidOperationNameFormat, mn as evaluateGrantStack, mt as GrantNotFoundError, n as RESERVED_OPERATION_NAMES, nn as GrantSchema, nr as resolveSnapshotAuth, nt as readFileBrowser, o as assertOperationExampleIdUnique, on as MAX_CAPABILITY_OPERATIONS, or as TransportSigner, ot as VersionedReplayConfig, p as isReservedOperationName, pn as evaluateCondition, pt as FileSystemError, q as baseSaveToFileHandle, qn as assertAuthScopeActionAllowed, qt as HASH_ALGORITHM_SHA512, r as ReservedOperationName, rn as GroupPrincipalNotAllowedError, rr as setGrant, rt as writeFileBrowser, s as assertOperationIdUnique, sn as MAX_CONDITION_DEPTH, sr as toTransportAction, st as replayDocumentVersioned, t as OPERATION_NAME_PATTERN, tn as AuthAdministrationMissingError, tr as removeGrant, tt as parseBulkArchive, u as findOperationExampleOrThrow, un as assertValidGrant, ut as AuthInitializerNotCreatorError, v as validateModules, vn as referencedGroupIds, vt as InvalidAuthVersionError, w as documentModelOperationErrorReducer, wn as AuthRequest, wt as BaseDocumentStateSchema, x as validateStateSchemaName, xn as AuthDecision, xt as groupDocumentType, y as validateOperationName, yn as AUTH_ACTION_TYPES, yt as UnsupportedDocumentModelVersionError, z as createSignedHeaderForSigner, zn as SetGrantActionInput, zt as base64UrlToBytes } from "../index-ttKvSmVK.js";
1
+ import { $ as AddOperationExampleAction, $a as UpgradeReducer, $c as deleteOperationExample, $i as SetOperationErrorCodeAction, $l as baseCreateDocument, $n as MutationDeleteOperationErrorArgs, $o as SetAuthorWebsiteInputSchema, $r as RedoActionInput, $t as DocumentModelOperationExampleOperations, $u as PHDocumentState, Aa as SigningParameters, Ai as SetAuthorNameAction, Al as setOperationErrorDescription, An as LoadStateActionInput, Ao as ModuleSchema, Ar as MutationSetOperationTemplateArgs, As as UpdateStateExampleInputSchema, At as DeleteOperationErrorInput, Au as sortMappedOperations, Ba as UpdateChangeLogItemAction, Bc as addModule, Bi as SetModelIdAction, Bl as undo, Bn as ModuleSpecification, Bo as PublisherSchema, Br as OperationsByScope, Bt as DocumentModelGlobalState, Bu as operationOutcome, Ca as Set_PreferredEditor, Ci as SchemaNOOPAction, Cl as setModelId, Cn as Incremental, Co as DocumentModelInputSchema, Cr as MutationSetOperationErrorCodeArgs, Cs as Set_PreferredEditorSchema, Ct as DeleteChildDocumentSignal, Cu as prepareOperations, Da as SignalResults, Di as SchemaSetPreferredEditorAction, Dl as setName, Dn as LoadFromFile, Do as LoadStateActionStateInputSchema, Dr as MutationSetOperationNameArgs, Ds as UndoSchema, Dt as DeleteModuleInput, Du as reshuffleByTimestamp, Ea as SignalResult, Ei as SchemaSetNameAction, El as setModuleName, En as IsStateOfType, Eo as LoadStateActionSchema, Er as MutationSetOperationErrorTemplateArgs, Es as UndoActionSchema, Et as DeleteModuleAction, Eu as replayDocument, Fa as SubgraphModule, Fc as actionContext, Fi as SetInitialStateInput, Fl as setOperationSchema, Fn as MakeOptional, Fo as PowerhouseModuleSchema, Fr as MutationUpdateStateExampleArgs, Ft as DeleteStateExampleInput, Fu as Operation, G as Actions, Ga as UpdateRelationshipActionInput, Gc as baseActions, Gi as SetModuleDescriptionInput, Gl as IntegrityIssueSubType, Gn as MutationAddModuleArgs, Go as ReorderChangeLogItemsInputSchema, Gr as PowerhouseModule, Gt as DocumentModelLocalState, Gu as undoOperationV2, H as ActionSignatureContext, Ha as UpdateOperationExampleAction, Hc as addOperationError, Hi as SetModelNameAction, Hl as updateOperationExample, Hn as MoveOperationInput, Ho as RedoActionInputSchema, Hr as PartialState, Ht as DocumentModelHeaderOperations, Hu as setNameOperation, Ia as Undo, Ic as actionFromAction, Ii as SetModelDescriptionAction, Il as setOperationScope, In as Manifest, Io as PowerhouseModulesSchema, Ir as NOOPAction, It as DocumentAction, Iu as OperationContext, J as AddModuleAction, Ja as UpgradeDocumentAction, Jc as createAction, Ji as SetNameAction, Jl as PHDocumentHeader, Jn as MutationAddOperationExampleArgs, Jo as ReorderOperationErrorsInputSchema, Jr as PruneActionInput, Jt as DocumentModelModuleOperations, Ju as Condition, K as AddChangeLogItemAction, Ka as UpdateStateExampleAction, Kc as buildOperationSignature, Ki as SetModuleNameAction, Kl as IntegrityIssueType, Kn as MutationAddOperationArgs, Ko as ReorderModuleOperationsInputSchema, Kr as Prune, Kt as DocumentModelModule, Ku as AuthGroups, La as UndoAction, Lc as actionSigner, Li as SetModelDescriptionInput, Ll as setOperationTemplate, Ln as MappedOperation, Lo as PruneActionInputSchema, Lr as OperationErrorSpecification, Lt as DocumentModelAction, Lu as OperationOutcome, Ma as SkipHeaderOperations, Mi as SetAuthorWebsiteAction, Ml as setOperationErrorTemplate, Mn as Load_State, Mo as OperationErrorSchema, Mr as MutationUndoArgs, Ms as isDefinedNonNullAny, Mt as DeleteOperationExampleInput, Mu as split, Na as State, Nc as Action, Ni as SetAuthorWebsiteInput, Nl as setOperationName, Nn as MakeEmpty, No as OperationScopeSchema, Nr as MutationUpdateChangeLogItemInputArgs, Nt as DeleteOperationInput, Nu as updateHeaderRevision, Oa as SignalType, Oi as SchemaUndoAction, Ol as setOperationDescription, On as LoadFromInput, Oo as Load_StateSchema, Or as MutationSetOperationReducerArgs, Os as UpdateChangeLogItemInputSchema, Ot as DeleteOperationAction, Ou as reshuffleByTimestampAndIndex, Pa as StateReducer, Pc as ActionContext, Pi as SetInitialStateAction, Pl as setOperationReducer, Pn as MakeMaybe, Po as OperationSpecificationSchema, Pr as MutationUpdateOperationExampleArgs, Pt as DeleteStateExampleAction, Pu as DocumentOperations, Q as AddOperationErrorInput, Qa as UpgradeManifest, Qc as deleteOperationError, Qi as SetOperationDescriptionInput, Ql as attachBranch, Qn as MutationDeleteOperationArgs, Qo as SetAuthorNameInputSchema, Qr as RedoAction, Qt as DocumentModelOperationExampleAction, Qu as PHBaseState, Ra as UndoActionInput, Rc as actions, Ri as SetModelExtensionAction, Rl as setPreferredEditor, Rn as Maybe, Ro as PruneActionSchema, Rr as OperationIndex, Rt as DocumentModelDocument, Ru as OperationWithContext, Sa as Set_Name, Sd as serializeSignature, Si as SchemaLoadStateAction, Sl as setModelExtension, Sn as ISigner, So as DocumentModelGlobalStateSchema, Sr as MutationSetOperationDescriptionArgs, Ss as Set_NameSchema, St as DeleteChildDocumentInput, Su as precedes, Ta as SignalDispatch, Ti as SchemaRedoAction, Tl as setModuleDescription, Tn as IsDocumentOfType, To as LoadStateActionInputSchema, Tr as MutationSetOperationErrorNameArgs, Ts as UndoActionInputSchema, Tt as DeleteDocumentActionInput, Tu as removeExistingOperations, U as ActionSigningHandler, Ua as UpdateOperationExampleInput, Uc as addOperationExample, Ui as SetModelNameInput, Ul as updateStateExample, Un as Mutation, Uo as RedoActionSchema, Ur as PhAiToolAnnotations, Ut as DocumentModelInput, Uu as setPreferredEditorOperation, V as ActionErrorCallback, Va as UpdateChangeLogItemInput, Vc as addOperation, Vi as SetModelIdInput, Vl as updateChangeLogItem, Vn as MoveOperationAction, Vo as PwaConfigSchema, Vr as PartialRecord, Vt as DocumentModelHeaderAction, Vu as redoOperation, W as ActionVerificationHandler, Wa as UpdateRelationshipAction, Wc as addStateExample, Wi as SetModuleDescriptionAction, Wl as verifyOperationSignature, Wn as MutationAddChangeLogItemInputArgs, Wo as RedoSchema, Wr as PhAiToolDescriptor, Wt as DocumentModelLib, Wu as undoOperation, X as AddOperationAction, Xa as User, Xc as deleteModule, Xi as SetNameOperation, Xl as addUndo, Xn as MutationDeleteChangeLogItemInputArgs, Xo as ReorderStateExamplesInputSchema, Xr as Query, Xt as DocumentModelOperationErrorAction, Xu as Operand, Y as AddModuleInput, Ya as UpgradeDocumentActionInput, Yc as deleteChangeLogItem, Yi as SetNameActionInput, Yl as PHDocumentMeta, Yn as MutationAddStateExampleArgs, Yo as ReorderOperationExamplesInputSchema, Yr as Publisher, Yt as DocumentModelOperationAction, Yu as Grant, Z as AddOperationErrorAction, Za as ValidationError, Zc as deleteOperation, Zi as SetOperationDescriptionAction, Zl as appendWithoutApplying, Zn as MutationDeleteModuleArgs, Zo as ScopeStateSchema, Zr as Redo, Zt as DocumentModelOperationErrorOperations, Zu as PHAuthState, _a as SetPreferredEditorAction, _d as HashConfig, _i as ReplayDocumentOptions, _l as reorderStateExamples, _n as ID, _o as DeleteOperationErrorInputSchema, _r as MutationSetModelIdArgs, _s as SetOperationScopeInputSchema, _t as CreateDocumentAction, _u as mapSkippedOperationsV2, aa as SetOperationErrorTemplateAction, ad as createDocumentState, ai as ReorderChangeLogItemsAction, al as operationExampleCreators, an as DocumentModelVersioningAction, ao as AddChangeLogItemInputSchema, ar as MutationRedoArgs, as as SetModuleDescriptionInputSchema, at as AddStateExampleInput, au as filterDuplicatedOperations, ba as SetStateSchemaAction, bd as UserActionSigner, bi as SaveToFileHandle, bl as setInitialState, bn as ISignal, bo as DeleteStateExampleInputSchema, br as MutationSetModuleNameArgs, bs as SetPreferredEditorActionSchema, bt as DeleteChangeLogItemAction, bu as operationsAreEqual, ca as SetOperationNameInput, cd as createState, ci as ReorderModuleOperationsInput, cl as operationWithContext, cn as DocumentSpecification, co as AddOperationExampleInputSchema, cr as MutationReorderModulesArgs, cs as SetNameActionSchema, ct as Author, cu as garbageCollectV2, da as SetOperationSchemaAction, dd as defaultDocumentState, di as ReorderOperationErrorsAction, dl as releaseNewVersion, dn as EditorModule, do as AuthorSchema, dr as MutationReorderStateExamplesArgs, ds as SetOperationErrorDescriptionInputSchema, dt as ConfigEntryType, du as hashDocumentStateForScope, ea as SetOperationErrorCodeInput, ed as PHGroupState, ei as Reducer, el as deleteStateExample, en as DocumentModelOperationOperations, eo as UpgradeTransition, er as MutationDeleteOperationExampleArgs, es as SetInitialStateInputSchema, et as AddOperationExampleInput, eu as baseReducerVersion, fa as SetOperationSchemaInput, fd as defaultGlobalState, fi as ReorderOperationErrorsInput, fl as reorderChangeLogItems, fn as EditorProps, fo as CodeExampleSchema, fr as MutationSetAuthorNameArgs, fs as SetOperationErrorNameInputSchema, ft as CopyChildDocumentInput, fu as isDocumentAction, ga as SetOperationTemplateInput, gd as AppActionSigner, gi as ReorderStateExamplesInput, gl as reorderOperationExamples, gn as IAction, go as DeleteModuleInputSchema, gr as MutationSetModelExtensionArgs, gs as SetOperationSchemaInputSchema, gt as CreateDocument, gu as mapSkippedOperations, ha as SetOperationTemplateAction, hd as ActionSigner, hi as ReorderStateExamplesAction, hl as reorderOperationErrors, hn as GetDocumentOptions, ho as DeleteChangeLogItemInputSchema, hr as MutationSetModelDescriptionArgs, hs as SetOperationReducerInputSchema, ht as CreateChildDocumentSignal, hu as isUndoRedo, ia as SetOperationErrorNameInput, id as createBaseState, ii as RemoveRelationshipActionInput, il as noop, in as DocumentModelUtils, io as normalizeDocumentModelVersion, ir as MutationPruneArgs, is as SetModelNameInputSchema, it as AddStateExampleAction, iu as filterDocumentOperationsResultingState, ja as SkipHeaderOperationIndex, ji as SetAuthorNameInput, jl as setOperationErrorName, jn as LoadStateActionStateInput, jo as MoveOperationInputSchema, jr as MutationSetStateSchemaArgs, js as definedNonNullAnySchema, jt as DeleteOperationExampleAction, ju as sortOperations, ka as SignatureVerificationHandler, ki as ScopeState, kl as setOperationErrorCode, kn as LoadStateAction, ko as ManifestSchema, kr as MutationSetOperationSchemaArgs, ks as UpdateOperationExampleInputSchema, kt as DeleteOperationErrorAction, ku as skipHeaderOperations, la as SetOperationReducerAction, ld as defaultAuthState, li as ReorderModulesAction, ll as prune, ln as ENSInfo, lo as AddOperationInputSchema, lr as MutationReorderOperationErrorsArgs, ls as SetOperationDescriptionInputSchema, lt as CodeExample, lu as getDocumentLastModified, ma as SetOperationScopeInput, md as defaultPHState, mi as ReorderOperationExamplesInput, ml as reorderModules, mn as FileInput, mo as ConfigEntryTypeSchema, mr as MutationSetInitialStateArgs, ms as SetOperationNameInputSchema, mt as CreateChildDocumentInput, mu as isUndo, na as SetOperationErrorDescriptionInput, nd as backfillAuthState, ni as ReleaseNewVersionAction, nl as loadState, nn as DocumentModelStateAction, no as applyUpgradeDocumentAction, nr as MutationLoadStateArgs, ns as SetModelExtensionInputSchema, nt as AddRelationshipAction, nu as checkOperationsIntegrity, oa as SetOperationErrorTemplateInput, od as createGlobalState, oi as ReorderChangeLogItemsInput, ol as operationFromAction, on as DocumentModelVersioningOperations, oo as AddModuleInputSchema, or as MutationReorderChangeLogItemsInputArgs, os as SetModuleNameInputSchema, ot as AssertIsDocumentOfType, ou as garbageCollect, pa as SetOperationScopeAction, pd as defaultLocalState, pi as ReorderOperationExamplesAction, pl as reorderModuleOperations, pn as Exact, po as ConfigEntrySchema, pr as MutationSetAuthorWebsiteArgs, ps as SetOperationErrorTemplateInputSchema, pt as CopyChildDocumentSignal, pu as isNoopOperation, q as AddChangeLogItemInput, qa as UpdateStateExampleInput, qc as buildSignedAction, qi as SetModuleNameInput, ql as PHDocument, qn as MutationAddOperationErrorArgs, qo as ReorderModulesInputSchema, qr as PruneAction, qt as DocumentModelModuleAction, qu as Capability, ra as SetOperationErrorNameAction, rd as createAuthState, ri as RemoveRelationshipAction, rl as moveOperation, rn as DocumentModelStateOperations, ro as computeUpgradeTransitions, rr as MutationMoveOperationArgs, rs as SetModelIdInputSchema, rt as AddRelationshipActionInput, ru as diffOperations, sa as SetOperationNameAction, sd as createLocalState, si as ReorderModuleOperationsAction, sl as operationFromOperation, sn as DocumentOperationsIgnoreMap, so as AddOperationErrorInputSchema, sr as MutationReorderModuleOperationsArgs, ss as SetNameActionInputSchema, st as AssertIsStateOfType, su as garbageCollectDocumentOperations, ta as SetOperationErrorDescriptionAction, td as Principal, ti as ReducerOptions, tl as documentModelActions, tn as DocumentModelPHState, to as applyDeleteDocumentAction, tr as MutationDeleteStateExampleArgs, ts as SetModelDescriptionInputSchema, tt as AddOperationInput, tu as checkCleanedOperationsIntegrity, ua as SetOperationReducerInput, ud as defaultBaseState, ui as ReorderModulesInput, ul as redo, un as EditorDispatch, uo as AddStateExampleInputSchema, ur as MutationReorderOperationExamplesArgs, us as SetOperationErrorCodeInputSchema, ut as ConfigEntry, uu as groupOperationsByScope, va as SetPreferredEditorActionInput, vd as PHDocumentSignatureInfo, vi as RevisionsFilter, vl as setAuthorName, vn as IDocument, vo as DeleteOperationExampleInputSchema, vr as MutationSetModelNameArgs, vs as SetOperationTemplateInputSchema, vt as CreateDocumentActionInput, vu as merge, wa as Signal, wi as SchemaPruneAction, wl as setModelName, wn as InputMaybe, wo as DocumentSpecificationSchema, wr as MutationSetOperationErrorDescriptionArgs, ws as StateSchema, wt as DeleteDocumentAction, wu as readOnly, xa as SetStateSchemaInput, xd as deserializeSignature, xi as Scalars, xl as setModelDescription, xn as ISignalResult, xo as DocumentActionSchema, xr as MutationSetNameArgs, xs as SetStateSchemaInputSchema, xt as DeleteChangeLogItemInput, xu as parseResultingState, ya as SetPreferredEditorOperation, yd as Signature, yi as SaveToFile, yl as setAuthorWebsite, yn as IOperation, yo as DeleteOperationInputSchema, yr as MutationSetModuleDescriptionArgs, ys as SetPreferredEditorActionInputSchema, yt as CreateState, yu as nextSkipNumber, za as UndoRedoAction, zc as addChangeLogItem, zi as SetModelExtensionInput, zl as setStateSchema, zn as MinimalBackupData, zo as PruneSchema, zr as OperationSpecification, zt as DocumentModelDocumentModelModule, zu as loadStateOperation } from "../types-CpnWmiFY.js";
2
+ import { $ as getFileBrowser, $n as mentionedGroupIds, $t as documentModelInitialLocalState, A as documentModelVersioningReducer, An as InitializeAuthActionInputSchema, At as isDocumentModelDocument, B as createVerificationSigner, Bn as SetGrantActionInputSchema, Bt as buildOperationSignatureMessage, C as documentModelModuleReducer, Cn as AuthRefusal, Ct as BaseDocumentHeaderSchema, D as documentModelReducer, Dn as ConditionContext, Dt as DocumentModelSchema, E as documentModelOperationReducer, En as AuthVerb, Et as DocumentModelPHStateSchema, F as replayOperations, Fn as RemoveGrantAction, Ft as DOCUMENT_DELETED_REASON, G as baseLoadFromInput, Gn as applySetGrantAction, Gt as HASH_ALGORITHM_SHA1, H as validateHeader, Hn as applyInitializeAuthAction, Ht as getUnixTimestamp, I as updateDocument, In as RemoveGrantActionInput, It as isDenied, J as createMinimalZip, Jn as decide, Jt as HASH_ENCODING_BASE64, K as baseLoadFromInputVersioned, Kn as assertAuthPreservedOnDuplicate, Kt as HASH_ALGORITHM_SHA256, L as createPresignedHeader, Ln as RemoveGrantActionInputSchema, Lt as ab2hex, M as createReducer, Mn as MoveGrantAction, Mt as AUTH_DENIED_BY_GRANT_REASON, N as processUndoRedo, Nn as MoveGrantActionInput, Nt as AUTH_NO_GRANT_REASON, O as documentModelStateReducer, On as InitializeAuthAction, Ot as assertIsDocumentModelDocument, P as pruneOperation, Pn as MoveGrantActionInputSchema, Pt as AUTH_VERSION_UNSUPPORTED_REASON, Q as fetchFileBrowser, Qn as isDocumentCreator, Qt as documentModelInitialGlobalState, R as createSignedHeader, Rn as SetGrantAction, Rt as base58Decode, S as documentModelHeaderReducer, Sn as AuthEvaluation, St as groupMembershipActionTypes, T as documentModelOperationExampleReducer, Tn as AuthSubject, Tt as DocumentModelHeaderSchema, U as verify, Un as applyMoveGrantAction, Ut as hashBrowser, V as sign, Vn as applyAuthAction, Vt as buildOperationSignatureParams, W as BulkArchiveEntry, Wn as applyRemoveGrantAction, Wt as hex2ab, X as documentModelLoadFromInput, Xn as initializeAuth, Xt as documentModelFileExtension, Y as createZip, Yn as evaluate, Yt as HASH_ENCODING_HEX, Z as documentModelSaveToFileHandle, Zn as isAuthAction, Zt as documentModelGlobalState, _ as validateModuleOperation, _n as isPlainValue, _t as InvalidActionInputZodError, a as assertOperationErrorIdUnique, an as MAX_AUTH_GRANTS, ar as TransportActionContext, at as VersionedReducers, b as validateOperations, bn as AuthAction, bt as documentModelDocumentType, c as findModuleOrThrow, cn as MAX_CONDITION_NODES, ct as AuthActionNotAllowedError, d as findOperationOrThrow, dn as assertValidGrantUpsert, dt as AuthPolicyNotPreservedError, en as AuthAdministrationLockoutError, er as moveGrant, et as isDocumentZip, f as getAllOperationNames, fn as assertValidInitialGrants, ft as DowngradeNotSupportedError, g as validateModule, gn as grantProblem, gt as InvalidActionInputError, h as validateInitialState, hn as evaluateGrants, ht as HashMismatchError, i as assertModuleIdUnique, in as InvalidGrantError, ir as TransportAction, it as zipEntries, j as baseReducer, jn as MAX_SUPPORTED_AUTH_VERSION, jt as isDocumentModelState, k as documentModelStateSchemaReducer, kn as InitializeAuthActionInput, kt as assertIsDocumentModelState, l as findOperationErrorOrThrow, ln as assertAuthAdministrationRetained, lt as AuthAlreadyInitializedError, m as isValidOperationNameFormat, mn as evaluateGrantStack, mt as GrantNotFoundError, n as RESERVED_OPERATION_NAMES, nn as GrantSchema, nr as resolveSnapshotAuth, nt as readFileBrowser, o as assertOperationExampleIdUnique, on as MAX_CAPABILITY_OPERATIONS, or as TransportSigner, ot as VersionedReplayConfig, p as isReservedOperationName, pn as evaluateCondition, pt as FileSystemError, q as baseSaveToFileHandle, qn as assertAuthScopeActionAllowed, qt as HASH_ALGORITHM_SHA512, r as ReservedOperationName, rn as GroupPrincipalNotAllowedError, rr as setGrant, rt as writeFileBrowser, s as assertOperationIdUnique, sn as MAX_CONDITION_DEPTH, sr as toTransportAction, st as replayDocumentVersioned, t as OPERATION_NAME_PATTERN, tn as AuthAdministrationMissingError, tr as removeGrant, tt as parseBulkArchive, u as findOperationExampleOrThrow, un as assertValidGrant, ut as AuthInitializerNotCreatorError, v as validateModules, vn as referencedGroupIds, vt as InvalidAuthVersionError, w as documentModelOperationErrorReducer, wn as AuthRequest, wt as BaseDocumentStateSchema, x as validateStateSchemaName, xn as AuthDecision, xt as groupDocumentType, y as validateOperationName, yn as AUTH_ACTION_TYPES, yt as UnsupportedDocumentModelVersionError, z as createSignedHeaderForSigner, zn as SetGrantActionInput, zt as base64UrlToBytes } from "../index-DyYIJtVy.js";
3
3
  import { n as generateId, r as generateMock, t as deriveOperationId } from "../utils-DP122OSS.js";
4
4
  export { AUTH_ACTION_TYPES, AUTH_DENIED_BY_GRANT_REASON, AUTH_NO_GRANT_REASON, AUTH_VERSION_UNSUPPORTED_REASON, Action, ActionContext, ActionErrorCallback, ActionSignatureContext, ActionSigner, ActionSigningHandler, ActionVerificationHandler, Actions, AddChangeLogItemAction, AddChangeLogItemInput, AddChangeLogItemInputSchema, AddModuleAction, AddModuleInput, AddModuleInputSchema, AddOperationAction, AddOperationErrorAction, AddOperationErrorInput, AddOperationErrorInputSchema, AddOperationExampleAction, AddOperationExampleInput, AddOperationExampleInputSchema, AddOperationInput, AddOperationInputSchema, AddRelationshipAction, AddRelationshipActionInput, AddStateExampleAction, AddStateExampleInput, AddStateExampleInputSchema, AppActionSigner, AssertIsDocumentOfType, AssertIsStateOfType, AuthAction, AuthActionNotAllowedError, AuthAdministrationLockoutError, AuthAdministrationMissingError, AuthAlreadyInitializedError, AuthDecision, AuthEvaluation, AuthGroups, AuthInitializerNotCreatorError, AuthPolicyNotPreservedError, AuthRefusal, AuthRequest, AuthSubject, AuthVerb, Author, AuthorSchema, BaseDocumentHeaderSchema, BaseDocumentStateSchema, BulkArchiveEntry, Capability, CodeExample, CodeExampleSchema, Condition, ConditionContext, ConfigEntry, ConfigEntrySchema, ConfigEntryType, ConfigEntryTypeSchema, CopyChildDocumentInput, CopyChildDocumentSignal, CreateChildDocumentInput, CreateChildDocumentSignal, CreateDocument, CreateDocumentAction, CreateDocumentActionInput, CreateState, DOCUMENT_DELETED_REASON, DeleteChangeLogItemAction, DeleteChangeLogItemInput, DeleteChangeLogItemInputSchema, DeleteChildDocumentInput, DeleteChildDocumentSignal, DeleteDocumentAction, DeleteDocumentActionInput, DeleteModuleAction, DeleteModuleInput, DeleteModuleInputSchema, DeleteOperationAction, DeleteOperationErrorAction, DeleteOperationErrorInput, DeleteOperationErrorInputSchema, DeleteOperationExampleAction, DeleteOperationExampleInput, DeleteOperationExampleInputSchema, DeleteOperationInput, DeleteOperationInputSchema, DeleteStateExampleAction, DeleteStateExampleInput, DeleteStateExampleInputSchema, DocumentAction, DocumentActionSchema, DocumentModelAction, DocumentModelDocument, DocumentModelDocumentModelModule, DocumentModelGlobalState, DocumentModelGlobalStateSchema, DocumentModelHeaderAction, DocumentModelHeaderOperations, DocumentModelHeaderSchema, DocumentModelInput, DocumentModelInputSchema, DocumentModelLib, DocumentModelLocalState, DocumentModelModule, DocumentModelModuleAction, DocumentModelModuleOperations, DocumentModelOperationAction, DocumentModelOperationErrorAction, DocumentModelOperationErrorOperations, DocumentModelOperationExampleAction, DocumentModelOperationExampleOperations, DocumentModelOperationOperations, DocumentModelPHState, DocumentModelPHStateSchema, DocumentModelSchema, DocumentModelStateAction, DocumentModelStateOperations, DocumentModelUtils, DocumentModelVersioningAction, DocumentModelVersioningOperations, DocumentOperations, DocumentOperationsIgnoreMap, DocumentSpecification, DocumentSpecificationSchema, DowngradeNotSupportedError, ENSInfo, EditorDispatch, EditorModule, EditorProps, Exact, FileInput, FileSystemError, GetDocumentOptions, Grant, GrantNotFoundError, GrantSchema, GroupPrincipalNotAllowedError, HASH_ALGORITHM_SHA1, HASH_ALGORITHM_SHA256, HASH_ALGORITHM_SHA512, HASH_ENCODING_BASE64, HASH_ENCODING_HEX, HashConfig, HashMismatchError, IAction, ID, IDocument, IOperation, ISignal, ISignalResult, ISigner, Incremental, InitializeAuthAction, InitializeAuthActionInput, InitializeAuthActionInputSchema, InputMaybe, IntegrityIssueSubType, IntegrityIssueType, InvalidActionInputError, InvalidActionInputZodError, InvalidAuthVersionError, InvalidGrantError, IsDocumentOfType, IsStateOfType, LoadFromFile, LoadFromInput, LoadStateAction, LoadStateActionInput, LoadStateActionInputSchema, LoadStateActionSchema, LoadStateActionStateInput, LoadStateActionStateInputSchema, Load_State, Load_StateSchema, MAX_AUTH_GRANTS, MAX_CAPABILITY_OPERATIONS, MAX_CONDITION_DEPTH, MAX_CONDITION_NODES, MAX_SUPPORTED_AUTH_VERSION, MakeEmpty, MakeMaybe, MakeOptional, Manifest, ManifestSchema, MappedOperation, Maybe, MinimalBackupData, ModuleSchema, ModuleSpecification, MoveGrantAction, MoveGrantActionInput, MoveGrantActionInputSchema, MoveOperationAction, MoveOperationInput, MoveOperationInputSchema, Mutation, MutationAddChangeLogItemInputArgs, MutationAddModuleArgs, MutationAddOperationArgs, MutationAddOperationErrorArgs, MutationAddOperationExampleArgs, MutationAddStateExampleArgs, MutationDeleteChangeLogItemInputArgs, MutationDeleteModuleArgs, MutationDeleteOperationArgs, MutationDeleteOperationErrorArgs, MutationDeleteOperationExampleArgs, MutationDeleteStateExampleArgs, MutationLoadStateArgs, MutationMoveOperationArgs, MutationPruneArgs, MutationRedoArgs, MutationReorderChangeLogItemsInputArgs, MutationReorderModuleOperationsArgs, MutationReorderModulesArgs, MutationReorderOperationErrorsArgs, MutationReorderOperationExamplesArgs, MutationReorderStateExamplesArgs, MutationSetAuthorNameArgs, MutationSetAuthorWebsiteArgs, MutationSetInitialStateArgs, MutationSetModelDescriptionArgs, MutationSetModelExtensionArgs, MutationSetModelIdArgs, MutationSetModelNameArgs, MutationSetModuleDescriptionArgs, MutationSetModuleNameArgs, MutationSetNameArgs, MutationSetOperationDescriptionArgs, MutationSetOperationErrorCodeArgs, MutationSetOperationErrorDescriptionArgs, MutationSetOperationErrorNameArgs, MutationSetOperationErrorTemplateArgs, MutationSetOperationNameArgs, MutationSetOperationReducerArgs, MutationSetOperationSchemaArgs, MutationSetOperationTemplateArgs, MutationSetStateSchemaArgs, MutationUndoArgs, MutationUpdateChangeLogItemInputArgs, MutationUpdateOperationExampleArgs, MutationUpdateStateExampleArgs, NOOPAction, OPERATION_NAME_PATTERN, Operand, Operation, OperationContext, OperationErrorSchema, OperationErrorSpecification, OperationIndex, OperationOutcome, OperationScopeSchema, OperationSpecification, OperationSpecificationSchema, OperationWithContext, OperationsByScope, PHAuthState, PHBaseState, PHDocument, PHDocumentHeader, PHDocumentMeta, PHDocumentSignatureInfo, PHDocumentState, PHGroupState, PartialRecord, PartialState, PhAiToolAnnotations, PhAiToolDescriptor, PowerhouseModule, PowerhouseModuleSchema, PowerhouseModulesSchema, Principal, Prune, PruneAction, PruneActionInput, PruneActionInputSchema, PruneActionSchema, PruneSchema, Publisher, PublisherSchema, PwaConfigSchema, Query, RESERVED_OPERATION_NAMES, Redo, RedoAction, RedoActionInput, RedoActionInputSchema, RedoActionSchema, RedoSchema, Reducer, ReducerOptions, ReleaseNewVersionAction, RemoveGrantAction, RemoveGrantActionInput, RemoveGrantActionInputSchema, RemoveRelationshipAction, RemoveRelationshipActionInput, ReorderChangeLogItemsAction, ReorderChangeLogItemsInput, ReorderChangeLogItemsInputSchema, ReorderModuleOperationsAction, ReorderModuleOperationsInput, ReorderModuleOperationsInputSchema, ReorderModulesAction, ReorderModulesInput, ReorderModulesInputSchema, ReorderOperationErrorsAction, ReorderOperationErrorsInput, ReorderOperationErrorsInputSchema, ReorderOperationExamplesAction, ReorderOperationExamplesInput, ReorderOperationExamplesInputSchema, ReorderStateExamplesAction, ReorderStateExamplesInput, ReorderStateExamplesInputSchema, ReplayDocumentOptions, ReservedOperationName, RevisionsFilter, SaveToFile, SaveToFileHandle, Scalars, SchemaLoadStateAction, SchemaNOOPAction, SchemaPruneAction, SchemaRedoAction, SchemaSetNameAction, SchemaSetPreferredEditorAction, SchemaUndoAction, ScopeState, ScopeStateSchema, SetAuthorNameAction, SetAuthorNameInput, SetAuthorNameInputSchema, SetAuthorWebsiteAction, SetAuthorWebsiteInput, SetAuthorWebsiteInputSchema, SetGrantAction, SetGrantActionInput, SetGrantActionInputSchema, SetInitialStateAction, SetInitialStateInput, SetInitialStateInputSchema, SetModelDescriptionAction, SetModelDescriptionInput, SetModelDescriptionInputSchema, SetModelExtensionAction, SetModelExtensionInput, SetModelExtensionInputSchema, SetModelIdAction, SetModelIdInput, SetModelIdInputSchema, SetModelNameAction, SetModelNameInput, SetModelNameInputSchema, SetModuleDescriptionAction, SetModuleDescriptionInput, SetModuleDescriptionInputSchema, SetModuleNameAction, SetModuleNameInput, SetModuleNameInputSchema, SetNameAction, SetNameActionInput, SetNameActionInputSchema, SetNameActionSchema, SetNameOperation, SetOperationDescriptionAction, SetOperationDescriptionInput, SetOperationDescriptionInputSchema, SetOperationErrorCodeAction, SetOperationErrorCodeInput, SetOperationErrorCodeInputSchema, SetOperationErrorDescriptionAction, SetOperationErrorDescriptionInput, SetOperationErrorDescriptionInputSchema, SetOperationErrorNameAction, SetOperationErrorNameInput, SetOperationErrorNameInputSchema, SetOperationErrorTemplateAction, SetOperationErrorTemplateInput, SetOperationErrorTemplateInputSchema, SetOperationNameAction, SetOperationNameInput, SetOperationNameInputSchema, SetOperationReducerAction, SetOperationReducerInput, SetOperationReducerInputSchema, SetOperationSchemaAction, SetOperationSchemaInput, SetOperationSchemaInputSchema, SetOperationScopeAction, SetOperationScopeInput, SetOperationScopeInputSchema, SetOperationTemplateAction, SetOperationTemplateInput, SetOperationTemplateInputSchema, SetPreferredEditorAction, SetPreferredEditorActionInput, SetPreferredEditorActionInputSchema, SetPreferredEditorActionSchema, SetPreferredEditorOperation, SetStateSchemaAction, SetStateSchemaInput, SetStateSchemaInputSchema, Set_Name, Set_NameSchema, Set_PreferredEditor, Set_PreferredEditorSchema, Signal, SignalDispatch, SignalResult, SignalResults, SignalType, Signature, SignatureVerificationHandler, SigningParameters, SkipHeaderOperationIndex, SkipHeaderOperations, State, StateReducer, StateSchema, SubgraphModule, TransportAction, TransportActionContext, TransportSigner, Undo, UndoAction, UndoActionInput, UndoActionInputSchema, UndoActionSchema, UndoRedoAction, UndoSchema, UnsupportedDocumentModelVersionError, UpdateChangeLogItemAction, UpdateChangeLogItemInput, UpdateChangeLogItemInputSchema, UpdateOperationExampleAction, UpdateOperationExampleInput, UpdateOperationExampleInputSchema, UpdateRelationshipAction, UpdateRelationshipActionInput, UpdateStateExampleAction, UpdateStateExampleInput, UpdateStateExampleInputSchema, UpgradeDocumentAction, UpgradeDocumentActionInput, UpgradeManifest, UpgradeReducer, UpgradeTransition, User, UserActionSigner, ValidationError, VersionedReducers, VersionedReplayConfig, ab2hex, actionContext, actionFromAction, actionSigner, actions, addChangeLogItem, addModule, addOperation, addOperationError, addOperationExample, addStateExample, addUndo, appendWithoutApplying, applyAuthAction, applyDeleteDocumentAction, applyInitializeAuthAction, applyMoveGrantAction, applyRemoveGrantAction, applySetGrantAction, applyUpgradeDocumentAction, assertAuthAdministrationRetained, assertAuthPreservedOnDuplicate, assertAuthScopeActionAllowed, assertIsDocumentModelDocument, assertIsDocumentModelState, assertModuleIdUnique, assertOperationErrorIdUnique, assertOperationExampleIdUnique, assertOperationIdUnique, assertValidGrant, assertValidGrantUpsert, assertValidInitialGrants, attachBranch, backfillAuthState, base58Decode, base64UrlToBytes, baseActions, baseCreateDocument, baseLoadFromInput, baseLoadFromInputVersioned, baseReducer, baseReducerVersion, baseSaveToFileHandle, buildOperationSignature, buildOperationSignatureMessage, buildOperationSignatureParams, buildSignedAction, checkCleanedOperationsIntegrity, checkOperationsIntegrity, computeUpgradeTransitions, createAction, createAuthState, createBaseState, createDocumentState, createGlobalState, createLocalState, createMinimalZip, createPresignedHeader, createReducer, createSignedHeader, createSignedHeaderForSigner, createState, createVerificationSigner, createZip, decide, defaultAuthState, defaultBaseState, defaultDocumentState, defaultGlobalState, defaultLocalState, defaultPHState, definedNonNullAnySchema, deleteChangeLogItem, deleteModule, deleteOperation, deleteOperationError, deleteOperationExample, deleteStateExample, deriveOperationId, deserializeSignature, diffOperations, documentModelActions, documentModelDocumentType, documentModelFileExtension, documentModelGlobalState, documentModelHeaderReducer, documentModelInitialGlobalState, documentModelInitialLocalState, documentModelLoadFromInput, documentModelModuleReducer, documentModelOperationErrorReducer, documentModelOperationExampleReducer, documentModelOperationReducer, documentModelReducer, documentModelSaveToFileHandle, documentModelStateReducer, documentModelStateSchemaReducer, documentModelVersioningReducer, evaluate, evaluateCondition, evaluateGrantStack, evaluateGrants, fetchFileBrowser, filterDocumentOperationsResultingState, filterDuplicatedOperations, findModuleOrThrow, findOperationErrorOrThrow, findOperationExampleOrThrow, findOperationOrThrow, garbageCollect, garbageCollectDocumentOperations, garbageCollectV2, generateId, generateMock, getAllOperationNames, getDocumentLastModified, getFileBrowser, getUnixTimestamp, grantProblem, groupDocumentType, groupMembershipActionTypes, groupOperationsByScope, hashBrowser, hashDocumentStateForScope, hex2ab, initializeAuth, isAuthAction, isDefinedNonNullAny, isDenied, isDocumentAction, isDocumentCreator, isDocumentModelDocument, isDocumentModelState, isDocumentZip, isNoopOperation, isPlainValue, isReservedOperationName, isUndo, isUndoRedo, isValidOperationNameFormat, loadState, loadStateOperation, mapSkippedOperations, mapSkippedOperationsV2, mentionedGroupIds, merge, moveGrant, moveOperation, nextSkipNumber, noop, normalizeDocumentModelVersion, operationExampleCreators, operationFromAction, operationFromOperation, operationOutcome, operationWithContext, operationsAreEqual, parseBulkArchive, parseResultingState, precedes, prepareOperations, processUndoRedo, prune, pruneOperation, readFileBrowser, readOnly, redo, redoOperation, referencedGroupIds, releaseNewVersion, removeExistingOperations, removeGrant, reorderChangeLogItems, reorderModuleOperations, reorderModules, reorderOperationErrors, reorderOperationExamples, reorderStateExamples, replayDocument, replayDocumentVersioned, replayOperations, reshuffleByTimestamp, reshuffleByTimestampAndIndex, resolveSnapshotAuth, serializeSignature, setAuthorName, setAuthorWebsite, setGrant, setInitialState, setModelDescription, setModelExtension, setModelId, setModelName, setModuleDescription, setModuleName, setName, setNameOperation, setOperationDescription, setOperationErrorCode, setOperationErrorDescription, setOperationErrorName, setOperationErrorTemplate, setOperationName, setOperationReducer, setOperationSchema, setOperationScope, setOperationTemplate, setPreferredEditor, setPreferredEditorOperation, setStateSchema, sign, skipHeaderOperations, sortMappedOperations, sortOperations, split, toTransportAction, undo, undoOperation, undoOperationV2, updateChangeLogItem, updateDocument, updateHeaderRevision, updateOperationExample, updateStateExample, validateHeader, validateInitialState, validateModule, validateModuleOperation, validateModules, validateOperationName, validateOperations, validateStateSchemaName, verify, verifyOperationSignature, writeFileBrowser, zipEntries };