@11ty/client 4.0.0-alpha.4 → 4.0.0-alpha.6

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,4 +1,4 @@
1
- /*! Eleventy v4.0.0-alpha.4 (@11ty/client/njk Engine Bundle) */
1
+ /*! Eleventy v4.0.0-alpha.6 (@11ty/client/njk Engine Bundle) */
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -966,7 +966,7 @@ var GLOBAL_FS_NAME, fs, mkdir, existsSync, mkdirSync, readFileSync, statSync, wr
966
966
  var init_shim_consume_fs = __esm({
967
967
  "../../node_modules/@11ty/package-bundler/shims/shim-consume-fs.js"() {
968
968
  GLOBAL_FS_NAME = "eleventyFileSystem";
969
- fs = window[GLOBAL_FS_NAME] || globalThis[GLOBAL_FS_NAME];
969
+ fs = typeof window !== "undefined" && window[GLOBAL_FS_NAME] || typeof globalThis !== "undefined" && globalThis[GLOBAL_FS_NAME];
970
970
  if (!fs) {
971
971
  let noopError = function() {
972
972
  throw new Error("This function was not included in your Eleventy bundle. Make sure you load memfs.js before using the virtual file system.");
@@ -1688,9 +1688,9 @@ var require_eleventy_utils = __commonJS({
1688
1688
  }
1689
1689
  });
1690
1690
 
1691
- // ../../node_modules/nunjucks/src/lib.js
1691
+ // ../../node_modules/@11ty/nunjucks/src/lib.js
1692
1692
  var require_lib = __commonJS({
1693
- "../../node_modules/nunjucks/src/lib.js"(exports, module) {
1693
+ "../../node_modules/@11ty/nunjucks/src/lib.js"(exports, module) {
1694
1694
  "use strict";
1695
1695
  var ArrayProto = Array.prototype;
1696
1696
  var ObjProto = Object.prototype;
@@ -2228,9 +2228,9 @@ var require_a_sync_waterfall = __commonJS({
2228
2228
  }
2229
2229
  });
2230
2230
 
2231
- // ../../node_modules/nunjucks/src/lexer.js
2231
+ // ../../node_modules/@11ty/nunjucks/src/lexer.js
2232
2232
  var require_lexer = __commonJS({
2233
- "../../node_modules/nunjucks/src/lexer.js"(exports, module) {
2233
+ "../../node_modules/@11ty/nunjucks/src/lexer.js"(exports, module) {
2234
2234
  "use strict";
2235
2235
  var lib = require_lib();
2236
2236
  var whitespaceChars = " \n \r\xA0";
@@ -2277,7 +2277,7 @@ var require_lexer = __commonJS({
2277
2277
  };
2278
2278
  }
2279
2279
  __name(token, "token");
2280
- var Tokenizer = /* @__PURE__ */ function() {
2280
+ var Tokenizer = /* @__PURE__ */ (function() {
2281
2281
  function Tokenizer2(str, opts) {
2282
2282
  this.str = str;
2283
2283
  this.index = 0;
@@ -2605,7 +2605,7 @@ var require_lexer = __commonJS({
2605
2605
  return this.str.charAt(this.index - 1);
2606
2606
  }, "previous");
2607
2607
  return Tokenizer2;
2608
- }();
2608
+ })();
2609
2609
  module.exports = {
2610
2610
  lex: /* @__PURE__ */ __name(function lex(src, opts) {
2611
2611
  return new Tokenizer(src, opts);
@@ -3026,55 +3026,45 @@ var require_events = __commonJS({
3026
3026
  }
3027
3027
  });
3028
3028
 
3029
- // ../../node_modules/nunjucks/src/object.js
3029
+ // ../../node_modules/@11ty/nunjucks/src/object.js
3030
3030
  var require_object = __commonJS({
3031
- "../../node_modules/nunjucks/src/object.js"(exports, module) {
3031
+ "../../node_modules/@11ty/nunjucks/src/object.js"(exports, module) {
3032
3032
  "use strict";
3033
- function _defineProperties(target, props) {
3034
- for (var i = 0; i < props.length; i++) {
3035
- var descriptor = props[i];
3036
- descriptor.enumerable = descriptor.enumerable || false;
3037
- descriptor.configurable = true;
3038
- if ("value" in descriptor) descriptor.writable = true;
3039
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
3033
+ function _defineProperties(e, r) {
3034
+ for (var t = 0; t < r.length; t++) {
3035
+ var o = r[t];
3036
+ o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
3040
3037
  }
3041
3038
  }
3042
3039
  __name(_defineProperties, "_defineProperties");
3043
- function _createClass(Constructor, protoProps, staticProps) {
3044
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
3045
- if (staticProps) _defineProperties(Constructor, staticProps);
3046
- Object.defineProperty(Constructor, "prototype", { writable: false });
3047
- return Constructor;
3040
+ function _createClass(e, r, t) {
3041
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: false }), e;
3048
3042
  }
3049
3043
  __name(_createClass, "_createClass");
3050
- function _toPropertyKey(arg) {
3051
- var key = _toPrimitive(arg, "string");
3052
- return typeof key === "symbol" ? key : String(key);
3044
+ function _toPropertyKey(t) {
3045
+ var i = _toPrimitive(t, "string");
3046
+ return "symbol" == typeof i ? i : i + "";
3053
3047
  }
3054
3048
  __name(_toPropertyKey, "_toPropertyKey");
3055
- function _toPrimitive(input, hint) {
3056
- if (typeof input !== "object" || input === null) return input;
3057
- var prim = input[Symbol.toPrimitive];
3058
- if (prim !== void 0) {
3059
- var res = prim.call(input, hint || "default");
3060
- if (typeof res !== "object") return res;
3049
+ function _toPrimitive(t, r) {
3050
+ if ("object" != typeof t || !t) return t;
3051
+ var e = t[Symbol.toPrimitive];
3052
+ if (void 0 !== e) {
3053
+ var i = e.call(t, r || "default");
3054
+ if ("object" != typeof i) return i;
3061
3055
  throw new TypeError("@@toPrimitive must return a primitive value.");
3062
3056
  }
3063
- return (hint === "string" ? String : Number)(input);
3057
+ return ("string" === r ? String : Number)(t);
3064
3058
  }
3065
3059
  __name(_toPrimitive, "_toPrimitive");
3066
- function _inheritsLoose(subClass, superClass) {
3067
- subClass.prototype = Object.create(superClass.prototype);
3068
- subClass.prototype.constructor = subClass;
3069
- _setPrototypeOf(subClass, superClass);
3060
+ function _inheritsLoose(t, o) {
3061
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
3070
3062
  }
3071
3063
  __name(_inheritsLoose, "_inheritsLoose");
3072
- function _setPrototypeOf(o, p) {
3073
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : /* @__PURE__ */ __name(function _setPrototypeOf2(o2, p2) {
3074
- o2.__proto__ = p2;
3075
- return o2;
3076
- }, "_setPrototypeOf");
3077
- return _setPrototypeOf(o, p);
3064
+ function _setPrototypeOf(t, e) {
3065
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
3066
+ return t2.__proto__ = e2, t2;
3067
+ }, _setPrototypeOf(t, e);
3078
3068
  }
3079
3069
  __name(_setPrototypeOf, "_setPrototypeOf");
3080
3070
  var EventEmitter = require_events();
@@ -3097,25 +3087,24 @@ var require_object = __commonJS({
3097
3087
  lib.keys(props).forEach(function(k) {
3098
3088
  props[k] = parentWrap(cls.prototype[k], props[k]);
3099
3089
  });
3100
- var subclass = /* @__PURE__ */ function(_cls) {
3101
- _inheritsLoose(subclass2, _cls);
3090
+ var subclass = /* @__PURE__ */ (function(_cls) {
3102
3091
  function subclass2() {
3103
3092
  return _cls.apply(this, arguments) || this;
3104
3093
  }
3105
3094
  __name(subclass2, "subclass");
3106
- _createClass(subclass2, [{
3095
+ _inheritsLoose(subclass2, _cls);
3096
+ return _createClass(subclass2, [{
3107
3097
  key: "typename",
3108
3098
  get: /* @__PURE__ */ __name(function get() {
3109
3099
  return name;
3110
3100
  }, "get")
3111
3101
  }]);
3112
- return subclass2;
3113
- }(cls);
3102
+ })(cls);
3114
3103
  lib._assign(subclass.prototype, props);
3115
3104
  return subclass;
3116
3105
  }
3117
3106
  __name(extendClass, "extendClass");
3118
- var Obj = /* @__PURE__ */ function() {
3107
+ var Obj = /* @__PURE__ */ (function() {
3119
3108
  function Obj2() {
3120
3109
  this.init.apply(this, arguments);
3121
3110
  }
@@ -3130,16 +3119,14 @@ var require_object = __commonJS({
3130
3119
  }
3131
3120
  return extendClass(this, name, props);
3132
3121
  }, "extend");
3133
- _createClass(Obj2, [{
3122
+ return _createClass(Obj2, [{
3134
3123
  key: "typename",
3135
3124
  get: /* @__PURE__ */ __name(function get() {
3136
3125
  return this.constructor.name;
3137
3126
  }, "get")
3138
3127
  }]);
3139
- return Obj2;
3140
- }();
3141
- var EmitterObj = /* @__PURE__ */ function(_EventEmitter) {
3142
- _inheritsLoose(EmitterObj2, _EventEmitter);
3128
+ })();
3129
+ var EmitterObj = /* @__PURE__ */ (function(_EventEmitter) {
3143
3130
  function EmitterObj2() {
3144
3131
  var _this2;
3145
3132
  var _this;
@@ -3148,6 +3135,7 @@ var require_object = __commonJS({
3148
3135
  return _this;
3149
3136
  }
3150
3137
  __name(EmitterObj2, "EmitterObj");
3138
+ _inheritsLoose(EmitterObj2, _EventEmitter);
3151
3139
  var _proto2 = EmitterObj2.prototype;
3152
3140
  _proto2.init = /* @__PURE__ */ __name(function init() {
3153
3141
  }, "init");
@@ -3158,14 +3146,13 @@ var require_object = __commonJS({
3158
3146
  }
3159
3147
  return extendClass(this, name, props);
3160
3148
  }, "extend");
3161
- _createClass(EmitterObj2, [{
3149
+ return _createClass(EmitterObj2, [{
3162
3150
  key: "typename",
3163
3151
  get: /* @__PURE__ */ __name(function get() {
3164
3152
  return this.constructor.name;
3165
3153
  }, "get")
3166
3154
  }]);
3167
- return EmitterObj2;
3168
- }(EventEmitter);
3155
+ })(EventEmitter);
3169
3156
  module.exports = {
3170
3157
  Obj,
3171
3158
  EmitterObj
@@ -3173,55 +3160,45 @@ var require_object = __commonJS({
3173
3160
  }
3174
3161
  });
3175
3162
 
3176
- // ../../node_modules/nunjucks/src/nodes.js
3163
+ // ../../node_modules/@11ty/nunjucks/src/nodes.js
3177
3164
  var require_nodes = __commonJS({
3178
- "../../node_modules/nunjucks/src/nodes.js"(exports, module) {
3165
+ "../../node_modules/@11ty/nunjucks/src/nodes.js"(exports, module) {
3179
3166
  "use strict";
3180
- function _defineProperties(target, props) {
3181
- for (var i = 0; i < props.length; i++) {
3182
- var descriptor = props[i];
3183
- descriptor.enumerable = descriptor.enumerable || false;
3184
- descriptor.configurable = true;
3185
- if ("value" in descriptor) descriptor.writable = true;
3186
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
3167
+ function _defineProperties(e, r) {
3168
+ for (var t = 0; t < r.length; t++) {
3169
+ var o = r[t];
3170
+ o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
3187
3171
  }
3188
3172
  }
3189
3173
  __name(_defineProperties, "_defineProperties");
3190
- function _createClass(Constructor, protoProps, staticProps) {
3191
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
3192
- if (staticProps) _defineProperties(Constructor, staticProps);
3193
- Object.defineProperty(Constructor, "prototype", { writable: false });
3194
- return Constructor;
3174
+ function _createClass(e, r, t) {
3175
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: false }), e;
3195
3176
  }
3196
3177
  __name(_createClass, "_createClass");
3197
- function _toPropertyKey(arg) {
3198
- var key = _toPrimitive(arg, "string");
3199
- return typeof key === "symbol" ? key : String(key);
3178
+ function _toPropertyKey(t) {
3179
+ var i = _toPrimitive(t, "string");
3180
+ return "symbol" == typeof i ? i : i + "";
3200
3181
  }
3201
3182
  __name(_toPropertyKey, "_toPropertyKey");
3202
- function _toPrimitive(input, hint) {
3203
- if (typeof input !== "object" || input === null) return input;
3204
- var prim = input[Symbol.toPrimitive];
3205
- if (prim !== void 0) {
3206
- var res = prim.call(input, hint || "default");
3207
- if (typeof res !== "object") return res;
3183
+ function _toPrimitive(t, r) {
3184
+ if ("object" != typeof t || !t) return t;
3185
+ var e = t[Symbol.toPrimitive];
3186
+ if (void 0 !== e) {
3187
+ var i = e.call(t, r || "default");
3188
+ if ("object" != typeof i) return i;
3208
3189
  throw new TypeError("@@toPrimitive must return a primitive value.");
3209
3190
  }
3210
- return (hint === "string" ? String : Number)(input);
3191
+ return ("string" === r ? String : Number)(t);
3211
3192
  }
3212
3193
  __name(_toPrimitive, "_toPrimitive");
3213
- function _inheritsLoose(subClass, superClass) {
3214
- subClass.prototype = Object.create(superClass.prototype);
3215
- subClass.prototype.constructor = subClass;
3216
- _setPrototypeOf(subClass, superClass);
3194
+ function _inheritsLoose(t, o) {
3195
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
3217
3196
  }
3218
3197
  __name(_inheritsLoose, "_inheritsLoose");
3219
- function _setPrototypeOf(o, p) {
3220
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : /* @__PURE__ */ __name(function _setPrototypeOf2(o2, p2) {
3221
- o2.__proto__ = p2;
3222
- return o2;
3223
- }, "_setPrototypeOf");
3224
- return _setPrototypeOf(o, p);
3198
+ function _setPrototypeOf(t, e) {
3199
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
3200
+ return t2.__proto__ = e2, t2;
3201
+ }, _setPrototypeOf(t, e);
3225
3202
  }
3226
3203
  __name(_setPrototypeOf, "_setPrototypeOf");
3227
3204
  var _require = require_object();
@@ -3235,12 +3212,12 @@ var require_nodes = __commonJS({
3235
3212
  }
3236
3213
  }
3237
3214
  __name(traverseAndCheck, "traverseAndCheck");
3238
- var Node = /* @__PURE__ */ function(_Obj) {
3239
- _inheritsLoose(Node2, _Obj);
3215
+ var Node = /* @__PURE__ */ (function(_Obj) {
3240
3216
  function Node2() {
3241
3217
  return _Obj.apply(this, arguments) || this;
3242
3218
  }
3243
3219
  __name(Node2, "Node");
3220
+ _inheritsLoose(Node2, _Obj);
3244
3221
  var _proto = Node2.prototype;
3245
3222
  _proto.init = /* @__PURE__ */ __name(function init(lineno, colno) {
3246
3223
  var _arguments = arguments, _this = this;
@@ -3278,14 +3255,14 @@ var require_nodes = __commonJS({
3278
3255
  });
3279
3256
  }, "iterFields");
3280
3257
  return Node2;
3281
- }(Obj);
3282
- var Value = /* @__PURE__ */ function(_Node) {
3283
- _inheritsLoose(Value2, _Node);
3258
+ })(Obj);
3259
+ var Value = /* @__PURE__ */ (function(_Node) {
3284
3260
  function Value2() {
3285
3261
  return _Node.apply(this, arguments) || this;
3286
3262
  }
3287
3263
  __name(Value2, "Value");
3288
- _createClass(Value2, [{
3264
+ _inheritsLoose(Value2, _Node);
3265
+ return _createClass(Value2, [{
3289
3266
  key: "typename",
3290
3267
  get: /* @__PURE__ */ __name(function get() {
3291
3268
  return "Value";
@@ -3296,14 +3273,13 @@ var require_nodes = __commonJS({
3296
3273
  return ["value"];
3297
3274
  }, "get")
3298
3275
  }]);
3299
- return Value2;
3300
- }(Node);
3301
- var NodeList = /* @__PURE__ */ function(_Node2) {
3302
- _inheritsLoose(NodeList2, _Node2);
3276
+ })(Node);
3277
+ var NodeList = /* @__PURE__ */ (function(_Node2) {
3303
3278
  function NodeList2() {
3304
3279
  return _Node2.apply(this, arguments) || this;
3305
3280
  }
3306
3281
  __name(NodeList2, "NodeList");
3282
+ _inheritsLoose(NodeList2, _Node2);
3307
3283
  var _proto2 = NodeList2.prototype;
3308
3284
  _proto2.init = /* @__PURE__ */ __name(function init(lineno, colno, nodes) {
3309
3285
  _Node2.prototype.init.call(this, lineno, colno, nodes || []);
@@ -3311,7 +3287,7 @@ var require_nodes = __commonJS({
3311
3287
  _proto2.addChild = /* @__PURE__ */ __name(function addChild(node) {
3312
3288
  this.children.push(node);
3313
3289
  }, "addChild");
3314
- _createClass(NodeList2, [{
3290
+ return _createClass(NodeList2, [{
3315
3291
  key: "typename",
3316
3292
  get: /* @__PURE__ */ __name(function get() {
3317
3293
  return "NodeList";
@@ -3322,8 +3298,7 @@ var require_nodes = __commonJS({
3322
3298
  return ["children"];
3323
3299
  }, "get")
3324
3300
  }]);
3325
- return NodeList2;
3326
- }(Node);
3301
+ })(Node);
3327
3302
  var Root = NodeList.extend("Root");
3328
3303
  var Literal = Value.extend("Literal");
3329
3304
  var _Symbol = Value.extend("Symbol");
@@ -3355,17 +3330,17 @@ var require_nodes = __commonJS({
3355
3330
  var Import = Node.extend("Import", {
3356
3331
  fields: ["template", "target", "withContext"]
3357
3332
  });
3358
- var FromImport = /* @__PURE__ */ function(_Node3) {
3359
- _inheritsLoose(FromImport2, _Node3);
3333
+ var FromImport = /* @__PURE__ */ (function(_Node3) {
3360
3334
  function FromImport2() {
3361
3335
  return _Node3.apply(this, arguments) || this;
3362
3336
  }
3363
3337
  __name(FromImport2, "FromImport");
3338
+ _inheritsLoose(FromImport2, _Node3);
3364
3339
  var _proto3 = FromImport2.prototype;
3365
3340
  _proto3.init = /* @__PURE__ */ __name(function init(lineno, colno, template, names, withContext) {
3366
3341
  _Node3.prototype.init.call(this, lineno, colno, template, names || new NodeList(), withContext);
3367
3342
  }, "init");
3368
- _createClass(FromImport2, [{
3343
+ return _createClass(FromImport2, [{
3369
3344
  key: "typename",
3370
3345
  get: /* @__PURE__ */ __name(function get() {
3371
3346
  return "FromImport";
@@ -3376,8 +3351,7 @@ var require_nodes = __commonJS({
3376
3351
  return ["template", "names", "withContext"];
3377
3352
  }, "get")
3378
3353
  }]);
3379
- return FromImport2;
3380
- }(Node);
3354
+ })(Node);
3381
3355
  var FunCall = Node.extend("FunCall", {
3382
3356
  fields: ["name", "args"]
3383
3357
  });
@@ -3566,34 +3540,30 @@ var require_nodes = __commonJS({
3566
3540
  }
3567
3541
  });
3568
3542
 
3569
- // ../../node_modules/nunjucks/src/parser.js
3543
+ // ../../node_modules/@11ty/nunjucks/src/parser.js
3570
3544
  var require_parser = __commonJS({
3571
- "../../node_modules/nunjucks/src/parser.js"(exports, module) {
3545
+ "../../node_modules/@11ty/nunjucks/src/parser.js"(exports, module) {
3572
3546
  "use strict";
3573
- function _inheritsLoose(subClass, superClass) {
3574
- subClass.prototype = Object.create(superClass.prototype);
3575
- subClass.prototype.constructor = subClass;
3576
- _setPrototypeOf(subClass, superClass);
3547
+ function _inheritsLoose(t, o) {
3548
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
3577
3549
  }
3578
3550
  __name(_inheritsLoose, "_inheritsLoose");
3579
- function _setPrototypeOf(o, p) {
3580
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : /* @__PURE__ */ __name(function _setPrototypeOf2(o2, p2) {
3581
- o2.__proto__ = p2;
3582
- return o2;
3583
- }, "_setPrototypeOf");
3584
- return _setPrototypeOf(o, p);
3551
+ function _setPrototypeOf(t, e) {
3552
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
3553
+ return t2.__proto__ = e2, t2;
3554
+ }, _setPrototypeOf(t, e);
3585
3555
  }
3586
3556
  __name(_setPrototypeOf, "_setPrototypeOf");
3587
3557
  var lexer = require_lexer();
3588
3558
  var nodes = require_nodes();
3589
3559
  var Obj = require_object().Obj;
3590
3560
  var lib = require_lib();
3591
- var Parser = /* @__PURE__ */ function(_Obj) {
3592
- _inheritsLoose(Parser2, _Obj);
3561
+ var Parser = /* @__PURE__ */ (function(_Obj) {
3593
3562
  function Parser2() {
3594
3563
  return _Obj.apply(this, arguments) || this;
3595
3564
  }
3596
3565
  __name(Parser2, "Parser");
3566
+ _inheritsLoose(Parser2, _Obj);
3597
3567
  var _proto = Parser2.prototype;
3598
3568
  _proto.init = /* @__PURE__ */ __name(function init(tokens) {
3599
3569
  this.tokens = tokens;
@@ -4493,7 +4463,7 @@ var require_parser = __commonJS({
4493
4463
  return new nodes.Root(0, 0, this.parseNodes());
4494
4464
  }, "parseAsRoot");
4495
4465
  return Parser2;
4496
- }(Obj);
4466
+ })(Obj);
4497
4467
  module.exports = {
4498
4468
  parse: /* @__PURE__ */ __name(function parse(src, extensions, opts) {
4499
4469
  var p = new Parser(lexer.lex(src, opts));
@@ -4507,9 +4477,9 @@ var require_parser = __commonJS({
4507
4477
  }
4508
4478
  });
4509
4479
 
4510
- // ../../node_modules/nunjucks/src/transformer.js
4480
+ // ../../node_modules/@11ty/nunjucks/src/transformer.js
4511
4481
  var require_transformer = __commonJS({
4512
- "../../node_modules/nunjucks/src/transformer.js"(exports, module) {
4482
+ "../../node_modules/@11ty/nunjucks/src/transformer.js"(exports, module) {
4513
4483
  "use strict";
4514
4484
  var nodes = require_nodes();
4515
4485
  var lib = require_lib();
@@ -4678,14 +4648,14 @@ var require_transformer = __commonJS({
4678
4648
  }
4679
4649
  });
4680
4650
 
4681
- // ../../node_modules/nunjucks/src/runtime.js
4651
+ // ../../node_modules/@11ty/nunjucks/src/runtime.js
4682
4652
  var require_runtime = __commonJS({
4683
- "../../node_modules/nunjucks/src/runtime.js"(exports, module) {
4653
+ "../../node_modules/@11ty/nunjucks/src/runtime.js"(exports, module) {
4684
4654
  "use strict";
4685
4655
  var lib = require_lib();
4686
4656
  var arrayFrom = Array.from;
4687
4657
  var supportsIterators = typeof Symbol === "function" && Symbol.iterator && typeof arrayFrom === "function";
4688
- var Frame = /* @__PURE__ */ function() {
4658
+ var Frame = /* @__PURE__ */ (function() {
4689
4659
  function Frame2(parent, isolateWrites) {
4690
4660
  this.variables = /* @__PURE__ */ Object.create(null);
4691
4661
  this.parent = parent;
@@ -4743,7 +4713,7 @@ var require_runtime = __commonJS({
4743
4713
  return this.parent;
4744
4714
  }, "pop");
4745
4715
  return Frame2;
4746
- }();
4716
+ })();
4747
4717
  function makeMacro(argNames, kwargNames, func) {
4748
4718
  return /* @__PURE__ */ __name(function macro() {
4749
4719
  for (var _len = arguments.length, macroArgs = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -5016,22 +4986,18 @@ var require_runtime = __commonJS({
5016
4986
  }
5017
4987
  });
5018
4988
 
5019
- // ../../node_modules/nunjucks/src/compiler.js
4989
+ // ../../node_modules/@11ty/nunjucks/src/compiler.js
5020
4990
  var require_compiler = __commonJS({
5021
- "../../node_modules/nunjucks/src/compiler.js"(exports, module) {
4991
+ "../../node_modules/@11ty/nunjucks/src/compiler.js"(exports, module) {
5022
4992
  "use strict";
5023
- function _inheritsLoose(subClass, superClass) {
5024
- subClass.prototype = Object.create(superClass.prototype);
5025
- subClass.prototype.constructor = subClass;
5026
- _setPrototypeOf(subClass, superClass);
4993
+ function _inheritsLoose(t, o) {
4994
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
5027
4995
  }
5028
4996
  __name(_inheritsLoose, "_inheritsLoose");
5029
- function _setPrototypeOf(o, p) {
5030
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : /* @__PURE__ */ __name(function _setPrototypeOf2(o2, p2) {
5031
- o2.__proto__ = p2;
5032
- return o2;
5033
- }, "_setPrototypeOf");
5034
- return _setPrototypeOf(o, p);
4997
+ function _setPrototypeOf(t, e) {
4998
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
4999
+ return t2.__proto__ = e2, t2;
5000
+ }, _setPrototypeOf(t, e);
5035
5001
  }
5036
5002
  __name(_setPrototypeOf, "_setPrototypeOf");
5037
5003
  var parser = require_parser();
@@ -5053,12 +5019,12 @@ var require_compiler = __commonJS({
5053
5019
  "<=": "<=",
5054
5020
  ">=": ">="
5055
5021
  };
5056
- var Compiler = /* @__PURE__ */ function(_Obj) {
5057
- _inheritsLoose(Compiler2, _Obj);
5022
+ var Compiler = /* @__PURE__ */ (function(_Obj) {
5058
5023
  function Compiler2() {
5059
5024
  return _Obj.apply(this, arguments) || this;
5060
5025
  }
5061
5026
  __name(Compiler2, "Compiler");
5027
+ _inheritsLoose(Compiler2, _Obj);
5062
5028
  var _proto = Compiler2.prototype;
5063
5029
  _proto.init = /* @__PURE__ */ __name(function init(templateName, throwOnUndefined) {
5064
5030
  this.templateName = templateName;
@@ -5549,7 +5515,7 @@ var require_compiler = __commonJS({
5549
5515
  });
5550
5516
  }, "_emitLoopBindings");
5551
5517
  _proto.compileFor = /* @__PURE__ */ __name(function compileFor(node, frame) {
5552
- var _this10 = this;
5518
+ var _this0 = this;
5553
5519
  var i = this._tmpid();
5554
5520
  var len = this._tmpid();
5555
5521
  var arr = this._tmpid();
@@ -5566,14 +5532,14 @@ var require_compiler = __commonJS({
5566
5532
  this._emitLine("var " + len + " = " + arr + ".length;");
5567
5533
  this._emitLine("for(" + i + "=0; " + i + " < " + arr + ".length; " + i + "++) {");
5568
5534
  node.name.children.forEach(function(child, u) {
5569
- var tid = _this10._tmpid();
5570
- _this10._emitLine("var " + tid + " = " + arr + "[" + i + "][" + u + "];");
5571
- _this10._emitLine('frame.set("' + child + '", ' + arr + "[" + i + "][" + u + "]);");
5535
+ var tid = _this0._tmpid();
5536
+ _this0._emitLine("var " + tid + " = " + arr + "[" + i + "][" + u + "];");
5537
+ _this0._emitLine('frame.set("' + child + '", ' + arr + "[" + i + "][" + u + "]);");
5572
5538
  frame.set(node.name.children[u].value, tid);
5573
5539
  });
5574
5540
  this._emitLoopBindings(node, arr, i, len);
5575
5541
  this._withScopedSyntax(function() {
5576
- _this10.compile(node.body, frame);
5542
+ _this0.compile(node.body, frame);
5577
5543
  });
5578
5544
  this._emitLine("}");
5579
5545
  this._emitLine("} else {");
@@ -5591,7 +5557,7 @@ var require_compiler = __commonJS({
5591
5557
  this._emitLine('frame.set("' + val.value + '", ' + v + ");");
5592
5558
  this._emitLoopBindings(node, arr, i, len);
5593
5559
  this._withScopedSyntax(function() {
5594
- _this10.compile(node.body, frame);
5560
+ _this0.compile(node.body, frame);
5595
5561
  });
5596
5562
  this._emitLine("}");
5597
5563
  this._emitLine("}");
@@ -5604,7 +5570,7 @@ var require_compiler = __commonJS({
5604
5570
  this._emitLine('frame.set("' + node.name.value + '", ' + _v + ");");
5605
5571
  this._emitLoopBindings(node, arr, i, len);
5606
5572
  this._withScopedSyntax(function() {
5607
- _this10.compile(node.body, frame);
5573
+ _this0.compile(node.body, frame);
5608
5574
  });
5609
5575
  this._emitLine("}");
5610
5576
  }
@@ -5617,7 +5583,7 @@ var require_compiler = __commonJS({
5617
5583
  this._emitLine("frame = frame.pop();");
5618
5584
  }, "compileFor");
5619
5585
  _proto._compileAsyncLoop = /* @__PURE__ */ __name(function _compileAsyncLoop(node, frame, parallel) {
5620
- var _this11 = this;
5586
+ var _this1 = this;
5621
5587
  var i = this._tmpid();
5622
5588
  var len = this._tmpid();
5623
5589
  var arr = this._tmpid();
@@ -5631,13 +5597,13 @@ var require_compiler = __commonJS({
5631
5597
  var arrayLen = node.name.children.length;
5632
5598
  this._emit("runtime." + asyncMethod + "(" + arr + ", " + arrayLen + ", function(");
5633
5599
  node.name.children.forEach(function(name) {
5634
- _this11._emit(name.value + ",");
5600
+ _this1._emit(name.value + ",");
5635
5601
  });
5636
5602
  this._emit(i + "," + len + ",next) {");
5637
5603
  node.name.children.forEach(function(name) {
5638
5604
  var id2 = name.value;
5639
5605
  frame.set(id2, id2);
5640
- _this11._emitLine('frame.set("' + id2 + '", ' + id2 + ");");
5606
+ _this1._emitLine('frame.set("' + id2 + '", ' + id2 + ");");
5641
5607
  });
5642
5608
  } else {
5643
5609
  var id = node.name.value;
@@ -5649,12 +5615,12 @@ var require_compiler = __commonJS({
5649
5615
  this._withScopedSyntax(function() {
5650
5616
  var buf;
5651
5617
  if (parallel) {
5652
- buf = _this11._pushBuffer();
5618
+ buf = _this1._pushBuffer();
5653
5619
  }
5654
- _this11.compile(node.body, frame);
5655
- _this11._emitLine("next(" + i + (buf ? "," + buf : "") + ");");
5620
+ _this1.compile(node.body, frame);
5621
+ _this1._emitLine("next(" + i + (buf ? "," + buf : "") + ");");
5656
5622
  if (parallel) {
5657
- _this11._popBuffer();
5623
+ _this1._popBuffer();
5658
5624
  }
5659
5625
  });
5660
5626
  var output = this._tmpid();
@@ -5677,7 +5643,7 @@ var require_compiler = __commonJS({
5677
5643
  this._compileAsyncLoop(node, frame, true);
5678
5644
  }, "compileAsyncAll");
5679
5645
  _proto._compileMacro = /* @__PURE__ */ __name(function _compileMacro(node, frame) {
5680
- var _this12 = this;
5646
+ var _this10 = this;
5681
5647
  var args = [];
5682
5648
  var kwargs = null;
5683
5649
  var funcId = "macro_" + this._tmpid();
@@ -5686,7 +5652,7 @@ var require_compiler = __commonJS({
5686
5652
  if (i === node.args.children.length - 1 && arg instanceof nodes.Dict) {
5687
5653
  kwargs = arg;
5688
5654
  } else {
5689
- _this12.assertType(arg, nodes.Symbol);
5655
+ _this10.assertType(arg, nodes.Symbol);
5690
5656
  args.push(arg);
5691
5657
  }
5692
5658
  });
@@ -5707,22 +5673,22 @@ var require_compiler = __commonJS({
5707
5673
  }
5708
5674
  this._emitLines("var " + funcId + " = runtime.makeMacro(", "[" + argNames.join(", ") + "], ", "[" + kwargNames.join(", ") + "], ", "function (" + realNames.join(", ") + ") {", "var callerFrame = frame;", "frame = " + (keepFrame ? "frame.push(true);" : "new runtime.Frame();"), "kwargs = kwargs || {};", 'if (Object.prototype.hasOwnProperty.call(kwargs, "caller")) {', 'frame.set("caller", kwargs.caller); }');
5709
5675
  args.forEach(function(arg) {
5710
- _this12._emitLine('frame.set("' + arg.value + '", l_' + arg.value + ");");
5676
+ _this10._emitLine('frame.set("' + arg.value + '", l_' + arg.value + ");");
5711
5677
  currFrame.set(arg.value, "l_" + arg.value);
5712
5678
  });
5713
5679
  if (kwargs) {
5714
5680
  kwargs.children.forEach(function(pair) {
5715
5681
  var name = pair.key.value;
5716
- _this12._emit('frame.set("' + name + '", ');
5717
- _this12._emit('Object.prototype.hasOwnProperty.call(kwargs, "' + name + '")');
5718
- _this12._emit(' ? kwargs["' + name + '"] : ');
5719
- _this12._compileExpression(pair.value, currFrame);
5720
- _this12._emit(");");
5682
+ _this10._emit('frame.set("' + name + '", ');
5683
+ _this10._emit('Object.prototype.hasOwnProperty.call(kwargs, "' + name + '")');
5684
+ _this10._emit(' ? kwargs["' + name + '"] : ');
5685
+ _this10._compileExpression(pair.value, currFrame);
5686
+ _this10._emit(");");
5721
5687
  });
5722
5688
  }
5723
5689
  var bufferId = this._pushBuffer();
5724
5690
  this._withScopedSyntax(function() {
5725
- _this12.compile(node.body, currFrame);
5691
+ _this10.compile(node.body, currFrame);
5726
5692
  });
5727
5693
  this._emitLine("frame = " + (keepFrame ? "frame.pop();" : "callerFrame;"));
5728
5694
  this._emitLine("return new runtime.SafeString(" + bufferId + ");");
@@ -5773,7 +5739,7 @@ var require_compiler = __commonJS({
5773
5739
  }
5774
5740
  }, "compileImport");
5775
5741
  _proto.compileFromImport = /* @__PURE__ */ __name(function compileFromImport(node, frame) {
5776
- var _this13 = this;
5742
+ var _this11 = this;
5777
5743
  var importedId = this._compileGetTemplate(node, frame, false, false);
5778
5744
  this._addScopeLevel();
5779
5745
  this._emitLine(importedId + ".getExported(" + (node.withContext ? "context.getVariables(), frame, " : "") + this._makeCallback(importedId));
@@ -5781,7 +5747,7 @@ var require_compiler = __commonJS({
5781
5747
  node.names.children.forEach(function(nameNode) {
5782
5748
  var name;
5783
5749
  var alias;
5784
- var id = _this13._tmpid();
5750
+ var id = _this11._tmpid();
5785
5751
  if (nameNode instanceof nodes.Pair) {
5786
5752
  name = nameNode.key.value;
5787
5753
  alias = nameNode.value.value;
@@ -5789,16 +5755,16 @@ var require_compiler = __commonJS({
5789
5755
  name = nameNode.value;
5790
5756
  alias = name;
5791
5757
  }
5792
- _this13._emitLine("if(Object.prototype.hasOwnProperty.call(" + importedId + ', "' + name + '")) {');
5793
- _this13._emitLine("var " + id + " = " + importedId + "." + name + ";");
5794
- _this13._emitLine("} else {");
5795
- _this13._emitLine(`cb(new Error("cannot import '` + name + `'")); return;`);
5796
- _this13._emitLine("}");
5758
+ _this11._emitLine("if(Object.prototype.hasOwnProperty.call(" + importedId + ', "' + name + '")) {');
5759
+ _this11._emitLine("var " + id + " = " + importedId + "." + name + ";");
5760
+ _this11._emitLine("} else {");
5761
+ _this11._emitLine(`cb(new Error("cannot import '` + name + `'")); return;`);
5762
+ _this11._emitLine("}");
5797
5763
  frame.set(alias, id);
5798
5764
  if (frame.parent) {
5799
- _this13._emitLine('frame.set("' + alias + '", ' + id + ");");
5765
+ _this11._emitLine('frame.set("' + alias + '", ' + id + ");");
5800
5766
  } else {
5801
- _this13._emitLine('context.setVariable("' + alias + '", ' + id + ");");
5767
+ _this11._emitLine('context.setVariable("' + alias + '", ' + id + ");");
5802
5768
  }
5803
5769
  });
5804
5770
  }, "compileFromImport");
@@ -5858,43 +5824,43 @@ var require_compiler = __commonJS({
5858
5824
  this.compileLiteral(node, frame);
5859
5825
  }, "compileTemplateData");
5860
5826
  _proto.compileCapture = /* @__PURE__ */ __name(function compileCapture(node, frame) {
5861
- var _this14 = this;
5827
+ var _this12 = this;
5862
5828
  var buffer = this.buffer;
5863
5829
  this.buffer = "output";
5864
5830
  this._emitLine("(function() {");
5865
5831
  this._emitLine('var output = "";');
5866
5832
  this._withScopedSyntax(function() {
5867
- _this14.compile(node.body, frame);
5833
+ _this12.compile(node.body, frame);
5868
5834
  });
5869
5835
  this._emitLine("return output;");
5870
5836
  this._emitLine("})()");
5871
5837
  this.buffer = buffer;
5872
5838
  }, "compileCapture");
5873
5839
  _proto.compileOutput = /* @__PURE__ */ __name(function compileOutput(node, frame) {
5874
- var _this15 = this;
5840
+ var _this13 = this;
5875
5841
  var children = node.children;
5876
5842
  children.forEach(function(child) {
5877
5843
  if (child instanceof nodes.TemplateData) {
5878
5844
  if (child.value) {
5879
- _this15._emit(_this15.buffer + " += ");
5880
- _this15.compileLiteral(child, frame);
5881
- _this15._emitLine(";");
5845
+ _this13._emit(_this13.buffer + " += ");
5846
+ _this13.compileLiteral(child, frame);
5847
+ _this13._emitLine(";");
5882
5848
  }
5883
5849
  } else {
5884
- _this15._emit(_this15.buffer + " += runtime.suppressValue(");
5885
- if (_this15.throwOnUndefined) {
5886
- _this15._emit("runtime.ensureDefined(");
5850
+ _this13._emit(_this13.buffer + " += runtime.suppressValue(");
5851
+ if (_this13.throwOnUndefined) {
5852
+ _this13._emit("runtime.ensureDefined(");
5887
5853
  }
5888
- _this15.compile(child, frame);
5889
- if (_this15.throwOnUndefined) {
5890
- _this15._emit("," + node.lineno + "," + node.colno + ")");
5854
+ _this13.compile(child, frame);
5855
+ if (_this13.throwOnUndefined) {
5856
+ _this13._emit("," + node.lineno + "," + node.colno + ")");
5891
5857
  }
5892
- _this15._emit(", env.opts.autoescape);\n");
5858
+ _this13._emit(", env.opts.autoescape);\n");
5893
5859
  }
5894
5860
  });
5895
5861
  }, "compileOutput");
5896
5862
  _proto.compileRoot = /* @__PURE__ */ __name(function compileRoot(node, frame) {
5897
- var _this16 = this;
5863
+ var _this14 = this;
5898
5864
  if (frame) {
5899
5865
  this.fail("compileRoot: root node can't have frame");
5900
5866
  }
@@ -5917,16 +5883,16 @@ var require_compiler = __commonJS({
5917
5883
  throw new Error('Block "' + name + '" defined more than once.');
5918
5884
  }
5919
5885
  blockNames.push(name);
5920
- _this16._emitFuncBegin(block, "b_" + name);
5886
+ _this14._emitFuncBegin(block, "b_" + name);
5921
5887
  var tmpFrame = new Frame();
5922
- _this16._emitLine("var frame = frame.push(true);");
5923
- _this16.compile(block.body, tmpFrame);
5924
- _this16._emitFuncEnd();
5888
+ _this14._emitLine("var frame = frame.push(true);");
5889
+ _this14.compile(block.body, tmpFrame);
5890
+ _this14._emitFuncEnd();
5925
5891
  });
5926
5892
  this._emitLine("return {");
5927
5893
  blocks.forEach(function(block, i) {
5928
5894
  var blockName = "b_" + block.name.value;
5929
- _this16._emitLine(blockName + ": " + blockName + ",");
5895
+ _this14._emitLine(blockName + ": " + blockName + ",");
5930
5896
  });
5931
5897
  this._emitLine("root: root\n};");
5932
5898
  }, "compileRoot");
@@ -5942,7 +5908,7 @@ var require_compiler = __commonJS({
5942
5908
  return this.codebuf.join("");
5943
5909
  }, "getCode");
5944
5910
  return Compiler2;
5945
- }(Obj);
5911
+ })(Obj);
5946
5912
  module.exports = {
5947
5913
  compile: /* @__PURE__ */ __name(function compile(src, asyncFilters, extensions, name, opts) {
5948
5914
  if (opts === void 0) {
@@ -5965,9 +5931,9 @@ var require_compiler = __commonJS({
5965
5931
  }
5966
5932
  });
5967
5933
 
5968
- // ../../node_modules/nunjucks/src/filters.js
5934
+ // ../../node_modules/@11ty/nunjucks/src/filters.js
5969
5935
  var require_filters = __commonJS({
5970
- "../../node_modules/nunjucks/src/filters.js"(exports, module) {
5936
+ "../../node_modules/@11ty/nunjucks/src/filters.js"(exports, module) {
5971
5937
  "use strict";
5972
5938
  var lib = require_lib();
5973
5939
  var r = require_runtime();
@@ -6494,33 +6460,29 @@ var require_filters = __commonJS({
6494
6460
  }
6495
6461
  });
6496
6462
 
6497
- // ../../node_modules/nunjucks/src/loader.js
6463
+ // ../../node_modules/@11ty/nunjucks/src/loader.js
6498
6464
  var require_loader = __commonJS({
6499
- "../../node_modules/nunjucks/src/loader.js"(exports, module) {
6465
+ "../../node_modules/@11ty/nunjucks/src/loader.js"(exports, module) {
6500
6466
  "use strict";
6501
- function _inheritsLoose(subClass, superClass) {
6502
- subClass.prototype = Object.create(superClass.prototype);
6503
- subClass.prototype.constructor = subClass;
6504
- _setPrototypeOf(subClass, superClass);
6467
+ function _inheritsLoose(t, o) {
6468
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
6505
6469
  }
6506
6470
  __name(_inheritsLoose, "_inheritsLoose");
6507
- function _setPrototypeOf(o, p) {
6508
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : /* @__PURE__ */ __name(function _setPrototypeOf2(o2, p2) {
6509
- o2.__proto__ = p2;
6510
- return o2;
6511
- }, "_setPrototypeOf");
6512
- return _setPrototypeOf(o, p);
6471
+ function _setPrototypeOf(t, e) {
6472
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
6473
+ return t2.__proto__ = e2, t2;
6474
+ }, _setPrototypeOf(t, e);
6513
6475
  }
6514
6476
  __name(_setPrototypeOf, "_setPrototypeOf");
6515
6477
  var path = require_path();
6516
6478
  var _require = require_object();
6517
6479
  var EmitterObj = _require.EmitterObj;
6518
- module.exports = /* @__PURE__ */ function(_EmitterObj) {
6519
- _inheritsLoose(Loader, _EmitterObj);
6480
+ module.exports = /* @__PURE__ */ (function(_EmitterObj) {
6520
6481
  function Loader() {
6521
6482
  return _EmitterObj.apply(this, arguments) || this;
6522
6483
  }
6523
6484
  __name(Loader, "Loader");
6485
+ _inheritsLoose(Loader, _EmitterObj);
6524
6486
  var _proto = Loader.prototype;
6525
6487
  _proto.resolve = /* @__PURE__ */ __name(function resolve(from, to) {
6526
6488
  return path.resolve(path.dirname(from), to);
@@ -6529,31 +6491,26 @@ var require_loader = __commonJS({
6529
6491
  return filename.indexOf("./") === 0 || filename.indexOf("../") === 0;
6530
6492
  }, "isRelative");
6531
6493
  return Loader;
6532
- }(EmitterObj);
6494
+ })(EmitterObj);
6533
6495
  }
6534
6496
  });
6535
6497
 
6536
- // ../../node_modules/nunjucks/src/precompiled-loader.js
6498
+ // ../../node_modules/@11ty/nunjucks/src/precompiled-loader.js
6537
6499
  var require_precompiled_loader = __commonJS({
6538
- "../../node_modules/nunjucks/src/precompiled-loader.js"(exports, module) {
6500
+ "../../node_modules/@11ty/nunjucks/src/precompiled-loader.js"(exports, module) {
6539
6501
  "use strict";
6540
- function _inheritsLoose(subClass, superClass) {
6541
- subClass.prototype = Object.create(superClass.prototype);
6542
- subClass.prototype.constructor = subClass;
6543
- _setPrototypeOf(subClass, superClass);
6502
+ function _inheritsLoose(t, o) {
6503
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
6544
6504
  }
6545
6505
  __name(_inheritsLoose, "_inheritsLoose");
6546
- function _setPrototypeOf(o, p) {
6547
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : /* @__PURE__ */ __name(function _setPrototypeOf2(o2, p2) {
6548
- o2.__proto__ = p2;
6549
- return o2;
6550
- }, "_setPrototypeOf");
6551
- return _setPrototypeOf(o, p);
6506
+ function _setPrototypeOf(t, e) {
6507
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
6508
+ return t2.__proto__ = e2, t2;
6509
+ }, _setPrototypeOf(t, e);
6552
6510
  }
6553
6511
  __name(_setPrototypeOf, "_setPrototypeOf");
6554
6512
  var Loader = require_loader();
6555
- var PrecompiledLoader = /* @__PURE__ */ function(_Loader) {
6556
- _inheritsLoose(PrecompiledLoader2, _Loader);
6513
+ var PrecompiledLoader = /* @__PURE__ */ (function(_Loader) {
6557
6514
  function PrecompiledLoader2(compiledTemplates) {
6558
6515
  var _this;
6559
6516
  _this = _Loader.call(this) || this;
@@ -6561,6 +6518,7 @@ var require_precompiled_loader = __commonJS({
6561
6518
  return _this;
6562
6519
  }
6563
6520
  __name(PrecompiledLoader2, "PrecompiledLoader");
6521
+ _inheritsLoose(PrecompiledLoader2, _Loader);
6564
6522
  var _proto = PrecompiledLoader2.prototype;
6565
6523
  _proto.getSource = /* @__PURE__ */ __name(function getSource(name) {
6566
6524
  if (this.precompiled[name]) {
@@ -6575,29 +6533,25 @@ var require_precompiled_loader = __commonJS({
6575
6533
  return null;
6576
6534
  }, "getSource");
6577
6535
  return PrecompiledLoader2;
6578
- }(Loader);
6536
+ })(Loader);
6579
6537
  module.exports = {
6580
6538
  PrecompiledLoader
6581
6539
  };
6582
6540
  }
6583
6541
  });
6584
6542
 
6585
- // ../../node_modules/nunjucks/src/node-loaders.js
6543
+ // ../../node_modules/@11ty/nunjucks/src/node-loaders.js
6586
6544
  var require_node_loaders = __commonJS({
6587
- "../../node_modules/nunjucks/src/node-loaders.js"(exports, module) {
6545
+ "../../node_modules/@11ty/nunjucks/src/node-loaders.js"(exports, module) {
6588
6546
  "use strict";
6589
- function _inheritsLoose(subClass, superClass) {
6590
- subClass.prototype = Object.create(superClass.prototype);
6591
- subClass.prototype.constructor = subClass;
6592
- _setPrototypeOf(subClass, superClass);
6547
+ function _inheritsLoose(t, o) {
6548
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
6593
6549
  }
6594
6550
  __name(_inheritsLoose, "_inheritsLoose");
6595
- function _setPrototypeOf(o, p) {
6596
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : /* @__PURE__ */ __name(function _setPrototypeOf2(o2, p2) {
6597
- o2.__proto__ = p2;
6598
- return o2;
6599
- }, "_setPrototypeOf");
6600
- return _setPrototypeOf(o, p);
6551
+ function _setPrototypeOf(t, e) {
6552
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
6553
+ return t2.__proto__ = e2, t2;
6554
+ }, _setPrototypeOf(t, e);
6601
6555
  }
6602
6556
  __name(_setPrototypeOf, "_setPrototypeOf");
6603
6557
  var fs2 = (init_shim_consume_fs(), __toCommonJS(shim_consume_fs_exports));
@@ -6605,9 +6559,7 @@ var require_node_loaders = __commonJS({
6605
6559
  var Loader = require_loader();
6606
6560
  var _require = require_precompiled_loader();
6607
6561
  var PrecompiledLoader = _require.PrecompiledLoader;
6608
- var chokidar;
6609
- var FileSystemLoader2 = /* @__PURE__ */ function(_Loader) {
6610
- _inheritsLoose(FileSystemLoader3, _Loader);
6562
+ var FileSystemLoader2 = /* @__PURE__ */ (function(_Loader) {
6611
6563
  function FileSystemLoader3(searchPaths, opts) {
6612
6564
  var _this;
6613
6565
  _this = _Loader.call(this) || this;
@@ -6624,26 +6576,12 @@ var require_node_loaders = __commonJS({
6624
6576
  _this.searchPaths = ["."];
6625
6577
  }
6626
6578
  if (opts.watch) {
6627
- try {
6628
- chokidar = __require("chokidar");
6629
- } catch (e) {
6630
- throw new Error("watch requires chokidar to be installed");
6631
- }
6632
- var paths = _this.searchPaths.filter(fs2.existsSync);
6633
- var watcher = chokidar.watch(paths);
6634
- watcher.on("all", function(event, fullname) {
6635
- fullname = path.resolve(fullname);
6636
- if (event === "change" && fullname in _this.pathsToNames) {
6637
- _this.emit("update", _this.pathsToNames[fullname], fullname);
6638
- }
6639
- });
6640
- watcher.on("error", function(error) {
6641
- console.log("Watcher error: " + error);
6642
- });
6579
+ throw new Error("watch option is no longer supported, optional chokidar dependency was removed.");
6643
6580
  }
6644
6581
  return _this;
6645
6582
  }
6646
6583
  __name(FileSystemLoader3, "FileSystemLoader");
6584
+ _inheritsLoose(FileSystemLoader3, _Loader);
6647
6585
  var _proto = FileSystemLoader3.prototype;
6648
6586
  _proto.getSource = /* @__PURE__ */ __name(function getSource(name) {
6649
6587
  var fullpath = null;
@@ -6669,9 +6607,8 @@ var require_node_loaders = __commonJS({
6669
6607
  return source;
6670
6608
  }, "getSource");
6671
6609
  return FileSystemLoader3;
6672
- }(Loader);
6673
- var NodeResolveLoader = /* @__PURE__ */ function(_Loader2) {
6674
- _inheritsLoose(NodeResolveLoader2, _Loader2);
6610
+ })(Loader);
6611
+ var NodeResolveLoader = /* @__PURE__ */ (function(_Loader2) {
6675
6612
  function NodeResolveLoader2(opts) {
6676
6613
  var _this2;
6677
6614
  _this2 = _Loader2.call(this) || this;
@@ -6679,25 +6616,12 @@ var require_node_loaders = __commonJS({
6679
6616
  _this2.pathsToNames = {};
6680
6617
  _this2.noCache = !!opts.noCache;
6681
6618
  if (opts.watch) {
6682
- try {
6683
- chokidar = __require("chokidar");
6684
- } catch (e) {
6685
- throw new Error("watch requires chokidar to be installed");
6686
- }
6687
- _this2.watcher = chokidar.watch();
6688
- _this2.watcher.on("change", function(fullname) {
6689
- _this2.emit("update", _this2.pathsToNames[fullname], fullname);
6690
- });
6691
- _this2.watcher.on("error", function(error) {
6692
- console.log("Watcher error: " + error);
6693
- });
6694
- _this2.on("load", function(name, source) {
6695
- _this2.watcher.add(source.path);
6696
- });
6619
+ throw new Error("watch option is no longer supported internally, optional chokidar dependency was removed.");
6697
6620
  }
6698
6621
  return _this2;
6699
6622
  }
6700
6623
  __name(NodeResolveLoader2, "NodeResolveLoader");
6624
+ _inheritsLoose(NodeResolveLoader2, _Loader2);
6701
6625
  var _proto2 = NodeResolveLoader2.prototype;
6702
6626
  _proto2.getSource = /* @__PURE__ */ __name(function getSource(name) {
6703
6627
  if (/^\.?\.?(\/|\\)/.test(name)) {
@@ -6722,7 +6646,7 @@ var require_node_loaders = __commonJS({
6722
6646
  return source;
6723
6647
  }, "getSource");
6724
6648
  return NodeResolveLoader2;
6725
- }(Loader);
6649
+ })(Loader);
6726
6650
  module.exports = {
6727
6651
  FileSystemLoader: FileSystemLoader2,
6728
6652
  PrecompiledLoader,
@@ -6731,17 +6655,17 @@ var require_node_loaders = __commonJS({
6731
6655
  }
6732
6656
  });
6733
6657
 
6734
- // ../../node_modules/nunjucks/src/loaders.js
6658
+ // ../../node_modules/@11ty/nunjucks/src/loaders.js
6735
6659
  var require_loaders = __commonJS({
6736
- "../../node_modules/nunjucks/src/loaders.js"(exports, module) {
6660
+ "../../node_modules/@11ty/nunjucks/src/loaders.js"(exports, module) {
6737
6661
  "use strict";
6738
6662
  module.exports = require_node_loaders();
6739
6663
  }
6740
6664
  });
6741
6665
 
6742
- // ../../node_modules/nunjucks/src/tests.js
6666
+ // ../../node_modules/@11ty/nunjucks/src/tests.js
6743
6667
  var require_tests = __commonJS({
6744
- "../../node_modules/nunjucks/src/tests.js"(exports) {
6668
+ "../../node_modules/@11ty/nunjucks/src/tests.js"(exports) {
6745
6669
  "use strict";
6746
6670
  var SafeString = require_runtime().SafeString;
6747
6671
  function callable(value) {
@@ -6870,9 +6794,9 @@ var require_tests = __commonJS({
6870
6794
  }
6871
6795
  });
6872
6796
 
6873
- // ../../node_modules/nunjucks/src/globals.js
6797
+ // ../../node_modules/@11ty/nunjucks/src/globals.js
6874
6798
  var require_globals = __commonJS({
6875
- "../../node_modules/nunjucks/src/globals.js"(exports, module) {
6799
+ "../../node_modules/@11ty/nunjucks/src/globals.js"(exports, module) {
6876
6800
  "use strict";
6877
6801
  function _cycler(items) {
6878
6802
  var index = -1;
@@ -6938,9 +6862,9 @@ var require_globals = __commonJS({
6938
6862
  }
6939
6863
  });
6940
6864
 
6941
- // ../../node_modules/nunjucks/src/express-app.js
6865
+ // ../../node_modules/@11ty/nunjucks/src/express-app.js
6942
6866
  var require_express_app = __commonJS({
6943
- "../../node_modules/nunjucks/src/express-app.js"(exports, module) {
6867
+ "../../node_modules/@11ty/nunjucks/src/express-app.js"(exports, module) {
6944
6868
  "use strict";
6945
6869
  var path = require_path();
6946
6870
  module.exports = /* @__PURE__ */ __name(function express(env, app) {
@@ -6967,22 +6891,18 @@ var require_express_app = __commonJS({
6967
6891
  }
6968
6892
  });
6969
6893
 
6970
- // ../../node_modules/nunjucks/src/environment.js
6894
+ // ../../node_modules/@11ty/nunjucks/src/environment.js
6971
6895
  var require_environment = __commonJS({
6972
- "../../node_modules/nunjucks/src/environment.js"(exports, module) {
6896
+ "../../node_modules/@11ty/nunjucks/src/environment.js"(exports, module) {
6973
6897
  "use strict";
6974
- function _inheritsLoose(subClass, superClass) {
6975
- subClass.prototype = Object.create(superClass.prototype);
6976
- subClass.prototype.constructor = subClass;
6977
- _setPrototypeOf(subClass, superClass);
6898
+ function _inheritsLoose(t, o) {
6899
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
6978
6900
  }
6979
6901
  __name(_inheritsLoose, "_inheritsLoose");
6980
- function _setPrototypeOf(o, p) {
6981
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : /* @__PURE__ */ __name(function _setPrototypeOf2(o2, p2) {
6982
- o2.__proto__ = p2;
6983
- return o2;
6984
- }, "_setPrototypeOf");
6985
- return _setPrototypeOf(o, p);
6902
+ function _setPrototypeOf(t, e) {
6903
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
6904
+ return t2.__proto__ = e2, t2;
6905
+ }, _setPrototypeOf(t, e);
6986
6906
  }
6987
6907
  __name(_setPrototypeOf, "_setPrototypeOf");
6988
6908
  var asap = require_browser_asap();
@@ -7021,12 +6941,12 @@ var require_environment = __commonJS({
7021
6941
  }, "root")
7022
6942
  }
7023
6943
  };
7024
- var Environment2 = /* @__PURE__ */ function(_EmitterObj) {
7025
- _inheritsLoose(Environment3, _EmitterObj);
6944
+ var Environment2 = /* @__PURE__ */ (function(_EmitterObj) {
7026
6945
  function Environment3() {
7027
6946
  return _EmitterObj.apply(this, arguments) || this;
7028
6947
  }
7029
6948
  __name(Environment3, "Environment");
6949
+ _inheritsLoose(Environment3, _EmitterObj);
7030
6950
  var _proto = Environment3.prototype;
7031
6951
  _proto.init = /* @__PURE__ */ __name(function init(loaders, opts) {
7032
6952
  var _this = this;
@@ -7265,13 +7185,13 @@ var require_environment = __commonJS({
7265
7185
  return _waterfall(tasks, callback, forceAsync);
7266
7186
  }, "waterfall");
7267
7187
  return Environment3;
7268
- }(EmitterObj);
7269
- var Context = /* @__PURE__ */ function(_Obj) {
7270
- _inheritsLoose(Context2, _Obj);
7188
+ })(EmitterObj);
7189
+ var Context = /* @__PURE__ */ (function(_Obj) {
7271
7190
  function Context2() {
7272
7191
  return _Obj.apply(this, arguments) || this;
7273
7192
  }
7274
7193
  __name(Context2, "Context");
7194
+ _inheritsLoose(Context2, _Obj);
7275
7195
  var _proto2 = Context2.prototype;
7276
7196
  _proto2.init = /* @__PURE__ */ __name(function init(ctx, blocks, env) {
7277
7197
  var _this4 = this;
@@ -7328,13 +7248,13 @@ var require_environment = __commonJS({
7328
7248
  return exported;
7329
7249
  }, "getExported");
7330
7250
  return Context2;
7331
- }(Obj);
7332
- var Template2 = /* @__PURE__ */ function(_Obj2) {
7333
- _inheritsLoose(Template3, _Obj2);
7251
+ })(Obj);
7252
+ var Template2 = /* @__PURE__ */ (function(_Obj2) {
7334
7253
  function Template3() {
7335
7254
  return _Obj2.apply(this, arguments) || this;
7336
7255
  }
7337
7256
  __name(Template3, "Template");
7257
+ _inheritsLoose(Template3, _Obj2);
7338
7258
  var _proto3 = Template3.prototype;
7339
7259
  _proto3.init = /* @__PURE__ */ __name(function init(src, env, path, eagerCompile) {
7340
7260
  this.env = env || new Environment2();
@@ -7470,7 +7390,7 @@ var require_environment = __commonJS({
7470
7390
  return blocks;
7471
7391
  }, "_getBlocks");
7472
7392
  return Template3;
7473
- }(Obj);
7393
+ })(Obj);
7474
7394
  module.exports = {
7475
7395
  Environment: Environment2,
7476
7396
  Template: Template2
@@ -7478,9 +7398,9 @@ var require_environment = __commonJS({
7478
7398
  }
7479
7399
  });
7480
7400
 
7481
- // ../../node_modules/nunjucks/src/precompile-global.js
7401
+ // ../../node_modules/@11ty/nunjucks/src/precompile-global.js
7482
7402
  var require_precompile_global = __commonJS({
7483
- "../../node_modules/nunjucks/src/precompile-global.js"(exports, module) {
7403
+ "../../node_modules/@11ty/nunjucks/src/precompile-global.js"(exports, module) {
7484
7404
  "use strict";
7485
7405
  function precompileGlobal(templates, opts) {
7486
7406
  var out = "";
@@ -7501,9 +7421,9 @@ var require_precompile_global = __commonJS({
7501
7421
  }
7502
7422
  });
7503
7423
 
7504
- // ../../node_modules/nunjucks/src/precompile.js
7424
+ // ../../node_modules/@11ty/nunjucks/src/precompile.js
7505
7425
  var require_precompile = __commonJS({
7506
- "../../node_modules/nunjucks/src/precompile.js"(exports, module) {
7426
+ "../../node_modules/@11ty/nunjucks/src/precompile.js"(exports, module) {
7507
7427
  "use strict";
7508
7428
  var fs2 = (init_shim_consume_fs(), __toCommonJS(shim_consume_fs_exports));
7509
7429
  var path = require_path();
@@ -7603,9 +7523,9 @@ var require_precompile = __commonJS({
7603
7523
  }
7604
7524
  });
7605
7525
 
7606
- // ../../node_modules/nunjucks/src/jinja-compat.js
7526
+ // ../../node_modules/@11ty/nunjucks/src/jinja-compat.js
7607
7527
  var require_jinja_compat = __commonJS({
7608
- "../../node_modules/nunjucks/src/jinja-compat.js"(exports, module) {
7528
+ "../../node_modules/@11ty/nunjucks/src/jinja-compat.js"(exports, module) {
7609
7529
  "use strict";
7610
7530
  function installCompat() {
7611
7531
  "use strict";
@@ -7889,9 +7809,9 @@ var require_jinja_compat = __commonJS({
7889
7809
  }
7890
7810
  });
7891
7811
 
7892
- // ../../node_modules/nunjucks/index.js
7812
+ // ../../node_modules/@11ty/nunjucks/index.js
7893
7813
  var require_nunjucks = __commonJS({
7894
- "../../node_modules/nunjucks/index.js"(exports, module) {
7814
+ "../../node_modules/@11ty/nunjucks/index.js"(exports, module) {
7895
7815
  "use strict";
7896
7816
  var lib = require_lib();
7897
7817
  var _require = require_environment();
@@ -8319,10 +8239,14 @@ var Nunjucks = class _Nunjucks extends TemplateEngine {
8319
8239
  this.setEngineLib(this.njkEnv, Boolean(this.config.libraryOverrides.njk));
8320
8240
  this.addFilters(this.config.nunjucksFilters);
8321
8241
  this.addFilters(this.config.nunjucksAsyncFilters, true);
8322
- this.addPairedShortcode("setAsync", function(content, variableName) {
8323
- this.ctx[variableName] = content;
8324
- return "";
8325
- });
8242
+ this.addPairedShortcode(
8243
+ "setAsync",
8244
+ async function(content, variableName) {
8245
+ this.ctx[variableName] = content;
8246
+ return "";
8247
+ },
8248
+ true
8249
+ );
8326
8250
  this.addCustomTags(this.config.nunjucksTags);
8327
8251
  this.addAllShortcodes(this.config.nunjucksShortcodes);
8328
8252
  this.addAllShortcodes(this.config.nunjucksAsyncShortcodes, true);
@@ -8458,28 +8382,28 @@ var Nunjucks = class _Nunjucks extends TemplateEngine {
8458
8382
  _getPairedShortcodeFn(shortcodeName, shortcodeFn, isAsync = false) {
8459
8383
  return /* @__PURE__ */ __name(function PairedShortcodeFunction() {
8460
8384
  this.tags = [shortcodeName];
8461
- this.parse = function(parser, nodes) {
8462
- var tok = parser.nextToken();
8463
- var args = parser.parseSignature(true, true);
8464
- parser.advanceAfterBlockEnd(tok.value);
8465
- var body = parser.parseUntilBlocks("end" + shortcodeName);
8466
- parser.advanceAfterBlockEnd();
8467
- return new nodes.CallExtensionAsync(this, "run", args, [body]);
8468
- };
8469
- this.run = function(...args) {
8470
- let resolve = args.pop();
8471
- let body = args.pop();
8472
- let [context, ...argArray] = args;
8473
- body(function(e, bodyContent) {
8474
- if (e) {
8475
- resolve(
8476
- new EleventyNunjucksError(
8477
- `Error with Nunjucks paired shortcode \`${shortcodeName}\``,
8478
- e
8479
- )
8480
- );
8481
- }
8482
- if (isAsync) {
8385
+ if (isAsync) {
8386
+ this.parse = function(parser, nodes) {
8387
+ var tok = parser.nextToken();
8388
+ var args = parser.parseSignature(true, true);
8389
+ parser.advanceAfterBlockEnd(tok.value);
8390
+ var body = parser.parseUntilBlocks("end" + shortcodeName);
8391
+ parser.advanceAfterBlockEnd();
8392
+ return new nodes.CallExtensionAsync(this, "run", args, [body]);
8393
+ };
8394
+ this.run = function(...args) {
8395
+ let resolve = args.pop();
8396
+ let body = args.pop();
8397
+ let [context, ...argArray] = args;
8398
+ body(function(e, bodyContent) {
8399
+ if (e) {
8400
+ resolve(
8401
+ new EleventyNunjucksError(
8402
+ `Error with Nunjucks paired shortcode \`${shortcodeName}\``,
8403
+ e
8404
+ )
8405
+ );
8406
+ }
8483
8407
  let ret = shortcodeFn.call(
8484
8408
  _Nunjucks.normalizeContext(context),
8485
8409
  bodyContent,
@@ -8503,25 +8427,33 @@ var Nunjucks = class _Nunjucks extends TemplateEngine {
8503
8427
  );
8504
8428
  }
8505
8429
  );
8506
- } else {
8507
- try {
8508
- resolve(
8509
- null,
8510
- new import_nunjucks.default.runtime.SafeString(
8511
- shortcodeFn.call(_Nunjucks.normalizeContext(context), bodyContent, ...argArray)
8512
- )
8513
- );
8514
- } catch (e2) {
8515
- resolve(
8516
- new EleventyNunjucksError(
8517
- `Error with Nunjucks paired shortcode \`${shortcodeName}\``,
8518
- e2
8519
- )
8520
- );
8521
- }
8430
+ });
8431
+ };
8432
+ } else {
8433
+ this.parse = function(parser, nodes) {
8434
+ var tok = parser.nextToken();
8435
+ var args = parser.parseSignature(true, true);
8436
+ parser.advanceAfterBlockEnd(tok.value);
8437
+ var body = parser.parseUntilBlocks("end" + shortcodeName);
8438
+ parser.advanceAfterBlockEnd();
8439
+ return new nodes.CallExtension(this, "run", args, [body]);
8440
+ };
8441
+ this.run = function(...args) {
8442
+ let body = args.pop();
8443
+ let [context, ...argArray] = args;
8444
+ let bodyContent = body();
8445
+ try {
8446
+ return new import_nunjucks.default.runtime.SafeString(
8447
+ shortcodeFn.call(_Nunjucks.normalizeContext(context), bodyContent, ...argArray)
8448
+ );
8449
+ } catch (e) {
8450
+ throw new EleventyNunjucksError(
8451
+ `Error with Nunjucks paired shortcode \`${shortcodeName}\``,
8452
+ e
8453
+ );
8522
8454
  }
8523
- });
8524
- };
8455
+ };
8456
+ }
8525
8457
  }, "PairedShortcodeFunction");
8526
8458
  }
8527
8459
  addShortcode(shortcodeName, shortcodeFn, isAsync = false) {