@gov-cy/govcy-frontend-renderer 1.26.4 → 1.26.7

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.
@@ -11,7 +11,7 @@ var GovcyFrontendRendererBrowser = (function () {
11
11
 
12
12
  /*! Browser bundle of nunjucks 3.2.4 */
13
13
 
14
- (function (module, exports) {
14
+ (function (module, exports$1) {
15
15
  (function webpackUniversalModuleDefinition(root, factory) {
16
16
  module.exports = factory();
17
17
  })(typeof self !== 'undefined' ? self : commonjsGlobal, function() {
@@ -51,9 +51,9 @@ var GovcyFrontendRendererBrowser = (function () {
51
51
  /******/ __webpack_require__.c = installedModules;
52
52
  /******/
53
53
  /******/ // define getter function for harmony exports
54
- /******/ __webpack_require__.d = function(exports, name, getter) {
55
- /******/ if(!__webpack_require__.o(exports, name)) {
56
- /******/ Object.defineProperty(exports, name, {
54
+ /******/ __webpack_require__.d = function(exports$1, name, getter) {
55
+ /******/ if(!__webpack_require__.o(exports$1, name)) {
56
+ /******/ Object.defineProperty(exports$1, name, {
57
57
  /******/ configurable: false,
58
58
  /******/ enumerable: true,
59
59
  /******/ get: getter
@@ -82,7 +82,7 @@ var GovcyFrontendRendererBrowser = (function () {
82
82
  /************************************************************************/
83
83
  /******/ ([
84
84
  /* 0 */
85
- /***/ (function(module, exports, __webpack_require__) {
85
+ /***/ (function(module, exports$1, __webpack_require__) {
86
86
 
87
87
 
88
88
  var ArrayProto = Array.prototype;
@@ -96,18 +96,18 @@ var GovcyFrontendRendererBrowser = (function () {
96
96
  '\\': '\'
97
97
  };
98
98
  var escapeRegex = /[&"'<>\\]/g;
99
- var exports = module.exports = {};
99
+ var exports$1 = module.exports = {};
100
100
  function hasOwnProp(obj, k) {
101
101
  return ObjProto.hasOwnProperty.call(obj, k);
102
102
  }
103
- exports.hasOwnProp = hasOwnProp;
103
+ exports$1.hasOwnProp = hasOwnProp;
104
104
  function lookupEscape(ch) {
105
105
  return escapeMap[ch];
106
106
  }
107
107
  function _prettifyError(path, withInternals, err) {
108
108
  if (!err.Update) {
109
109
  // not one of ours, cast it
110
- err = new exports.TemplateError(err);
110
+ err = new exports$1.TemplateError(err);
111
111
  }
112
112
  err.Update(path);
113
113
 
@@ -119,7 +119,7 @@ var GovcyFrontendRendererBrowser = (function () {
119
119
  }
120
120
  return err;
121
121
  }
122
- exports._prettifyError = _prettifyError;
122
+ exports$1._prettifyError = _prettifyError;
123
123
  function TemplateError(message, lineno, colno) {
124
124
  var err;
125
125
  var cause;
@@ -203,27 +203,27 @@ var GovcyFrontendRendererBrowser = (function () {
203
203
  }
204
204
  });
205
205
  }
206
- exports.TemplateError = TemplateError;
206
+ exports$1.TemplateError = TemplateError;
207
207
  function escape(val) {
208
208
  return val.replace(escapeRegex, lookupEscape);
209
209
  }
210
- exports.escape = escape;
210
+ exports$1.escape = escape;
211
211
  function isFunction(obj) {
212
212
  return ObjProto.toString.call(obj) === '[object Function]';
213
213
  }
214
- exports.isFunction = isFunction;
214
+ exports$1.isFunction = isFunction;
215
215
  function isArray(obj) {
216
216
  return ObjProto.toString.call(obj) === '[object Array]';
217
217
  }
218
- exports.isArray = isArray;
218
+ exports$1.isArray = isArray;
219
219
  function isString(obj) {
220
220
  return ObjProto.toString.call(obj) === '[object String]';
221
221
  }
222
- exports.isString = isString;
222
+ exports$1.isString = isString;
223
223
  function isObject(obj) {
224
224
  return ObjProto.toString.call(obj) === '[object Object]';
225
225
  }
226
- exports.isObject = isObject;
226
+ exports$1.isObject = isObject;
227
227
 
228
228
  /**
229
229
  * @param {string|number} attr
@@ -262,7 +262,7 @@ var GovcyFrontendRendererBrowser = (function () {
262
262
  return _item;
263
263
  };
264
264
  }
265
- exports.getAttrGetter = getAttrGetter;
265
+ exports$1.getAttrGetter = getAttrGetter;
266
266
  function groupBy(obj, val, throwOnUndefined) {
267
267
  var result = {};
268
268
  var iterator = isFunction(val) ? val : getAttrGetter(val);
@@ -276,11 +276,11 @@ var GovcyFrontendRendererBrowser = (function () {
276
276
  }
277
277
  return result;
278
278
  }
279
- exports.groupBy = groupBy;
279
+ exports$1.groupBy = groupBy;
280
280
  function toArray(obj) {
281
281
  return Array.prototype.slice.call(obj);
282
282
  }
283
- exports.toArray = toArray;
283
+ exports$1.toArray = toArray;
284
284
  function without(array) {
285
285
  var result = [];
286
286
  if (!array) {
@@ -296,7 +296,7 @@ var GovcyFrontendRendererBrowser = (function () {
296
296
  }
297
297
  return result;
298
298
  }
299
- exports.without = without;
299
+ exports$1.without = without;
300
300
  function repeat(char_, n) {
301
301
  var str = '';
302
302
  for (var i = 0; i < n; i++) {
@@ -304,7 +304,7 @@ var GovcyFrontendRendererBrowser = (function () {
304
304
  }
305
305
  return str;
306
306
  }
307
- exports.repeat = repeat;
307
+ exports$1.repeat = repeat;
308
308
  function each(obj, func, context) {
309
309
  if (obj == null) {
310
310
  return;
@@ -317,7 +317,7 @@ var GovcyFrontendRendererBrowser = (function () {
317
317
  }
318
318
  }
319
319
  }
320
- exports.each = each;
320
+ exports$1.each = each;
321
321
  function map(obj, func) {
322
322
  var results = [];
323
323
  if (obj == null) {
@@ -334,7 +334,7 @@ var GovcyFrontendRendererBrowser = (function () {
334
334
  }
335
335
  return results;
336
336
  }
337
- exports.map = map;
337
+ exports$1.map = map;
338
338
  function asyncIter(arr, iter, cb) {
339
339
  var i = -1;
340
340
  function next() {
@@ -347,7 +347,7 @@ var GovcyFrontendRendererBrowser = (function () {
347
347
  }
348
348
  next();
349
349
  }
350
- exports.asyncIter = asyncIter;
350
+ exports$1.asyncIter = asyncIter;
351
351
  function asyncFor(obj, iter, cb) {
352
352
  var keys = keys_(obj || {});
353
353
  var len = keys.length;
@@ -363,11 +363,11 @@ var GovcyFrontendRendererBrowser = (function () {
363
363
  }
364
364
  next();
365
365
  }
366
- exports.asyncFor = asyncFor;
366
+ exports$1.asyncFor = asyncFor;
367
367
  function indexOf(arr, searchElement, fromIndex) {
368
368
  return Array.prototype.indexOf.call(arr || [], searchElement, fromIndex);
369
369
  }
370
- exports.indexOf = indexOf;
370
+ exports$1.indexOf = indexOf;
371
371
  function keys_(obj) {
372
372
  /* eslint-disable no-restricted-syntax */
373
373
  var arr = [];
@@ -378,19 +378,19 @@ var GovcyFrontendRendererBrowser = (function () {
378
378
  }
379
379
  return arr;
380
380
  }
381
- exports.keys = keys_;
381
+ exports$1.keys = keys_;
382
382
  function _entries(obj) {
383
383
  return keys_(obj).map(function (k) {
384
384
  return [k, obj[k]];
385
385
  });
386
386
  }
387
- exports._entries = _entries;
387
+ exports$1._entries = _entries;
388
388
  function _values(obj) {
389
389
  return keys_(obj).map(function (k) {
390
390
  return obj[k];
391
391
  });
392
392
  }
393
- exports._values = _values;
393
+ exports$1._values = _values;
394
394
  function extend(obj1, obj2) {
395
395
  obj1 = obj1 || {};
396
396
  keys_(obj2).forEach(function (k) {
@@ -398,7 +398,7 @@ var GovcyFrontendRendererBrowser = (function () {
398
398
  });
399
399
  return obj1;
400
400
  }
401
- exports._assign = exports.extend = extend;
401
+ exports$1._assign = exports$1.extend = extend;
402
402
  function inOperator(key, val) {
403
403
  if (isArray(val) || isString(val)) {
404
404
  return val.indexOf(key) !== -1;
@@ -407,11 +407,11 @@ var GovcyFrontendRendererBrowser = (function () {
407
407
  }
408
408
  throw new Error('Cannot use "in" operator to search for "' + key + '" in unexpected types.');
409
409
  }
410
- exports.inOperator = inOperator;
410
+ exports$1.inOperator = inOperator;
411
411
 
412
412
  /***/ }),
413
413
  /* 1 */
414
- /***/ (function(module, exports, __webpack_require__) {
414
+ /***/ (function(module, exports$1, __webpack_require__) {
415
415
 
416
416
 
417
417
  // A simple class system, more documentation to come
@@ -515,7 +515,7 @@ var GovcyFrontendRendererBrowser = (function () {
515
515
 
516
516
  /***/ }),
517
517
  /* 2 */
518
- /***/ (function(module, exports, __webpack_require__) {
518
+ /***/ (function(module, exports$1, __webpack_require__) {
519
519
 
520
520
 
521
521
  var lib = __webpack_require__(0);
@@ -852,7 +852,7 @@ var GovcyFrontendRendererBrowser = (function () {
852
852
 
853
853
  /***/ }),
854
854
  /* 3 */
855
- /***/ (function(module, exports, __webpack_require__) {
855
+ /***/ (function(module, exports$1, __webpack_require__) {
856
856
 
857
857
 
858
858
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
@@ -1206,13 +1206,13 @@ var GovcyFrontendRendererBrowser = (function () {
1206
1206
 
1207
1207
  /***/ }),
1208
1208
  /* 4 */
1209
- /***/ (function(module, exports) {
1209
+ /***/ (function(module, exports$1) {
1210
1210
 
1211
1211
 
1212
1212
 
1213
1213
  /***/ }),
1214
1214
  /* 5 */
1215
- /***/ (function(module, exports, __webpack_require__) {
1215
+ /***/ (function(module, exports$1, __webpack_require__) {
1216
1216
 
1217
1217
 
1218
1218
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
@@ -2243,7 +2243,7 @@ var GovcyFrontendRendererBrowser = (function () {
2243
2243
 
2244
2244
  /***/ }),
2245
2245
  /* 6 */
2246
- /***/ (function(module, exports, __webpack_require__) {
2246
+ /***/ (function(module, exports$1, __webpack_require__) {
2247
2247
 
2248
2248
 
2249
2249
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
@@ -2268,7 +2268,7 @@ var GovcyFrontendRendererBrowser = (function () {
2268
2268
 
2269
2269
  /***/ }),
2270
2270
  /* 7 */
2271
- /***/ (function(module, exports, __webpack_require__) {
2271
+ /***/ (function(module, exports$1, __webpack_require__) {
2272
2272
 
2273
2273
 
2274
2274
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
@@ -2820,7 +2820,7 @@ var GovcyFrontendRendererBrowser = (function () {
2820
2820
 
2821
2821
  /***/ }),
2822
2822
  /* 8 */
2823
- /***/ (function(module, exports, __webpack_require__) {
2823
+ /***/ (function(module, exports$1, __webpack_require__) {
2824
2824
 
2825
2825
 
2826
2826
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
@@ -3852,7 +3852,7 @@ var GovcyFrontendRendererBrowser = (function () {
3852
3852
 
3853
3853
  /***/ }),
3854
3854
  /* 9 */
3855
- /***/ (function(module, exports, __webpack_require__) {
3855
+ /***/ (function(module, exports$1, __webpack_require__) {
3856
3856
 
3857
3857
 
3858
3858
  var lib = __webpack_require__(0);
@@ -4330,7 +4330,7 @@ var GovcyFrontendRendererBrowser = (function () {
4330
4330
 
4331
4331
  /***/ }),
4332
4332
  /* 10 */
4333
- /***/ (function(module, exports, __webpack_require__) {
4333
+ /***/ (function(module, exports$1, __webpack_require__) {
4334
4334
 
4335
4335
 
4336
4336
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
@@ -4428,7 +4428,7 @@ var GovcyFrontendRendererBrowser = (function () {
4428
4428
 
4429
4429
  /***/ }),
4430
4430
  /* 11 */
4431
- /***/ (function(module, exports, __webpack_require__) {
4431
+ /***/ (function(module, exports$1, __webpack_require__) {
4432
4432
 
4433
4433
 
4434
4434
  var lib = __webpack_require__(0);
@@ -4514,7 +4514,7 @@ var GovcyFrontendRendererBrowser = (function () {
4514
4514
 
4515
4515
  /***/ }),
4516
4516
  /* 12 */
4517
- /***/ (function(module, exports, __webpack_require__) {
4517
+ /***/ (function(module, exports$1, __webpack_require__) {
4518
4518
 
4519
4519
 
4520
4520
  // rawAsap provides everything we need except exception management.
@@ -4585,7 +4585,7 @@ var GovcyFrontendRendererBrowser = (function () {
4585
4585
 
4586
4586
  /***/ }),
4587
4587
  /* 13 */
4588
- /***/ (function(module, exports, __webpack_require__) {
4588
+ /***/ (function(module, exports$1, __webpack_require__) {
4589
4589
  /* WEBPACK VAR INJECTION */(function(global) {
4590
4590
 
4591
4591
  // Use the fastest means possible to execute a task in its own turn, with
@@ -4805,11 +4805,11 @@ var GovcyFrontendRendererBrowser = (function () {
4805
4805
  // back into ASAP proper.
4806
4806
  // https://github.com/tildeio/rsvp.js/blob/cddf7232546a9cf858524b75cde6f9edf72620a7/lib/rsvp/asap.js
4807
4807
 
4808
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(14)));
4808
+ /* WEBPACK VAR INJECTION */}.call(exports$1, __webpack_require__(14)));
4809
4809
 
4810
4810
  /***/ }),
4811
4811
  /* 14 */
4812
- /***/ (function(module, exports) {
4812
+ /***/ (function(module, exports$1) {
4813
4813
 
4814
4814
  var g;
4815
4815
 
@@ -4836,7 +4836,7 @@ var GovcyFrontendRendererBrowser = (function () {
4836
4836
 
4837
4837
  /***/ }),
4838
4838
  /* 15 */
4839
- /***/ (function(module, exports, __webpack_require__) {
4839
+ /***/ (function(module, exports$1, __webpack_require__) {
4840
4840
 
4841
4841
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// MIT license (by Elan Shanker).
4842
4842
  (function(globals) {
@@ -4913,7 +4913,7 @@ var GovcyFrontendRendererBrowser = (function () {
4913
4913
  {
4914
4914
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
4915
4915
  return waterfall;
4916
- }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
4916
+ }).apply(exports$1, __WEBPACK_AMD_DEFINE_ARRAY__),
4917
4917
  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); // RequireJS
4918
4918
  }
4919
4919
  })();
@@ -4921,7 +4921,7 @@ var GovcyFrontendRendererBrowser = (function () {
4921
4921
 
4922
4922
  /***/ }),
4923
4923
  /* 16 */
4924
- /***/ (function(module, exports, __webpack_require__) {
4924
+ /***/ (function(module, exports$1, __webpack_require__) {
4925
4925
  // Copyright Joyent, Inc. and other Node contributors.
4926
4926
  //
4927
4927
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -5422,7 +5422,7 @@ var GovcyFrontendRendererBrowser = (function () {
5422
5422
 
5423
5423
  /***/ }),
5424
5424
  /* 17 */
5425
- /***/ (function(module, exports, __webpack_require__) {
5425
+ /***/ (function(module, exports$1, __webpack_require__) {
5426
5426
 
5427
5427
 
5428
5428
  var nodes = __webpack_require__(3);
@@ -5592,19 +5592,19 @@ var GovcyFrontendRendererBrowser = (function () {
5592
5592
 
5593
5593
  /***/ }),
5594
5594
  /* 18 */
5595
- /***/ (function(module, exports, __webpack_require__) {
5595
+ /***/ (function(module, exports$1, __webpack_require__) {
5596
5596
 
5597
5597
 
5598
5598
  var lib = __webpack_require__(0);
5599
5599
  var r = __webpack_require__(2);
5600
- var exports = module.exports = {};
5600
+ var exports$1 = module.exports = {};
5601
5601
  function normalize(value, defaultValue) {
5602
5602
  if (value === null || value === undefined || value === false) {
5603
5603
  return defaultValue;
5604
5604
  }
5605
5605
  return value;
5606
5606
  }
5607
- exports.abs = Math.abs;
5607
+ exports$1.abs = Math.abs;
5608
5608
  function isNaN(num) {
5609
5609
  return num !== num; // eslint-disable-line no-self-compare
5610
5610
  }
@@ -5630,13 +5630,13 @@ var GovcyFrontendRendererBrowser = (function () {
5630
5630
  }
5631
5631
  return res;
5632
5632
  }
5633
- exports.batch = batch;
5633
+ exports$1.batch = batch;
5634
5634
  function capitalize(str) {
5635
5635
  str = normalize(str, '');
5636
5636
  var ret = str.toLowerCase();
5637
5637
  return r.copySafeness(str, ret.charAt(0).toUpperCase() + ret.slice(1));
5638
5638
  }
5639
- exports.capitalize = capitalize;
5639
+ exports$1.capitalize = capitalize;
5640
5640
  function center(str, width) {
5641
5641
  str = normalize(str, '');
5642
5642
  width = width || 80;
@@ -5648,7 +5648,7 @@ var GovcyFrontendRendererBrowser = (function () {
5648
5648
  var post = lib.repeat(' ', spaces / 2);
5649
5649
  return r.copySafeness(str, pre + str + post);
5650
5650
  }
5651
- exports.center = center;
5651
+ exports$1.center = center;
5652
5652
  function default_(val, def, bool) {
5653
5653
  if (bool) {
5654
5654
  return val || def;
@@ -5658,7 +5658,7 @@ var GovcyFrontendRendererBrowser = (function () {
5658
5658
  }
5659
5659
 
5660
5660
  // TODO: it is confusing to export something called 'default'
5661
- exports['default'] = default_; // eslint-disable-line dot-notation
5661
+ exports$1['default'] = default_; // eslint-disable-line dot-notation
5662
5662
 
5663
5663
  function dictsort(val, caseSensitive, by) {
5664
5664
  if (!lib.isObject(val)) {
@@ -5694,11 +5694,11 @@ var GovcyFrontendRendererBrowser = (function () {
5694
5694
 
5695
5695
  return array;
5696
5696
  }
5697
- exports.dictsort = dictsort;
5697
+ exports$1.dictsort = dictsort;
5698
5698
  function dump(obj, spaces) {
5699
5699
  return JSON.stringify(obj, null, spaces);
5700
5700
  }
5701
- exports.dump = dump;
5701
+ exports$1.dump = dump;
5702
5702
  function escape(str) {
5703
5703
  if (str instanceof r.SafeString) {
5704
5704
  return str;
@@ -5706,7 +5706,7 @@ var GovcyFrontendRendererBrowser = (function () {
5706
5706
  str = str === null || str === undefined ? '' : str;
5707
5707
  return r.markSafe(lib.escape(str.toString()));
5708
5708
  }
5709
- exports.escape = escape;
5709
+ exports$1.escape = escape;
5710
5710
  function safe(str) {
5711
5711
  if (str instanceof r.SafeString) {
5712
5712
  return str;
@@ -5714,20 +5714,20 @@ var GovcyFrontendRendererBrowser = (function () {
5714
5714
  str = str === null || str === undefined ? '' : str;
5715
5715
  return r.markSafe(str.toString());
5716
5716
  }
5717
- exports.safe = safe;
5717
+ exports$1.safe = safe;
5718
5718
  function first(arr) {
5719
5719
  return arr[0];
5720
5720
  }
5721
- exports.first = first;
5721
+ exports$1.first = first;
5722
5722
  function forceescape(str) {
5723
5723
  str = str === null || str === undefined ? '' : str;
5724
5724
  return r.markSafe(lib.escape(str.toString()));
5725
5725
  }
5726
- exports.forceescape = forceescape;
5726
+ exports$1.forceescape = forceescape;
5727
5727
  function groupby(arr, attr) {
5728
5728
  return lib.groupBy(arr, attr, this.env.opts.throwOnUndefined);
5729
5729
  }
5730
- exports.groupby = groupby;
5730
+ exports$1.groupby = groupby;
5731
5731
  function indent(str, width, indentfirst) {
5732
5732
  str = normalize(str, '');
5733
5733
  if (str === '') {
@@ -5742,7 +5742,7 @@ var GovcyFrontendRendererBrowser = (function () {
5742
5742
  }).join('\n');
5743
5743
  return r.copySafeness(str, res);
5744
5744
  }
5745
- exports.indent = indent;
5745
+ exports$1.indent = indent;
5746
5746
  function join(arr, del, attr) {
5747
5747
  del = del || '';
5748
5748
  if (attr) {
@@ -5752,11 +5752,11 @@ var GovcyFrontendRendererBrowser = (function () {
5752
5752
  }
5753
5753
  return arr.join(del);
5754
5754
  }
5755
- exports.join = join;
5755
+ exports$1.join = join;
5756
5756
  function last(arr) {
5757
5757
  return arr[arr.length - 1];
5758
5758
  }
5759
- exports.last = last;
5759
+ exports$1.last = last;
5760
5760
  function lengthFilter(val) {
5761
5761
  var value = normalize(val, '');
5762
5762
  if (value !== undefined) {
@@ -5772,7 +5772,7 @@ var GovcyFrontendRendererBrowser = (function () {
5772
5772
  }
5773
5773
  return 0;
5774
5774
  }
5775
- exports.length = lengthFilter;
5775
+ exports$1.length = lengthFilter;
5776
5776
  function list(val) {
5777
5777
  if (lib.isString(val)) {
5778
5778
  return val.split('');
@@ -5791,23 +5791,23 @@ var GovcyFrontendRendererBrowser = (function () {
5791
5791
  throw new lib.TemplateError('list filter: type not iterable');
5792
5792
  }
5793
5793
  }
5794
- exports.list = list;
5794
+ exports$1.list = list;
5795
5795
  function lower(str) {
5796
5796
  str = normalize(str, '');
5797
5797
  return str.toLowerCase();
5798
5798
  }
5799
- exports.lower = lower;
5799
+ exports$1.lower = lower;
5800
5800
  function nl2br(str) {
5801
5801
  if (str === null || str === undefined) {
5802
5802
  return '';
5803
5803
  }
5804
5804
  return r.copySafeness(str, str.replace(/\r\n|\n/g, '<br />\n'));
5805
5805
  }
5806
- exports.nl2br = nl2br;
5806
+ exports$1.nl2br = nl2br;
5807
5807
  function random(arr) {
5808
5808
  return arr[Math.floor(Math.random() * arr.length)];
5809
5809
  }
5810
- exports.random = random;
5810
+ exports$1.random = random;
5811
5811
 
5812
5812
  /**
5813
5813
  * Construct select or reject filter
@@ -5828,20 +5828,20 @@ var GovcyFrontendRendererBrowser = (function () {
5828
5828
  }
5829
5829
  return filter;
5830
5830
  }
5831
- exports.reject = getSelectOrReject(false);
5831
+ exports$1.reject = getSelectOrReject(false);
5832
5832
  function rejectattr(arr, attr) {
5833
5833
  return arr.filter(function (item) {
5834
5834
  return !item[attr];
5835
5835
  });
5836
5836
  }
5837
- exports.rejectattr = rejectattr;
5838
- exports.select = getSelectOrReject(true);
5837
+ exports$1.rejectattr = rejectattr;
5838
+ exports$1.select = getSelectOrReject(true);
5839
5839
  function selectattr(arr, attr) {
5840
5840
  return arr.filter(function (item) {
5841
5841
  return !!item[attr];
5842
5842
  });
5843
5843
  }
5844
- exports.selectattr = selectattr;
5844
+ exports$1.selectattr = selectattr;
5845
5845
  function replace(str, old, new_, maxCount) {
5846
5846
  var originalStr = str;
5847
5847
  if (old instanceof RegExp) {
@@ -5905,7 +5905,7 @@ var GovcyFrontendRendererBrowser = (function () {
5905
5905
  }
5906
5906
  return r.copySafeness(originalStr, res);
5907
5907
  }
5908
- exports.replace = replace;
5908
+ exports$1.replace = replace;
5909
5909
  function reverse(val) {
5910
5910
  var arr;
5911
5911
  if (lib.isString(val)) {
@@ -5922,7 +5922,7 @@ var GovcyFrontendRendererBrowser = (function () {
5922
5922
  }
5923
5923
  return arr;
5924
5924
  }
5925
- exports.reverse = reverse;
5925
+ exports$1.reverse = reverse;
5926
5926
  function round(val, precision, method) {
5927
5927
  precision = precision || 0;
5928
5928
  var factor = Math.pow(10, precision);
@@ -5936,7 +5936,7 @@ var GovcyFrontendRendererBrowser = (function () {
5936
5936
  }
5937
5937
  return rounder(val * factor) / factor;
5938
5938
  }
5939
- exports.round = round;
5939
+ exports$1.round = round;
5940
5940
  function slice(arr, slices, fillWith) {
5941
5941
  var sliceLength = Math.floor(arr.length / slices);
5942
5942
  var extra = arr.length % slices;
@@ -5956,7 +5956,7 @@ var GovcyFrontendRendererBrowser = (function () {
5956
5956
  }
5957
5957
  return res;
5958
5958
  }
5959
- exports.slice = slice;
5959
+ exports$1.slice = slice;
5960
5960
  function sum(arr, attr, start) {
5961
5961
  if (start === void 0) {
5962
5962
  start = 0;
@@ -5970,8 +5970,8 @@ var GovcyFrontendRendererBrowser = (function () {
5970
5970
  return a + b;
5971
5971
  }, 0);
5972
5972
  }
5973
- exports.sum = sum;
5974
- exports.sort = r.makeMacro(['value', 'reverse', 'case_sensitive', 'attribute'], [], function sortFilter(arr, reversed, caseSens, attr) {
5973
+ exports$1.sum = sum;
5974
+ exports$1.sort = r.makeMacro(['value', 'reverse', 'case_sensitive', 'attribute'], [], function sortFilter(arr, reversed, caseSens, attr) {
5975
5975
  var _this = this;
5976
5976
  // Copy it
5977
5977
  var array = lib.map(arr, function (v) {
@@ -6001,7 +6001,7 @@ var GovcyFrontendRendererBrowser = (function () {
6001
6001
  function string(obj) {
6002
6002
  return r.copySafeness(obj, obj);
6003
6003
  }
6004
- exports.string = string;
6004
+ exports$1.string = string;
6005
6005
  function striptags(input, preserveLinebreaks) {
6006
6006
  input = normalize(input, '');
6007
6007
  var tags = /<\/?([a-z][a-z0-9]*)\b[^>]*>|<!--[\s\S]*?-->/gi;
@@ -6017,7 +6017,7 @@ var GovcyFrontendRendererBrowser = (function () {
6017
6017
  }
6018
6018
  return r.copySafeness(input, res);
6019
6019
  }
6020
- exports.striptags = striptags;
6020
+ exports$1.striptags = striptags;
6021
6021
  function title(str) {
6022
6022
  str = normalize(str, '');
6023
6023
  var words = str.split(' ').map(function (word) {
@@ -6025,11 +6025,11 @@ var GovcyFrontendRendererBrowser = (function () {
6025
6025
  });
6026
6026
  return r.copySafeness(str, words.join(' '));
6027
6027
  }
6028
- exports.title = title;
6028
+ exports$1.title = title;
6029
6029
  function trim(str) {
6030
6030
  return r.copySafeness(str, str.replace(/^\s*|\s*$/g, ''));
6031
6031
  }
6032
- exports.trim = trim;
6032
+ exports$1.trim = trim;
6033
6033
  function truncate(input, length, killwords, end) {
6034
6034
  var orig = input;
6035
6035
  input = normalize(input, '');
@@ -6049,12 +6049,12 @@ var GovcyFrontendRendererBrowser = (function () {
6049
6049
  input += end !== undefined && end !== null ? end : '...';
6050
6050
  return r.copySafeness(orig, input);
6051
6051
  }
6052
- exports.truncate = truncate;
6052
+ exports$1.truncate = truncate;
6053
6053
  function upper(str) {
6054
6054
  str = normalize(str, '');
6055
6055
  return str.toUpperCase();
6056
6056
  }
6057
- exports.upper = upper;
6057
+ exports$1.upper = upper;
6058
6058
  function urlencode(obj) {
6059
6059
  var enc = encodeURIComponent;
6060
6060
  if (lib.isString(obj)) {
@@ -6068,7 +6068,7 @@ var GovcyFrontendRendererBrowser = (function () {
6068
6068
  }).join('&');
6069
6069
  }
6070
6070
  }
6071
- exports.urlencode = urlencode;
6071
+ exports$1.urlencode = urlencode;
6072
6072
 
6073
6073
  // For the jinja regexp, see
6074
6074
  // https://github.com/mitsuhiko/jinja2/blob/f15b814dcba6aa12bc74d1f7d0c881d55f7126be/jinja2/utils.py#L20-L23
@@ -6115,18 +6115,18 @@ var GovcyFrontendRendererBrowser = (function () {
6115
6115
  });
6116
6116
  return words.join('');
6117
6117
  }
6118
- exports.urlize = urlize;
6118
+ exports$1.urlize = urlize;
6119
6119
  function wordcount(str) {
6120
6120
  str = normalize(str, '');
6121
6121
  var words = str ? str.match(/\w+/g) : null;
6122
6122
  return words ? words.length : null;
6123
6123
  }
6124
- exports.wordcount = wordcount;
6124
+ exports$1.wordcount = wordcount;
6125
6125
  function float(val, def) {
6126
6126
  var res = parseFloat(val);
6127
6127
  return isNaN(res) ? def : res;
6128
6128
  }
6129
- exports.float = float;
6129
+ exports$1.float = float;
6130
6130
  var intFilter = r.makeMacro(['value', 'default', 'base'], [], function doInt(value, defaultValue, base) {
6131
6131
  if (base === void 0) {
6132
6132
  base = 10;
@@ -6134,15 +6134,15 @@ var GovcyFrontendRendererBrowser = (function () {
6134
6134
  var res = parseInt(value, base);
6135
6135
  return isNaN(res) ? defaultValue : res;
6136
6136
  });
6137
- exports.int = intFilter;
6137
+ exports$1.int = intFilter;
6138
6138
 
6139
6139
  // Aliases
6140
- exports.d = exports.default;
6141
- exports.e = exports.escape;
6140
+ exports$1.d = exports$1.default;
6141
+ exports$1.e = exports$1.escape;
6142
6142
 
6143
6143
  /***/ }),
6144
6144
  /* 19 */
6145
- /***/ (function(module, exports, __webpack_require__) {
6145
+ /***/ (function(module, exports$1, __webpack_require__) {
6146
6146
 
6147
6147
 
6148
6148
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
@@ -6177,7 +6177,7 @@ var GovcyFrontendRendererBrowser = (function () {
6177
6177
 
6178
6178
  /***/ }),
6179
6179
  /* 20 */
6180
- /***/ (function(module, exports, __webpack_require__) {
6180
+ /***/ (function(module, exports$1, __webpack_require__) {
6181
6181
 
6182
6182
 
6183
6183
  var SafeString = __webpack_require__(2).SafeString;
@@ -6190,7 +6190,7 @@ var GovcyFrontendRendererBrowser = (function () {
6190
6190
  function callable(value) {
6191
6191
  return typeof value === 'function';
6192
6192
  }
6193
- exports.callable = callable;
6193
+ exports$1.callable = callable;
6194
6194
 
6195
6195
  /**
6196
6196
  * Returns `true` if the object is strictly not `undefined`.
@@ -6200,7 +6200,7 @@ var GovcyFrontendRendererBrowser = (function () {
6200
6200
  function defined(value) {
6201
6201
  return value !== undefined;
6202
6202
  }
6203
- exports.defined = defined;
6203
+ exports$1.defined = defined;
6204
6204
 
6205
6205
  /**
6206
6206
  * Returns `true` if the operand (one) is divisble by the test's argument
@@ -6212,7 +6212,7 @@ var GovcyFrontendRendererBrowser = (function () {
6212
6212
  function divisibleby(one, two) {
6213
6213
  return one % two === 0;
6214
6214
  }
6215
- exports.divisibleby = divisibleby;
6215
+ exports$1.divisibleby = divisibleby;
6216
6216
 
6217
6217
  /**
6218
6218
  * Returns true if the string has been escaped (i.e., is a SafeString).
@@ -6222,7 +6222,7 @@ var GovcyFrontendRendererBrowser = (function () {
6222
6222
  function escaped(value) {
6223
6223
  return value instanceof SafeString;
6224
6224
  }
6225
- exports.escaped = escaped;
6225
+ exports$1.escaped = escaped;
6226
6226
 
6227
6227
  /**
6228
6228
  * Returns `true` if the arguments are strictly equal.
@@ -6232,11 +6232,11 @@ var GovcyFrontendRendererBrowser = (function () {
6232
6232
  function equalto(one, two) {
6233
6233
  return one === two;
6234
6234
  }
6235
- exports.equalto = equalto;
6235
+ exports$1.equalto = equalto;
6236
6236
 
6237
6237
  // Aliases
6238
- exports.eq = exports.equalto;
6239
- exports.sameas = exports.equalto;
6238
+ exports$1.eq = exports$1.equalto;
6239
+ exports$1.sameas = exports$1.equalto;
6240
6240
 
6241
6241
  /**
6242
6242
  * Returns `true` if the value is evenly divisible by 2.
@@ -6246,7 +6246,7 @@ var GovcyFrontendRendererBrowser = (function () {
6246
6246
  function even(value) {
6247
6247
  return value % 2 === 0;
6248
6248
  }
6249
- exports.even = even;
6249
+ exports$1.even = even;
6250
6250
 
6251
6251
  /**
6252
6252
  * Returns `true` if the value is falsy - if I recall correctly, '', 0, false,
@@ -6259,7 +6259,7 @@ var GovcyFrontendRendererBrowser = (function () {
6259
6259
  function falsy(value) {
6260
6260
  return !value;
6261
6261
  }
6262
- exports.falsy = falsy;
6262
+ exports$1.falsy = falsy;
6263
6263
 
6264
6264
  /**
6265
6265
  * Returns `true` if the operand (one) is greater or equal to the test's
@@ -6271,7 +6271,7 @@ var GovcyFrontendRendererBrowser = (function () {
6271
6271
  function ge(one, two) {
6272
6272
  return one >= two;
6273
6273
  }
6274
- exports.ge = ge;
6274
+ exports$1.ge = ge;
6275
6275
 
6276
6276
  /**
6277
6277
  * Returns `true` if the operand (one) is greater than the test's argument
@@ -6283,10 +6283,10 @@ var GovcyFrontendRendererBrowser = (function () {
6283
6283
  function greaterthan(one, two) {
6284
6284
  return one > two;
6285
6285
  }
6286
- exports.greaterthan = greaterthan;
6286
+ exports$1.greaterthan = greaterthan;
6287
6287
 
6288
6288
  // alias
6289
- exports.gt = exports.greaterthan;
6289
+ exports$1.gt = exports$1.greaterthan;
6290
6290
 
6291
6291
  /**
6292
6292
  * Returns `true` if the operand (one) is less than or equal to the test's
@@ -6298,7 +6298,7 @@ var GovcyFrontendRendererBrowser = (function () {
6298
6298
  function le(one, two) {
6299
6299
  return one <= two;
6300
6300
  }
6301
- exports.le = le;
6301
+ exports$1.le = le;
6302
6302
 
6303
6303
  /**
6304
6304
  * Returns `true` if the operand (one) is less than the test's passed argument
@@ -6310,10 +6310,10 @@ var GovcyFrontendRendererBrowser = (function () {
6310
6310
  function lessthan(one, two) {
6311
6311
  return one < two;
6312
6312
  }
6313
- exports.lessthan = lessthan;
6313
+ exports$1.lessthan = lessthan;
6314
6314
 
6315
6315
  // alias
6316
- exports.lt = exports.lessthan;
6316
+ exports$1.lt = exports$1.lessthan;
6317
6317
 
6318
6318
  /**
6319
6319
  * Returns `true` if the string is lowercased.
@@ -6323,7 +6323,7 @@ var GovcyFrontendRendererBrowser = (function () {
6323
6323
  function lower(value) {
6324
6324
  return value.toLowerCase() === value;
6325
6325
  }
6326
- exports.lower = lower;
6326
+ exports$1.lower = lower;
6327
6327
 
6328
6328
  /**
6329
6329
  * Returns `true` if the operand (one) is less than or equal to the test's
@@ -6335,7 +6335,7 @@ var GovcyFrontendRendererBrowser = (function () {
6335
6335
  function ne(one, two) {
6336
6336
  return one !== two;
6337
6337
  }
6338
- exports.ne = ne;
6338
+ exports$1.ne = ne;
6339
6339
 
6340
6340
  /**
6341
6341
  * Returns true if the value is strictly equal to `null`.
@@ -6345,7 +6345,7 @@ var GovcyFrontendRendererBrowser = (function () {
6345
6345
  function nullTest(value) {
6346
6346
  return value === null;
6347
6347
  }
6348
- exports.null = nullTest;
6348
+ exports$1.null = nullTest;
6349
6349
 
6350
6350
  /**
6351
6351
  * Returns true if value is a number.
@@ -6355,7 +6355,7 @@ var GovcyFrontendRendererBrowser = (function () {
6355
6355
  function number(value) {
6356
6356
  return typeof value === 'number';
6357
6357
  }
6358
- exports.number = number;
6358
+ exports$1.number = number;
6359
6359
 
6360
6360
  /**
6361
6361
  * Returns `true` if the value is *not* evenly divisible by 2.
@@ -6365,7 +6365,7 @@ var GovcyFrontendRendererBrowser = (function () {
6365
6365
  function odd(value) {
6366
6366
  return value % 2 === 1;
6367
6367
  }
6368
- exports.odd = odd;
6368
+ exports$1.odd = odd;
6369
6369
 
6370
6370
  /**
6371
6371
  * Returns `true` if the value is a string, `false` if not.
@@ -6375,7 +6375,7 @@ var GovcyFrontendRendererBrowser = (function () {
6375
6375
  function string(value) {
6376
6376
  return typeof value === 'string';
6377
6377
  }
6378
- exports.string = string;
6378
+ exports$1.string = string;
6379
6379
 
6380
6380
  /**
6381
6381
  * Returns `true` if the value is not in the list of things considered falsy:
@@ -6386,7 +6386,7 @@ var GovcyFrontendRendererBrowser = (function () {
6386
6386
  function truthy(value) {
6387
6387
  return !!value;
6388
6388
  }
6389
- exports.truthy = truthy;
6389
+ exports$1.truthy = truthy;
6390
6390
 
6391
6391
  /**
6392
6392
  * Returns `true` if the value is undefined.
@@ -6396,7 +6396,7 @@ var GovcyFrontendRendererBrowser = (function () {
6396
6396
  function undefinedTest(value) {
6397
6397
  return value === undefined;
6398
6398
  }
6399
- exports.undefined = undefinedTest;
6399
+ exports$1.undefined = undefinedTest;
6400
6400
 
6401
6401
  /**
6402
6402
  * Returns `true` if the string is uppercased.
@@ -6406,7 +6406,7 @@ var GovcyFrontendRendererBrowser = (function () {
6406
6406
  function upper(value) {
6407
6407
  return value.toUpperCase() === value;
6408
6408
  }
6409
- exports.upper = upper;
6409
+ exports$1.upper = upper;
6410
6410
 
6411
6411
  /**
6412
6412
  * If ES6 features are available, returns `true` if the value implements the
@@ -6425,7 +6425,7 @@ var GovcyFrontendRendererBrowser = (function () {
6425
6425
  return Array.isArray(value) || typeof value === 'string';
6426
6426
  }
6427
6427
  }
6428
- exports.iterable = iterable;
6428
+ exports$1.iterable = iterable;
6429
6429
 
6430
6430
  /**
6431
6431
  * If ES6 features are available, returns `true` if the value is an object hash
@@ -6442,11 +6442,11 @@ var GovcyFrontendRendererBrowser = (function () {
6442
6442
  return bool;
6443
6443
  }
6444
6444
  }
6445
- exports.mapping = mapping;
6445
+ exports$1.mapping = mapping;
6446
6446
 
6447
6447
  /***/ }),
6448
6448
  /* 21 */
6449
- /***/ (function(module, exports, __webpack_require__) {
6449
+ /***/ (function(module, exports$1, __webpack_require__) {
6450
6450
 
6451
6451
 
6452
6452
  function _cycler(items) {
@@ -6515,7 +6515,7 @@ var GovcyFrontendRendererBrowser = (function () {
6515
6515
 
6516
6516
  /***/ }),
6517
6517
  /* 22 */
6518
- /***/ (function(module, exports, __webpack_require__) {
6518
+ /***/ (function(module, exports$1, __webpack_require__) {
6519
6519
 
6520
6520
  var path = __webpack_require__(4);
6521
6521
  module.exports = function express(env, app) {
@@ -6541,7 +6541,7 @@ var GovcyFrontendRendererBrowser = (function () {
6541
6541
 
6542
6542
  /***/ }),
6543
6543
  /* 23 */
6544
- /***/ (function(module, exports, __webpack_require__) {
6544
+ /***/ (function(module, exports$1, __webpack_require__) {
6545
6545
 
6546
6546
 
6547
6547
  var fs = __webpack_require__(4);
@@ -6653,7 +6653,7 @@ var GovcyFrontendRendererBrowser = (function () {
6653
6653
 
6654
6654
  /***/ }),
6655
6655
  /* 24 */
6656
- /***/ (function(module, exports, __webpack_require__) {
6656
+ /***/ (function(module, exports$1, __webpack_require__) {
6657
6657
 
6658
6658
 
6659
6659
  function precompileGlobal(templates, opts) {
@@ -6674,7 +6674,7 @@ var GovcyFrontendRendererBrowser = (function () {
6674
6674
 
6675
6675
  /***/ }),
6676
6676
  /* 25 */
6677
- /***/ (function(module, exports, __webpack_require__) {
6677
+ /***/ (function(module, exports$1, __webpack_require__) {
6678
6678
 
6679
6679
  function installCompat() {
6680
6680
 
@@ -12065,7 +12065,14 @@ var GovcyFrontendRendererBrowser = (function () {
12065
12065
  if (url.length <= proto.length) return false
12066
12066
 
12067
12067
  // disallow '*' at the end of the link (conflicts with emphasis)
12068
- url = url.replace(/\*+$/, '');
12068
+ // do manual backsearch to avoid perf issues with regex /\*+$/ on "****...****a".
12069
+ let urlEnd = url.length;
12070
+ while (urlEnd > 0 && url.charCodeAt(urlEnd - 1) === 0x2A/* * */) {
12071
+ urlEnd--;
12072
+ }
12073
+ if (urlEnd !== url.length) {
12074
+ url = url.slice(0, urlEnd);
12075
+ }
12069
12076
 
12070
12077
  const fullUrl = state.md.normalizeLink(url);
12071
12078
  if (!state.md.validateLink(fullUrl)) return false