0&&e.sanitizeConfig.addAttr.forEach((function(t){r.ADD_ATTR.push(t)})),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.addTags)&&e.sanitizeConfig.addTags.length>0&&(r.ADD_TAGS=e.sanitizeConfig.addTags),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.allowedTags)&&e.sanitizeConfig.allowedTags.length>0&&(r.ALLOWED_TAGS=e.sanitizeConfig.allowedTags),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.allowedAttrs)&&e.sanitizeConfig.allowedAttrs.length>0&&(r.ALLOWED_ATTR=e.sanitizeConfig.allowedAttrs),e.sanitizeConfig&&e.sanitizeConfig.allowedUriRegex&&(r.ALLOWED_URI_REGEXP=e.sanitizeConfig.allowedUriRegex),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.addUriSafeAttr)&&e.sanitizeConfig.addUriSafeAttr.length>0&&(r.ADD_URI_SAFE_ATTR=e.sanitizeConfig.addUriSafeAttr),n.sanitize(t,r)}}},e={};!function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}(1150)}();
\ No newline at end of file
diff --git a/lib/base/index.js.LICENSE.txt b/lib/base/index.js.LICENSE.txt
new file mode 100644
index 00000000..ca5e3917
--- /dev/null
+++ b/lib/base/index.js.LICENSE.txt
@@ -0,0 +1 @@
+/*! @license DOMPurify 2.4.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.5/LICENSE */
diff --git a/lib/base/nested/NestedComponent.js b/lib/base/nested/NestedComponent.js
deleted file mode 100644
index 92dff455..00000000
--- a/lib/base/nested/NestedComponent.js
+++ /dev/null
@@ -1,129 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
- return new (P || (P = Promise))(function (resolve, reject) {
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
- step((generator = generator.apply(thisArg, _arguments || [])).next());
- });
-};
-var __generator = (this && this.__generator) || function (thisArg, body) {
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
- function verb(n) { return function (v) { return step([n, v]); }; }
- function step(op) {
- if (f) throw new TypeError("Generator is already executing.");
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
- if (y = 0, t) op = [op[0] & 2, t.value];
- switch (op[0]) {
- case 0: case 1: t = op; break;
- case 4: _.label++; return { value: op[1], done: false };
- case 5: _.label++; y = op[1]; op = [0]; continue;
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
- default:
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
- if (t[2]) _.ops.pop();
- _.trys.pop(); continue;
- }
- op = body.call(thisArg, _);
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
- }
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.NestedComponent = void 0;
-var Components_1 = require("../Components");
-var Component_1 = require("../component/Component");
-var model_1 = require("@formio/model");
-function NestedComponent(props) {
- if (props === void 0) { props = {}; }
- if (!props.type) {
- props.type = 'nested';
- }
- if (!props.model) {
- props.model = model_1.NestedModel;
- }
- if (!props.factory) {
- props.factory = Components_1.Components;
- }
- return function (BaseClass) {
- return /** @class */ (function (_super) {
- __extends(ExtendedNestedComponent, _super);
- function ExtendedNestedComponent() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- Object.defineProperty(ExtendedNestedComponent.prototype, "defaultTemplate", {
- get: function () {
- return function (ctx) { return "".concat(ctx.instance.renderComponents(), "
"); };
- },
- enumerable: false,
- configurable: true
- });
- /**
- * Attach a html element to this nestd component.
- * @param element
- */
- ExtendedNestedComponent.prototype.attach = function (element) {
- return __awaiter(this, void 0, void 0, function () {
- var promises_1, children;
- var _this = this;
- return __generator(this, function (_a) {
- switch (_a.label) {
- case 0: return [4 /*yield*/, _super.prototype.attach.call(this, element)];
- case 1:
- _a.sent();
- if (!this.element) return [3 /*break*/, 3];
- promises_1 = [];
- children = this.element.querySelectorAll("[data-within=\"".concat(this.id, "\"]"));
- Array.prototype.slice.call(children).forEach(function (child, index) {
- promises_1.push(_this.components[index].attach(child));
- });
- return [4 /*yield*/, Promise.all(promises_1)];
- case 2:
- _a.sent();
- _a.label = 3;
- case 3: return [2 /*return*/, this];
- }
- });
- });
- };
- /**
- * Detach components.
- */
- ExtendedNestedComponent.prototype.detach = function () {
- _super.prototype.detach.call(this);
- this.eachComponent(function (comp) { return comp.detach(); });
- };
- ExtendedNestedComponent.prototype.renderComponents = function () {
- var _this = this;
- return this.components.reduce(function (tpl, comp) {
- return tpl + comp.render().replace(/(<[^\>]+)/, "$1 data-within=\"".concat(_this.id, "\""));
- }, '');
- };
- return ExtendedNestedComponent;
- }((0, Component_1.Component)(props)(BaseClass)));
- };
-}
-exports.NestedComponent = NestedComponent;
-Components_1.Components.addDecorator(NestedComponent, 'nested');
-Components_1.Components.addComponent(NestedComponent()(), 'nested');
diff --git a/lib/base/nested/fixtures/comp1.js b/lib/base/nested/fixtures/comp1.js
deleted file mode 100644
index 8106d1aa..00000000
--- a/lib/base/nested/fixtures/comp1.js
+++ /dev/null
@@ -1,20 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.default = {
- type: 'nested',
- key: 'nested',
- components: [
- {
- type: 'html',
- key: 'html1',
- content: 'Hello',
- tag: 'strong'
- },
- {
- type: 'html',
- key: 'html2',
- content: 'There',
- tag: 'h2'
- },
- ]
-};
diff --git a/lib/base/nested/fixtures/comp2.js b/lib/base/nested/fixtures/comp2.js
deleted file mode 100644
index d17116f1..00000000
--- a/lib/base/nested/fixtures/comp2.js
+++ /dev/null
@@ -1,16 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.default = {
- type: 'data',
- key: 'employee',
- components: [
- {
- type: 'component',
- key: 'firstName'
- },
- {
- type: 'component',
- key: 'lastName'
- }
- ]
-};
diff --git a/lib/base/nested/fixtures/index.js b/lib/base/nested/fixtures/index.js
deleted file mode 100644
index 03120ec2..00000000
--- a/lib/base/nested/fixtures/index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.comp2 = exports.comp1 = void 0;
-var comp1_1 = __importDefault(require("./comp1"));
-exports.comp1 = comp1_1.default;
-var comp2_1 = __importDefault(require("./comp2"));
-exports.comp2 = comp2_1.default;
diff --git a/lib/components/datatable/datatable.js b/lib/components/datatable/datatable.js
deleted file mode 100644
index 2465e51c..00000000
--- a/lib/components/datatable/datatable.js
+++ /dev/null
@@ -1,79 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.DataTableComponent = exports.DataTable = void 0;
-var base_1 = require("@formio/base");
-/**
- * A base class for a data table.
- */
-var DataTable = /** @class */ (function () {
- function DataTable(component, options, data) {
- this.component = component;
- this.options = options;
- this.data = data;
- }
- DataTable.prototype.renderClasses = function () {
- var classes = '';
- if (this.component.bordered) {
- classes += ' table-bordered';
- }
- if (this.component.striped) {
- classes += ' table-striped';
- }
- if (this.component.hover) {
- classes += ' table-hover';
- }
- if (this.component.condensed) {
- classes += ' table-condensed';
- }
- return classes;
- };
- DataTable.prototype.renderContext = function (extend) {
- if (extend === void 0) { extend = {}; }
- return Object.assign({
- classes: this.renderClasses()
- }, extend);
- };
- return DataTable;
-}());
-exports.DataTable = DataTable;
-var DataTableComponent = /** @class */ (function (_super) {
- __extends(DataTableComponent, _super);
- function DataTableComponent() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- DataTableComponent = __decorate([
- (0, base_1.ArrayComponent)({
- type: 'datatable',
- schema: {
- bordered: true,
- striped: false,
- hover: true,
- condensed: true
- },
- template: 'datatable',
- })
- ], DataTableComponent);
- return DataTableComponent;
-}(DataTable));
-exports.DataTableComponent = DataTableComponent;
diff --git a/lib/components/datavalue/datavalue.js b/lib/components/datavalue/datavalue.js
deleted file mode 100644
index d5c93abc..00000000
--- a/lib/components/datavalue/datavalue.js
+++ /dev/null
@@ -1,47 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.DataValueComponent = void 0;
-var base_1 = require("@formio/base");
-var html_1 = require("../html/html");
-var DataValueComponent = /** @class */ (function (_super) {
- __extends(DataValueComponent, _super);
- function DataValueComponent() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- DataValueComponent = __decorate([
- (0, base_1.Component)({
- type: 'datavalue',
- schema: {
- tag: 'span',
- attrs: [],
- className: ''
- },
- template: function (ctx) {
- return "<".concat(ctx.tag, " ref=\"val\"").concat(ctx.attrs, ">").concat(ctx.value(), "").concat(ctx.tag, ">");
- }
- })
- ], DataValueComponent);
- return DataValueComponent;
-}(html_1.HTML));
-exports.DataValueComponent = DataValueComponent;
diff --git a/lib/components/html/html.js b/lib/components/html/html.js
deleted file mode 100644
index 8c1a1c2e..00000000
--- a/lib/components/html/html.js
+++ /dev/null
@@ -1,90 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.HTMLComponent = exports.HTML = exports.HTMLProperties = void 0;
-var base_1 = require("@formio/base");
-exports.HTMLProperties = {
- type: 'html',
- schema: {
- tag: 'span',
- content: '',
- attrs: [],
- className: ''
- },
- template: function (ctx) {
- return "<".concat(ctx.tag, " ref=\"").concat(ctx.ref, "\"").concat(ctx.attrs, ">").concat(ctx.t(ctx.content), "").concat(ctx.tag, ">");
- }
-};
-/**
- * Base class for HTML based components.
- */
-var HTML = /** @class */ (function () {
- function HTML(component, options, data) {
- this.component = component;
- this.options = options;
- this.data = data;
- }
- HTML.prototype.getAttributes = function () {
- var hasClass = false;
- var attrs = '';
- for (var i in this.component.attrs) {
- if (this.component.attrs.hasOwnProperty(i)) {
- var attrValue = this.component.attrs[i];
- var isString = Number.isNaN(parseInt(i));
- var attr = isString ? i : attrValue.attr;
- var value = isString ? attrValue : attrValue.value;
- if (attr === 'class' && this.component.className) {
- hasClass = true;
- attr += " ".concat(this.component.className);
- }
- attrs += " ".concat(attr, "=\"").concat(this.interpolate(value, this.evalContext()), "\"");
- }
- }
- if (!hasClass && this.component.className) {
- attrs += " class=\"".concat(this.interpolate(this.component.className, this.evalContext()), "\"");
- }
- return attrs;
- };
- HTML.prototype.renderContext = function (extend) {
- if (extend === void 0) { extend = {}; }
- return Object.assign({
- tag: this.component.tag,
- ref: this.component.type,
- content: this.component.content ? this.interpolate(this.component.content, this.evalContext()) : '',
- attrs: this.getAttributes()
- }, extend);
- };
- return HTML;
-}());
-exports.HTML = HTML;
-var HTMLComponent = /** @class */ (function (_super) {
- __extends(HTMLComponent, _super);
- function HTMLComponent() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- HTMLComponent = __decorate([
- (0, base_1.Component)(exports.HTMLProperties)
- ], HTMLComponent);
- return HTMLComponent;
-}(HTML));
-exports.HTMLComponent = HTMLComponent;
diff --git a/lib/components/htmlcontainer/fixtures/comp1.js b/lib/components/htmlcontainer/fixtures/comp1.js
deleted file mode 100644
index 7f3bb25c..00000000
--- a/lib/components/htmlcontainer/fixtures/comp1.js
+++ /dev/null
@@ -1,18 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.default = {
- type: 'htmlcontainer',
- tag: 'div',
- className: 'testing',
- attrs: [
- { attr: 'one', value: 'two' },
- { attr: 'three', value: 'four' }
- ],
- components: [
- {
- type: 'html',
- tag: 'span',
- content: 'Testing'
- }
- ]
-};
diff --git a/lib/components/htmlcontainer/fixtures/comp2.js b/lib/components/htmlcontainer/fixtures/comp2.js
deleted file mode 100644
index 3afe7489..00000000
--- a/lib/components/htmlcontainer/fixtures/comp2.js
+++ /dev/null
@@ -1,29 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.default = {
- type: 'htmlcontainer',
- tag: 'div',
- className: 'testing',
- attrs: [
- { attr: 'one', value: 'two' },
- { attr: 'three', value: 'four' }
- ],
- components: [
- {
- type: 'html',
- tag: 'span',
- content: 'Testing'
- },
- {
- type: 'htmlcontainer',
- tag: 'div',
- components: [
- {
- type: 'html',
- tag: 'h3',
- content: 'This is a title'
- }
- ]
- }
- ]
-};
diff --git a/lib/components/htmlcontainer/fixtures/index.js b/lib/components/htmlcontainer/fixtures/index.js
deleted file mode 100644
index 03120ec2..00000000
--- a/lib/components/htmlcontainer/fixtures/index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.comp2 = exports.comp1 = void 0;
-var comp1_1 = __importDefault(require("./comp1"));
-exports.comp1 = comp1_1.default;
-var comp2_1 = __importDefault(require("./comp2"));
-exports.comp2 = comp2_1.default;
diff --git a/lib/components/htmlcontainer/htmlcontainer.js b/lib/components/htmlcontainer/htmlcontainer.js
deleted file mode 100644
index f3d03ac2..00000000
--- a/lib/components/htmlcontainer/htmlcontainer.js
+++ /dev/null
@@ -1,58 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.HTMLContainerComponent = exports.HTMLContainer = void 0;
-var base_1 = require("@formio/base");
-var html_1 = require("../html/html");
-/**
- * Base HTMLContainer component.
- */
-var HTMLContainer = /** @class */ (function (_super) {
- __extends(HTMLContainer, _super);
- function HTMLContainer() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- HTMLContainer.prototype.renderContext = function (extend) {
- if (extend === void 0) { extend = {}; }
- return _super.prototype.renderContext.call(this, Object.assign({
- content: this.renderComponents()
- }, extend));
- };
- return HTMLContainer;
-}(html_1.HTML));
-exports.HTMLContainer = HTMLContainer;
-var HTMLContainerComponent = /** @class */ (function (_super) {
- __extends(HTMLContainerComponent, _super);
- function HTMLContainerComponent() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- HTMLContainerComponent = __decorate([
- (0, base_1.NestedComponent)({
- type: 'htmlcontainer',
- schema: html_1.HTMLProperties.schema,
- template: html_1.HTMLProperties.template
- })
- ], HTMLContainerComponent);
- return HTMLContainerComponent;
-}(HTMLContainer));
-exports.HTMLContainerComponent = HTMLContainerComponent;
diff --git a/lib/components/index.js b/lib/components/index.js
index 06733e41..3a142bd1 100644
--- a/lib/components/index.js
+++ b/lib/components/index.js
@@ -1,36 +1,2 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.InputComponent = exports.Input = exports.DataValueComponent = exports.DataTableComponent = exports.DataTable = exports.HTMLContainerComponent = exports.HTMLContainer = exports.HTMLComponent = exports.HTML = void 0;
-var templates_1 = __importDefault(require("./templates"));
-var html_1 = require("./html/html");
-var htmlcontainer_1 = require("./htmlcontainer/htmlcontainer");
-var datatable_1 = require("./datatable/datatable");
-var datavalue_1 = require("./datavalue/datavalue");
-var input_1 = require("./input/input");
-var html_2 = require("./html/html");
-Object.defineProperty(exports, "HTML", { enumerable: true, get: function () { return html_2.HTML; } });
-Object.defineProperty(exports, "HTMLComponent", { enumerable: true, get: function () { return html_2.HTMLComponent; } });
-var htmlcontainer_2 = require("./htmlcontainer/htmlcontainer");
-Object.defineProperty(exports, "HTMLContainer", { enumerable: true, get: function () { return htmlcontainer_2.HTMLContainer; } });
-Object.defineProperty(exports, "HTMLContainerComponent", { enumerable: true, get: function () { return htmlcontainer_2.HTMLContainerComponent; } });
-var datatable_2 = require("./datatable/datatable");
-Object.defineProperty(exports, "DataTable", { enumerable: true, get: function () { return datatable_2.DataTable; } });
-Object.defineProperty(exports, "DataTableComponent", { enumerable: true, get: function () { return datatable_2.DataTableComponent; } });
-var datavalue_2 = require("./datavalue/datavalue");
-Object.defineProperty(exports, "DataValueComponent", { enumerable: true, get: function () { return datavalue_2.DataValueComponent; } });
-var input_2 = require("./input/input");
-Object.defineProperty(exports, "Input", { enumerable: true, get: function () { return input_2.Input; } });
-Object.defineProperty(exports, "InputComponent", { enumerable: true, get: function () { return input_2.InputComponent; } });
-exports.default = {
- components: {
- html: html_1.HTMLComponent,
- htmlcontainer: htmlcontainer_1.HTMLContainerComponent,
- datatable: datatable_1.DataTableComponent,
- datavalue: datavalue_1.DataValueComponent,
- input: input_1.InputComponent
- },
- templates: templates_1.default
-};
+/*! For license information please see index.js.LICENSE.txt */
+!function(){var t={2937:function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o0?t.slice(e):t},e.dropRight=function(t,e){return void 0===e&&(e=1),e>0?t.slice(0,-e):t},e.each=a,e.find=c,e.findIndex=function(t,e){return c(t,e,!0)},e.matches=u,e.findEach=s,e.filter=function(t,e){if(!t)return[];if(e||(e=function(t){return!!t}),Array.isArray(t)&&"function"==typeof e)return t.filter(e);var n=[];return s(t,e,(function(e,r){n.push(e),Array.isArray(e)?t.splice(r,1):delete t[r]})),n},e.last=function(t){return t[t.length-1]},e.head=function(t){return t[0]},e.map=function(t,e){return t.map(e)},e.intersection=function(t,e){return t.filter((function(t){return e.includes(t)}))}},3254:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=void 0,e.debounce=function(t,e){var n;return void 0===e&&(e=100),function(){for(var r=[],o=0;o=t.length:!t.hasOwnProperty(e))||othis.length)&&(e=this.length),this.substring(e-t.length,e)===t}),e.endsWith=function(t,e){return t.endsWith(e)}},7856:function(t){t.exports=function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,n){return e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(t,n)}function n(t,r,o){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(t,o));return r&&e(i,r.prototype),i},n.apply(null,arguments)}function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?n-1:0),o=1;o/gm),W=f(/\${[\w\W]*}/gm),q=f(/^data-[\-\w.\u00B7-\uFFFF]/),$=f(/^aria-[\-\w]+$/),Y=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=f(/^(?:\w+script|data):/i),Z=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=f(/^html$/i),J=function(){return"undefined"==typeof window?null:window},Q=function(e,n){if("object"!==t(e)||"function"!=typeof e.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J(),o=function(t){return e(t)};if(o.version="2.4.5",o.removed=[],!n||!n.document||9!==n.document.nodeType)return o.isSupported=!1,o;var i=n.document,a=n.document,c=n.DocumentFragment,u=n.HTMLTemplateElement,s=n.Node,f=n.Element,p=n.NodeFilter,d=n.NamedNodeMap,h=void 0===d?n.NamedNodeMap||n.MozNamedAttrMap:d,y=n.HTMLFormElement,m=n.DOMParser,E=n.trustedTypes,tt=f.prototype,et=N(tt,"cloneNode"),nt=N(tt,"nextSibling"),rt=N(tt,"childNodes"),ot=N(tt,"parentNode");if("function"==typeof u){var it=a.createElement("template");it.content&&it.content.ownerDocument&&(a=it.content.ownerDocument)}var at=Q(E,i),ct=at?at.createHTML(""):"",ut=a,st=ut.implementation,lt=ut.createNodeIterator,ft=ut.createDocumentFragment,pt=ut.getElementsByTagName,dt=i.importNode,ht={};try{ht=M(a).documentMode?a.documentMode:{}}catch(t){}var yt={};o.isSupported="function"==typeof ot&&st&&void 0!==st.createHTMLDocument&&9!==ht;var mt,vt,bt=F,gt=G,_t=W,Ot=q,wt=$,jt=K,Ct=Z,At=Y,Tt=null,Pt=x({},[].concat(r(S),r(k),r(D),r(R),r(H))),Et=null,xt=x({},[].concat(r(V),r(z),r(B),r(U))),Mt=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Nt=null,St=null,kt=!0,Dt=!0,Lt=!1,Rt=!0,It=!1,Ht=!1,Vt=!1,zt=!1,Bt=!1,Ut=!1,Ft=!1,Gt=!0,Wt=!1,qt=!0,$t=!1,Yt={},Kt=null,Zt=x({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Xt=null,Jt=x({},["audio","video","img","source","image","track"]),Qt=null,te=x({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ee="http://www.w3.org/1998/Math/MathML",ne="http://www.w3.org/2000/svg",re="http://www.w3.org/1999/xhtml",oe=re,ie=!1,ae=null,ce=x({},[ee,ne,re],O),ue=["application/xhtml+xml","text/html"],se=null,le=a.createElement("form"),fe=function(t){return t instanceof RegExp||t instanceof Function},pe=function(e){se&&se===e||(e&&"object"===t(e)||(e={}),e=M(e),mt=mt=-1===ue.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,vt="application/xhtml+xml"===mt?O:_,Tt="ALLOWED_TAGS"in e?x({},e.ALLOWED_TAGS,vt):Pt,Et="ALLOWED_ATTR"in e?x({},e.ALLOWED_ATTR,vt):xt,ae="ALLOWED_NAMESPACES"in e?x({},e.ALLOWED_NAMESPACES,O):ce,Qt="ADD_URI_SAFE_ATTR"in e?x(M(te),e.ADD_URI_SAFE_ATTR,vt):te,Xt="ADD_DATA_URI_TAGS"in e?x(M(Jt),e.ADD_DATA_URI_TAGS,vt):Jt,Kt="FORBID_CONTENTS"in e?x({},e.FORBID_CONTENTS,vt):Zt,Nt="FORBID_TAGS"in e?x({},e.FORBID_TAGS,vt):{},St="FORBID_ATTR"in e?x({},e.FORBID_ATTR,vt):{},Yt="USE_PROFILES"in e&&e.USE_PROFILES,kt=!1!==e.ALLOW_ARIA_ATTR,Dt=!1!==e.ALLOW_DATA_ATTR,Lt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Rt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,It=e.SAFE_FOR_TEMPLATES||!1,Ht=e.WHOLE_DOCUMENT||!1,Bt=e.RETURN_DOM||!1,Ut=e.RETURN_DOM_FRAGMENT||!1,Ft=e.RETURN_TRUSTED_TYPE||!1,zt=e.FORCE_BODY||!1,Gt=!1!==e.SANITIZE_DOM,Wt=e.SANITIZE_NAMED_PROPS||!1,qt=!1!==e.KEEP_CONTENT,$t=e.IN_PLACE||!1,At=e.ALLOWED_URI_REGEXP||At,oe=e.NAMESPACE||re,Mt=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&fe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Mt.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&fe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Mt.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Mt.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),It&&(Dt=!1),Ut&&(Bt=!0),Yt&&(Tt=x({},r(H)),Et=[],!0===Yt.html&&(x(Tt,S),x(Et,V)),!0===Yt.svg&&(x(Tt,k),x(Et,z),x(Et,U)),!0===Yt.svgFilters&&(x(Tt,D),x(Et,z),x(Et,U)),!0===Yt.mathMl&&(x(Tt,R),x(Et,B),x(Et,U))),e.ADD_TAGS&&(Tt===Pt&&(Tt=M(Tt)),x(Tt,e.ADD_TAGS,vt)),e.ADD_ATTR&&(Et===xt&&(Et=M(Et)),x(Et,e.ADD_ATTR,vt)),e.ADD_URI_SAFE_ATTR&&x(Qt,e.ADD_URI_SAFE_ATTR,vt),e.FORBID_CONTENTS&&(Kt===Zt&&(Kt=M(Kt)),x(Kt,e.FORBID_CONTENTS,vt)),qt&&(Tt["#text"]=!0),Ht&&x(Tt,["html","head","body"]),Tt.table&&(x(Tt,["tbody"]),delete Nt.tbody),l&&l(e),se=e)},de=x({},["mi","mo","mn","ms","mtext"]),he=x({},["foreignobject","desc","title","annotation-xml"]),ye=x({},["title","style","font","a","script"]),me=x({},k);x(me,D),x(me,L);var ve=x({},R);x(ve,I);var be=function(t){g(o.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=ct}catch(e){t.remove()}}},ge=function(t,e){try{g(o.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){g(o.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!Et[t])if(Bt||Ut)try{be(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},_e=function(t){var e,n;if(zt)t=""+t;else{var r=w(t,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===mt&&oe===re&&(t=''+t+"");var o=at?at.createHTML(t):t;if(oe===re)try{e=(new m).parseFromString(o,mt)}catch(t){}if(!e||!e.documentElement){e=st.createDocument(oe,"template",null);try{e.documentElement.innerHTML=ie?ct:o}catch(t){}}var i=e.body||e.documentElement;return t&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),oe===re?pt.call(e,Ht?"html":"body")[0]:Ht?e.documentElement:i},Oe=function(t){return lt.call(t.ownerDocument||t,t,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT,null,!1)},we=function(e){return"object"===t(s)?e instanceof s:e&&"object"===t(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},je=function(t,e,n){yt[t]&&v(yt[t],(function(t){t.call(o,e,n,se)}))},Ce=function(t){var e,n;if(je("beforeSanitizeElements",t,null),(n=t)instanceof y&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof h)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return be(t),!0;if(T(/[\u0080-\uFFFF]/,t.nodeName))return be(t),!0;var r=vt(t.nodeName);if(je("uponSanitizeElement",t,{tagName:r,allowedTags:Tt}),t.hasChildNodes()&&!we(t.firstElementChild)&&(!we(t.content)||!we(t.content.firstElementChild))&&T(/<[/\w]/g,t.innerHTML)&&T(/<[/\w]/g,t.textContent))return be(t),!0;if("select"===r&&T(/=0;--c)i.insertBefore(et(a[c],!0),nt(t))}return be(t),!0}return t instanceof f&&!function(t){var e=ot(t);e&&e.tagName||(e={namespaceURI:oe,tagName:"template"});var n=_(t.tagName),r=_(e.tagName);return!!ae[t.namespaceURI]&&(t.namespaceURI===ne?e.namespaceURI===re?"svg"===n:e.namespaceURI===ee?"svg"===n&&("annotation-xml"===r||de[r]):Boolean(me[n]):t.namespaceURI===ee?e.namespaceURI===re?"math"===n:e.namespaceURI===ne?"math"===n&&he[r]:Boolean(ve[n]):t.namespaceURI===re?!(e.namespaceURI===ne&&!he[r])&&!(e.namespaceURI===ee&&!de[r])&&!ve[n]&&(ye[n]||!me[n]):!("application/xhtml+xml"!==mt||!ae[t.namespaceURI]))}(t)?(be(t),!0):"noscript"!==r&&"noembed"!==r||!T(/<\/no(script|embed)/i,t.innerHTML)?(It&&3===t.nodeType&&(e=t.textContent,e=j(e,bt," "),e=j(e,gt," "),e=j(e,_t," "),t.textContent!==e&&(g(o.removed,{element:t.cloneNode()}),t.textContent=e)),je("afterSanitizeElements",t,null),!1):(be(t),!0)},Ae=function(t,e,n){if(Gt&&("id"===e||"name"===e)&&(n in a||n in le))return!1;if(Dt&&!St[e]&&T(Ot,e));else if(kt&&T(wt,e));else if(!Et[e]||St[e]){if(!(Te(t)&&(Mt.tagNameCheck instanceof RegExp&&T(Mt.tagNameCheck,t)||Mt.tagNameCheck instanceof Function&&Mt.tagNameCheck(t))&&(Mt.attributeNameCheck instanceof RegExp&&T(Mt.attributeNameCheck,e)||Mt.attributeNameCheck instanceof Function&&Mt.attributeNameCheck(e))||"is"===e&&Mt.allowCustomizedBuiltInElements&&(Mt.tagNameCheck instanceof RegExp&&T(Mt.tagNameCheck,n)||Mt.tagNameCheck instanceof Function&&Mt.tagNameCheck(n))))return!1}else if(Qt[e]);else if(T(At,j(n,Ct,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==C(n,"data:")||!Xt[t])if(Lt&&!T(jt,j(n,Ct,"")));else if(n)return!1;return!0},Te=function(t){return t.indexOf("-")>0},Pe=function(e){var n,r,i,a;je("beforeSanitizeAttributes",e,null);var c=e.attributes;if(c){var u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Et};for(a=c.length;a--;){var s=n=c[a],l=s.name,f=s.namespaceURI;if(r="value"===l?n.value:A(n.value),i=vt(l),u.attrName=i,u.attrValue=r,u.keepAttr=!0,u.forceKeepAttr=void 0,je("uponSanitizeAttribute",e,u),r=u.attrValue,!u.forceKeepAttr&&(ge(l,e),u.keepAttr))if(Rt||!T(/\/>/i,r)){It&&(r=j(r,bt," "),r=j(r,gt," "),r=j(r,_t," "));var p=vt(e.nodeName);if(Ae(p,i,r)){if(!Wt||"id"!==i&&"name"!==i||(ge(l,e),r="user-content-"+r),at&&"object"===t(E)&&"function"==typeof E.getAttributeType)if(f);else switch(E.getAttributeType(p,i)){case"TrustedHTML":r=at.createHTML(r);break;case"TrustedScriptURL":r=at.createScriptURL(r)}try{f?e.setAttributeNS(f,l,r):e.setAttribute(l,r),b(o.removed)}catch(t){}}}else ge(l,e)}je("afterSanitizeAttributes",e,null)}},Ee=function t(e){var n,r=Oe(e);for(je("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)je("uponSanitizeShadowNode",n,null),Ce(n)||(n.content instanceof c&&t(n.content),Pe(n));je("afterSanitizeShadowDOM",e,null)};return o.sanitize=function(e){var r,a,u,l,f,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ie=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!we(e)){if("function"!=typeof e.toString)throw P("toString is not a function");if("string"!=typeof(e=e.toString()))throw P("dirty is not a string, aborting")}if(!o.isSupported){if("object"===t(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof e)return n.toStaticHTML(e);if(we(e))return n.toStaticHTML(e.outerHTML)}return e}if(Vt||pe(p),o.removed=[],"string"==typeof e&&($t=!1),$t){if(e.nodeName){var d=vt(e.nodeName);if(!Tt[d]||Nt[d])throw P("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)1===(a=(r=_e("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!Bt&&!It&&!Ht&&-1===e.indexOf("<"))return at&&Ft?at.createHTML(e):e;if(!(r=_e(e)))return Bt?null:Ft?ct:""}r&&zt&&be(r.firstChild);for(var h=Oe($t?e:r);u=h.nextNode();)3===u.nodeType&&u===l||Ce(u)||(u.content instanceof c&&Ee(u.content),Pe(u),l=u);if(l=null,$t)return e;if(Bt){if(Ut)for(f=ft.call(r.ownerDocument);r.firstChild;)f.appendChild(r.firstChild);else f=r;return(Et.shadowroot||Et.shadowrootmod)&&(f=dt.call(i,f,!0)),f}var y=Ht?r.outerHTML:r.innerHTML;return Ht&&Tt["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&T(X,r.ownerDocument.doctype.name)&&(y="\n"+y),It&&(y=j(y,bt," "),y=j(y,gt," "),y=j(y,_t," ")),at&&Ft?at.createHTML(y):y},o.setConfig=function(t){pe(t),Vt=!0},o.clearConfig=function(){se=null,Vt=!1},o.isValidAttribute=function(t,e,n){se||pe({});var r=vt(t),o=vt(e);return Ae(r,o,n)},o.addHook=function(t,e){"function"==typeof e&&(yt[t]=yt[t]||[],g(yt[t],e))},o.removeHook=function(t){if(yt[t])return b(yt[t])},o.removeHooks=function(t){yt[t]&&(yt[t]=[])},o.removeAllHooks=function(){yt={}},o}()}()},6729:function(t){"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function i(t,e,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var c=new o(r,i||t,a),u=n?n+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function c(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),c.prototype.eventNames=function(){var t,r,o=[];if(0===this._eventsCount)return o;for(r in t=this._events)e.call(t,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},c.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.render=e.Components=void 0;var r=function(){function t(){}return t.component=function(e,n){return void 0===n&&(n="components"),t[n][e]?t[n][e]:t[n].component},t.create=function(e,n,r){return new(t.component(e.type))(e,n,r)},t.addDecorator=function(e,n){t.decorators[n]=e},t.addComponent=function(e,n){if(e)return"function"!=typeof e?t.importComponent(e):(t.components[n]=e,e)},t.importComponent=function(e){void 0===e&&(e={});var r=t.component(e.extends,"decorators"),o=function(){function t(){}return n([r(e)],t)}();t.addComponent(o,e.type)},t.setComponents=function(e){Object.assign(t.components,e)},t.components={},t.decorators={},t}();e.Components=r,e.render=function(t,e,n,o){return void 0===n&&(n={}),void 0===o&&(o={}),r.create(e,n,o).attach(t)}},6509:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.Template=void 0;var a=i(n(2373)),c=function(){function t(){}return t.addTemplates=function(e){var n=t.framework;t.templates=a.merge(t.templates,e),t.framework=n},t.addTemplate=function(e,n){t.templates[e]=a.merge(t.current,n)},t.extendTemplate=function(e,n){t.templates[e]=a.merge(t.templates[e],n)},t.setTemplate=function(e,n){t.addTemplate(e,n)},Object.defineProperty(t,"current",{get:function(){return t._current},set:function(e){var n=t.current;t._current=a.merge(n,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"framework",{get:function(){return t._framework},set:function(e){t.templates.hasOwnProperty(e)&&(t._framework=e,t._current=t.templates[e])},enumerable:!1,configurable:!0}),t.render=function(t,e,n,r){return void 0===n&&(n="html"),void 0===r&&(r=null),"function"==typeof t?t(e):this.current[t]&&this.current[t][n]?this.current[t][n](e):r?r(e):"Unknown template"},t.templates=[],t._current={},t._framework="bootstrap",t}();e.Template=c},3830:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayComponent=void 0;var i=n(7609),a=n(1582),c=n(8584);function u(t){return void 0===t&&(t={}),t.type||(t.type="array"),t.model||(t.model=a.NestedArrayModel),function(e){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}((0,c.NestedComponent)(t)(e))}}e.ArrayComponent=u,i.Components.addDecorator(u,"array"),i.Components.addComponent(u()(),"array")},4648:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),c=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return a(e,t),e},u=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]".concat(t.t("Unknown Component"),"")}},enumerable:!1,configurable:!0}),n.prototype.interpolate=function(t,e){return p.Evaluator.interpolate(t,e)},n.prototype.renderContext=function(t){return void 0===t&&(t={}),e.prototype.renderContext?e.prototype.renderContext.call(this,t):t},n.prototype.evaluate=function(t,e,n,r){return void 0===e&&(e={}),void 0===n&&(n=""),void 0===r&&(r=!1),p.Evaluator.evaluate(t,this.evalContext(e),n,r)},n.prototype.render=function(t){return void 0===t&&(t={}),e.prototype.render?e.prototype.render.call(this,t):this.renderTemplate(this.template||this.component.type,this.renderContext(t))},n.prototype.getRefs=function(){return e.prototype.getRefs?e.prototype.getRefs.call(this):{}},n.prototype.loadRefs=function(t){var e=this.getRefs();for(var n in e)"single"===e[n]?this.refs[n]=t.querySelector('[ref="'.concat(n,'"]')):this.refs[n]=t.querySelectorAll('[ref="'.concat(n,'"]'))},n.prototype.attach=function(t){return u(this,void 0,void 0,(function(){var n,r;return s(this,(function(o){switch(o.label){case 0:return this.element&&!t&&(t=this.element),t&&(n=t.parentNode)?(r=Array.prototype.indexOf.call(n.children,t),t.outerHTML=String(this.sanitize(this.render())),t=n.children[r],this.element=t,this.loadRefs(this.element),e.prototype.attach?[4,e.prototype.attach.call(this,t)]:[3,2]):[2,this];case 1:o.sent(),o.label=2;case 2:return this.attached=!0,[2,this]}}))}))},n.prototype.redraw=function(){return u(this,void 0,void 0,(function(){return s(this,(function(t){return this.element?(this.clear(),[2,this.attach()]):[2]}))}))},n.prototype.sanitize=function(t){return(0,h.sanitize)(t,this.options)},Object.defineProperty(n.prototype,"translations",{get:function(){return this.options.language&&this.options.i18n&&this.options.i18n[this.options.language]?this.options.i18n[this.options.language]:{}},enumerable:!1,configurable:!0}),n.prototype.t=function(t){return this.translations[t]?this.translations[t]:t},n.prototype.evalContext=function(t){var e=this;return void 0===t&&(t={}),Object.assign({instance:this,component:this.component,options:this.options,row:this.data,data:this.root?this.root.data:this.data,rowIndex:this.rowIndex,value:function(){return e.dataValue},t:function(t){return e.t(t)}},t)},n.prototype.renderTemplate=function(t,e){return void 0===e&&(e={}),f.Template.render(t,this.evalContext(e),"html",this.defaultTemplate)},n.prototype.isValueRedacted=function(){return this.component.protected||!this.component.persistent||"client-only"===this.component.persistent},n.prototype.setValue=function(t){var n=!1;return e.prototype.setValue&&(n=e.prototype.setValue.call(this,t)),this.updateValue(t)||n},n.prototype.getElement=function(){return this.element},n.prototype.detach=function(){this.refs={},this.attached=!1,this.removeAttachedListeners(),e.prototype.detach&&e.prototype.detach.call(this)},n.prototype.clear=function(){this.detach(),d.empty(this.getElement()),e.prototype.clear&&e.prototype.clear.call(this)},n.prototype.append=function(t){d.appendTo(t,this.element)},n.prototype.prepend=function(t){d.prependTo(t,this.element)},n.prototype.removeChild=function(t){d.removeChildFrom(t,this.element)},n.prototype.addEventListener=function(t,e,n){if(t)return"addEventListener"in t?t.addEventListener(e,n,!1):"attachEvent"in t&&t.attachEvent("on".concat(e),n),this.attachedListeners.push({obj:t,type:e,func:n}),this},n.prototype.removeAttachedListeners=function(){var t=this;this.attachedListeners.forEach((function(e){return t.removeEventListener(e.obj,e.type,e.func)})),this.attachedListeners=[]},n.prototype.removeEventListener=function(t,e,n){return t&&t.removeEventListener(e,n),this},n}(e(t)(n))}}e.Component=v,l.Components.addDecorator(v,"component"),l.Components.addComponent(v()(),"component")},3552:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.DataComponent=void 0;var i=n(7609),a=n(1582),c=n(8584);function u(t){return void 0===t&&(t={}),t.type||(t.type="data"),t.model||(t.model=a.NestedDataModel),function(e){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}((0,c.NestedComponent)(t)(e))}}e.DataComponent=u,i.Components.addDecorator(u,"data"),i.Components.addComponent(u()(),"data")},1150:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.Template=e.ArrayComponent=e.DataComponent=e.NestedComponent=e.Component=e.render=e.Components=void 0;var i=n(7609);Object.defineProperty(e,"Components",{enumerable:!0,get:function(){return i.Components}}),Object.defineProperty(e,"render",{enumerable:!0,get:function(){return i.render}});var a=n(4648);Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return a.Component}});var c=n(8584);Object.defineProperty(e,"NestedComponent",{enumerable:!0,get:function(){return c.NestedComponent}});var u=n(3552);Object.defineProperty(e,"DataComponent",{enumerable:!0,get:function(){return u.DataComponent}});var s=n(3830);Object.defineProperty(e,"ArrayComponent",{enumerable:!0,get:function(){return s.ArrayComponent}});var l=n(6509);Object.defineProperty(e,"Template",{enumerable:!0,get:function(){return l.Template}}),o(n(1582),e)},8584:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]'.concat(t.instance.renderComponents(),"")}},enumerable:!1,configurable:!0}),e.prototype.attach=function(e){return i(this,void 0,void 0,(function(){var n,r,o=this;return a(this,(function(i){switch(i.label){case 0:return[4,t.prototype.attach.call(this,e)];case 1:return i.sent(),this.element?(n=[],r=this.element.querySelectorAll('[data-within="'.concat(this.id,'"]')),Array.prototype.slice.call(r).forEach((function(t,e){n.push(o.components[e].attach(t))})),[4,Promise.all(n)]):[3,3];case 2:i.sent(),i.label=3;case 3:return[2,this]}}))}))},e.prototype.detach=function(){t.prototype.detach.call(this),this.eachComponent((function(t){return t.detach()}))},e.prototype.renderComponents=function(){var t=this;return this.components.reduce((function(e,n){return e+n.render().replace(/(<[^\>]+)/,'$1 data-within="'.concat(t.id,'"'))}),"")},e}((0,u.Component)(t)(e))}}e.NestedComponent=l,c.Components.addDecorator(l,"nested"),c.Components.addComponent(l()(),"nested")},4881:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.DataTableComponent=e.DataTable=void 0;var a=n(1150),c=function(){function t(t,e,n){this.component=t,this.options=e,this.data=n}return t.prototype.renderClasses=function(){var t="";return this.component.bordered&&(t+=" table-bordered"),this.component.striped&&(t+=" table-striped"),this.component.hover&&(t+=" table-hover"),this.component.condensed&&(t+=" table-condensed"),t},t.prototype.renderContext=function(t){return void 0===t&&(t={}),Object.assign({classes:this.renderClasses()},t)},t}();e.DataTable=c;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([(0,a.ArrayComponent)({type:"datatable",schema:{bordered:!0,striped:!1,hover:!0,condensed:!0},template:"datatable"})],e)}(c);e.DataTableComponent=u},5999:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.DataValueComponent=void 0;var a=n(1150),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([(0,a.Component)({type:"datavalue",schema:{tag:"span",attrs:[],className:""},template:function(t){return"<".concat(t.tag,' ref="val"').concat(t.attrs,">").concat(t.value(),"").concat(t.tag,">")}})],e)}(n(9986).HTML);e.DataValueComponent=c},9986:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLComponent=e.HTML=e.HTMLProperties=void 0;var a=n(1150);e.HTMLProperties={type:"html",schema:{tag:"span",content:"",attrs:[],className:""},template:function(t){return"<".concat(t.tag,' ref="').concat(t.ref,'"').concat(t.attrs,">").concat(t.t(t.content),"").concat(t.tag,">")}};var c=function(){function t(t,e,n){this.component=t,this.options=e,this.data=n}return t.prototype.getAttributes=function(){var t=!1,e="";for(var n in this.component.attrs)if(this.component.attrs.hasOwnProperty(n)){var r=this.component.attrs[n],o=Number.isNaN(parseInt(n)),i=o?n:r.attr,a=o?r:r.value;"class"===i&&this.component.className&&(t=!0,i+=" ".concat(this.component.className)),e+=" ".concat(i,'="').concat(this.interpolate(a,this.evalContext()),'"')}return!t&&this.component.className&&(e+=' class="'.concat(this.interpolate(this.component.className,this.evalContext()),'"')),e},t.prototype.renderContext=function(t){return void 0===t&&(t={}),Object.assign({tag:this.component.tag,ref:this.component.type,content:this.component.content?this.interpolate(this.component.content,this.evalContext()):"",attrs:this.getAttributes()},t)},t}();e.HTML=c;var u=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),i([(0,a.Component)(e.HTMLProperties)],n)}(c);e.HTMLComponent=u},2835:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLContainerComponent=e.HTMLContainer=void 0;var a=n(1150),c=n(9986),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.renderContext=function(e){return void 0===e&&(e={}),t.prototype.renderContext.call(this,Object.assign({content:this.renderComponents()},e))},e}(c.HTML);e.HTMLContainer=u;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([(0,a.NestedComponent)({type:"htmlcontainer",schema:c.HTMLProperties.schema,template:c.HTMLProperties.template})],e)}(u);e.HTMLContainerComponent=s},2740:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.InputComponent=e.Input=e.DataValueComponent=e.DataTableComponent=e.DataTable=e.HTMLContainerComponent=e.HTMLContainer=e.HTMLComponent=e.HTML=void 0;var o=r(n(2915)),i=n(9986),a=n(2835),c=n(4881),u=n(5999),s=n(9069),l=n(9986);Object.defineProperty(e,"HTML",{enumerable:!0,get:function(){return l.HTML}}),Object.defineProperty(e,"HTMLComponent",{enumerable:!0,get:function(){return l.HTMLComponent}});var f=n(2835);Object.defineProperty(e,"HTMLContainer",{enumerable:!0,get:function(){return f.HTMLContainer}}),Object.defineProperty(e,"HTMLContainerComponent",{enumerable:!0,get:function(){return f.HTMLContainerComponent}});var p=n(4881);Object.defineProperty(e,"DataTable",{enumerable:!0,get:function(){return p.DataTable}}),Object.defineProperty(e,"DataTableComponent",{enumerable:!0,get:function(){return p.DataTableComponent}});var d=n(5999);Object.defineProperty(e,"DataValueComponent",{enumerable:!0,get:function(){return d.DataValueComponent}});var h=n(9069);Object.defineProperty(e,"Input",{enumerable:!0,get:function(){return h.Input}}),Object.defineProperty(e,"InputComponent",{enumerable:!0,get:function(){return h.InputComponent}}),e.default={components:{html:i.HTMLComponent,htmlcontainer:a.HTMLContainerComponent,datatable:c.DataTableComponent,datavalue:u.DataValueComponent,input:s.InputComponent},templates:o.default}},9069:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},c=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},u=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=n.length&&e.addRow(t,r),e.setRowData(t,r)})),n.length>t.length)for(var r=t.length;r0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&e.sanitizeConfig.addAttr.forEach((function(t){r.ADD_ATTR.push(t)})),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.addTags)&&e.sanitizeConfig.addTags.length>0&&(r.ADD_TAGS=e.sanitizeConfig.addTags),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.allowedTags)&&e.sanitizeConfig.allowedTags.length>0&&(r.ALLOWED_TAGS=e.sanitizeConfig.allowedTags),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.allowedAttrs)&&e.sanitizeConfig.allowedAttrs.length>0&&(r.ALLOWED_ATTR=e.sanitizeConfig.allowedAttrs),e.sanitizeConfig&&e.sanitizeConfig.allowedUriRegex&&(r.ALLOWED_URI_REGEXP=e.sanitizeConfig.allowedUriRegex),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.addUriSafeAttr)&&e.sanitizeConfig.addUriSafeAttr.length>0&&(r.ADD_URI_SAFE_ATTR=e.sanitizeConfig.addUriSafeAttr),n.sanitize(t,r)}},9520:function(t,e){e.Z=function(t){var e,n="";return Array.prototype.join,n+='\n \n \n ',t.component.components.forEach((function(t){n+="\n "+(null==(e=t.label||t.key)?"":e)+" | \n "})),n+="\n
\n \n \n ",t.instance.rows.forEach((function(t){n+="\n \n ",t.forEach((function(t){n+="\n "+(null==(e=t.dataValue)?"":e)+" | \n "})),n+="\n
\n "})),n+="\n \n
"}}},e={};!function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}(2740)}();
\ No newline at end of file
diff --git a/lib/components/index.js.LICENSE.txt b/lib/components/index.js.LICENSE.txt
new file mode 100644
index 00000000..ca5e3917
--- /dev/null
+++ b/lib/components/index.js.LICENSE.txt
@@ -0,0 +1 @@
+/*! @license DOMPurify 2.4.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.5/LICENSE */
diff --git a/lib/components/input/fixtures/comp1.js b/lib/components/input/fixtures/comp1.js
deleted file mode 100644
index bda7a0f5..00000000
--- a/lib/components/input/fixtures/comp1.js
+++ /dev/null
@@ -1,10 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.default = {
- type: 'input',
- key: 'firstName',
- attrs: {
- one: 'two',
- three: 'four'
- }
-};
diff --git a/lib/components/input/fixtures/comp2.js b/lib/components/input/fixtures/comp2.js
deleted file mode 100644
index 1e6cc418..00000000
--- a/lib/components/input/fixtures/comp2.js
+++ /dev/null
@@ -1,41 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.default = {
- type: 'htmlcontainer',
- components: [
- {
- type: 'html',
- tag: 'label',
- content: 'First Name',
- attrs: {
- class: 'form-label',
- for: 'input-firstname'
- }
- },
- {
- type: 'input',
- key: 'firstName',
- attrs: {
- class: 'form-control',
- placeholder: 'Enter your first name'
- }
- },
- {
- type: 'html',
- tag: 'label',
- content: 'Last Name',
- attrs: {
- class: 'form-label',
- for: 'input-firstname'
- }
- },
- {
- type: 'input',
- key: 'lastName',
- attrs: {
- class: 'form-control',
- placeholder: 'Enter your last name'
- }
- }
- ]
-};
diff --git a/lib/components/input/fixtures/index.js b/lib/components/input/fixtures/index.js
deleted file mode 100644
index 03120ec2..00000000
--- a/lib/components/input/fixtures/index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.comp2 = exports.comp1 = void 0;
-var comp1_1 = __importDefault(require("./comp1"));
-exports.comp1 = comp1_1.default;
-var comp2_1 = __importDefault(require("./comp2"));
-exports.comp2 = comp2_1.default;
diff --git a/lib/components/input/input.js b/lib/components/input/input.js
deleted file mode 100644
index 71096011..00000000
--- a/lib/components/input/input.js
+++ /dev/null
@@ -1,128 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
-var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
- return new (P || (P = Promise))(function (resolve, reject) {
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
- step((generator = generator.apply(thisArg, _arguments || [])).next());
- });
-};
-var __generator = (this && this.__generator) || function (thisArg, body) {
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
- function verb(n) { return function (v) { return step([n, v]); }; }
- function step(op) {
- if (f) throw new TypeError("Generator is already executing.");
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
- if (y = 0, t) op = [op[0] & 2, t.value];
- switch (op[0]) {
- case 0: case 1: t = op; break;
- case 4: _.label++; return { value: op[1], done: false };
- case 5: _.label++; y = op[1]; op = [0]; continue;
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
- default:
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
- if (t[2]) _.ops.pop();
- _.trys.pop(); continue;
- }
- op = body.call(thisArg, _);
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
- }
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.InputComponent = exports.Input = void 0;
-var base_1 = require("@formio/base");
-var html_1 = require("../html/html");
-/**
- * Base Input component for extending purposes.
- */
-var Input = /** @class */ (function (_super) {
- __extends(Input, _super);
- function Input() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- Input.prototype.getAttributes = function () {
- var attributes = _super.prototype.getAttributes.call(this);
- var inputName = "".concat(this.component.type, "-").concat(this.component.key).toLowerCase().replace(/[^a-z0-9\-]+/g, '_');
- return " type=\"".concat(this.component.inputType, "\" id=\"").concat(inputName, "\" name=\"").concat(inputName, "\"").concat(attributes);
- };
- Input.prototype.onInput = function () {
- this.updateValue(this.element.value);
- };
- Input.prototype.attach = function (element) {
- return __awaiter(this, void 0, void 0, function () {
- return __generator(this, function (_a) {
- this.addEventListener(this.element, this.component.changeEvent, this.onInput.bind(this));
- return [2 /*return*/, this];
- });
- });
- };
- Input.prototype.detach = function () {
- this.removeEventListener(this.element, this.component.changeEvent, this.onInput.bind(this));
- };
- Input.prototype.setValue = function (value) {
- if (this.element) {
- this.element.value = value;
- }
- };
- return Input;
-}(html_1.HTML));
-exports.Input = Input;
-var InputComponent = /** @class */ (function (_super) {
- __extends(InputComponent, _super);
- function InputComponent() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- InputComponent = __decorate([
- (0, base_1.Component)({
- type: 'input',
- template: html_1.HTMLProperties.template,
- schema: __assign(__assign({}, html_1.HTMLProperties.schema), {
- tag: 'input',
- ref: 'input',
- changeEvent: 'input',
- inputType: 'text'
- })
- })
- ], InputComponent);
- return InputComponent;
-}(Input));
-exports.InputComponent = InputComponent;
diff --git a/lib/components/templates/bootstrap/datatable/index.js b/lib/components/templates/bootstrap/datatable/index.js
deleted file mode 100644
index 5ad485f7..00000000
--- a/lib/components/templates/bootstrap/datatable/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.html = void 0;
-var html = require('./html.ejs.js').default;
-exports.html = html;
diff --git a/lib/components/templates/bootstrap/index.js b/lib/components/templates/bootstrap/index.js
deleted file mode 100644
index ea3b3f82..00000000
--- a/lib/components/templates/bootstrap/index.js
+++ /dev/null
@@ -1,27 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
- __setModuleDefault(result, mod);
- return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.datatable = void 0;
-exports.datatable = __importStar(require("./datatable"));
diff --git a/lib/components/templates/index.js b/lib/components/templates/index.js
deleted file mode 100644
index 85178d1d..00000000
--- a/lib/components/templates/index.js
+++ /dev/null
@@ -1,27 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
- __setModuleDefault(result, mod);
- return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var bootstrap = __importStar(require("./bootstrap"));
-exports.default = { bootstrap: bootstrap };
diff --git a/lib/components/test.js b/lib/components/test.js
deleted file mode 100644
index 9944c41c..00000000
--- a/lib/components/test.js
+++ /dev/null
@@ -1,29 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __exportStar = (this && this.__exportStar) || function(m, exports) {
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
-};
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var base_1 = require("@formio/base");
-var index_1 = __importDefault(require("./index"));
-for (var name_1 in index_1.default.components) {
- if (index_1.default.components.hasOwnProperty(name_1)) {
- base_1.Components.addComponent(index_1.default.components[name_1], name_1);
- }
-}
-var templates_1 = __importDefault(require("./templates"));
-base_1.Template.addTemplates(templates_1.default);
-__exportStar(require("./index"), exports);
diff --git a/lib/core.js b/lib/core.js
deleted file mode 100644
index c7fd0649..00000000
--- a/lib/core.js
+++ /dev/null
@@ -1,130 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Formio = exports.use = exports.useModule = exports.usePlugin = void 0;
-require("core-js/features/object/from-entries");
-var sdk_1 = require("./sdk");
-Object.defineProperty(exports, "Formio", { enumerable: true, get: function () { return sdk_1.Formio; } });
-var validator_1 = require("./validator");
-var utils_1 = require("./utils");
-var base_1 = require("./base");
-sdk_1.Formio.render = base_1.render;
-sdk_1.Formio.Components = base_1.Components;
-sdk_1.Formio.Validator = sdk_1.Formio.Rules = validator_1.Validator;
-sdk_1.Formio.Evaluator = utils_1.Evaluator;
-sdk_1.Formio.Utils = utils_1.Utils;
-sdk_1.Formio.Templates = base_1.Template;
-var lodash_1 = require("@formio/lodash");
-/**
- * Register a specific plugin.
- *
- * @param key
- * @param plugin
- * @returns
- */
-function usePlugin(key, plugin) {
- switch (key) {
- case 'options':
- if (!sdk_1.Formio.options) {
- return;
- }
- sdk_1.Formio.options = (0, lodash_1.merge)(sdk_1.Formio.options, plugin);
- break;
- case 'templates':
- if (!sdk_1.Formio.Templates) {
- return;
- }
- var current = sdk_1.Formio.Templates.framework || 'bootstrap';
- for (var _i = 0, _a = Object.keys(plugin); _i < _a.length; _i++) {
- var framework = _a[_i];
- sdk_1.Formio.Templates.extendTemplate(framework, plugin[framework]);
- }
- if (plugin[current]) {
- sdk_1.Formio.Templates.current = plugin[current];
- }
- break;
- case 'components':
- if (!sdk_1.Formio.Components) {
- return;
- }
- sdk_1.Formio.Components.setComponents(plugin);
- break;
- case 'framework':
- if (!sdk_1.Formio.Templates) {
- return;
- }
- sdk_1.Formio.Templates.framework = plugin;
- break;
- case 'fetch':
- for (var _b = 0, _c = Object.keys(plugin); _b < _c.length; _b++) {
- var name_1 = _c[_b];
- sdk_1.Formio.registerPlugin(plugin[name_1], name_1);
- }
- break;
- case 'rules':
- if (!sdk_1.Formio.Rules) {
- return;
- }
- sdk_1.Formio.Rules.addRules(plugin);
- break;
- case 'evaluator':
- if (!sdk_1.Formio.Evaluator) {
- return;
- }
- sdk_1.Formio.Evaluator.registerEvaluator(plugin);
- break;
- default:
- console.log('Unknown plugin option', key);
- }
-}
-exports.usePlugin = usePlugin;
-;
-/**
- * Register a new module.
- *
- * @param module
- * @returns
- */
-function useModule(module) {
- // Sanity check.
- if (typeof module !== 'object') {
- return;
- }
- for (var _i = 0, _a = Object.keys(module); _i < _a.length; _i++) {
- var key = _a[_i];
- usePlugin(key, module[key]);
- }
-}
-exports.useModule = useModule;
-;
-/**
-* Allows passing in plugins as multiple arguments or an array of plugins.
-*
-* Formio.plugins(plugin1, plugin2, etc);
-* Formio.plugins([plugin1, plugin2, etc]);
-*/
-function use() {
- var mods = [];
- for (var _i = 0; _i < arguments.length; _i++) {
- mods[_i] = arguments[_i];
- }
- mods.forEach(function (mod) {
- if (Array.isArray(mod)) {
- mod.forEach(function (p) { return useModule(p); });
- }
- else {
- useModule(mod);
- }
- });
-}
-exports.use = use;
-;
-sdk_1.Formio.useModule = useModule;
-sdk_1.Formio.usePlugin = usePlugin;
-sdk_1.Formio.use = use;
-var components_1 = __importDefault(require("./components"));
-sdk_1.Formio.use(components_1.default);
-var modules_1 = __importDefault(require("./modules"));
-sdk_1.Formio.use(modules_1.default);
diff --git a/lib/index.js b/lib/index.js
index de02d762..9272befd 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -1,23 +1,2 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __exportStar = (this && this.__exportStar) || function(m, exports) {
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-__exportStar(require("./core"), exports);
-__exportStar(require("./base"), exports);
-__exportStar(require("./model"), exports);
-__exportStar(require("./modules"), exports);
-__exportStar(require("./utils"), exports);
-__exportStar(require("./components"), exports);
-__exportStar(require("./validator"), exports);
+/*! For license information please see index.js.LICENSE.txt */
+!function(){var t={2937:function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o0?t.slice(e):t},e.dropRight=function(t,e){return void 0===e&&(e=1),e>0?t.slice(0,-e):t},e.each=a,e.find=u,e.findIndex=function(t,e){return u(t,e,!0)},e.matches=s,e.findEach=c,e.filter=function(t,e){if(!t)return[];if(e||(e=function(t){return!!t}),Array.isArray(t)&&"function"==typeof e)return t.filter(e);var n=[];return c(t,e,(function(e,r){n.push(e),Array.isArray(e)?t.splice(r,1):delete t[r]})),n},e.last=function(t){return t[t.length-1]},e.head=function(t){return t[0]},e.map=function(t,e){return t.map(e)},e.intersection=function(t,e){return t.filter((function(t){return e.includes(t)}))}},3254:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=void 0,e.debounce=function(t,e){var n;return void 0===e&&(e=100),function(){for(var r=[],o=0;o=t.length:!t.hasOwnProperty(e))||othis.length)&&(e=this.length),this.substring(e-t.length,e)===t}),e.endsWith=function(t,e){return t.endsWith(e)}},4389:function(t,e){e.defaults={},e.set=function(t,n,r){var o=r||{},i=e.defaults,a=o.expires||i.expires,u=o.domain||i.domain,s=void 0!==o.path?o.path:void 0!==i.path?i.path:"/",c=void 0!==o.secure?o.secure:i.secure,l=void 0!==o.httponly?o.httponly:i.httponly,f=void 0!==o.samesite?o.samesite:i.samesite,p=a?new Date("number"==typeof a?(new Date).getTime()+864e5*a:a):0;document.cookie=t.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+n.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(p&&p.getTime()>=0?";expires="+p.toUTCString():"")+(u?";domain="+u:"")+(s?";path="+s:"")+(c?";secure":"")+(l?";httponly":"")+(f?";samesite="+f:"")},e.get=function(t){for(var e=document.cookie.split(";");e.length;){var n=e.pop(),r=n.indexOf("=");if(r=r<0?n.length:r,decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))===t)return decodeURIComponent(n.slice(r+1))}return null},e.erase=function(t,n){e.set(t,"",{expires:-1,domain:n&&n.domain,path:n&&n.path,secure:0,httponly:0})},e.all=function(){for(var t={},e=document.cookie.split(";");e.length;){var n=e.pop(),r=n.indexOf("=");r=r<0?n.length:r,t[decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))]=decodeURIComponent(n.slice(r+1))}return t}},9233:function(t,e,n){var r=n(405);t.exports=r},454:function(t,e,n){n(6992),n(8559);var r=n(857);t.exports=r.Object.fromEntries},6554:function(t,e,n){t.exports=n(7651)},7651:function(t,e,n){var r=n(9233);t.exports=r},9662:function(t,e,n){var r=n(614),o=n(6330),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a function")}},6077:function(t,e,n){var r=n(614),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},1223:function(t,e,n){var r=n(5112),o=n(30),i=n(3070).f,a=r("unscopables"),u=Array.prototype;null==u[a]&&i(u,a,{configurable:!0,value:o(null)}),t.exports=function(t){u[a][t]=!0}},9670:function(t,e,n){var r=n(111),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not an object")}},1318:function(t,e,n){var r=n(5656),o=n(1400),i=n(6244),a=function(t){return function(e,n,a){var u,s=r(e),c=i(s),l=o(a,c);if(t&&n!=n){for(;c>l;)if((u=s[l++])!=u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},4326:function(t,e,n){var r=n(1702),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},648:function(t,e,n){var r=n(1694),o=n(614),i=n(4326),a=n(5112)("toStringTag"),u=Object,s="Arguments"==i(function(){return arguments}());t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=u(t),a))?n:s?i(e):"Object"==(r=i(e))&&o(e.callee)?"Arguments":r}},9920:function(t,e,n){var r=n(2597),o=n(3887),i=n(1236),a=n(3070);t.exports=function(t,e,n){for(var u=o(e),s=a.f,c=i.f,l=0;l0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var r=n(7854),o=n(1236).f,i=n(8880),a=n(8052),u=n(3072),s=n(9920),c=n(4705);t.exports=function(t,e){var n,l,f,p,h,d=t.target,y=t.global,v=t.stat;if(n=y?r:v?r[d]||u(d,{}):(r[d]||{}).prototype)for(l in e){if(p=e[l],f=t.dontCallGetSet?(h=o(n,l))&&h.value:n[l],!c(y?l:d+(v?".":"#")+l,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;s(p,f)}(t.sham||f&&f.sham)&&i(p,"sham",!0),a(n,l,p,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},9974:function(t,e,n){var r=n(1470),o=n(9662),i=n(4374),a=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},4374:function(t,e,n){var r=n(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,n){var r=n(4374),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(t,e,n){var r=n(9781),o=n(2597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),s=u&&"something"===function(){}.name,c=u&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:u,PROPER:s,CONFIGURABLE:c}},5668:function(t,e,n){var r=n(1702),o=n(9662);t.exports=function(t,e,n){try{return r(o(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},1470:function(t,e,n){var r=n(4326),o=n(1702);t.exports=function(t){if("Function"===r(t))return o(t)}},1702:function(t,e,n){var r=n(4374),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);t.exports=r?a:function(t){return function(){return i.apply(t,arguments)}}},5005:function(t,e,n){var r=n(7854),o=n(614);t.exports=function(t,e){return arguments.length<2?(n=r[t],o(n)?n:void 0):r[t]&&r[t][e];var n}},1246:function(t,e,n){var r=n(648),o=n(8173),i=n(8554),a=n(7497),u=n(5112)("iterator");t.exports=function(t){if(!i(t))return o(t,u)||o(t,"@@iterator")||a[r(t)]}},4121:function(t,e,n){var r=n(6916),o=n(9662),i=n(9670),a=n(6330),u=n(1246),s=TypeError;t.exports=function(t,e){var n=arguments.length<2?u(t):e;if(o(n))return i(r(n,t));throw s(a(t)+" is not iterable")}},8173:function(t,e,n){var r=n(9662),o=n(8554);t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}},7854:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(t,e,n){var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},3501:function(t){t.exports={}},490:function(t,e,n){var r=n(5005);t.exports=r("document","documentElement")},4664:function(t,e,n){var r=n(9781),o=n(7293),i=n(317);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var r=n(1702),o=n(7293),i=n(4326),a=Object,u=r("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?u(t,""):a(t)}:a},2788:function(t,e,n){var r=n(1702),o=n(614),i=n(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},9909:function(t,e,n){var r,o,i,a=n(4811),u=n(7854),s=n(111),c=n(8880),l=n(2597),f=n(5465),p=n(6200),h=n(3501),d="Object already initialized",y=u.TypeError,v=u.WeakMap;if(a||f.state){var m=f.state||(f.state=new v);m.get=m.get,m.has=m.has,m.set=m.set,r=function(t,e){if(m.has(t))throw y(d);return e.facade=t,m.set(t,e),e},o=function(t){return m.get(t)||{}},i=function(t){return m.has(t)}}else{var b=p("state");h[b]=!0,r=function(t,e){if(l(t,b))throw y(d);return e.facade=t,c(t,b,e),e},o=function(t){return l(t,b)?t[b]:{}},i=function(t){return l(t,b)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!s(e)||(n=o(e)).type!==t)throw y("Incompatible receiver, "+t+" required");return n}}}},7659:function(t,e,n){var r=n(5112),o=n(7497),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},614:function(t,e,n){var r=n(4154),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},4705:function(t,e,n){var r=n(7293),o=n(614),i=/#|\.prototype\./,a=function(t,e){var n=s[u(t)];return n==l||n!=c&&(o(e)?r(e):!!e)},u=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},8554:function(t){t.exports=function(t){return null==t}},111:function(t,e,n){var r=n(614),o=n(4154),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===i}:function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){t.exports=!1},2190:function(t,e,n){var r=n(5005),o=n(614),i=n(7976),a=n(3307),u=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,u(t))}},408:function(t,e,n){var r=n(9974),o=n(6916),i=n(9670),a=n(6330),u=n(7659),s=n(6244),c=n(7976),l=n(4121),f=n(1246),p=n(9212),h=TypeError,d=function(t,e){this.stopped=t,this.result=e},y=d.prototype;t.exports=function(t,e,n){var v,m,b,g,_,w,O,j=n&&n.that,x=!(!n||!n.AS_ENTRIES),P=!(!n||!n.IS_RECORD),k=!(!n||!n.IS_ITERATOR),S=!(!n||!n.INTERRUPTED),T=r(e,j),A=function(t){return v&&p(v,"normal",t),new d(!0,t)},M=function(t){return x?(i(t),S?T(t[0],t[1],A):T(t[0],t[1])):S?T(t,A):T(t)};if(P)v=t.iterator;else if(k)v=t;else{if(!(m=f(t)))throw h(a(t)+" is not iterable");if(u(m)){for(b=0,g=s(t);g>b;b++)if((_=M(t[b]))&&c(y,_))return _;return new d(!1)}v=l(t,m)}for(w=P?t.next:v.next;!(O=o(w,v)).done;){try{_=M(O.value)}catch(t){p(v,"throw",t)}if("object"==typeof _&&_&&c(y,_))return _}return new d(!1)}},9212:function(t,e,n){var r=n(6916),o=n(9670),i=n(8173);t.exports=function(t,e,n){var a,u;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){u=!0,a=t}if("throw"===e)throw n;if(u)throw a;return o(a),n}},3061:function(t,e,n){"use strict";var r=n(3383).IteratorPrototype,o=n(30),i=n(9114),a=n(8003),u=n(7497),s=function(){return this};t.exports=function(t,e,n,c){var l=e+" Iterator";return t.prototype=o(r,{next:i(+!c,n)}),a(t,l,!1,!0),u[l]=s,t}},1656:function(t,e,n){"use strict";var r=n(2109),o=n(6916),i=n(1913),a=n(6530),u=n(614),s=n(3061),c=n(9518),l=n(7674),f=n(8003),p=n(8880),h=n(8052),d=n(5112),y=n(7497),v=n(3383),m=a.PROPER,b=a.CONFIGURABLE,g=v.IteratorPrototype,_=v.BUGGY_SAFARI_ITERATORS,w=d("iterator"),O="keys",j="values",x="entries",P=function(){return this};t.exports=function(t,e,n,a,d,v,k){s(n,e,a);var S,T,A,M=function(t){if(t===d&&I)return I;if(!_&&t in R)return R[t];switch(t){case O:case j:case x:return function(){return new n(this,t)}}return function(){return new n(this)}},E=e+" Iterator",C=!1,R=t.prototype,D=R[w]||R["@@iterator"]||d&&R[d],I=!_&&D||M(d),U="Array"==e&&R.entries||D;if(U&&(S=c(U.call(new t)))!==Object.prototype&&S.next&&(i||c(S)===g||(l?l(S,g):u(S[w])||h(S,w,P)),f(S,E,!0,!0),i&&(y[E]=P)),m&&d==j&&D&&D.name!==j&&(!i&&b?p(R,"name",j):(C=!0,I=function(){return o(D,this)})),d)if(T={values:M(j),keys:v?I:M(O),entries:M(x)},k)for(A in T)(_||C||!(A in R))&&h(R,A,T[A]);else r({target:e,proto:!0,forced:_||C},T);return i&&!k||R[w]===I||h(R,w,I,{name:d}),y[e]=I,T}},3383:function(t,e,n){"use strict";var r,o,i,a=n(7293),u=n(614),s=n(111),c=n(30),l=n(9518),f=n(8052),p=n(5112),h=n(1913),d=p("iterator"),y=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):y=!0),!s(r)||a((function(){var t={};return r[d].call(t)!==t}))?r={}:h&&(r=c(r)),u(r[d])||f(r,d,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:y}},7497:function(t){t.exports={}},6244:function(t,e,n){var r=n(7466);t.exports=function(t){return r(t.length)}},6339:function(t,e,n){var r=n(1702),o=n(7293),i=n(614),a=n(2597),u=n(9781),s=n(6530).CONFIGURABLE,c=n(2788),l=n(9909),f=l.enforce,p=l.get,h=String,d=Object.defineProperty,y=r("".slice),v=r("".replace),m=r([].join),b=u&&!o((function(){return 8!==d((function(){}),"length",{value:8}).length})),g=String(String).split("String"),_=t.exports=function(t,e,n){"Symbol("===y(h(e),0,7)&&(e="["+v(h(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||s&&t.name!==e)&&(u?d(t,"name",{value:e,configurable:!0}):t.name=e),b&&n&&a(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?u&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return a(r,"source")||(r.source=m(g,"string"==typeof e?e:"")),t};Function.prototype.toString=_((function(){return i(this)&&p(this).source||c(this)}),"toString")},4758:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},30:function(t,e,n){var r,o=n(9670),i=n(6048),a=n(748),u=n(3501),s=n(490),c=n(317),l=n(6200),f="prototype",p="script",h=l("IE_PROTO"),d=function(){},y=function(t){return"<"+p+">"+t+""+p+">"},v=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;m="undefined"!=typeof document?document.domain&&r?v(r):(e=c("iframe"),n="java"+p+":",e.style.display="none",s.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(y("document.F=Object")),t.close(),t.F):v(r);for(var o=a.length;o--;)delete m[f][a[o]];return m()};u[h]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(d[f]=o(t),n=new d,d[f]=null,n[h]=t):n=m(),void 0===e?n:i.f(n,e)}},6048:function(t,e,n){var r=n(9781),o=n(3353),i=n(3070),a=n(9670),u=n(5656),s=n(1956);e.f=r&&!o?Object.defineProperties:function(t,e){a(t);for(var n,r=u(e),o=s(e),c=o.length,l=0;c>l;)i.f(t,n=o[l++],r[n]);return t}},3070:function(t,e,n){var r=n(9781),o=n(4664),i=n(3353),a=n(9670),u=n(4948),s=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",h="writable";e.f=r?i?function(t,e,n){if(a(t),e=u(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&h in n&&!n[h]){var r=l(t,e);r&&r[h]&&(t[e]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=u(e),a(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw s("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var r=n(9781),o=n(6916),i=n(5296),a=n(9114),u=n(5656),s=n(4948),c=n(2597),l=n(4664),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=u(t),e=s(e),l)try{return f(t,e)}catch(t){}if(c(t,e))return a(!o(i.f,t,e),t[e])}},8006:function(t,e,n){var r=n(6324),o=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,n){var r=n(2597),o=n(614),i=n(7908),a=n(6200),u=n(8544),s=a("IE_PROTO"),c=Object,l=c.prototype;t.exports=u?c.getPrototypeOf:function(t){var e=i(t);if(r(e,s))return e[s];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof c?l:null}},7976:function(t,e,n){var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,e,n){var r=n(1702),o=n(2597),i=n(5656),a=n(1318).indexOf,u=n(3501),s=r([].push);t.exports=function(t,e){var n,r=i(t),c=0,l=[];for(n in r)!o(u,n)&&o(r,n)&&s(l,n);for(;e.length>c;)o(r,n=e[c++])&&(~a(l,n)||s(l,n));return l}},1956:function(t,e,n){var r=n(6324),o=n(748);t.exports=Object.keys||function(t){return r(t,o)}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7674:function(t,e,n){var r=n(5668),o=n(9670),i=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},2140:function(t,e,n){var r=n(6916),o=n(614),i=n(111),a=TypeError;t.exports=function(t,e){var n,u;if("string"===e&&o(n=t.toString)&&!i(u=r(n,t)))return u;if(o(n=t.valueOf)&&!i(u=r(n,t)))return u;if("string"!==e&&o(n=t.toString)&&!i(u=r(n,t)))return u;throw a("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),o=n(1702),i=n(8006),a=n(5181),u=n(9670),s=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(u(t)),n=a.f;return n?s(e,n(t)):e}},857:function(t,e,n){var r=n(7854);t.exports=r},4488:function(t,e,n){var r=n(8554),o=TypeError;t.exports=function(t){if(r(t))throw o("Can't call method on "+t);return t}},8003:function(t,e,n){var r=n(3070).f,o=n(2597),i=n(5112)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!o(t,i)&&r(t,i,{configurable:!0,value:e})}},6200:function(t,e,n){var r=n(2309),o=n(9711),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,e,n){var r=n(7854),o=n(3072),i="__core-js_shared__",a=r[i]||o(i,{});t.exports=a},2309:function(t,e,n){var r=n(1913),o=n(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.1",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(t,e,n){var r=n(7392),o=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1400:function(t,e,n){var r=n(9303),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},5656:function(t,e,n){var r=n(8361),o=n(4488);t.exports=function(t){return r(o(t))}},9303:function(t,e,n){var r=n(4758);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},7466:function(t,e,n){var r=n(9303),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},7908:function(t,e,n){var r=n(4488),o=Object;t.exports=function(t){return o(r(t))}},7593:function(t,e,n){var r=n(6916),o=n(111),i=n(2190),a=n(8173),u=n(2140),s=n(5112),c=TypeError,l=s("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,s=a(t,l);if(s){if(void 0===e&&(e="default"),n=r(s,t,e),!o(n)||i(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},4948:function(t,e,n){var r=n(7593),o=n(2190);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},1694:function(t,e,n){var r={};r[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(r)},6330:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9711:function(t,e,n){var r=n(1702),o=0,i=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},3307:function(t,e,n){var r=n(6293);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){var r=n(9781),o=n(7293);t.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(t,e,n){var r=n(7854),o=n(614),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},5112:function(t,e,n){var r=n(7854),o=n(2309),i=n(2597),a=n(9711),u=n(6293),s=n(3307),c=r.Symbol,l=o("wks"),f=s?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return i(l,t)||(l[t]=u&&i(c,t)?c[t]:f("Symbol."+t)),l[t]}},6992:function(t,e,n){"use strict";var r=n(5656),o=n(1223),i=n(7497),a=n(9909),u=n(3070).f,s=n(1656),c=n(6178),l=n(1913),f=n(9781),p="Array Iterator",h=a.set,d=a.getterFor(p);t.exports=s(Array,"Array",(function(t,e){h(this,{type:p,target:r(t),index:0,kind:e})}),(function(){var t=d(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,c(void 0,!0)):c("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values");var y=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==y.name)try{u(y,"name",{value:"values"})}catch(t){}},8559:function(t,e,n){var r=n(2109),o=n(408),i=n(6135);r({target:"Object",stat:!0},{fromEntries:function(t){var e={};return o(t,(function(t,n){i(e,t,n)}),{AS_ENTRIES:!0}),e}})},3948:function(t,e,n){var r=n(7854),o=n(8324),i=n(8509),a=n(6992),u=n(8880),s=n(5112),c=s("iterator"),l=s("toStringTag"),f=a.values,p=function(t,e){if(t){if(t[c]!==f)try{u(t,c,f)}catch(e){t[c]=f}if(t[l]||u(t,l,e),o[e])for(var n in a)if(t[n]!==a[n])try{u(t,n,a[n])}catch(e){t[n]=a[n]}}};for(var h in o)p(r[h]&&r[h].prototype,h);p(i,"DOMTokenList")},405:function(t,e,n){var r=n(454);n(3948),t.exports=r},7484:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",u="week",s="month",c="quarter",l="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},v=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},m={s:v,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function t(e,n){if(e.date()1)return t(a[0])}else{var u=e.name;g[u]=e,o=u}return!r&&o&&(b=o),o||!r&&b},O=function(t,e){if(_(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new x(n)},j=m;j.l=w,j.i=_,j.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var x=function(){function y(t){this.$L=w(t.locale,null,!0),this.parse(t)}var v=y.prototype;return v.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(j.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return j},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},v.isAfter=function(t,e){return O(t)=0&&(i[f]=parseInt(l,10))}var p=i[3],h=24===p?0:p,d=i[0]+"-"+i[1]+"-"+i[2]+" "+h+":"+i[4]+":"+i[5]+":000",y=+e;return(o.utc(d).valueOf()-(y-=y%1e3))/6e4},s=r.prototype;s.tz=function(t,e){void 0===t&&(t=i);var n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:t}),u=Math.round((r-new Date(a))/1e3/60),s=o(a).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-u,!0);if(e){var c=s.utcOffset();s=s.add(n-c,"minute")}return s.$x.$timezone=t,s},s.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var c=s.startOf;s.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return c.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var r=n&&e,a=n||e||i,s=u(+o(),a);if("string"!=typeof t)return o(t).tz(a);var c=function(t,e,n){var r=t-60*e*1e3,o=u(r,n);if(e===o)return[r,e];var i=u(r-=60*(o-e)*1e3,n);return o===i?[r,o]:[t-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(t,r).valueOf(),s,a),l=c[0],f=c[1],p=o(l).utcOffset(f);return p.$x.$timezone=a,p},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){i=t}}}()},178:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(t){return new o({date:t,utc:!0,args:arguments})},a.utc=function(e){var n=i(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var u=a.parse;a.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),u.call(this,t)};var s=a.init;a.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else s.call(this)};var c=a.utcOffset;a.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(t){void 0===t&&(t="");var r=t.match(e);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,u=this;if(o)return u.$offset=a,u.$u=0===r,u;if(0!==r){var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(u=this.local().add(a+s,t)).$offset=a,u.$x.$localOffset=s}else u=this.utc();return u};var l=a.format;a.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},a.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(t){return"s"===t&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var p=a.diff;a.diff=function(t,e,n){if(t&&this.$u===t.$u)return p.call(this,t,e,n);var r=this.local(),o=i(t).local();return p.call(r,o,e,n)}}}()},7856:function(t){t.exports=function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,n){return e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(t,n)}function n(t,r,o){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(t,o));return r&&e(i,r.prototype),i},n.apply(null,arguments)}function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?n-1:0),o=1;o/gm),q=f(/\${[\w\W]*}/gm),G=f(/^data-[\-\w.\u00B7-\uFFFF]/),W=f(/^aria-[\-\w]+$/),Y=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z=f(/^(?:\w+script|data):/i),J=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=f(/^html$/i),X=function(){return"undefined"==typeof window?null:window},Q=function(e,n){if("object"!==t(e)||"function"!=typeof e.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),o=function(t){return e(t)};if(o.version="2.4.5",o.removed=[],!n||!n.document||9!==n.document.nodeType)return o.isSupported=!1,o;var i=n.document,a=n.document,u=n.DocumentFragment,s=n.HTMLTemplateElement,c=n.Node,f=n.Element,p=n.NodeFilter,h=n.NamedNodeMap,d=void 0===h?n.NamedNodeMap||n.MozNamedAttrMap:h,y=n.HTMLFormElement,v=n.DOMParser,T=n.trustedTypes,tt=f.prototype,et=E(tt,"cloneNode"),nt=E(tt,"nextSibling"),rt=E(tt,"childNodes"),ot=E(tt,"parentNode");if("function"==typeof s){var it=a.createElement("template");it.content&&it.content.ownerDocument&&(a=it.content.ownerDocument)}var at=Q(T,i),ut=at?at.createHTML(""):"",st=a,ct=st.implementation,lt=st.createNodeIterator,ft=st.createDocumentFragment,pt=st.getElementsByTagName,ht=i.importNode,dt={};try{dt=M(a).documentMode?a.documentMode:{}}catch(t){}var yt={};o.isSupported="function"==typeof ot&&ct&&void 0!==ct.createHTMLDocument&&9!==dt;var vt,mt,bt=V,gt=H,_t=q,wt=G,Ot=W,jt=Z,xt=J,Pt=Y,kt=null,St=A({},[].concat(r(C),r(R),r(D),r(U),r(L))),Tt=null,At=A({},[].concat(r(F),r($),r(B),r(z))),Mt=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Et=null,Ct=null,Rt=!0,Dt=!0,It=!1,Ut=!0,Nt=!1,Lt=!1,Ft=!1,$t=!1,Bt=!1,zt=!1,Vt=!1,Ht=!0,qt=!1,Gt=!0,Wt=!1,Yt={},Zt=null,Jt=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Kt=null,Xt=A({},["audio","video","img","source","image","track"]),Qt=null,te=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ee="http://www.w3.org/1998/Math/MathML",ne="http://www.w3.org/2000/svg",re="http://www.w3.org/1999/xhtml",oe=re,ie=!1,ae=null,ue=A({},[ee,ne,re],w),se=["application/xhtml+xml","text/html"],ce=null,le=a.createElement("form"),fe=function(t){return t instanceof RegExp||t instanceof Function},pe=function(e){ce&&ce===e||(e&&"object"===t(e)||(e={}),e=M(e),vt=vt=-1===se.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,mt="application/xhtml+xml"===vt?w:_,kt="ALLOWED_TAGS"in e?A({},e.ALLOWED_TAGS,mt):St,Tt="ALLOWED_ATTR"in e?A({},e.ALLOWED_ATTR,mt):At,ae="ALLOWED_NAMESPACES"in e?A({},e.ALLOWED_NAMESPACES,w):ue,Qt="ADD_URI_SAFE_ATTR"in e?A(M(te),e.ADD_URI_SAFE_ATTR,mt):te,Kt="ADD_DATA_URI_TAGS"in e?A(M(Xt),e.ADD_DATA_URI_TAGS,mt):Xt,Zt="FORBID_CONTENTS"in e?A({},e.FORBID_CONTENTS,mt):Jt,Et="FORBID_TAGS"in e?A({},e.FORBID_TAGS,mt):{},Ct="FORBID_ATTR"in e?A({},e.FORBID_ATTR,mt):{},Yt="USE_PROFILES"in e&&e.USE_PROFILES,Rt=!1!==e.ALLOW_ARIA_ATTR,Dt=!1!==e.ALLOW_DATA_ATTR,It=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ut=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Nt=e.SAFE_FOR_TEMPLATES||!1,Lt=e.WHOLE_DOCUMENT||!1,Bt=e.RETURN_DOM||!1,zt=e.RETURN_DOM_FRAGMENT||!1,Vt=e.RETURN_TRUSTED_TYPE||!1,$t=e.FORCE_BODY||!1,Ht=!1!==e.SANITIZE_DOM,qt=e.SANITIZE_NAMED_PROPS||!1,Gt=!1!==e.KEEP_CONTENT,Wt=e.IN_PLACE||!1,Pt=e.ALLOWED_URI_REGEXP||Pt,oe=e.NAMESPACE||re,Mt=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&fe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Mt.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&fe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Mt.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Mt.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Nt&&(Dt=!1),zt&&(Bt=!0),Yt&&(kt=A({},r(L)),Tt=[],!0===Yt.html&&(A(kt,C),A(Tt,F)),!0===Yt.svg&&(A(kt,R),A(Tt,$),A(Tt,z)),!0===Yt.svgFilters&&(A(kt,D),A(Tt,$),A(Tt,z)),!0===Yt.mathMl&&(A(kt,U),A(Tt,B),A(Tt,z))),e.ADD_TAGS&&(kt===St&&(kt=M(kt)),A(kt,e.ADD_TAGS,mt)),e.ADD_ATTR&&(Tt===At&&(Tt=M(Tt)),A(Tt,e.ADD_ATTR,mt)),e.ADD_URI_SAFE_ATTR&&A(Qt,e.ADD_URI_SAFE_ATTR,mt),e.FORBID_CONTENTS&&(Zt===Jt&&(Zt=M(Zt)),A(Zt,e.FORBID_CONTENTS,mt)),Gt&&(kt["#text"]=!0),Lt&&A(kt,["html","head","body"]),kt.table&&(A(kt,["tbody"]),delete Et.tbody),l&&l(e),ce=e)},he=A({},["mi","mo","mn","ms","mtext"]),de=A({},["foreignobject","desc","title","annotation-xml"]),ye=A({},["title","style","font","a","script"]),ve=A({},R);A(ve,D),A(ve,I);var me=A({},U);A(me,N);var be=function(t){g(o.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=ut}catch(e){t.remove()}}},ge=function(t,e){try{g(o.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){g(o.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!Tt[t])if(Bt||zt)try{be(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},_e=function(t){var e,n;if($t)t=""+t;else{var r=O(t,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===vt&&oe===re&&(t=''+t+"");var o=at?at.createHTML(t):t;if(oe===re)try{e=(new v).parseFromString(o,vt)}catch(t){}if(!e||!e.documentElement){e=ct.createDocument(oe,"template",null);try{e.documentElement.innerHTML=ie?ut:o}catch(t){}}var i=e.body||e.documentElement;return t&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),oe===re?pt.call(e,Lt?"html":"body")[0]:Lt?e.documentElement:i},we=function(t){return lt.call(t.ownerDocument||t,t,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT,null,!1)},Oe=function(e){return"object"===t(c)?e instanceof c:e&&"object"===t(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},je=function(t,e,n){yt[t]&&m(yt[t],(function(t){t.call(o,e,n,ce)}))},xe=function(t){var e,n;if(je("beforeSanitizeElements",t,null),(n=t)instanceof y&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof d)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return be(t),!0;if(k(/[\u0080-\uFFFF]/,t.nodeName))return be(t),!0;var r=mt(t.nodeName);if(je("uponSanitizeElement",t,{tagName:r,allowedTags:kt}),t.hasChildNodes()&&!Oe(t.firstElementChild)&&(!Oe(t.content)||!Oe(t.content.firstElementChild))&&k(/<[/\w]/g,t.innerHTML)&&k(/<[/\w]/g,t.textContent))return be(t),!0;if("select"===r&&k(/=0;--u)i.insertBefore(et(a[u],!0),nt(t))}return be(t),!0}return t instanceof f&&!function(t){var e=ot(t);e&&e.tagName||(e={namespaceURI:oe,tagName:"template"});var n=_(t.tagName),r=_(e.tagName);return!!ae[t.namespaceURI]&&(t.namespaceURI===ne?e.namespaceURI===re?"svg"===n:e.namespaceURI===ee?"svg"===n&&("annotation-xml"===r||he[r]):Boolean(ve[n]):t.namespaceURI===ee?e.namespaceURI===re?"math"===n:e.namespaceURI===ne?"math"===n&&de[r]:Boolean(me[n]):t.namespaceURI===re?!(e.namespaceURI===ne&&!de[r])&&!(e.namespaceURI===ee&&!he[r])&&!me[n]&&(ye[n]||!ve[n]):!("application/xhtml+xml"!==vt||!ae[t.namespaceURI]))}(t)?(be(t),!0):"noscript"!==r&&"noembed"!==r||!k(/<\/no(script|embed)/i,t.innerHTML)?(Nt&&3===t.nodeType&&(e=t.textContent,e=j(e,bt," "),e=j(e,gt," "),e=j(e,_t," "),t.textContent!==e&&(g(o.removed,{element:t.cloneNode()}),t.textContent=e)),je("afterSanitizeElements",t,null),!1):(be(t),!0)},Pe=function(t,e,n){if(Ht&&("id"===e||"name"===e)&&(n in a||n in le))return!1;if(Dt&&!Ct[e]&&k(wt,e));else if(Rt&&k(Ot,e));else if(!Tt[e]||Ct[e]){if(!(ke(t)&&(Mt.tagNameCheck instanceof RegExp&&k(Mt.tagNameCheck,t)||Mt.tagNameCheck instanceof Function&&Mt.tagNameCheck(t))&&(Mt.attributeNameCheck instanceof RegExp&&k(Mt.attributeNameCheck,e)||Mt.attributeNameCheck instanceof Function&&Mt.attributeNameCheck(e))||"is"===e&&Mt.allowCustomizedBuiltInElements&&(Mt.tagNameCheck instanceof RegExp&&k(Mt.tagNameCheck,n)||Mt.tagNameCheck instanceof Function&&Mt.tagNameCheck(n))))return!1}else if(Qt[e]);else if(k(Pt,j(n,xt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==x(n,"data:")||!Kt[t])if(It&&!k(jt,j(n,xt,"")));else if(n)return!1;return!0},ke=function(t){return t.indexOf("-")>0},Se=function(e){var n,r,i,a;je("beforeSanitizeAttributes",e,null);var u=e.attributes;if(u){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Tt};for(a=u.length;a--;){var c=n=u[a],l=c.name,f=c.namespaceURI;if(r="value"===l?n.value:P(n.value),i=mt(l),s.attrName=i,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,je("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(ge(l,e),s.keepAttr))if(Ut||!k(/\/>/i,r)){Nt&&(r=j(r,bt," "),r=j(r,gt," "),r=j(r,_t," "));var p=mt(e.nodeName);if(Pe(p,i,r)){if(!qt||"id"!==i&&"name"!==i||(ge(l,e),r="user-content-"+r),at&&"object"===t(T)&&"function"==typeof T.getAttributeType)if(f);else switch(T.getAttributeType(p,i)){case"TrustedHTML":r=at.createHTML(r);break;case"TrustedScriptURL":r=at.createScriptURL(r)}try{f?e.setAttributeNS(f,l,r):e.setAttribute(l,r),b(o.removed)}catch(t){}}}else ge(l,e)}je("afterSanitizeAttributes",e,null)}},Te=function t(e){var n,r=we(e);for(je("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)je("uponSanitizeShadowNode",n,null),xe(n)||(n.content instanceof u&&t(n.content),Se(n));je("afterSanitizeShadowDOM",e,null)};return o.sanitize=function(e){var r,a,s,l,f,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ie=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Oe(e)){if("function"!=typeof e.toString)throw S("toString is not a function");if("string"!=typeof(e=e.toString()))throw S("dirty is not a string, aborting")}if(!o.isSupported){if("object"===t(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof e)return n.toStaticHTML(e);if(Oe(e))return n.toStaticHTML(e.outerHTML)}return e}if(Ft||pe(p),o.removed=[],"string"==typeof e&&(Wt=!1),Wt){if(e.nodeName){var h=mt(e.nodeName);if(!kt[h]||Et[h])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)1===(a=(r=_e("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!Bt&&!Nt&&!Lt&&-1===e.indexOf("<"))return at&&Vt?at.createHTML(e):e;if(!(r=_e(e)))return Bt?null:Vt?ut:""}r&&$t&&be(r.firstChild);for(var d=we(Wt?e:r);s=d.nextNode();)3===s.nodeType&&s===l||xe(s)||(s.content instanceof u&&Te(s.content),Se(s),l=s);if(l=null,Wt)return e;if(Bt){if(zt)for(f=ft.call(r.ownerDocument);r.firstChild;)f.appendChild(r.firstChild);else f=r;return(Tt.shadowroot||Tt.shadowrootmod)&&(f=ht.call(i,f,!0)),f}var y=Lt?r.outerHTML:r.innerHTML;return Lt&&kt["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&k(K,r.ownerDocument.doctype.name)&&(y="\n"+y),Nt&&(y=j(y,bt," "),y=j(y,gt," "),y=j(y,_t," ")),at&&Vt?at.createHTML(y):y},o.setConfig=function(t){pe(t),Ft=!0},o.clearConfig=function(){ce=null,Ft=!1},o.isValidAttribute=function(t,e,n){ce||pe({});var r=mt(t),o=mt(e);return Pe(r,o,n)},o.addHook=function(t,e){"function"==typeof e&&(yt[t]=yt[t]||[],g(yt[t],e))},o.removeHook=function(t){if(yt[t])return b(yt[t])},o.removeHooks=function(t){yt[t]&&(yt[t]=[])},o.removeAllHooks=function(){yt={}},o}()}()},6729:function(t){"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function i(t,e,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var u=new o(r,i||t,a),s=n?n+e:e;return t._events[s]?t._events[s].fn?t._events[s]=[t._events[s],u]:t._events[s].push(u):(t._events[s]=u,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function u(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),u.prototype.eventNames=function(){var t,r,o=[];if(0===this._eventsCount)return o;for(r in t=this._events)e.call(t,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},u.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o-1};function s(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function c(t){return"string"!=typeof t&&(t=String(t)),t}function l(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function f(t){this.map={},t instanceof f?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(t.bodyUsed)return n.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new n((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function d(t){var e=new FileReader,n=h(e);return e.readAsArrayBuffer(t),n}function y(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=y(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=y(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return n.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?n.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):n.resolve(this._bodyArrayBuffer)):this.blob().then(d)}),this.text=function(){var t,e,r,o=p(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=h(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return n.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function _(t,e){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"",this.headers=new f(e.headers),this.url=e.url||"",this._initBody(t)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},v.call(b.prototype),v.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},_.error=function(){var t=new _(null,{status:0,statusText:""});return t.type="error",t};var w=[301,302,303,307,308];_.redirect=function(t,e){if(-1===w.indexOf(e))throw new RangeError("Invalid status code");return new _(null,{status:e,headers:{location:t}})},e.DOMException=o.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function O(t,a){return new n((function(n,u){var s=new b(t,a);if(s.signal&&s.signal.aborted)return u(new e.DOMException("Aborted","AbortError"));var l=new r;function p(){l.abort()}l.onload=function(){var t,e,r={status:l.status,statusText:l.statusText,headers:(t=l.getAllResponseHeaders()||"",e=new f,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var o="response"in l?l.response:l.responseText;setTimeout((function(){n(new _(o,r))}),0)},l.onerror=function(){setTimeout((function(){u(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){u(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){u(new e.DOMException("Aborted","AbortError"))}),0)},l.open(s.method,function(t){try{return""===t&&o.location.href?o.location.href:t}catch(e){return t}}(s.url),!0),"include"===s.credentials?l.withCredentials=!0:"omit"===s.credentials&&(l.withCredentials=!1),"responseType"in l&&(i.blob?l.responseType="blob":i.arrayBuffer&&s.headers.get("Content-Type")&&-1!==s.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!a||"object"!=typeof a.headers||a.headers instanceof f?s.headers.forEach((function(t,e){l.setRequestHeader(e,t)})):Object.getOwnPropertyNames(a.headers).forEach((function(t){l.setRequestHeader(t,c(a.headers[t]))})),s.signal&&(s.signal.addEventListener("abort",p),l.onreadystatechange=function(){4===l.readyState&&s.signal.removeEventListener("abort",p)}),l.send(void 0===s._bodyInit?null:s._bodyInit)}))}O.polyfill=!0,o.fetch||(o.fetch=O,o.Headers=f,o.Request=b,o.Response=_),e.Headers=f,e.Request=b,e.Response=_,e.fetch=O,Object.defineProperty(e,"__esModule",{value:!0})}(e),{fetch:t.fetch,Headers:t.Headers,Request:t.Request,Response:t.Response,DOMException:t.DOMException}}()}void 0===(r=function(){return i}.call(e,n,e,t))||(t.exports=r)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:this)},1817:function(t,e,n){var r,o;r=function(){"use strict";Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var t={},e={"==":function(t,e){return t==e},"===":function(t,e){return t===e},"!=":function(t,e){return t!=e},"!==":function(t,e){return t!==e},">":function(t,e){return t>e},">=":function(t,e){return t>=e},"<":function(t,e,n){return void 0===n?t=e?[]:r}};return t.is_logic=function(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)&&1===Object.keys(t).length},t.truthy=function(t){return!(Array.isArray(t)&&0===t.length||!t)},t.get_operator=function(t){return Object.keys(t)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(n,r){if(Array.isArray(n))return n.map((function(e){return t.apply(e,r)}));if(!t.is_logic(n))return n;var o,i,a,u,s,c=t.get_operator(n),l=n[c];if(Array.isArray(l)||(l=[l]),"if"===c||"?:"==c){for(o=0;o0){var f=String(c).split("."),p=e;for(o=0;o=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.render=e.Components=void 0;var r=function(){function t(){}return t.component=function(e,n){return void 0===n&&(n="components"),t[n][e]?t[n][e]:t[n].component},t.create=function(e,n,r){return new(t.component(e.type))(e,n,r)},t.addDecorator=function(e,n){t.decorators[n]=e},t.addComponent=function(e,n){if(e)return"function"!=typeof e?t.importComponent(e):(t.components[n]=e,e)},t.importComponent=function(e){void 0===e&&(e={});var r=t.component(e.extends,"decorators"),o=function(){function t(){}return n([r(e)],t)}();t.addComponent(o,e.type)},t.setComponents=function(e){Object.assign(t.components,e)},t.components={},t.decorators={},t}();e.Components=r,e.render=function(t,e,n,o){return void 0===n&&(n={}),void 0===o&&(o={}),r.create(e,n,o).attach(t)}},6509:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.Template=void 0;var a=i(n(2373)),u=function(){function t(){}return t.addTemplates=function(e){var n=t.framework;t.templates=a.merge(t.templates,e),t.framework=n},t.addTemplate=function(e,n){t.templates[e]=a.merge(t.current,n)},t.extendTemplate=function(e,n){t.templates[e]=a.merge(t.templates[e],n)},t.setTemplate=function(e,n){t.addTemplate(e,n)},Object.defineProperty(t,"current",{get:function(){return t._current},set:function(e){var n=t.current;t._current=a.merge(n,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"framework",{get:function(){return t._framework},set:function(e){t.templates.hasOwnProperty(e)&&(t._framework=e,t._current=t.templates[e])},enumerable:!1,configurable:!0}),t.render=function(t,e,n,r){return void 0===n&&(n="html"),void 0===r&&(r=null),"function"==typeof t?t(e):this.current[t]&&this.current[t][n]?this.current[t][n](e):r?r(e):"Unknown template"},t.templates=[],t._current={},t._framework="bootstrap",t}();e.Template=u},3830:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayComponent=void 0;var i=n(7609),a=n(1582),u=n(8584);function s(t){return void 0===t&&(t={}),t.type||(t.type="array"),t.model||(t.model=a.NestedArrayModel),function(e){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}((0,u.NestedComponent)(t)(e))}}e.ArrayComponent=s,i.Components.addDecorator(s,"array"),i.Components.addComponent(s()(),"array")},4648:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return a(e,t),e},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},c=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]".concat(t.t("Unknown Component"),"")}},enumerable:!1,configurable:!0}),n.prototype.interpolate=function(t,e){return p.Evaluator.interpolate(t,e)},n.prototype.renderContext=function(t){return void 0===t&&(t={}),e.prototype.renderContext?e.prototype.renderContext.call(this,t):t},n.prototype.evaluate=function(t,e,n,r){return void 0===e&&(e={}),void 0===n&&(n=""),void 0===r&&(r=!1),p.Evaluator.evaluate(t,this.evalContext(e),n,r)},n.prototype.render=function(t){return void 0===t&&(t={}),e.prototype.render?e.prototype.render.call(this,t):this.renderTemplate(this.template||this.component.type,this.renderContext(t))},n.prototype.getRefs=function(){return e.prototype.getRefs?e.prototype.getRefs.call(this):{}},n.prototype.loadRefs=function(t){var e=this.getRefs();for(var n in e)"single"===e[n]?this.refs[n]=t.querySelector('[ref="'.concat(n,'"]')):this.refs[n]=t.querySelectorAll('[ref="'.concat(n,'"]'))},n.prototype.attach=function(t){return s(this,void 0,void 0,(function(){var n,r;return c(this,(function(o){switch(o.label){case 0:return this.element&&!t&&(t=this.element),t&&(n=t.parentNode)?(r=Array.prototype.indexOf.call(n.children,t),t.outerHTML=String(this.sanitize(this.render())),t=n.children[r],this.element=t,this.loadRefs(this.element),e.prototype.attach?[4,e.prototype.attach.call(this,t)]:[3,2]):[2,this];case 1:o.sent(),o.label=2;case 2:return this.attached=!0,[2,this]}}))}))},n.prototype.redraw=function(){return s(this,void 0,void 0,(function(){return c(this,(function(t){return this.element?(this.clear(),[2,this.attach()]):[2]}))}))},n.prototype.sanitize=function(t){return(0,d.sanitize)(t,this.options)},Object.defineProperty(n.prototype,"translations",{get:function(){return this.options.language&&this.options.i18n&&this.options.i18n[this.options.language]?this.options.i18n[this.options.language]:{}},enumerable:!1,configurable:!0}),n.prototype.t=function(t){return this.translations[t]?this.translations[t]:t},n.prototype.evalContext=function(t){var e=this;return void 0===t&&(t={}),Object.assign({instance:this,component:this.component,options:this.options,row:this.data,data:this.root?this.root.data:this.data,rowIndex:this.rowIndex,value:function(){return e.dataValue},t:function(t){return e.t(t)}},t)},n.prototype.renderTemplate=function(t,e){return void 0===e&&(e={}),f.Template.render(t,this.evalContext(e),"html",this.defaultTemplate)},n.prototype.isValueRedacted=function(){return this.component.protected||!this.component.persistent||"client-only"===this.component.persistent},n.prototype.setValue=function(t){var n=!1;return e.prototype.setValue&&(n=e.prototype.setValue.call(this,t)),this.updateValue(t)||n},n.prototype.getElement=function(){return this.element},n.prototype.detach=function(){this.refs={},this.attached=!1,this.removeAttachedListeners(),e.prototype.detach&&e.prototype.detach.call(this)},n.prototype.clear=function(){this.detach(),h.empty(this.getElement()),e.prototype.clear&&e.prototype.clear.call(this)},n.prototype.append=function(t){h.appendTo(t,this.element)},n.prototype.prepend=function(t){h.prependTo(t,this.element)},n.prototype.removeChild=function(t){h.removeChildFrom(t,this.element)},n.prototype.addEventListener=function(t,e,n){if(t)return"addEventListener"in t?t.addEventListener(e,n,!1):"attachEvent"in t&&t.attachEvent("on".concat(e),n),this.attachedListeners.push({obj:t,type:e,func:n}),this},n.prototype.removeAttachedListeners=function(){var t=this;this.attachedListeners.forEach((function(e){return t.removeEventListener(e.obj,e.type,e.func)})),this.attachedListeners=[]},n.prototype.removeEventListener=function(t,e,n){return t&&t.removeEventListener(e,n),this},n}(e(t)(n))}}e.Component=m,l.Components.addDecorator(m,"component"),l.Components.addComponent(m()(),"component")},3552:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.DataComponent=void 0;var i=n(7609),a=n(1582),u=n(8584);function s(t){return void 0===t&&(t={}),t.type||(t.type="data"),t.model||(t.model=a.NestedDataModel),function(e){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}((0,u.NestedComponent)(t)(e))}}e.DataComponent=s,i.Components.addDecorator(s,"data"),i.Components.addComponent(s()(),"data")},1150:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.Template=e.ArrayComponent=e.DataComponent=e.NestedComponent=e.Component=e.render=e.Components=void 0;var i=n(7609);Object.defineProperty(e,"Components",{enumerable:!0,get:function(){return i.Components}}),Object.defineProperty(e,"render",{enumerable:!0,get:function(){return i.render}});var a=n(4648);Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return a.Component}});var u=n(8584);Object.defineProperty(e,"NestedComponent",{enumerable:!0,get:function(){return u.NestedComponent}});var s=n(3552);Object.defineProperty(e,"DataComponent",{enumerable:!0,get:function(){return s.DataComponent}});var c=n(3830);Object.defineProperty(e,"ArrayComponent",{enumerable:!0,get:function(){return c.ArrayComponent}});var l=n(6509);Object.defineProperty(e,"Template",{enumerable:!0,get:function(){return l.Template}}),o(n(1582),e)},8584:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]'.concat(t.instance.renderComponents(),"")}},enumerable:!1,configurable:!0}),e.prototype.attach=function(e){return i(this,void 0,void 0,(function(){var n,r,o=this;return a(this,(function(i){switch(i.label){case 0:return[4,t.prototype.attach.call(this,e)];case 1:return i.sent(),this.element?(n=[],r=this.element.querySelectorAll('[data-within="'.concat(this.id,'"]')),Array.prototype.slice.call(r).forEach((function(t,e){n.push(o.components[e].attach(t))})),[4,Promise.all(n)]):[3,3];case 2:i.sent(),i.label=3;case 3:return[2,this]}}))}))},e.prototype.detach=function(){t.prototype.detach.call(this),this.eachComponent((function(t){return t.detach()}))},e.prototype.renderComponents=function(){var t=this;return this.components.reduce((function(e,n){return e+n.render().replace(/(<[^\>]+)/,'$1 data-within="'.concat(t.id,'"'))}),"")},e}((0,s.Component)(t)(e))}}e.NestedComponent=l,u.Components.addDecorator(l,"nested"),u.Components.addComponent(l()(),"nested")},4881:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.DataTableComponent=e.DataTable=void 0;var a=n(1150),u=function(){function t(t,e,n){this.component=t,this.options=e,this.data=n}return t.prototype.renderClasses=function(){var t="";return this.component.bordered&&(t+=" table-bordered"),this.component.striped&&(t+=" table-striped"),this.component.hover&&(t+=" table-hover"),this.component.condensed&&(t+=" table-condensed"),t},t.prototype.renderContext=function(t){return void 0===t&&(t={}),Object.assign({classes:this.renderClasses()},t)},t}();e.DataTable=u;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([(0,a.ArrayComponent)({type:"datatable",schema:{bordered:!0,striped:!1,hover:!0,condensed:!0},template:"datatable"})],e)}(u);e.DataTableComponent=s},5999:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.DataValueComponent=void 0;var a=n(1150),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([(0,a.Component)({type:"datavalue",schema:{tag:"span",attrs:[],className:""},template:function(t){return"<".concat(t.tag,' ref="val"').concat(t.attrs,">").concat(t.value(),"").concat(t.tag,">")}})],e)}(n(9986).HTML);e.DataValueComponent=u},9986:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLComponent=e.HTML=e.HTMLProperties=void 0;var a=n(1150);e.HTMLProperties={type:"html",schema:{tag:"span",content:"",attrs:[],className:""},template:function(t){return"<".concat(t.tag,' ref="').concat(t.ref,'"').concat(t.attrs,">").concat(t.t(t.content),"").concat(t.tag,">")}};var u=function(){function t(t,e,n){this.component=t,this.options=e,this.data=n}return t.prototype.getAttributes=function(){var t=!1,e="";for(var n in this.component.attrs)if(this.component.attrs.hasOwnProperty(n)){var r=this.component.attrs[n],o=Number.isNaN(parseInt(n)),i=o?n:r.attr,a=o?r:r.value;"class"===i&&this.component.className&&(t=!0,i+=" ".concat(this.component.className)),e+=" ".concat(i,'="').concat(this.interpolate(a,this.evalContext()),'"')}return!t&&this.component.className&&(e+=' class="'.concat(this.interpolate(this.component.className,this.evalContext()),'"')),e},t.prototype.renderContext=function(t){return void 0===t&&(t={}),Object.assign({tag:this.component.tag,ref:this.component.type,content:this.component.content?this.interpolate(this.component.content,this.evalContext()):"",attrs:this.getAttributes()},t)},t}();e.HTML=u;var s=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),i([(0,a.Component)(e.HTMLProperties)],n)}(u);e.HTMLComponent=s},2835:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLContainerComponent=e.HTMLContainer=void 0;var a=n(1150),u=n(9986),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.renderContext=function(e){return void 0===e&&(e={}),t.prototype.renderContext.call(this,Object.assign({content:this.renderComponents()},e))},e}(u.HTML);e.HTMLContainer=s;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([(0,a.NestedComponent)({type:"htmlcontainer",schema:u.HTMLProperties.schema,template:u.HTMLProperties.template})],e)}(s);e.HTMLContainerComponent=c},2740:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.InputComponent=e.Input=e.DataValueComponent=e.DataTableComponent=e.DataTable=e.HTMLContainerComponent=e.HTMLContainer=e.HTMLComponent=e.HTML=void 0;var o=r(n(2915)),i=n(9986),a=n(2835),u=n(4881),s=n(5999),c=n(9069),l=n(9986);Object.defineProperty(e,"HTML",{enumerable:!0,get:function(){return l.HTML}}),Object.defineProperty(e,"HTMLComponent",{enumerable:!0,get:function(){return l.HTMLComponent}});var f=n(2835);Object.defineProperty(e,"HTMLContainer",{enumerable:!0,get:function(){return f.HTMLContainer}}),Object.defineProperty(e,"HTMLContainerComponent",{enumerable:!0,get:function(){return f.HTMLContainerComponent}});var p=n(4881);Object.defineProperty(e,"DataTable",{enumerable:!0,get:function(){return p.DataTable}}),Object.defineProperty(e,"DataTableComponent",{enumerable:!0,get:function(){return p.DataTableComponent}});var h=n(5999);Object.defineProperty(e,"DataValueComponent",{enumerable:!0,get:function(){return h.DataValueComponent}});var d=n(9069);Object.defineProperty(e,"Input",{enumerable:!0,get:function(){return d.Input}}),Object.defineProperty(e,"InputComponent",{enumerable:!0,get:function(){return d.InputComponent}}),e.default={components:{html:i.HTMLComponent,htmlcontainer:a.HTMLContainerComponent,datatable:u.DataTableComponent,datavalue:s.DataValueComponent,input:c.InputComponent},templates:o.default}},9069:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},u=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=n.length&&e.addRow(t,r),e.setRowData(t,r)})),n.length>t.length)for(var r=t.length;r0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]3?u[3]:"").split("?");l.length>1&&(e=l[0],this.query="?".concat(l[1]))}var f=function(t,n){r["".concat(t,"sUrl")]="".concat(n,"/").concat(t);var o=new RegExp("/".concat(t,"/([^/]+)"));return e&&-1!==e.search(o)&&(c=e.match(o),r["".concat(t,"Url")]=c?n+c[0]:"",r["".concat(t,"Id")]=c.length>1?c[1]:"",n+=c[0]),n},p=function(t,e,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(Array.isArray(o))p(o,e,!0);else{var i=f(o,e);e=n?e:i}}};if(!this.projectUrl||this.projectUrl===this.base)if(this.projectUrl||a||"Subdirectories"!==t.pathType)this.projectUrl=s;else{var h="^".concat(s.replace(/\//g,"\\/"),".[^/]+"),d=o.match(new RegExp(h));this.projectUrl=d?d[0]:s}var y=!1;if(t.pathType&&(y="Subdomains"!==t.pathType),!this.noProject){if(a)p(["project"],s),e=e.replace(i,"");else if(s===this.base){if(u&&u.length>3&&e.split("/").length>1){var v=e.match(/.json/),m=e.split("/");if(v)this.projectUrl=s;else{m.shift();var b=m.shift();b&&(this.projectId=b,e="/".concat(m.join("/")),this.projectUrl="".concat(s,"/").concat(this.projectId))}}}else u&&u.length>2&&(u[2].split(".").length>2||s.includes("localhost"))&&!y&&(this.projectUrl=s,this.projectId=u[2].split(".")[0]);this.projectsUrl=this.projectsUrl||"".concat(this.base,"/project")}if(p(["role"],this.projectUrl),/(^|\/)(form)($|\/)/.test(e))p(["form",["submission","action","v"]],this.projectUrl);else{var g=new RegExp("/(submission|action|v)($|/.*)"),_=e.match(g);_&&_.length>1&&(this.pathType=_[1]),e=(e=e.replace(g,"")).replace(/\/$/,""),this.formsUrl="".concat(this.projectUrl,"/form"),this.formUrl=e?this.projectUrl+e:"",this.formId=e.replace(/^\/+|\/+$/g,"");var w=["submission","action","v"];for(var O in w)if(w.hasOwnProperty(O)){var j=w[O];this["".concat(j,"sUrl")]="".concat(this.projectUrl+e,"/").concat(j),this.pathType===j&&_&&_.length>2&&_[2]&&(this["".concat(j,"Id")]=_[2].replace(/^\/+|\/+$/g,""),this["".concat(j,"Url")]=this.projectUrl+e+_[0])}}t.projectUrlSet||(t.projectUrl=this.projectUrl)}return t.prototype.delete=function(e,n){var r="".concat(e,"Id"),o="".concat(e,"Url");return this[r]?(t.cache={},this.makeRequest(e,this[o],"delete",null,n)):Promise.reject("Nothing to delete")},t.prototype.index=function(e,n,r){var o="".concat(e,"Url");return(n=n||"")&&(0,a.isObject)(n)&&(n="?".concat(t.serialize(n.params))),this.makeRequest(e,this[o]+n,"get",null,r)},t.prototype.save=function(e,n,r){var o="".concat(e,"Id"),i="".concat(e,"Url"),a=this[o]||n._id?"put":"post",u=this[o]?this[i]:this["".concat(e,"sUrl")];return this[o]||!n._id||"put"!==a||u.includes(n._id)||(u+="/".concat(n._id)),t.cache={},this.makeRequest(e,u+this.query,a,n,r)},t.prototype.load=function(e,n,r){var o="".concat(e,"Id"),i="".concat(e,"Url");if(n&&(0,a.isObject)(n)&&(n=t.serialize(n.params)),n=n?this.query?"".concat(this.query,"&").concat(n):"?".concat(n):this.query,!this[o])return Promise.reject("Missing ".concat(o));var u=this[i]+n;return"form"!==e||isNaN(parseInt(this.vId))||(u+="&formRevision=".concat(this.vId)),this.makeRequest(e,u,"get",null,r)},t.prototype.makeRequest=function(e,n,r,o,i){return t.makeRequest(this,e,n,r,o,i)},t.prototype.loadProject=function(t,e){return this.load("project",t,e)},t.prototype.saveProject=function(t,e){return this.save("project",t,e)},t.prototype.deleteProject=function(t){return this.delete("project",t)},t.loadProjects=function(e,n){return e=e||"",(0,a.isObject)(e)&&(e="?".concat(t.serialize(e.params))),t.makeStaticRequest("".concat(t.baseUrl,"/project").concat(e),"GET",null,n)},t.prototype.loadRole=function(t){return this.load("role",null,t)},t.prototype.saveRole=function(t,e){return this.save("role",t,e)},t.prototype.deleteRole=function(t){return this.delete("role",t)},t.prototype.loadRoles=function(t){return this.index("roles",null,t)},t.prototype.loadForm=function(e,n){var r=this;return this.load("form",e,n).then((function(o){return!o.revisions||isNaN(parseInt(r.vId))||"current"===o.revisions&&r.submissionId||o._vid==r.vId||o.revisionId===r.vId?o:(e&&(0,a.isObject)(e)&&(e=t.serialize(e.params)),e=e?r.query?"".concat(r.query,"&").concat(e):"?".concat(e):r.query,r.makeRequest("form",r.vUrl+e,"get",null,n).then((function(t){return o._vid=t._vid,o.components=t.components,o.settings=t.settings,o.revisionId=t.revisionId,Object.assign({},o)})).catch((function(){return Object.assign({},o)})))}))},t.prototype.saveForm=function(t,e){return this.save("form",t,e)},t.prototype.deleteForm=function(t){return this.delete("form",t)},t.prototype.loadForms=function(t,e){return this.index("forms",t,e)},t.prototype.loadSubmission=function(t,e){var n=this;return this.load("submission",t,e).then((function(t){return n.vId=t._frid||t._fvid,n.vUrl="".concat(n.formUrl,"/v/").concat(n.vId),t}))},t.prototype.saveSubmission=function(t,e){return isNaN(parseInt(this.vId))||(t._fvid=this.vId),this.save("submission",t,e)},t.prototype.deleteSubmission=function(t){return this.delete("submission",t)},t.prototype.loadSubmissions=function(t,e){return this.index("submissions",t,e)},t.prototype.loadAction=function(t,e){return this.load("action",t,e)},t.prototype.saveAction=function(t,e){return this.save("action",t,e)},t.prototype.deleteAction=function(t){return this.delete("action",t)},t.prototype.loadActions=function(t,e){return this.index("actions",t,e)},t.prototype.availableActions=function(){return this.makeRequest("availableActions","".concat(this.formUrl,"/actions"))},t.prototype.actionInfo=function(t){return this.makeRequest("actionInfo","".concat(this.formUrl,"/actions/").concat(t))},t.prototype.isObjectId=function(t){return new RegExp("^[0-9a-fA-F]{24}$").test(t)},t.prototype.getProjectId=function(){return this.projectId?this.isObjectId(this.projectId)?Promise.resolve(this.projectId):this.loadProject().then((function(t){return t._id})):Promise.resolve("")},t.prototype.getFormId=function(){return this.formId?this.isObjectId(this.formId)?Promise.resolve(this.formId):this.loadForm().then((function(t){return t._id})):Promise.resolve("")},t.prototype.currentUser=function(e){return t.currentUser(this,e)},t.prototype.accessInfo=function(){return t.accessInfo(this)},t.prototype.oauthLogoutURI=function(e,n){return t.oauthLogoutURI(e,Object.assign({formio:this},this.options,n))},t.prototype.getToken=function(e){return t.getToken(Object.assign({formio:this},this.options,e))},t.prototype.setToken=function(e,n){return t.setToken(e,Object.assign({formio:this},this.options,n))},t.prototype.getTempToken=function(e,n,r){if(!t.getToken(r))return Promise.reject("You must be authenticated to generate a temporary auth token.");var o=t.authUrl||this.projectUrl;return this.makeRequest("tempToken","".concat(o,"/token"),"GET",null,{ignoreCache:!0,header:new h({"x-expire":e,"x-allow":n})})},t.prototype.getDownloadUrl=function(t){var e=this;if(!this.submissionId)return Promise.resolve("");if(!t)return this.loadForm().then((function(t){return t?e.getDownloadUrl(t):""}));var n="/project/".concat(t.project);n+="/form/".concat(t._id),n+="/submission/".concat(this.submissionId);var r=t.submissionRevisions&&t.settings.changeLog?"/download/changelog":"/download";n+=r;var o=this.base+n;return new Promise((function(t,r){e.getTempToken(3600,"GET:".concat(n)).then((function(e){o+="?token=".concat(e.key),t(o)}),(function(){t(o)})).catch(r)}))},t.prototype.userPermissions=function(t,e,n){return Promise.all([void 0!==e?Promise.resolve(e):this.loadForm(),void 0!==t?Promise.resolve(t):this.currentUser(),void 0===n&&this.submissionId?this.loadSubmission():Promise.resolve(n),this.accessInfo()]).then((function(t){var e=t.shift(),n=t.shift()||{_id:!1,roles:[]},r=t.shift(),o=t.shift(),i={create:"create",read:"read",update:"edit",delete:"delete"},s={user:n,form:e,access:o,create:!1,read:!1,edit:!1,delete:!1};for(var c in o.roles)if(o.roles.hasOwnProperty(c)){var l=o.roles[c];if(l.default&&!1===n._id)n.roles.push(l._id);else if(l.admin&&-1!==n.roles.indexOf(l._id))return s.create=!0,s.read=!0,s.delete=!0,s.edit=!0,s}if(e&&e.submissionAccess)for(var f=0;f-1&&("read"===t.defaultPermission&&(s[i.read]=!0),"create"===t.defaultPermission&&(s[i.create]=!0,s[i.read]=!0),"write"===t.defaultPermission&&(s[i.create]=!0,s[i.read]=!0,s[i.update]=!0),"admin"===t.defaultPermission&&(s[i.create]=!0,s[i.read]=!0,s[i.update]=!0,s[i.delete]=!0))}))}})),s}))},t.prototype.canSubmit=function(){var e=this;return this.userPermissions().then((function(n){return!n.create&&t.getUser()?e.userPermissions(null).then((function(e){return!!e.create&&(t.setUser(null),!0)})):n.create}))},t.prototype.getUrlParts=function(e){return t.getUrlParts(e,this)},t.getUrlParts=function(e,n){var r=n&&n.base?n.base:t.baseUrl,o="^(http[s]?:\\/\\/)";return r&&0===e.indexOf(r)?o+="(".concat(r.replace(/^http[s]?:\/\//,""),")"):o+="([^/]+)",o+="($|\\/.*)",e.match(new RegExp(o))},t.serialize=function(t,e){var n,r=[];for(var o in t)t.hasOwnProperty(o)&&r.push("".concat(encodeURIComponent(o),"=").concat(encodeURIComponent((n=t[o],e?e(n):n))));return r.join("&")},t.getRequestArgs=function(t,e,n,r,o,i){r=(r||"GET").toUpperCase(),i&&(0,a.isObject)(i)||(i={});var u={url:n,method:r,data:o||null,opts:i};return e&&(u.type=e),t&&(u.formio=t),u},t.makeStaticRequest=function(e,n,r,o){var i=t.getRequestArgs(null,"",e,n,r,o),u=d.default.pluginWait("preRequest",i).then((function(){return d.default.pluginGet("staticRequest",i).then((function(e){return(0,a.isNil)(e)?t.request(i.url,i.method,i.data,i.opts.header,i.opts):e}))}));return d.default.pluginAlter("wrapStaticRequestPromise",u,i)},t.makeRequest=function(e,n,r,o,i,u){if(!e)return t.makeStaticRequest(r,o,i,u);var s=t.getRequestArgs(e,n,r,o,i,u);s.opts=s.opts||{},s.opts.formio=e,s.opts.headers||(s.opts.headers={}),s.opts.headers=(0,a.defaults)(s.opts.headers,{Accept:"application/json","Content-type":"application/json"});var c=d.default.pluginWait("preRequest",s).then((function(){return d.default.pluginGet("request",s).then((function(e){return(0,a.isNil)(e)?t.request(s.url,s.method,s.data,s.opts.header,s.opts):e}))}));return d.default.pluginAlter("wrapRequestPromise",c,s)},t.request=function(e,n,r,o,i){if(!e)return Promise.reject("No url provided");n=(n||"GET").toUpperCase(),(0,a.isBoolean)(i)&&(i={ignoreCache:i}),i&&(0,a.isObject)(i)||(i={});var u=btoa(encodeURI(e));if(!i.ignoreCache&&"GET"===n&&t.cache.hasOwnProperty(u))return Promise.resolve(t.cloneResponse(t.cache[u]));"/"===e[0]&&(e=t.baseUrl+e);var s=o||new h(i.headers||{Accept:"application/json","Content-type":"application/json"}),c=t.getToken(i);c&&!i.noToken&&s.append("x-jwt-token",c);var l={};s.forEach((function(t,e){l[e]=t}));var f={method:n,headers:l,mode:"cors"};r&&(f.body=JSON.stringify(r)),((f=d.default.pluginAlter("requestOptions",f,e)).namespace||t.namespace)&&(i.namespace=f.namespace||t.namespace);var p=f.headers["x-jwt-token"],y=d.default.pluginAlter("wrapFetchRequestPromise",t.fetch(e,f),{url:e,method:n,data:r,opts:i}).then((function(o){if(!(o=d.default.pluginAlter("requestResponse",o,t,r)).ok){if(440===o.status)t.setToken(null,i),t.events.emit("formio.sessionExpired",o.body);else if(401===o.status)t.events.emit("formio.unauthorized",o.body);else if(416===o.status)t.events.emit("formio.rangeIsNotSatisfiable",o.body);else if(504===o.status)return Promise.reject(new Error("Network request failed"));return(o.headers.get("content-type").includes("application/json")?o.json():o.text()).then((function(t){return Promise.reject(t)}))}var u=o.headers.get("x-jwt-token"),s=!1;return"GET"!==n||p||!u||i.external||e.includes("token=")||e.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),s=!0),o.status>=200&&o.status<300&&u&&""!==u&&!s&&t.setToken(u,i),204===o.status?{}:(o.headers.get("content-type").includes("application/json")?o.json():o.text()).then((function(t){var e=o.headers.get("content-range");if(e&&(0,a.isObject)(t)){if("*"!==(e=e.split("/"))[0]){var n=e[0].split("-");t.skip=Number(n[0]),t.limit=n[1]-n[0]+1}t.serverCount="*"===e[1]?e[1]:Number(e[1])}if(!i.getHeaders)return t;var r={};return o.headers.forEach((function(t,e){r[e]=t})),{result:t,headers:r}}))})).then((function(e){return i.getHeaders?e:("GET"===n&&(t.cache[u]=e),t.cloneResponse(e))})).catch((function(r){return"Bad Token"===r&&!1!==i.noToken&&(t.setToken(null,i),t.events.emit("formio.badToken",r)),r.message&&((r=new Error("Could not connect to API server (".concat(r.message,"): ").concat(e))).networkError=!0),"GET"===n&&delete t.cache[u],Promise.reject(r)}));return y},Object.defineProperty(t,"token",{get:function(){return t.tokens.formioToken||""},set:function(e){t.tokens.formioToken=e||""},enumerable:!1,configurable:!0}),t.useSessionToken=function(e){var n=e;"object"==typeof e&&(e=e.namespace);var r="".concat(n||t.namespace||"formio","Token"),o=localStorage.getItem(r);o&&(localStorage.removeItem(r),sessionStorage.setItem(r,o));var i="".concat(n||t.namespace||"formio","User"),a=localStorage.getItem(i);a&&(localStorage.removeItem(i),sessionStorage.setItem(i,a)),localStorage.setItem("useSessionToken","true")},t.setToken=function(e,n){void 0===e&&(e=""),void 0===n&&(n={}),e=e||"";var r="".concat((n="string"==typeof n?{namespace:n}:n||{}).namespace||t.namespace||"formio","Token");t.tokens||(t.tokens={});var o=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){n.fromUser||(n.fromToken=!0,t.setUser(null,n));try{o.removeItem(r)}catch(t){l.default.erase(r,{path:"/"})}return t.tokens[r]=e,Promise.resolve(null)}if(t.tokens[r]!==e){t.tokens[r]=e;try{o.setItem(r,e)}catch(t){l.default.set(r,e,{path:"/"})}}return t.currentUser(n.formio,n)},t.getToken=function(e){var n="".concat((e="string"==typeof e?{namespace:e}:e||{}).namespace||t.namespace||"formio","Token"),r=e.decode?"".concat(n,"Decoded"):n;if(t.tokens||(t.tokens={}),t.tokens[r])return t.tokens[r];try{var o=localStorage.getItem("useSessionToken")?sessionStorage.getItem(n):localStorage.getItem(n);return t.tokens[n]=o||"",e.decode?(t.tokens[r]=t.tokens[n]?(0,s.jwtDecode)(t.tokens[n]):{},t.tokens[r]):t.tokens[n]}catch(e){return t.tokens[n]=l.default.get(n),""}},t.setUser=function(e,n){void 0===n&&(n={});var r="".concat(n.namespace||t.namespace||"formio","User"),o=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){n.fromToken||(n.fromUser=!0,t.setToken(null,n)),t.events.emit("formio.user",null);try{return o.removeItem(r)}catch(t){return l.default.erase(r,{path:"/"})}}try{o.setItem(r,JSON.stringify(e))}catch(t){l.default.set(r,JSON.stringify(e),{path:"/"})}t.events.emit("formio.user",e)},t.getUser=function(e){var n="".concat((e=e||{}).namespace||t.namespace||"formio","User");try{return JSON.parse((localStorage.getItem("useSessionToken")?sessionStorage:localStorage).getItem(n)||"")}catch(t){return JSON.parse(l.default.get(n))}},t.setBaseUrl=function(e){t.baseUrl=e,t.projectUrlSet||(t.projectUrl=e)},t.getBaseUrl=function(){return t.baseUrl},t.setApiUrl=function(e){return t.setBaseUrl(e)},t.getApiUrl=function(){return t.getBaseUrl()},t.setAppUrl=function(e){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),t.projectUrl=e,t.projectUrlSet=!0},t.setProjectUrl=function(e){t.projectUrl=e,t.projectUrlSet=!0},t.setAuthUrl=function(e){t.authUrl=e},t.getAppUrl=function(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),t.projectUrl},t.getProjectUrl=function(){return t.projectUrl},t.clearCache=function(){t.cache={}},t.accessInfo=function(e){var n=e?e.projectUrl:t.projectUrl;return t.makeRequest(e,"accessInfo","".concat(n,"/access"))},t.projectRoles=function(e){var n=e?e.projectUrl:t.projectUrl;return t.makeRequest(e,"projectRoles","".concat(n,"/role"))},t.currentUser=function(e,n){void 0===n&&(n={});var r=t.authUrl;r||(r=e?e.projectUrl:t.projectUrl||t.baseUrl),r+="/current";var o=t.getUser(n);if(o)return d.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(o),{url:r,method:"GET",options:n});var i=t.getToken(n);return n&&n.external||i?t.makeRequest(e,"currentUser",r,"GET",null,n).then((function(e){return t.setUser(e,n),e})):d.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(null),{url:r,method:"GET",options:n})},t.logout=function(e,n){void 0===n&&(n={}),n.formio=e;var r=t.authUrl?t.authUrl:e?e.projectUrl:t.baseUrl,o=function(){t.setToken(null,n),t.setUser(null,n),t.clearCache(),localStorage.removeItem("useSessionToken")};return t.makeRequest(e,"logout","".concat(r,"/logout")).then((function(t){return o(),t.shouldRedirect&&t.url&&(window.location.href=t.url),t})).catch((function(t){throw o(),t}))},t.pageQuery=function(){var t={paths:[]},e=location.hash.substr(1).replace(/\?/g,"&").split("&"),n=[];return location.search.substr(1).split("&").forEach((function(e){(n=e.split("=")).length>1&&(t[n[0]]=n[1]&&decodeURIComponent(n[1]))})),e.forEach((function(e){(n=e.split("=")).length>1?t[n[0]]=n[1]&&decodeURIComponent(n[1]):0===e.indexOf("/")&&(t.paths=e.substr(1).split("/"))})),t},t.oAuthCurrentUser=function(e,n){return t.currentUser(e,{external:!0,headers:{Authorization:"Bearer ".concat(n)}})},t.oauthLogoutURI=function(e,n){var r="".concat((n="string"==typeof n?{namespace:n}:n||{}).namespace||t.namespace||"formio","LogoutAuthUrl");return t.tokens[r],localStorage.setItem(r,e),t.tokens[r]},t.samlInit=function(e){void 0===e&&(e={});var n=t.pageQuery();if(n.saml){t.setUser(null);var r=t.setToken(n.saml),o=window.location.toString();return o=o.substring(0,o.indexOf("?")),window.location.hash&&(o+=window.location.hash),window.history.replaceState({},document.title,o),r}e.relay||(e.relay=window.location.href);var i=t.authUrl||t.projectUrl;return window.location.href="".concat(i,"/saml/sso?relay=").concat(encodeURI(e.relay)),!1},t.oktaInit=function(e){if(void 0===e&&(e={}),void 0!==typeof OktaAuth&&(e.OktaAuth=OktaAuth),void 0===typeof e.OktaAuth){var n="Cannot find OktaAuth. Please include the Okta JavaScript SDK within your application. See https://developer.okta.com/code/javascript/okta_auth_sdk for an example.";return console.warn(n),Promise.reject(n)}return new Promise((function(n,r){var o=e.OktaAuth;delete e.OktaAuth;var i=new o(e);i.tokenManager.get("accessToken").then((function(o){o?n(t.oAuthCurrentUser(e.formio,o.accessToken)):location.hash?i.token.parseFromUrl().then((function(r){i.tokenManager.add("accessToken",r),n(t.oAuthCurrentUser(e.formio,r.accessToken))})).catch((function(t){console.warn(t),r(t)})):(i.token.getWithRedirect({responseType:"token",scopes:e.scopes}),n(!1))})).catch((function(t){r(t)}))}))},t.ssoInit=function(e,n){switch(void 0===n&&(n={}),e){case"saml":return t.samlInit(n);case"okta":return t.oktaInit(n);default:return console.warn("Unknown SSO type"),Promise.reject("Unknown SSO type")}},t.requireLibrary=function(e,n,r,o,i){if(void 0===o&&(o=!1),!t.libraries.hasOwnProperty(e)){t.libraries[e]={},t.libraries[e].ready=new Promise((function(n,r){t.libraries[e].resolve=n,t.libraries[e].reject=r}));var u="".concat(e,"Callback");o||window[u]||(window[u]=function(){return t.libraries[e].resolve()});var s=(0,a.get)(window,n);if(s)t.libraries[e].resolve(s);else if((r=Array.isArray(r)?r:[r]).forEach((function(n){var r={},o="";switch("string"==typeof n&&(n={type:"script",src:n}),n.type){case"script":o="script",r={src:n.src,type:"text/javascript",defer:!0,async:!0,referrerpolicy:"origin"};break;case"styles":o="link",r={href:n.src,rel:"stylesheet"}}var a=document.createElement(o);if(a.setAttribute)for(var u in r)a.setAttribute(u,r[u]);i&&a.addEventListener("load",(function(){t.libraries[e].loaded=!0,i(t.libraries[e].ready)}));var s=document.head;s&&s.appendChild(a)})),o)var c=setInterval((function(){var r=(0,a.get)(window,n);r&&(clearInterval(c),t.libraries[e].resolve(r))}),200)}var l=t.libraries[e];return i&&l.loaded?i(l.ready):l.ready},t.libraryReady=function(e){return t.libraries.hasOwnProperty(e)&&t.libraries[e].ready?t.libraries[e].ready:Promise.reject("".concat(e," library was not required."))},t.cloneResponse=function(t){var e=(0,a.fastCloneDeep)(t);return Array.isArray(t)&&(e.skip=t.skip,e.limit=t.limit,e.serverCount=t.serverCount),e},t.setPathType=function(e){"string"==typeof e&&(t.pathType=e)},t.getPathType=function(){return t.pathType},t.baseUrl="https://api.form.io",t.projectUrl="",t.authUrl="",t.projectUrlSet=!1,t.cache={},t.namespace="",t.events=new c.default,t.libraries={},t.fetch=p,t.Headers=h,t.tokens={},t.version="---VERSION---",t.plugins=d.default.plugins,t.deregisterPlugin=d.default.deregisterPlugin,t.registerPlugin=d.default.registerPlugin,t.getPlugin=d.default.getPlugin,t.pluginWait=d.default.pluginWait,t.pluginGet=d.default.pluginGet,t.pluginAlter=d.default.pluginAlter,t}();e.Formio=y,d.default.Formio=y},7689:function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o-1;(n||u.tree||!h)&&(f=e(u,p,t));var d=function(){return u.key&&!["panel","table","well","columns","fieldset","tabs","form"].includes(u.type)&&(["datagrid","container","editgrid","address","dynamicWizard"].includes(u.type)||u.tree)?p:u.key&&"form"===u.type?"".concat(p,".data"):o};f||(s?u.columns.forEach((function(t){return a(t.components,e,n,d(),i?u:null)})):c?u.rows.forEach((function(t){Array.isArray(t)&&t.forEach((function(t){return a(t.components,e,n,d(),i?u:null)}))})):l&&a(u.components,e,n,d(),i?u:null))}})))}function u(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}e.eachComponent=a,e.flattenComponents=function(t,e){var n={};return a(t,(function(t,e){n[e]=t}),e),n},e.guid=u,e.uniqueName=function(t,e,n){(e=e||"{{fileName}}-{{guid}}").includes("{{guid}}")||(e="".concat(e,"-{{guid}}"));var r=t.split("."),a=r.slice(0,r.length-1).join("."),s=r.length>1?".".concat((0,i.last)(r)):"";return a=a.substr(0,100),n=Object.assign(n||{},{fileName:a,guid:u()}),"".concat(o.Evaluator.interpolate(e,n)).concat(s).replace(/[^0-9a-zA-Z.\-_ ]/g,"-")}},5928:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return o(e,t),e},a=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.dom=e.unwind=e.override=e.sanitize=e.BaseEvaluator=e.Evaluator=e.Utils=void 0,e.Utils=i(n(6176));var u=n(6550);Object.defineProperty(e,"Evaluator",{enumerable:!0,get:function(){return u.Evaluator}}),Object.defineProperty(e,"BaseEvaluator",{enumerable:!0,get:function(){return u.BaseEvaluator}});var s=n(755);Object.defineProperty(e,"sanitize",{enumerable:!0,get:function(){return s.sanitize}});var c=n(9395);Object.defineProperty(e,"override",{enumerable:!0,get:function(){return c.override}});var l=n(6223);Object.defineProperty(e,"unwind",{enumerable:!0,get:function(){return l.unwind}}),e.dom=i(n(2593)),a(n(974),e),a(n(6444),e),a(n(1475),e)},5391:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.jwtDecode=void 0,e.jwtDecode=function(t,e){if(void 0===e&&(e={}),"string"!=typeof t)throw new Error("Invalid token specified: must be a string");var n,r=!0===e.header?0:1,o=t.split(".")[r];if("string"!=typeof o)throw new Error("Invalid token specified: missing part #"+(r+1));try{n=function(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(t){return decodeURIComponent(atob(t).replace(/(.)/g,(function(t,e){var n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(e)}catch(t){return atob(e)}}(o)}catch(t){throw new Error("Invalid token specified: invalid base64 for part #"+(r+1)+" ("+t.message+")")}try{return JSON.parse(n)}catch(t){throw new Error("Invalid token specified: invalid json for part #"+(r+1)+" ("+t.message+")")}}},1475:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchInputMask=e.getInputMask=void 0;var r=n(2373);e.getInputMask=function(t,e){if(t instanceof Array)return t;var n=[];n.numeric=!0;for(var r=0;re.length)return!1;for(var n=0;n0&&e.sanitizeConfig.addAttr.forEach((function(t){r.ADD_ATTR.push(t)})),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.addTags)&&e.sanitizeConfig.addTags.length>0&&(r.ADD_TAGS=e.sanitizeConfig.addTags),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.allowedTags)&&e.sanitizeConfig.allowedTags.length>0&&(r.ALLOWED_TAGS=e.sanitizeConfig.allowedTags),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.allowedAttrs)&&e.sanitizeConfig.allowedAttrs.length>0&&(r.ALLOWED_ATTR=e.sanitizeConfig.allowedAttrs),e.sanitizeConfig&&e.sanitizeConfig.allowedUriRegex&&(r.ALLOWED_URI_REGEXP=e.sanitizeConfig.allowedUriRegex),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.addUriSafeAttr)&&e.sanitizeConfig.addUriSafeAttr.length>0&&(r.ADD_URI_SAFE_ATTR=e.sanitizeConfig.addUriSafeAttr),n.sanitize(t,r)}},6223:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unwind=e.rewind=e.mergeArray=e.mergeObject=void 0;var r=n(2373),o=n(6176);function i(t,e){(0,r.each)(t,(function(t,n){Array.isArray(t)?(e[n]||(e[n]=[]),a(t,e[n])):e[n]=t}))}function a(t,e){t.forEach((function(t){var n={};(0,r.each)(t,(function(t,e){Array.isArray(t)||(n[e]=t)}));var o=(0,r.find)(e,n);o?i(t,o):e.push(t)}))}e.mergeObject=i,e.mergeArray=a,e.rewind=function(t){var e={data:{}};return t&&t.length&&t.forEach((function(t){return i(t.data,e.data)})),e},e.unwind=function(t,e){var n={},i={},a=[(0,r.fastCloneDeep)(e)],u=function(t,e,n,o,c){for(o=o||0,c=c||0;(0,r.has)(i,"["+c+"]."+n);)c+1>=a.length&&a.push((0,r.fastCloneDeep)(a[c])),c++;var l=n.replace(/\.[^\.]+$/,"");!(0,r.has)(a[c].data,l)&&a[c-1]&&(0,r.has)(a[c-1].data,l)&&(0,r.set)(a[c].data,l,(0,r.fastCloneDeep)((0,r.get)(a[c-1].data,l)));var f=[];(0,r.set)(a[c].data,n,f),(0,r.set)(i,"["+c+"]."+n,!0);for(var p=o;pt[i].max&&(t[i].max=a):t[i]={max:a,param:i,parent:r||null,paths:{}},n+10&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]l||isNaN(s)||s<0||s>12||isNaN(c)||c<0||c>9999?[2,!1]:[2,!0]):[2,!0]}))}))},e}(n(9402).Rule);e.DayRule=u},7887:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)]:[2,!0]}))}))},e}(n(9402).Rule);e.EmailRule=u},8056:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=e]}))}))},e}(u.Rule);e.MinRule=c},4559:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=e]:[2,!0]}))}))},e}(n(9402).Rule);e.MinLengthRule=u},766:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=e]:[2,!0]}))}))},e}(n(9402).Rule);e.MinWordsRule=u},183:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=+e]:[2,!0]}))}))},e}(n(9402).Rule);e.MinYearRule=u},4703:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,[2,!t||e.test(t)&&!n.test(t)]}))}))},e}(n(9402).Rule);e.UrlRule=u},1456:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2861),o=n(3325),i=n(2452),a=n(7887),u=n(8056),s=n(3773),c=n(3944),l=n(7564),f=n(7893),p=n(2311),h=n(4559),d=n(9424),y=n(766),v=n(4703),m=n(6202),b=n(962),g=n(7042),_=n(5666),w=n(183),O=n(8093),j=n(9540);e.default={custom:r.CustomRule,date:o.DateRule,day:i.DayRule,email:a.EmailRule,mask:u.MaskRule,max:s.MaxRule,maxDate:c.MaxDateRule,maxLength:l.MaxLengthRule,maxWords:f.MaxWordsRule,min:p.MinRule,minDate:h.MinDateRule,minLength:d.MinLengthRule,minWords:y.MinWordsRule,pattern:v.PatternRule,required:m.RequiredRule,select:b.SelectRule,unique:g.UniqueRule,url:_.UrlRule,minYear:w.MinYearRule,maxYear:O.MaxYearRule,time:j.TimeRule}},9520:function(t,e){e.Z=function(t){var e,n="";return Array.prototype.join,n+='\n \n \n ',t.component.components.forEach((function(t){n+="\n "+(null==(e=t.label||t.key)?"":e)+" | \n "})),n+="\n
\n \n \n ",t.instance.rows.forEach((function(t){n+="\n \n ",t.forEach((function(t){n+="\n "+(null==(e=t.dataValue)?"":e)+" | \n "})),n+="\n
\n "})),n+="\n \n
"}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n(3607)}();
\ No newline at end of file
diff --git a/lib/index.js.LICENSE.txt b/lib/index.js.LICENSE.txt
new file mode 100644
index 00000000..ca5e3917
--- /dev/null
+++ b/lib/index.js.LICENSE.txt
@@ -0,0 +1 @@
+/*! @license DOMPurify 2.4.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.5/LICENSE */
diff --git a/lib/model/EventEmitter.js b/lib/model/EventEmitter.js
deleted file mode 100644
index d7c60422..00000000
--- a/lib/model/EventEmitter.js
+++ /dev/null
@@ -1,134 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
- if (ar || !(i in from)) {
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
- ar[i] = from[i];
- }
- }
- return to.concat(ar || Array.prototype.slice.call(from));
-};
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.EventEmitterBase = exports.EventEmitter = void 0;
-var eventemitter3_1 = __importDefault(require("eventemitter3"));
-exports.EventEmitterBase = eventemitter3_1.default;
-function EventEmitter(BaseClass) {
- if (!BaseClass) {
- BaseClass = /** @class */ (function () {
- function _BaseClass() {
- }
- return _BaseClass;
- }());
- }
- return /** @class */ (function (_super) {
- __extends(EventEmitter, _super);
- function EventEmitter() {
- var _this = _super !== null && _super.apply(this, arguments) || this;
- /**
- * The parent entity.
- */
- _this.parent = null;
- /**
- * The events to fire for this model.
- */
- _this.events = new eventemitter3_1.default();
- return _this;
- }
- /**
- * Bubble an event up to the parent.
- *
- * @param event
- * @param args
- * @returns
- */
- EventEmitter.prototype.bubble = function (event) {
- var _a;
- var args = [];
- for (var _i = 1; _i < arguments.length; _i++) {
- args[_i - 1] = arguments[_i];
- }
- if (this.parent) {
- return (_a = this.parent).bubble.apply(_a, __spreadArray([event], args, false));
- }
- return this.emit.apply(this, __spreadArray([event], args, false));
- };
- /**
- * Emit an event on this component.
- * @param event
- * @param args
- * @returns
- */
- EventEmitter.prototype.emit = function (event) {
- var _a;
- var args = [];
- for (var _i = 1; _i < arguments.length; _i++) {
- args[_i - 1] = arguments[_i];
- }
- return (_a = this.events).emit.apply(_a, __spreadArray([event], args, false));
- };
- /**
- * Register an event subscriber.
- * @param event
- * @param fn
- * @param args
- * @returns
- */
- EventEmitter.prototype.on = function (event, fn) {
- var _a;
- var args = [];
- for (var _i = 2; _i < arguments.length; _i++) {
- args[_i - 2] = arguments[_i];
- }
- return (_a = this.events).on.apply(_a, __spreadArray([event, fn], args, false));
- };
- /**
- * Register an event subscriber that will only be called once.
- * @param event
- * @param fn
- * @param args
- * @returns
- */
- EventEmitter.prototype.once = function (event, fn) {
- var _a;
- var args = [];
- for (var _i = 2; _i < arguments.length; _i++) {
- args[_i - 2] = arguments[_i];
- }
- return (_a = this.events).once.apply(_a, __spreadArray([event, fn], args, false));
- };
- /**
- * Turn off the event registrations.
- * @param event
- * @param args
- * @returns
- */
- EventEmitter.prototype.off = function (event) {
- var _a;
- var args = [];
- for (var _i = 1; _i < arguments.length; _i++) {
- args[_i - 1] = arguments[_i];
- }
- return (_a = this.events).off.apply(_a, __spreadArray([event], args, false));
- };
- return EventEmitter;
- }(BaseClass));
-}
-exports.EventEmitter = EventEmitter;
diff --git a/lib/model/Model.js b/lib/model/Model.js
deleted file mode 100644
index 6b1f4362..00000000
--- a/lib/model/Model.js
+++ /dev/null
@@ -1,299 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
- __setModuleDefault(result, mod);
- return result;
-};
-var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
- return new (P || (P = Promise))(function (resolve, reject) {
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
- step((generator = generator.apply(thisArg, _arguments || [])).next());
- });
-};
-var __generator = (this && this.__generator) || function (thisArg, body) {
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
- function verb(n) { return function (v) { return step([n, v]); }; }
- function step(op) {
- if (f) throw new TypeError("Generator is already executing.");
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
- if (y = 0, t) op = [op[0] & 2, t.value];
- switch (op[0]) {
- case 0: case 1: t = op; break;
- case 4: _.label++; return { value: op[1], done: false };
- case 5: _.label++; y = op[1]; op = [0]; continue;
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
- default:
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
- if (t[2]) _.ops.pop();
- _.trys.pop(); continue;
- }
- op = body.call(thisArg, _);
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
- }
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Model = void 0;
-var _ = __importStar(require("@formio/lodash"));
-var EventEmitter_1 = require("./EventEmitter");
-function Model(props) {
- if (props === void 0) { props = {}; }
- if (!props.schema) {
- props.schema = {};
- }
- if (!props.schema.key) {
- props.schema.key = '';
- }
- return function (BaseClass) {
- return /** @class */ (function (_super) {
- __extends(BaseModel, _super);
- /**
- * @constructor
- * @param component
- * @param options
- * @param data
- */
- function BaseModel(component, options, data) {
- if (component === void 0) { component = {}; }
- if (options === void 0) { options = {}; }
- if (data === void 0) { data = {}; }
- var _this = _super.call(this, component, options, data) || this;
- _this.component = component;
- _this.options = options;
- _this.data = data;
- /**
- * The root entity.
- */
- _this.root = null;
- /**
- * The component validator instance.
- * @returns
- */
- _this.validator = null;
- _this.id = "e".concat(Math.random().toString(36).substring(7));
- _this.component = _.merge({}, _this.defaultSchema, _this.component);
- _this.options = __assign(__assign({}, _this.defaultOptions), _this.options);
- if (!_this.options.noInit) {
- _this.init();
- }
- return _this;
- }
- /**
- * The validator for this component.
- * @returns
- */
- /**
- * The default JSON schema
- * @param extend
- */
- BaseModel.schema = function () {
- return props.schema;
- };
- Object.defineProperty(BaseModel.prototype, "defaultOptions", {
- get: function () {
- return {};
- },
- enumerable: false,
- configurable: true
- });
- Object.defineProperty(BaseModel.prototype, "defaultSchema", {
- get: function () {
- return BaseModel.schema();
- },
- enumerable: false,
- configurable: true
- });
- /**
- * Initializes the entity.
- */
- BaseModel.prototype.init = function () {
- this.hook('init');
- if (this.options.validator) {
- this.validator = this.options.validator.fromComponent(this);
- }
- };
- /**
- * Check the validity of this specific component.
- *
- * @returns
- */
- BaseModel.prototype.checkComponentValidity = function () {
- return __awaiter(this, void 0, void 0, function () {
- return __generator(this, function (_a) {
- return [2 /*return*/, this.validator ? this.validator.check() : true];
- });
- });
- };
- /**
- * Checks the validity of this component and all child components.
- * @returns
- */
- BaseModel.prototype.checkValidity = function () {
- return __awaiter(this, void 0, void 0, function () {
- return __generator(this, function (_a) {
- return [2 /*return*/, this.checkComponentValidity()];
- });
- });
- };
- Object.defineProperty(BaseModel.prototype, "errors", {
- /**
- * Return the errors from validation for this component.
- */
- get: function () {
- return this.validator.errors;
- },
- enumerable: false,
- configurable: true
- });
- Object.defineProperty(BaseModel.prototype, "emptyValue", {
- /**
- * The empty value for this component.
- *
- * @return {null}
- */
- get: function () {
- return null;
- },
- enumerable: false,
- configurable: true
- });
- /**
- * Checks to see if this components value is empty.
- *
- * @param value
- * @returns
- */
- BaseModel.prototype.isEmpty = function (value) {
- if (value === void 0) { value = this.dataValue; }
- var isEmptyArray = (_.isArray(value) && value.length === 1) ? _.isEqual(value[0], this.emptyValue) : false;
- return value == null || value.length === 0 || _.isEqual(value, this.emptyValue) || isEmptyArray;
- };
- Object.defineProperty(BaseModel.prototype, "dataValue", {
- /**
- * Returns the data value for this component.
- */
- get: function () {
- return _.get(this.data, this.component.key);
- },
- /**
- * Sets the datavalue for this component.
- */
- set: function (value) {
- if (this.component.key) {
- _.set(this.data, this.component.key, value);
- }
- },
- enumerable: false,
- configurable: true
- });
- /**
- * Determine if this component has changed values.
- *
- * @param value - The value to compare against the current value.
- */
- BaseModel.prototype.hasChanged = function (value) {
- return String(value) !== String(this.dataValue);
- };
- /**
- * Updates the data model value
- * @param value The value to update within this component.
- * @return boolean true if the value has changed.
- */
- BaseModel.prototype.updateValue = function (value) {
- var changed = this.hasChanged(value);
- this.dataValue = value;
- if (changed) {
- // Bubble a change event.
- this.bubble('change', value);
- }
- return changed;
- };
- /**
- * Get the model value.
- * @returns
- */
- BaseModel.prototype.getValue = function () {
- return this.dataValue;
- };
- /**
- * Allow for options to hook into the functionality of this entity.
- * @return {*}
- */
- BaseModel.prototype.hook = function (name) {
- var args = [];
- for (var _i = 1; _i < arguments.length; _i++) {
- args[_i - 1] = arguments[_i];
- }
- if (this.options &&
- this.options.hooks &&
- this.options.hooks[name]) {
- return this.options.hooks[name].apply(this, args);
- }
- else {
- // If this is an async hook instead of a sync.
- var fn = (typeof args[args.length - 1] === 'function') ? args[args.length - 1] : null;
- if (fn) {
- return fn(null, args[1]);
- }
- else {
- return args[1];
- }
- }
- };
- return BaseModel;
- }((0, EventEmitter_1.EventEmitter)(BaseClass)));
- };
-}
-exports.Model = Model;
diff --git a/lib/model/NestedArrayModel.js b/lib/model/NestedArrayModel.js
deleted file mode 100644
index 569256b4..00000000
--- a/lib/model/NestedArrayModel.js
+++ /dev/null
@@ -1,245 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
- __setModuleDefault(result, mod);
- return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.NestedArrayModel = void 0;
-var _ = __importStar(require("@formio/lodash"));
-var NestedDataModel_1 = require("./NestedDataModel");
-function NestedArrayModel(props) {
- if (props === void 0) { props = {}; }
- return function (BaseClass) {
- return /** @class */ (function (_super) {
- __extends(BaseNestedArrayModel, _super);
- function BaseNestedArrayModel() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- Object.defineProperty(BaseNestedArrayModel.prototype, "defaultValue", {
- get: function () {
- return [];
- },
- enumerable: false,
- configurable: true
- });
- /**
- * Returns a row of componments at the provided index.
- * @param index The index of the row to return
- */
- BaseNestedArrayModel.prototype.row = function (index) {
- return (index < this.rows.length) ? this.rows[index] : [];
- };
- /**
- * Removes a row and detatches all components within that row.
- *
- * @param index The index of the row to remove.
- */
- BaseNestedArrayModel.prototype.removeRow = function (index) {
- var _this = this;
- this.row(index).forEach(function (comp) { return _this.removeComponent(comp); });
- this.dataValue.splice(index, 1);
- this.rows.splice(index, 1);
- };
- /**
- * Adds a new row of components.
- *
- * @param data The data context to pass to this row of components.
- */
- BaseNestedArrayModel.prototype.addRow = function (data, index) {
- if (data === void 0) { data = {}; }
- if (index === void 0) { index = 0; }
- var rowData = data;
- this.dataValue[index] = rowData;
- this.createRowComponents(rowData, index);
- };
- /**
- * Sets the data for a specific row of components.
- * @param rowData The data to set
- * @param index The index of the rows to set the data within.
- */
- BaseNestedArrayModel.prototype.setRowData = function (rowData, index) {
- var _a;
- this.dataValue[index] = rowData;
- (_a = this.row(index)) === null || _a === void 0 ? void 0 : _a.forEach(function (comp) { return (comp.data = rowData); });
- };
- /**
- * Determines if the data within a row has changed.
- *
- * @param rowData
- * @param index
- */
- BaseNestedArrayModel.prototype.rowChanged = function (rowData, index) {
- var _a;
- var changed = false;
- (_a = this.row(index)) === null || _a === void 0 ? void 0 : _a.forEach(function (comp) {
- var hasChanged = comp.hasChanged(_.get(rowData, comp.component.key));
- changed = hasChanged || changed;
- if (hasChanged) {
- comp.bubble('change', comp);
- }
- });
- return changed;
- };
- /**
- * Creates all components for each row.
- * @param data
- * @returns
- */
- BaseNestedArrayModel.prototype.createComponents = function (data) {
- var _this = this;
- this.rows = [];
- var added = [];
- this.eachRowValue(data, function (row, index) {
- added = added.concat(_this.createRowComponents(row, index));
- });
- return added;
- };
- /**
- * Creates a new row of components.
- *
- * @param data The data context to pass along to this row of components.
- */
- BaseNestedArrayModel.prototype.createRowComponents = function (data, index) {
- if (index === void 0) { index = 0; }
- var comps = _super.prototype.createComponents.call(this, data, function (comp) {
- comp.rowIndex = index;
- });
- this.rows[index] = comps;
- return comps;
- };
- BaseNestedArrayModel.prototype.getIndexes = function (value) {
- if (_super.prototype.getIndexes) {
- return _super.prototype.getIndexes.call(this, value);
- }
- return {
- min: 0,
- max: (value.length - 1)
- };
- };
- BaseNestedArrayModel.prototype.eachRowValue = function (value, fn) {
- if (!value || !value.length) {
- return;
- }
- var indexes = this.getIndexes(value);
- for (var i = indexes.min; i <= indexes.max; i++) {
- fn(value[i], i);
- }
- };
- Object.defineProperty(BaseNestedArrayModel.prototype, "emptyValue", {
- /**
- * The empty value for this component.
- *
- * @return {array}
- */
- get: function () {
- return [];
- },
- enumerable: false,
- configurable: true
- });
- Object.defineProperty(BaseNestedArrayModel.prototype, "dataValue", {
- /**
- * Returns the dataValue for this component.
- */
- get: function () {
- return _.get(this.data, this.component.key);
- },
- /**
- * Set the datavalue of an array component.
- *
- * @param value The value to set this component to.
- */
- set: function (value) {
- var _this = this;
- // Only set the value if it is an array.
- if (Array.isArray(value)) {
- // Get the current data value.
- var dataValue_1 = this.dataValue;
- this.eachRowValue(value, function (row, index) {
- if (index >= dataValue_1.length) {
- _this.addRow(row, index);
- }
- _this.setRowData(row, index);
- });
- // Remove superfluous rows.
- if (dataValue_1.length > value.length) {
- for (var i = value.length; i < dataValue_1.length; i++) {
- this.removeRow(i);
- }
- }
- }
- },
- enumerable: false,
- configurable: true
- });
- /**
- * Determine if this array component has changed.
- *
- * @param value
- */
- BaseNestedArrayModel.prototype.hasChanged = function (value) {
- var _this = this;
- var dataValue = this.dataValue;
- // If the length changes, then this compnent has changed.
- if (value.length !== dataValue.length) {
- this.emit('changed', this);
- return true;
- }
- var changed = false;
- this.eachRowValue(value, function (rowData, index) {
- changed = _this.rowChanged(rowData, index) || changed;
- });
- return changed;
- };
- /**
- * Sets the value of an array component.
- *
- * @param value
- */
- BaseNestedArrayModel.prototype.setValue = function (value) {
- var changed = false;
- this.eachComponentValue(value, function (comp, val) {
- changed = comp.setValue(val) || changed;
- });
- return changed;
- };
- return BaseNestedArrayModel;
- }((0, NestedDataModel_1.NestedDataModel)(props)(BaseClass)));
- };
-}
-exports.NestedArrayModel = NestedArrayModel;
-;
diff --git a/lib/model/NestedDataModel.js b/lib/model/NestedDataModel.js
deleted file mode 100644
index 303bc039..00000000
--- a/lib/model/NestedDataModel.js
+++ /dev/null
@@ -1,91 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
- __setModuleDefault(result, mod);
- return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.NestedDataModel = void 0;
-var _ = __importStar(require("@formio/lodash"));
-var NestedModel_1 = require("./NestedModel");
-function NestedDataModel(props) {
- if (props === void 0) { props = {}; }
- return function (BaseClass) {
- return /** @class */ (function (_super) {
- __extends(BaseNestedDataModel, _super);
- function BaseNestedDataModel() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- Object.defineProperty(BaseNestedDataModel.prototype, "emptyValue", {
- get: function () {
- return {};
- },
- enumerable: false,
- configurable: true
- });
- Object.defineProperty(BaseNestedDataModel.prototype, "defaultValue", {
- get: function () {
- return {};
- },
- enumerable: false,
- configurable: true
- });
- /**
- * Get the component data.
- */
- BaseNestedDataModel.prototype.componentData = function () {
- var compData = _.get(this.data, this.component.key, this.defaultValue);
- if (!Object.keys(compData).length) {
- _.set(this.data, this.component.key, compData);
- }
- return compData;
- };
- Object.defineProperty(BaseNestedDataModel.prototype, "dataValue", {
- get: function () {
- return _.get(this.data, this.component.key);
- },
- set: function (value) {
- this.eachComponentValue(value, function (comp, val) { return (comp.dataValue = val); });
- },
- enumerable: false,
- configurable: true
- });
- return BaseNestedDataModel;
- }((0, NestedModel_1.NestedModel)(props)(BaseClass)));
- };
-}
-exports.NestedDataModel = NestedDataModel;
-;
diff --git a/lib/model/NestedModel.js b/lib/model/NestedModel.js
deleted file mode 100644
index e6aad7a0..00000000
--- a/lib/model/NestedModel.js
+++ /dev/null
@@ -1,266 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
- __setModuleDefault(result, mod);
- return result;
-};
-var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
- return new (P || (P = Promise))(function (resolve, reject) {
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
- step((generator = generator.apply(thisArg, _arguments || [])).next());
- });
-};
-var __generator = (this && this.__generator) || function (thisArg, body) {
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
- function verb(n) { return function (v) { return step([n, v]); }; }
- function step(op) {
- if (f) throw new TypeError("Generator is already executing.");
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
- if (y = 0, t) op = [op[0] & 2, t.value];
- switch (op[0]) {
- case 0: case 1: t = op; break;
- case 4: _.label++; return { value: op[1], done: false };
- case 5: _.label++; y = op[1]; op = [0]; continue;
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
- default:
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
- if (t[2]) _.ops.pop();
- _.trys.pop(); continue;
- }
- op = body.call(thisArg, _);
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
- }
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.NestedModel = void 0;
-var _ = __importStar(require("@formio/lodash"));
-var Model_1 = require("./Model");
-function NestedModel(props) {
- if (props === void 0) { props = {}; }
- if (!props.schema) {
- props.schema = {};
- }
- if (!props.schema.components) {
- props.schema.components = [];
- }
- return function (BaseClass) {
- return /** @class */ (function (_super) {
- __extends(BaseNestedModel, _super);
- function BaseNestedModel() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- /**
- * Initialize the nested entity by creating the children.
- */
- BaseNestedModel.prototype.init = function () {
- _super.prototype.init.call(this);
- this.components = [];
- this.createComponents(this.componentData());
- };
- /**
- * Get the component data.
- * @returns
- */
- BaseNestedModel.prototype.componentData = function () {
- return this.data;
- };
- /**
- * Creates a new component entity.
- * @param component
- * @param options
- * @param data
- * @returns
- */
- BaseNestedModel.prototype.createComponent = function (component, options, data) {
- if (!props.factory) {
- console.log('Cannot create components. No "factory" provided.');
- return null;
- }
- var comp = props.factory.create(component, __assign({ noInit: true }, options), data);
- comp.parent = this;
- comp.root = this.root || this;
- comp.init();
- return comp;
- };
- /**
- * Creates the components.
- * @param data
- * @returns
- */
- BaseNestedModel.prototype.createComponents = function (data, eachComp) {
- var _this = this;
- var added = [];
- (this.component.components || []).forEach(function (comp) {
- var newComp = _this.createComponent(comp, _this.options, data);
- if (newComp) {
- _this.components.push(newComp);
- added.push(newComp);
- if (eachComp) {
- eachComp(newComp);
- }
- }
- });
- return added;
- };
- /**
- * Removes a child comopnent.
- * @param component
- */
- BaseNestedModel.prototype.removeComponent = function (component) {
- var _this = this;
- (this.components || []).forEach(function (comp, index) {
- if (comp === component) {
- if (comp.detach) {
- comp.detach();
- }
- _this.components.splice(index, 1);
- }
- });
- };
- /**
- * Checks for the validity of this component and all components within this component.
- * @returns
- */
- BaseNestedModel.prototype.checkValidity = function () {
- return __awaiter(this, void 0, void 0, function () {
- return __generator(this, function (_a) {
- return [2 /*return*/, this.components.reduce(function (valid, comp) {
- return valid && comp.checkValidity();
- }, this.checkComponentValidity())];
- });
- });
- };
- Object.defineProperty(BaseNestedModel.prototype, "defaultValue", {
- /**
- * Get the default value for this nested entity.
- */
- get: function () {
- return {};
- },
- enumerable: false,
- configurable: true
- });
- Object.defineProperty(BaseNestedModel.prototype, "emptyValue", {
- /**
- * The empty value for this component.
- *
- * @return {null}
- */
- get: function () {
- return {};
- },
- enumerable: false,
- configurable: true
- });
- Object.defineProperty(BaseNestedModel.prototype, "dataValue", {
- /**
- * Get the datavalue of this component.
- */
- get: function () {
- return this.data;
- },
- /**
- * Set the data value for this nested entity.
- */
- set: function (value) {
- this.eachComponentValue(value, function (comp, val) { return (comp.dataValue = val); });
- },
- enumerable: false,
- configurable: true
- });
- /**
- * Perform an iteration over each component within this container component.
- *
- * @param {function} fn - Called for each component
- */
- BaseNestedModel.prototype.eachComponent = function (fn) {
- _.each(this.components, function (component, index) {
- if (fn(component, index) === false) {
- return false;
- }
- });
- };
- /**
- * Iterate through each component value.
- *
- * @param value The context data value.
- * @param fn Callback to be called with the component and the value for that component.
- */
- BaseNestedModel.prototype.eachComponentValue = function (value, fn) {
- if (Object.keys(value).length) {
- this.eachComponent(function (comp) {
- fn(comp, _.get(value, comp.component.key));
- });
- }
- };
- /**
- * Sets the value for a data component.
- *
- * @param value
- */
- BaseNestedModel.prototype.setValue = function (value) {
- var changed = false;
- this.eachComponentValue(value, function (comp, val) {
- changed = comp.setValue(val) || changed;
- });
- return changed;
- };
- return BaseNestedModel;
- }((0, Model_1.Model)(props)(BaseClass)));
- };
-}
-exports.NestedModel = NestedModel;
-;
diff --git a/lib/model/index.js b/lib/model/index.js
index 0a1348ee..9d5d8f39 100644
--- a/lib/model/index.js
+++ b/lib/model/index.js
@@ -1,13 +1 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.NestedArrayModel = exports.NestedDataModel = exports.NestedModel = exports.Model = exports.EventEmitter = void 0;
-var EventEmitter_1 = require("./EventEmitter");
-Object.defineProperty(exports, "EventEmitter", { enumerable: true, get: function () { return EventEmitter_1.EventEmitter; } });
-var Model_1 = require("./Model");
-Object.defineProperty(exports, "Model", { enumerable: true, get: function () { return Model_1.Model; } });
-var NestedModel_1 = require("./NestedModel");
-Object.defineProperty(exports, "NestedModel", { enumerable: true, get: function () { return NestedModel_1.NestedModel; } });
-var NestedDataModel_1 = require("./NestedDataModel");
-Object.defineProperty(exports, "NestedDataModel", { enumerable: true, get: function () { return NestedDataModel_1.NestedDataModel; } });
-var NestedArrayModel_1 = require("./NestedArrayModel");
-Object.defineProperty(exports, "NestedArrayModel", { enumerable: true, get: function () { return NestedArrayModel_1.NestedArrayModel; } });
+!function(){"use strict";var t={2937:function(t,e,n){var r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o0?t.slice(e):t},e.dropRight=function(t,e){return void 0===e&&(e=1),e>0?t.slice(0,-e):t},e.each=u,e.find=c,e.findIndex=function(t,e){return c(t,e,!0)},e.matches=a,e.findEach=s,e.filter=function(t,e){if(!t)return[];if(e||(e=function(t){return!!t}),Array.isArray(t)&&"function"==typeof e)return t.filter(e);var n=[];return s(t,e,(function(e,r){n.push(e),Array.isArray(e)?t.splice(r,1):delete t[r]})),n},e.last=function(t){return t[t.length-1]},e.head=function(t){return t[0]},e.map=function(t,e){return t.map(e)},e.intersection=function(t,e){return t.filter((function(t){return e.includes(t)}))}},3254:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=void 0,e.debounce=function(t,e){var n;return void 0===e&&(e=100),function(){for(var r=[],o=0;o=t.length:!t.hasOwnProperty(e))||othis.length)&&(e=this.length),this.substring(e-t.length,e)===t}),e.endsWith=function(t,e){return t.endsWith(e)}},6729:function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function i(t,e,r,i,u){if("function"!=typeof r)throw new TypeError("The listener must be a function");var c=new o(r,i||t,u),a=n?n+e:e;return t._events[a]?t._events[a].fn?t._events[a]=[t._events[a],c]:t._events[a].push(c):(t._events[a]=c,t._eventsCount++),t}function u(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function c(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),c.prototype.eventNames=function(){var t,r,o=[];if(0===this._eventsCount)return o;for(r in t=this._events)e.call(t,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},c.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,u=new Array(i);o0&&o[o.length-1])||6!==c[0]&&2!==c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=n.length&&e.addRow(t,r),e.setRowData(t,r)})),n.length>t.length)for(var r=t.length;r0&&o[o.length-1])||6!==c[0]&&2!==c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0?t.slice(e):t},e.dropRight=function(t,e){return void 0===e&&(e=1),e>0?t.slice(0,-e):t},e.each=a,e.find=u,e.findIndex=function(t,e){return u(t,e,!0)},e.matches=s,e.findEach=c,e.filter=function(t,e){if(!t)return[];if(e||(e=function(t){return!!t}),Array.isArray(t)&&"function"==typeof e)return t.filter(e);var n=[];return c(t,e,(function(e,r){n.push(e),Array.isArray(e)?t.splice(r,1):delete t[r]})),n},e.last=function(t){return t[t.length-1]},e.head=function(t){return t[0]},e.map=function(t,e){return t.map(e)},e.intersection=function(t,e){return t.filter((function(t){return e.includes(t)}))}},3254:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=void 0,e.debounce=function(t,e){var n;return void 0===e&&(e=100),function(){for(var r=[],o=0;o=t.length:!t.hasOwnProperty(e))||othis.length)&&(e=this.length),this.substring(e-t.length,e)===t}),e.endsWith=function(t,e){return t.endsWith(e)}},7484:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",u="week",s="month",c="quarter",l="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},v=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},m={s:v,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function t(e,n){if(e.date()1)return t(a[0])}else{var u=e.name;g[u]=e,o=u}return!r&&o&&(b=o),o||!r&&b},O=function(t,e){if(_(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new A(n)},x=m;x.l=w,x.i=_,x.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var A=function(){function y(t){this.$L=w(t.locale,null,!0),this.parse(t)}var v=y.prototype;return v.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return x},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},v.isAfter=function(t,e){return O(t)=0&&(i[f]=parseInt(l,10))}var p=i[3],h=24===p?0:p,d=i[0]+"-"+i[1]+"-"+i[2]+" "+h+":"+i[4]+":"+i[5]+":000",y=+e;return(o.utc(d).valueOf()-(y-=y%1e3))/6e4},s=r.prototype;s.tz=function(t,e){void 0===t&&(t=i);var n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:t}),u=Math.round((r-new Date(a))/1e3/60),s=o(a).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-u,!0);if(e){var c=s.utcOffset();s=s.add(n-c,"minute")}return s.$x.$timezone=t,s},s.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var c=s.startOf;s.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return c.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var r=n&&e,a=n||e||i,s=u(+o(),a);if("string"!=typeof t)return o(t).tz(a);var c=function(t,e,n){var r=t-60*e*1e3,o=u(r,n);if(e===o)return[r,e];var i=u(r-=60*(o-e)*1e3,n);return o===i?[r,o]:[t-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(t,r).valueOf(),s,a),l=c[0],f=c[1],p=o(l).utcOffset(f);return p.$x.$timezone=a,p},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){i=t}}}()},178:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(t){return new o({date:t,utc:!0,args:arguments})},a.utc=function(e){var n=i(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var u=a.parse;a.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),u.call(this,t)};var s=a.init;a.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else s.call(this)};var c=a.utcOffset;a.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(t){void 0===t&&(t="");var r=t.match(e);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,u=this;if(o)return u.$offset=a,u.$u=0===r,u;if(0!==r){var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(u=this.local().add(a+s,t)).$offset=a,u.$x.$localOffset=s}else u=this.utc();return u};var l=a.format;a.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},a.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(t){return"s"===t&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var p=a.diff;a.diff=function(t,e,n){if(t&&this.$u===t.$u)return p.call(this,t,e,n);var r=this.local(),o=i(t).local();return p.call(r,o,e,n)}}}()},7856:function(t){t.exports=function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,n){return e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(t,n)}function n(t,r,o){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(t,o));return r&&e(i,r.prototype),i},n.apply(null,arguments)}function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?n-1:0),o=1;o/gm),G=f(/\${[\w\W]*}/gm),q=f(/^data-[\-\w.\u00B7-\uFFFF]/),V=f(/^aria-[\-\w]+$/),Y=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z=f(/^(?:\w+script|data):/i),J=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=f(/^html$/i),X=function(){return"undefined"==typeof window?null:window},Q=function(e,n){if("object"!==t(e)||"function"!=typeof e.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),o=function(t){return e(t)};if(o.version="2.4.5",o.removed=[],!n||!n.document||9!==n.document.nodeType)return o.isSupported=!1,o;var i=n.document,a=n.document,u=n.DocumentFragment,s=n.HTMLTemplateElement,c=n.Node,f=n.Element,p=n.NodeFilter,h=n.NamedNodeMap,d=void 0===h?n.NamedNodeMap||n.MozNamedAttrMap:h,y=n.HTMLFormElement,v=n.DOMParser,k=n.trustedTypes,tt=f.prototype,et=D(tt,"cloneNode"),nt=D(tt,"nextSibling"),rt=D(tt,"childNodes"),ot=D(tt,"parentNode");if("function"==typeof s){var it=a.createElement("template");it.content&&it.content.ownerDocument&&(a=it.content.ownerDocument)}var at=Q(k,i),ut=at?at.createHTML(""):"",st=a,ct=st.implementation,lt=st.createNodeIterator,ft=st.createDocumentFragment,pt=st.getElementsByTagName,ht=i.importNode,dt={};try{dt=T(a).documentMode?a.documentMode:{}}catch(t){}var yt={};o.isSupported="function"==typeof ot&&ct&&void 0!==ct.createHTMLDocument&&9!==dt;var vt,mt,bt=H,gt=W,_t=G,wt=q,Ot=V,xt=Z,At=J,Mt=Y,St=null,Et=j({},[].concat(r(P),r(R),r(N),r($),r(I))),kt=null,jt=j({},[].concat(r(B),r(z),r(U),r(F))),Tt=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Dt=null,Pt=null,Rt=!0,Nt=!0,Ct=!1,$t=!0,Lt=!1,It=!1,Bt=!1,zt=!1,Ut=!1,Ft=!1,Ht=!1,Wt=!0,Gt=!1,qt=!0,Vt=!1,Yt={},Zt=null,Jt=j({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Kt=null,Xt=j({},["audio","video","img","source","image","track"]),Qt=null,te=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ee="http://www.w3.org/1998/Math/MathML",ne="http://www.w3.org/2000/svg",re="http://www.w3.org/1999/xhtml",oe=re,ie=!1,ae=null,ue=j({},[ee,ne,re],w),se=["application/xhtml+xml","text/html"],ce=null,le=a.createElement("form"),fe=function(t){return t instanceof RegExp||t instanceof Function},pe=function(e){ce&&ce===e||(e&&"object"===t(e)||(e={}),e=T(e),vt=vt=-1===se.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,mt="application/xhtml+xml"===vt?w:_,St="ALLOWED_TAGS"in e?j({},e.ALLOWED_TAGS,mt):Et,kt="ALLOWED_ATTR"in e?j({},e.ALLOWED_ATTR,mt):jt,ae="ALLOWED_NAMESPACES"in e?j({},e.ALLOWED_NAMESPACES,w):ue,Qt="ADD_URI_SAFE_ATTR"in e?j(T(te),e.ADD_URI_SAFE_ATTR,mt):te,Kt="ADD_DATA_URI_TAGS"in e?j(T(Xt),e.ADD_DATA_URI_TAGS,mt):Xt,Zt="FORBID_CONTENTS"in e?j({},e.FORBID_CONTENTS,mt):Jt,Dt="FORBID_TAGS"in e?j({},e.FORBID_TAGS,mt):{},Pt="FORBID_ATTR"in e?j({},e.FORBID_ATTR,mt):{},Yt="USE_PROFILES"in e&&e.USE_PROFILES,Rt=!1!==e.ALLOW_ARIA_ATTR,Nt=!1!==e.ALLOW_DATA_ATTR,Ct=e.ALLOW_UNKNOWN_PROTOCOLS||!1,$t=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Lt=e.SAFE_FOR_TEMPLATES||!1,It=e.WHOLE_DOCUMENT||!1,Ut=e.RETURN_DOM||!1,Ft=e.RETURN_DOM_FRAGMENT||!1,Ht=e.RETURN_TRUSTED_TYPE||!1,zt=e.FORCE_BODY||!1,Wt=!1!==e.SANITIZE_DOM,Gt=e.SANITIZE_NAMED_PROPS||!1,qt=!1!==e.KEEP_CONTENT,Vt=e.IN_PLACE||!1,Mt=e.ALLOWED_URI_REGEXP||Mt,oe=e.NAMESPACE||re,Tt=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&fe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Tt.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&fe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Tt.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Tt.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Lt&&(Nt=!1),Ft&&(Ut=!0),Yt&&(St=j({},r(I)),kt=[],!0===Yt.html&&(j(St,P),j(kt,B)),!0===Yt.svg&&(j(St,R),j(kt,z),j(kt,F)),!0===Yt.svgFilters&&(j(St,N),j(kt,z),j(kt,F)),!0===Yt.mathMl&&(j(St,$),j(kt,U),j(kt,F))),e.ADD_TAGS&&(St===Et&&(St=T(St)),j(St,e.ADD_TAGS,mt)),e.ADD_ATTR&&(kt===jt&&(kt=T(kt)),j(kt,e.ADD_ATTR,mt)),e.ADD_URI_SAFE_ATTR&&j(Qt,e.ADD_URI_SAFE_ATTR,mt),e.FORBID_CONTENTS&&(Zt===Jt&&(Zt=T(Zt)),j(Zt,e.FORBID_CONTENTS,mt)),qt&&(St["#text"]=!0),It&&j(St,["html","head","body"]),St.table&&(j(St,["tbody"]),delete Dt.tbody),l&&l(e),ce=e)},he=j({},["mi","mo","mn","ms","mtext"]),de=j({},["foreignobject","desc","title","annotation-xml"]),ye=j({},["title","style","font","a","script"]),ve=j({},R);j(ve,N),j(ve,C);var me=j({},$);j(me,L);var be=function(t){g(o.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=ut}catch(e){t.remove()}}},ge=function(t,e){try{g(o.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){g(o.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!kt[t])if(Ut||Ft)try{be(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},_e=function(t){var e,n;if(zt)t=""+t;else{var r=O(t,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===vt&&oe===re&&(t=''+t+"");var o=at?at.createHTML(t):t;if(oe===re)try{e=(new v).parseFromString(o,vt)}catch(t){}if(!e||!e.documentElement){e=ct.createDocument(oe,"template",null);try{e.documentElement.innerHTML=ie?ut:o}catch(t){}}var i=e.body||e.documentElement;return t&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),oe===re?pt.call(e,It?"html":"body")[0]:It?e.documentElement:i},we=function(t){return lt.call(t.ownerDocument||t,t,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT,null,!1)},Oe=function(e){return"object"===t(c)?e instanceof c:e&&"object"===t(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},xe=function(t,e,n){yt[t]&&m(yt[t],(function(t){t.call(o,e,n,ce)}))},Ae=function(t){var e,n;if(xe("beforeSanitizeElements",t,null),(n=t)instanceof y&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof d)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return be(t),!0;if(S(/[\u0080-\uFFFF]/,t.nodeName))return be(t),!0;var r=mt(t.nodeName);if(xe("uponSanitizeElement",t,{tagName:r,allowedTags:St}),t.hasChildNodes()&&!Oe(t.firstElementChild)&&(!Oe(t.content)||!Oe(t.content.firstElementChild))&&S(/<[/\w]/g,t.innerHTML)&&S(/<[/\w]/g,t.textContent))return be(t),!0;if("select"===r&&S(/=0;--u)i.insertBefore(et(a[u],!0),nt(t))}return be(t),!0}return t instanceof f&&!function(t){var e=ot(t);e&&e.tagName||(e={namespaceURI:oe,tagName:"template"});var n=_(t.tagName),r=_(e.tagName);return!!ae[t.namespaceURI]&&(t.namespaceURI===ne?e.namespaceURI===re?"svg"===n:e.namespaceURI===ee?"svg"===n&&("annotation-xml"===r||he[r]):Boolean(ve[n]):t.namespaceURI===ee?e.namespaceURI===re?"math"===n:e.namespaceURI===ne?"math"===n&&de[r]:Boolean(me[n]):t.namespaceURI===re?!(e.namespaceURI===ne&&!de[r])&&!(e.namespaceURI===ee&&!he[r])&&!me[n]&&(ye[n]||!ve[n]):!("application/xhtml+xml"!==vt||!ae[t.namespaceURI]))}(t)?(be(t),!0):"noscript"!==r&&"noembed"!==r||!S(/<\/no(script|embed)/i,t.innerHTML)?(Lt&&3===t.nodeType&&(e=t.textContent,e=x(e,bt," "),e=x(e,gt," "),e=x(e,_t," "),t.textContent!==e&&(g(o.removed,{element:t.cloneNode()}),t.textContent=e)),xe("afterSanitizeElements",t,null),!1):(be(t),!0)},Me=function(t,e,n){if(Wt&&("id"===e||"name"===e)&&(n in a||n in le))return!1;if(Nt&&!Pt[e]&&S(wt,e));else if(Rt&&S(Ot,e));else if(!kt[e]||Pt[e]){if(!(Se(t)&&(Tt.tagNameCheck instanceof RegExp&&S(Tt.tagNameCheck,t)||Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(t))&&(Tt.attributeNameCheck instanceof RegExp&&S(Tt.attributeNameCheck,e)||Tt.attributeNameCheck instanceof Function&&Tt.attributeNameCheck(e))||"is"===e&&Tt.allowCustomizedBuiltInElements&&(Tt.tagNameCheck instanceof RegExp&&S(Tt.tagNameCheck,n)||Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(n))))return!1}else if(Qt[e]);else if(S(Mt,x(n,At,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==A(n,"data:")||!Kt[t])if(Ct&&!S(xt,x(n,At,"")));else if(n)return!1;return!0},Se=function(t){return t.indexOf("-")>0},Ee=function(e){var n,r,i,a;xe("beforeSanitizeAttributes",e,null);var u=e.attributes;if(u){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:kt};for(a=u.length;a--;){var c=n=u[a],l=c.name,f=c.namespaceURI;if(r="value"===l?n.value:M(n.value),i=mt(l),s.attrName=i,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,xe("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(ge(l,e),s.keepAttr))if($t||!S(/\/>/i,r)){Lt&&(r=x(r,bt," "),r=x(r,gt," "),r=x(r,_t," "));var p=mt(e.nodeName);if(Me(p,i,r)){if(!Gt||"id"!==i&&"name"!==i||(ge(l,e),r="user-content-"+r),at&&"object"===t(k)&&"function"==typeof k.getAttributeType)if(f);else switch(k.getAttributeType(p,i)){case"TrustedHTML":r=at.createHTML(r);break;case"TrustedScriptURL":r=at.createScriptURL(r)}try{f?e.setAttributeNS(f,l,r):e.setAttribute(l,r),b(o.removed)}catch(t){}}}else ge(l,e)}xe("afterSanitizeAttributes",e,null)}},ke=function t(e){var n,r=we(e);for(xe("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)xe("uponSanitizeShadowNode",n,null),Ae(n)||(n.content instanceof u&&t(n.content),Ee(n));xe("afterSanitizeShadowDOM",e,null)};return o.sanitize=function(e){var r,a,s,l,f,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ie=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Oe(e)){if("function"!=typeof e.toString)throw E("toString is not a function");if("string"!=typeof(e=e.toString()))throw E("dirty is not a string, aborting")}if(!o.isSupported){if("object"===t(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof e)return n.toStaticHTML(e);if(Oe(e))return n.toStaticHTML(e.outerHTML)}return e}if(Bt||pe(p),o.removed=[],"string"==typeof e&&(Vt=!1),Vt){if(e.nodeName){var h=mt(e.nodeName);if(!St[h]||Dt[h])throw E("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)1===(a=(r=_e("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!Ut&&!Lt&&!It&&-1===e.indexOf("<"))return at&&Ht?at.createHTML(e):e;if(!(r=_e(e)))return Ut?null:Ht?ut:""}r&&zt&&be(r.firstChild);for(var d=we(Vt?e:r);s=d.nextNode();)3===s.nodeType&&s===l||Ae(s)||(s.content instanceof u&&ke(s.content),Ee(s),l=s);if(l=null,Vt)return e;if(Ut){if(Ft)for(f=ft.call(r.ownerDocument);r.firstChild;)f.appendChild(r.firstChild);else f=r;return(kt.shadowroot||kt.shadowrootmod)&&(f=ht.call(i,f,!0)),f}var y=It?r.outerHTML:r.innerHTML;return It&&St["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&S(K,r.ownerDocument.doctype.name)&&(y="\n"+y),Lt&&(y=x(y,bt," "),y=x(y,gt," "),y=x(y,_t," ")),at&&Ht?at.createHTML(y):y},o.setConfig=function(t){pe(t),Bt=!0},o.clearConfig=function(){ce=null,Bt=!1},o.isValidAttribute=function(t,e,n){ce||pe({});var r=mt(t),o=mt(e);return Me(r,o,n)},o.addHook=function(t,e){"function"==typeof e&&(yt[t]=yt[t]||[],g(yt[t],e))},o.removeHook=function(t){if(yt[t])return b(yt[t])},o.removeHooks=function(t){yt[t]&&(yt[t]=[])},o.removeAllHooks=function(){yt={}},o}()}()},7559:function(t,e,n){var r;!function(o){"use strict";function i(t){var n=t&&t.Promise||o.Promise,r=t&&t.XMLHttpRequest||o.XMLHttpRequest;return function(){var t=Object.create(o,{fetch:{value:void 0,writable:!0}});return function(e){var o=void 0!==t&&t||"undefined"!=typeof self&&self||void 0!==o&&o,i={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};if(i.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function s(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function c(t){return"string"!=typeof t&&(t=String(t)),t}function l(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function f(t){this.map={},t instanceof f?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(t.bodyUsed)return n.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new n((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function d(t){var e=new FileReader,n=h(e);return e.readAsArrayBuffer(t),n}function y(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=y(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=y(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return n.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?n.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):n.resolve(this._bodyArrayBuffer)):this.blob().then(d)}),this.text=function(){var t,e,r,o=p(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=h(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return n.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function _(t,e){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"",this.headers=new f(e.headers),this.url=e.url||"",this._initBody(t)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},v.call(b.prototype),v.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},_.error=function(){var t=new _(null,{status:0,statusText:""});return t.type="error",t};var w=[301,302,303,307,308];_.redirect=function(t,e){if(-1===w.indexOf(e))throw new RangeError("Invalid status code");return new _(null,{status:e,headers:{location:t}})},e.DOMException=o.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function O(t,a){return new n((function(n,u){var s=new b(t,a);if(s.signal&&s.signal.aborted)return u(new e.DOMException("Aborted","AbortError"));var l=new r;function p(){l.abort()}l.onload=function(){var t,e,r={status:l.status,statusText:l.statusText,headers:(t=l.getAllResponseHeaders()||"",e=new f,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var o="response"in l?l.response:l.responseText;setTimeout((function(){n(new _(o,r))}),0)},l.onerror=function(){setTimeout((function(){u(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){u(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){u(new e.DOMException("Aborted","AbortError"))}),0)},l.open(s.method,function(t){try{return""===t&&o.location.href?o.location.href:t}catch(e){return t}}(s.url),!0),"include"===s.credentials?l.withCredentials=!0:"omit"===s.credentials&&(l.withCredentials=!1),"responseType"in l&&(i.blob?l.responseType="blob":i.arrayBuffer&&s.headers.get("Content-Type")&&-1!==s.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!a||"object"!=typeof a.headers||a.headers instanceof f?s.headers.forEach((function(t,e){l.setRequestHeader(e,t)})):Object.getOwnPropertyNames(a.headers).forEach((function(t){l.setRequestHeader(t,c(a.headers[t]))})),s.signal&&(s.signal.addEventListener("abort",p),l.onreadystatechange=function(){4===l.readyState&&s.signal.removeEventListener("abort",p)}),l.send(void 0===s._bodyInit?null:s._bodyInit)}))}O.polyfill=!0,o.fetch||(o.fetch=O,o.Headers=f,o.Request=b,o.Response=_),e.Headers=f,e.Request=b,e.Response=_,e.fetch=O,Object.defineProperty(e,"__esModule",{value:!0})}(e),{fetch:t.fetch,Headers:t.Headers,Request:t.Request,Response:t.Response,DOMException:t.DOMException}}()}void 0===(r=function(){return i}.call(e,n,e,t))||(t.exports=r)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:this)},1817:function(t,e,n){var r,o;r=function(){"use strict";Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var t={},e={"==":function(t,e){return t==e},"===":function(t,e){return t===e},"!=":function(t,e){return t!=e},"!==":function(t,e){return t!==e},">":function(t,e){return t>e},">=":function(t,e){return t>=e},"<":function(t,e,n){return void 0===n?t=e?[]:r}};return t.is_logic=function(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)&&1===Object.keys(t).length},t.truthy=function(t){return!(Array.isArray(t)&&0===t.length||!t)},t.get_operator=function(t){return Object.keys(t)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(n,r){if(Array.isArray(n))return n.map((function(e){return t.apply(e,r)}));if(!t.is_logic(n))return n;var o,i,a,u,s,c=t.get_operator(n),l=n[c];if(Array.isArray(l)||(l=[l]),"if"===c||"?:"==c){for(o=0;o0){var f=String(c).split("."),p=e;for(o=0;o0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]-1;(n||u.tree||!h)&&(f=e(u,p,t));var d=function(){return u.key&&!["panel","table","well","columns","fieldset","tabs","form"].includes(u.type)&&(["datagrid","container","editgrid","address","dynamicWizard"].includes(u.type)||u.tree)?p:u.key&&"form"===u.type?"".concat(p,".data"):o};f||(s?u.columns.forEach((function(t){return a(t.components,e,n,d(),i?u:null)})):c?u.rows.forEach((function(t){Array.isArray(t)&&t.forEach((function(t){return a(t.components,e,n,d(),i?u:null)}))})):l&&a(u.components,e,n,d(),i?u:null))}})))}function u(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}e.eachComponent=a,e.flattenComponents=function(t,e){var n={};return a(t,(function(t,e){n[e]=t}),e),n},e.guid=u,e.uniqueName=function(t,e,n){(e=e||"{{fileName}}-{{guid}}").includes("{{guid}}")||(e="".concat(e,"-{{guid}}"));var r=t.split("."),a=r.slice(0,r.length-1).join("."),s=r.length>1?".".concat((0,i.last)(r)):"";return a=a.substr(0,100),n=Object.assign(n||{},{fileName:a,guid:u()}),"".concat(o.Evaluator.interpolate(e,n)).concat(s).replace(/[^0-9a-zA-Z.\-_ ]/g,"-")}},5928:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return o(e,t),e},a=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.dom=e.unwind=e.override=e.sanitize=e.BaseEvaluator=e.Evaluator=e.Utils=void 0,e.Utils=i(n(6176));var u=n(6550);Object.defineProperty(e,"Evaluator",{enumerable:!0,get:function(){return u.Evaluator}}),Object.defineProperty(e,"BaseEvaluator",{enumerable:!0,get:function(){return u.BaseEvaluator}});var s=n(755);Object.defineProperty(e,"sanitize",{enumerable:!0,get:function(){return s.sanitize}});var c=n(9395);Object.defineProperty(e,"override",{enumerable:!0,get:function(){return c.override}});var l=n(6223);Object.defineProperty(e,"unwind",{enumerable:!0,get:function(){return l.unwind}}),e.dom=i(n(2593)),a(n(974),e),a(n(6444),e),a(n(1475),e)},1475:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchInputMask=e.getInputMask=void 0;var r=n(2373);e.getInputMask=function(t,e){if(t instanceof Array)return t;var n=[];n.numeric=!0;for(var r=0;re.length)return!1;for(var n=0;n0&&e.sanitizeConfig.addAttr.forEach((function(t){r.ADD_ATTR.push(t)})),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.addTags)&&e.sanitizeConfig.addTags.length>0&&(r.ADD_TAGS=e.sanitizeConfig.addTags),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.allowedTags)&&e.sanitizeConfig.allowedTags.length>0&&(r.ALLOWED_TAGS=e.sanitizeConfig.allowedTags),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.allowedAttrs)&&e.sanitizeConfig.allowedAttrs.length>0&&(r.ALLOWED_ATTR=e.sanitizeConfig.allowedAttrs),e.sanitizeConfig&&e.sanitizeConfig.allowedUriRegex&&(r.ALLOWED_URI_REGEXP=e.sanitizeConfig.allowedUriRegex),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.addUriSafeAttr)&&e.sanitizeConfig.addUriSafeAttr.length>0&&(r.ADD_URI_SAFE_ATTR=e.sanitizeConfig.addUriSafeAttr),n.sanitize(t,r)}},6223:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unwind=e.rewind=e.mergeArray=e.mergeObject=void 0;var r=n(2373),o=n(6176);function i(t,e){(0,r.each)(t,(function(t,n){Array.isArray(t)?(e[n]||(e[n]=[]),a(t,e[n])):e[n]=t}))}function a(t,e){t.forEach((function(t){var n={};(0,r.each)(t,(function(t,e){Array.isArray(t)||(n[e]=t)}));var o=(0,r.find)(e,n);o?i(t,o):e.push(t)}))}e.mergeObject=i,e.mergeArray=a,e.rewind=function(t){var e={data:{}};return t&&t.length&&t.forEach((function(t){return i(t.data,e.data)})),e},e.unwind=function(t,e){var n={},i={},a=[(0,r.fastCloneDeep)(e)],u=function(t,e,n,o,c){for(o=o||0,c=c||0;(0,r.has)(i,"["+c+"]."+n);)c+1>=a.length&&a.push((0,r.fastCloneDeep)(a[c])),c++;var l=n.replace(/\.[^\.]+$/,"");!(0,r.has)(a[c].data,l)&&a[c-1]&&(0,r.has)(a[c-1].data,l)&&(0,r.set)(a[c].data,l,(0,r.fastCloneDeep)((0,r.get)(a[c-1].data,l)));var f=[];(0,r.set)(a[c].data,n,f),(0,r.set)(i,"["+c+"]."+n,!0);for(var p=o;pt[i].max&&(t[i].max=a):t[i]={max:a,param:i,parent:r||null,paths:{}},n+10&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]l||isNaN(s)||s<0||s>12||isNaN(c)||c<0||c>9999?[2,!1]:[2,!0]):[2,!0]}))}))},e}(n(9402).Rule);e.DayRule=u},7887:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)]:[2,!0]}))}))},e}(n(9402).Rule);e.EmailRule=u},8056:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=e]}))}))},e}(u.Rule);e.MinRule=c},4559:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=e]:[2,!0]}))}))},e}(n(9402).Rule);e.MinLengthRule=u},766:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=e]:[2,!0]}))}))},e}(n(9402).Rule);e.MinWordsRule=u},183:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=+e]:[2,!0]}))}))},e}(n(9402).Rule);e.MinYearRule=u},4703:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,[2,!t||e.test(t)&&!n.test(t)]}))}))},e}(n(9402).Rule);e.UrlRule=u},1456:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2861),o=n(3325),i=n(2452),a=n(7887),u=n(8056),s=n(3773),c=n(3944),l=n(7564),f=n(7893),p=n(2311),h=n(4559),d=n(9424),y=n(766),v=n(4703),m=n(6202),b=n(962),g=n(7042),_=n(5666),w=n(183),O=n(8093),x=n(9540);e.default={custom:r.CustomRule,date:o.DateRule,day:i.DayRule,email:a.EmailRule,mask:u.MaskRule,max:s.MaxRule,maxDate:c.MaxDateRule,maxLength:l.MaxLengthRule,maxWords:f.MaxWordsRule,min:p.MinRule,minDate:h.MinDateRule,minLength:d.MinLengthRule,minWords:y.MinWordsRule,pattern:v.PatternRule,required:m.RequiredRule,select:b.SelectRule,unique:g.UniqueRule,url:_.UrlRule,minYear:w.MinYearRule,maxYear:O.MaxYearRule,time:x.TimeRule}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n(2815)}();
\ No newline at end of file
diff --git a/lib/modules/index.js.LICENSE.txt b/lib/modules/index.js.LICENSE.txt
new file mode 100644
index 00000000..ca5e3917
--- /dev/null
+++ b/lib/modules/index.js.LICENSE.txt
@@ -0,0 +1 @@
+/*! @license DOMPurify 2.4.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.5/LICENSE */
diff --git a/lib/modules/jsonlogic/index.js b/lib/modules/jsonlogic/index.js
deleted file mode 100644
index 9cc00003..00000000
--- a/lib/modules/jsonlogic/index.js
+++ /dev/null
@@ -1,57 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.JSONLogicEvaluator = void 0;
-var utils_1 = require("@formio/utils");
-var rules_1 = __importDefault(require("./rules"));
-var jsonLogic_1 = require("./jsonLogic");
-var JSONLogicEvaluator = /** @class */ (function (_super) {
- __extends(JSONLogicEvaluator, _super);
- function JSONLogicEvaluator() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- JSONLogicEvaluator.evaluate = function (func, args, ret, tokenize, context) {
- if (args === void 0) { args = {}; }
- if (ret === void 0) { ret = ''; }
- if (tokenize === void 0) { tokenize = false; }
- if (context === void 0) { context = {}; }
- var returnVal = null;
- if (typeof func === 'object') {
- try {
- returnVal = jsonLogic_1.jsonLogic.apply(func, args);
- }
- catch (err) {
- returnVal = null;
- console.warn("An error occured within JSON Logic", err);
- }
- }
- else {
- returnVal = utils_1.BaseEvaluator.evaluate(func, args, ret, tokenize, context);
- }
- return returnVal;
- };
- return JSONLogicEvaluator;
-}(utils_1.BaseEvaluator));
-exports.JSONLogicEvaluator = JSONLogicEvaluator;
-exports.default = {
- evaluator: JSONLogicEvaluator,
- rules: rules_1.default,
- jsonLogic: jsonLogic_1.jsonLogic
-};
diff --git a/lib/modules/jsonlogic/jsonLogic.js b/lib/modules/jsonlogic/jsonLogic.js
deleted file mode 100644
index 47468246..00000000
--- a/lib/modules/jsonlogic/jsonLogic.js
+++ /dev/null
@@ -1,52 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
- __setModuleDefault(result, mod);
- return result;
-};
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.jsonLogic = void 0;
-var jsonLogic = require('json-logic-js');
-exports.jsonLogic = jsonLogic;
-var _ = __importStar(require("@formio/lodash"));
-var dayjs_1 = __importDefault(require("dayjs"));
-var operators_1 = require("./operators/operators");
-// Configure JsonLogic
-operators_1.lodashOperators.forEach(function (name) {
- if (_[name]) {
- jsonLogic.add_operation("_".concat(name), _[name]);
- }
-});
-// Retrieve Any Date
-jsonLogic.add_operation('getDate', function (date) {
- return (0, dayjs_1.default)(date).toISOString();
-});
-// Set Relative Minimum Date
-jsonLogic.add_operation('relativeMinDate', function (relativeMinDate) {
- return (0, dayjs_1.default)().subtract(relativeMinDate, 'days').toISOString();
-});
-// Set Relative Maximum Date
-jsonLogic.add_operation('relativeMaxDate', function (relativeMaxDate) {
- return (0, dayjs_1.default)().add(relativeMaxDate, 'days').toISOString();
-});
diff --git a/lib/modules/jsonlogic/operators/operators.js b/lib/modules/jsonlogic/operators/operators.js
deleted file mode 100644
index 8a700fd4..00000000
--- a/lib/modules/jsonlogic/operators/operators.js
+++ /dev/null
@@ -1,261 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.lodashOperators = void 0;
-// Use only immutable useful functions from Lodash.
-// Visit https://lodash.com/docs for more info.
-exports.lodashOperators = [
- // Array
- 'chunk',
- 'compact',
- 'concat',
- 'difference',
- 'drop',
- 'dropRight',
- 'findIndex',
- 'findLastIndex',
- 'first',
- 'flatten',
- 'flattenDeep',
- 'flattenDepth',
- 'fromPairs',
- 'head',
- 'indexOf',
- 'initial',
- 'intersection',
- 'intersectionBy',
- 'intersectionWith',
- 'join',
- 'last',
- 'lastIndexOf',
- 'nth',
- 'slice',
- 'sortedIndex',
- 'sortedIndexBy',
- 'sortedIndexOf',
- 'sortedLastIndex',
- 'sortedLastIndexBy',
- 'sortedLastIndexOf',
- 'sortedUniq',
- 'sortedUniqBy',
- 'tail',
- 'take',
- 'takeRight',
- 'takeRightWhile',
- 'takeWhile',
- 'union',
- 'unionBy',
- 'unionWith',
- 'uniq',
- 'uniqBy',
- 'uniqWith',
- 'unzip',
- 'unzipWith',
- 'without',
- 'xor',
- 'xorBy',
- 'xorWith',
- 'zip',
- 'zipObject',
- 'zipObjectDeep',
- 'zipWith',
- // Collection
- 'countBy',
- 'every',
- 'filter',
- 'find',
- 'findLast',
- 'flatMap',
- 'flatMapDeep',
- 'flatMapDepth',
- 'groupBy',
- 'includes',
- 'invokeMap',
- 'keyBy',
- 'map',
- 'orderBy',
- 'partition',
- 'reduce',
- 'reduceRight',
- 'reject',
- 'sample',
- 'sampleSize',
- 'shuffle',
- 'size',
- 'some',
- 'sortBy',
- // Date
- 'now',
- // Function
- 'flip',
- 'negate',
- 'overArgs',
- 'partial',
- 'partialRight',
- 'rearg',
- 'rest',
- 'spread',
- // Lang
- 'castArray',
- 'clone',
- 'cloneDeep',
- 'cloneDeepWith',
- 'cloneDeep',
- 'conformsTo',
- 'eq',
- 'gt',
- 'gte',
- 'isArguments',
- 'isArray',
- 'isArrayBuffer',
- 'isArrayLike',
- 'isArrayLikeObject',
- 'isBoolean',
- 'isBuffer',
- 'isDate',
- 'isElement',
- 'isEmpty',
- 'isEqual',
- 'isEqualWith',
- 'isError',
- 'isFinite',
- 'isFunction',
- 'isInteger',
- 'isLength',
- 'isMap',
- 'isMatch',
- 'isMatchWith',
- 'isNaN',
- 'isNative',
- 'isNil',
- 'isNull',
- 'isNumber',
- 'isObject',
- 'isObjectLike',
- 'isPlainObject',
- 'isRegExp',
- 'isSafeInteger',
- 'isSet',
- 'isString',
- 'isSymbol',
- 'isTypedArray',
- 'isUndefined',
- 'isWeakMap',
- 'isWeakSet',
- 'lt',
- 'lte',
- 'toArray',
- 'toFinite',
- 'toInteger',
- 'toLength',
- 'toNumber',
- 'toPlainObject',
- 'toSafeInteger',
- 'toString',
- // Math
- 'add',
- 'ceil',
- 'divide',
- 'floor',
- 'max',
- 'maxBy',
- 'mean',
- 'meanBy',
- 'min',
- 'minBy',
- 'multiply',
- 'round',
- 'subtract',
- 'sum',
- 'sumBy',
- // Number
- 'clamp',
- 'inRange',
- 'random',
- // Object
- 'at',
- 'entries',
- 'entriesIn',
- 'findKey',
- 'findLastKey',
- 'functions',
- 'functionsIn',
- 'get',
- 'has',
- 'hasIn',
- 'invert',
- 'invertBy',
- 'invoke',
- 'keys',
- 'keysIn',
- 'mapKeys',
- 'mapValues',
- 'omit',
- 'omitBy',
- 'pick',
- 'pickBy',
- 'result',
- 'toPairs',
- 'toPairsIn',
- 'transform',
- 'values',
- 'valuesIn',
- // String
- 'camelCase',
- 'capitalize',
- 'deburr',
- 'endsWith',
- 'escape',
- 'escapeRegExp',
- 'kebabCase',
- 'lowerCase',
- 'lowerFirst',
- 'pad',
- 'padEnd',
- 'padStart',
- 'parseInt',
- 'repeat',
- 'replace',
- 'snakeCase',
- 'split',
- 'startCase',
- 'startsWith',
- 'toLower',
- 'toUpper',
- 'trim',
- 'trimEnd',
- 'trimStart',
- 'truncate',
- 'unescape',
- 'upperCase',
- 'upperFirst',
- 'words',
- // Util
- 'cond',
- 'conforms',
- 'constant',
- 'defaultTo',
- 'flow',
- 'flowRight',
- 'identity',
- 'iteratee',
- 'matches',
- 'matchesProperty',
- 'method',
- 'methodOf',
- 'nthArg',
- 'over',
- 'overEvery',
- 'overSome',
- 'property',
- 'propertyOf',
- 'range',
- 'rangeRight',
- 'stubArray',
- 'stubFalse',
- 'stubObject',
- 'stubString',
- 'stubTrue',
- 'times',
- 'toPath',
- 'uniqueId',
-];
diff --git a/lib/modules/jsonlogic/rules/JSON.js b/lib/modules/jsonlogic/rules/JSON.js
deleted file mode 100644
index 074d7d14..00000000
--- a/lib/modules/jsonlogic/rules/JSON.js
+++ /dev/null
@@ -1,91 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
- return new (P || (P = Promise))(function (resolve, reject) {
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
- step((generator = generator.apply(thisArg, _arguments || [])).next());
- });
-};
-var __generator = (this && this.__generator) || function (thisArg, body) {
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
- function verb(n) { return function (v) { return step([n, v]); }; }
- function step(op) {
- if (f) throw new TypeError("Generator is already executing.");
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
- if (y = 0, t) op = [op[0] & 2, t.value];
- switch (op[0]) {
- case 0: case 1: t = op; break;
- case 4: _.label++; return { value: op[1], done: false };
- case 5: _.label++; y = op[1]; op = [0]; continue;
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
- default:
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
- if (t[2]) _.ops.pop();
- _.trys.pop(); continue;
- }
- op = body.call(thisArg, _);
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
- }
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.JSONRule = void 0;
-var validator_1 = require("@formio/validator");
-var JSONRule = /** @class */ (function (_super) {
- __extends(JSONRule, _super);
- function JSONRule() {
- var _this = _super !== null && _super.apply(this, arguments) || this;
- _this.defaultMessage = '{{error}}';
- return _this;
- }
- JSONRule.prototype.check = function (value, data, row, index) {
- if (value === void 0) { value = this.component.dataValue; }
- if (data === void 0) { data = {}; }
- if (row === void 0) { row = {}; }
- if (index === void 0) { index = 0; }
- return __awaiter(this, void 0, void 0, function () {
- var json, valid;
- return __generator(this, function (_a) {
- json = this.settings.json;
- if (!json) {
- return [2 /*return*/, true];
- }
- valid = this.component.evaluate(json, {
- data: data,
- row: row,
- rowIndex: index,
- input: value
- });
- if (valid === null) {
- return [2 /*return*/, true];
- }
- return [2 /*return*/, valid];
- });
- });
- };
- return JSONRule;
-}(validator_1.Rule));
-exports.JSONRule = JSONRule;
-;
diff --git a/lib/modules/jsonlogic/rules/index.js b/lib/modules/jsonlogic/rules/index.js
deleted file mode 100644
index 1d244a6a..00000000
--- a/lib/modules/jsonlogic/rules/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var JSON_1 = require("./JSON");
-exports.default = {
- json: JSON_1.JSONRule
-};
diff --git a/lib/sdk/Formio.js b/lib/sdk/Formio.js
deleted file mode 100644
index 6c2e0d01..00000000
--- a/lib/sdk/Formio.js
+++ /dev/null
@@ -1,2277 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Formio = exports.FormioPathType = void 0;
-var fetch_ponyfill_1 = __importDefault(require("fetch-ponyfill"));
-var lodash_1 = require("@formio/lodash");
-var formUtil_1 = require("@formio/utils/formUtil");
-var jwtDecode_1 = require("@formio/utils/jwtDecode");
-var eventemitter3_1 = __importDefault(require("eventemitter3"));
-var browser_cookies_1 = __importDefault(require("browser-cookies"));
-var _a = (0, fetch_ponyfill_1.default)(), fetch = _a.fetch, Headers = _a.Headers;
-var Plugins_1 = __importDefault(require("./Plugins"));
-/**
- * The different path types for a project.
- */
-var FormioPathType;
-(function (FormioPathType) {
- FormioPathType["Subdirectories"] = "Subdirectories";
- FormioPathType["Subdomains"] = "Subdomains";
-})(FormioPathType = exports.FormioPathType || (exports.FormioPathType = {}));
-/**
- * The Formio interface class. This is a minimalistic API library that allows you to work with the Form.io API's within JavaScript.
- *
- * ## Usage
- * Creating an instance of Formio is simple, and takes only a path (URL String). The path can be different, depending on the desired output.
- * The Formio instance can also access higher level operations, depending on how granular of a path you start with.
- *
- * ```ts
- * var formio = new Formio(, [options]);
- * ```
- *
- * Where **endpoint** is any valid API endpoint within Form.io. These URL's can provide a number of different methods depending on the granularity of the endpoint. This allows you to use the same interface but have access to different methods depending on how granular the endpoint url is.
- * **options** is defined within the {link Formio.constructor} documentation.
- *
- * Here is an example of how this library can be used to load a form JSON from the Form.io API's
- *
- * ```ts
- * const formio = new Formio('https://examples.form.io/example');
- * formio.loadForm().then((form) => {
- * console.log(form);
- * });
- * ```
- */
-var Formio = /** @class */ (function () {
- /* eslint-disable max-statements */
- /**
- * @constructor
- * @param {string} path - A project, form, and submission API Url.
- * @param {FormioOptions} options - Available options to configure the Javascript API.
- */
- function Formio(path, options) {
- if (options === void 0) { options = {}; }
- var _this = this;
- this.path = path;
- this.options = options;
- /**
- * The base API url of the Form.io Platform. Example: https://api.form.io
- */
- this.base = '';
- /**
- * The Projects Endpoint derived from the provided source.
- *
- * @example https://api.form.io/project
- */
- this.projectsUrl = '';
- /**
- * A specific project endpoint derived from the provided source.
- *
- * @example https://examples.form.io
- */
- this.projectUrl = '';
- /**
- * The Project ID found within the provided source.
- */
- this.projectId = '';
- /**
- * A specific Role URL provided the source.
- *
- * @example https://examples.form.io/role/2342343234234234
- */
- this.roleUrl = '';
- /**
- * The roles endpoint derived from the provided source.
- *
- * @example https://examples.form.io/role
- */
- this.rolesUrl = '';
- /**
- * The roleID derieved from the provided source.
- */
- this.roleId = '';
- /**
- * A specific form url derived from the provided source.
- *
- * @example https://examples.form.io/example
- */
- this.formUrl = '';
- /**
- * The forms url derived from the provided source.
- *
- * @example https://example.form.io/form
- */
- this.formsUrl = '';
- /**
- * The Form ID derived from the provided source.
- */
- this.formId = '';
- /**
- * The submissions URL derived from the provided source.
- *
- * @example https://examples.form.io/example/submission
- */
- this.submissionsUrl = '';
- /**
- * A specific submissions URL derived from a provided source.
- *
- * @example https://examples.form.io/example/submission/223423423423
- */
- this.submissionUrl = '';
- /**
- * The submission ID provided a submission url.
- */
- this.submissionId = '';
- /**
- * The actions url provided a form url as the source.
- *
- * @example https://examples.form.io/example/action
- */
- this.actionsUrl = '';
- /**
- * The Action ID derived from a provided Action url.
- */
- this.actionId = '';
- /**
- * A specific action api endoint.
- */
- this.actionUrl = '';
- this.vsUrl = '';
- this.vId = '';
- this.vUrl = '';
- /**
- * The query string derived from the provided src url.
- */
- this.query = '';
- /**
- * If this is a non-project url, such is the case for Open Source API.
- */
- this.noProject = false;
- // Ensure we have an instance of Formio.
- if (!(this instanceof Formio)) {
- return new Formio(path);
- }
- if (options.useSessionToken) {
- Formio.useSessionToken(options);
- }
- if (options.hasOwnProperty('base') && options.base) {
- this.base = options.base;
- }
- else if (Formio.baseUrl) {
- this.base = Formio.baseUrl;
- }
- else if (window && window.location) {
- this.base = window.location.href.match(/http[s]?:\/\/api./)[0];
- }
- if (!path) {
- // Allow user to create new projects if this was instantiated without
- // a url
- this.projectUrl = Formio.projectUrl || "".concat(this.base, "/project");
- this.projectsUrl = "".concat(this.base, "/project");
- this.projectId = '';
- this.query = '';
- return;
- }
- if (options.hasOwnProperty('project') && options.project) {
- this.projectUrl = options.project;
- }
- var project = this.projectUrl || Formio.projectUrl;
- var projectRegEx = /(^|\/)(project)($|\/[^/]+)/;
- var isProjectUrl = (path.search(projectRegEx) !== -1);
- // The baseURL is the same as the projectUrl, and does not contain "/project/MONGO_ID" in
- // its domain. This is almost certainly against the Open Source server.
- if (project && this.base === project && !isProjectUrl) {
- this.noProject = true;
- this.projectUrl = this.base;
- }
- // Normalize to an absolute path.
- if ((path.indexOf('http') !== 0) && (path.indexOf('//') !== 0)) {
- path = this.base + path;
- }
- var hostparts = this.getUrlParts(path);
- var hostName = '';
- var parts = [];
- if (hostparts) {
- hostName = hostparts[1] + hostparts[2];
- path = hostparts.length > 3 ? hostparts[3] : '';
- var queryparts = path.split('?');
- if (queryparts.length > 1) {
- path = queryparts[0];
- this.query = "?".concat(queryparts[1]);
- }
- }
- // Register a specific path.
- var registerPath = function (name, base) {
- _this["".concat(name, "sUrl")] = "".concat(base, "/").concat(name);
- var regex = new RegExp("/".concat(name, "/([^/]+)"));
- if (path && path.search(regex) !== -1) {
- parts = path.match(regex);
- _this["".concat(name, "Url")] = parts ? (base + parts[0]) : '';
- _this["".concat(name, "Id")] = (parts.length > 1) ? parts[1] : '';
- base += parts[0];
- }
- return base;
- };
- // Register an array of items.
- var registerItems = function (items, base, staticBase) {
- for (var i in items) {
- if (items.hasOwnProperty(i)) {
- var item = items[i];
- if (Array.isArray(item)) {
- registerItems(item, base, true);
- }
- else {
- var newBase = registerPath(item, base);
- base = staticBase ? base : newBase;
- }
- }
- }
- };
- if (!this.projectUrl || (this.projectUrl === this.base)) {
- // If a project uses Subdirectories path type, we need to specify a projectUrl
- if (!this.projectUrl && !isProjectUrl && Formio.pathType === 'Subdirectories') {
- var regex = "^".concat(hostName.replace(/\//g, '\\/'), ".[^/]+");
- var match = project.match(new RegExp(regex));
- this.projectUrl = match ? match[0] : hostName;
- }
- else {
- this.projectUrl = hostName;
- }
- }
- // Check if we have a specified path type.
- var isNotSubdomainType = false;
- if (Formio.pathType) {
- isNotSubdomainType = Formio.pathType !== 'Subdomains';
- }
- if (!this.noProject) {
- // Determine the projectUrl and projectId
- if (isProjectUrl) {
- // Get project id as project/:projectId.
- registerItems(['project'], hostName);
- path = path.replace(projectRegEx, '');
- }
- else if (hostName === this.base) {
- // Get project id as first part of path (subdirectory).
- if (hostparts && hostparts.length > 3 && path.split('/').length > 1) {
- var isFile = path.match(/.json/);
- var pathParts = path.split('/');
- if (isFile) {
- this.projectUrl = hostName;
- }
- else {
- pathParts.shift(); // Throw away the first /.
- var projectId = pathParts.shift();
- if (projectId) {
- this.projectId = projectId;
- path = "/".concat(pathParts.join('/'));
- this.projectUrl = "".concat(hostName, "/").concat(this.projectId);
- }
- }
- }
- }
- else {
- // Get project id from subdomain.
- if (hostparts && hostparts.length > 2 && (hostparts[2].split('.').length > 2 || hostName.includes('localhost')) && !isNotSubdomainType) {
- this.projectUrl = hostName;
- this.projectId = hostparts[2].split('.')[0];
- }
- }
- this.projectsUrl = this.projectsUrl || "".concat(this.base, "/project");
- }
- // Configure Role urls and role ids.
- registerItems(['role'], this.projectUrl);
- // Configure Form urls and form ids.
- if (/(^|\/)(form)($|\/)/.test(path)) {
- registerItems(['form', ['submission', 'action', 'v']], this.projectUrl);
- }
- else {
- var subRegEx = new RegExp('/(submission|action|v)($|/.*)');
- var subs = path.match(subRegEx);
- if ((subs && (subs.length > 1))) {
- this.pathType = subs[1];
- }
- path = path.replace(subRegEx, '');
- path = path.replace(/\/$/, '');
- this.formsUrl = "".concat(this.projectUrl, "/form");
- this.formUrl = path ? this.projectUrl + path : '';
- this.formId = path.replace(/^\/+|\/+$/g, '');
- var items = ['submission', 'action', 'v'];
- for (var i in items) {
- if (items.hasOwnProperty(i)) {
- var item = items[i];
- this["".concat(item, "sUrl")] = "".concat(this.projectUrl + path, "/").concat(item);
- if ((this.pathType === item) && subs && (subs.length > 2) && subs[2]) {
- this["".concat(item, "Id")] = subs[2].replace(/^\/+|\/+$/g, '');
- this["".concat(item, "Url")] = this.projectUrl + path + subs[0];
- }
- }
- }
- }
- // Set the app url if it is not set.
- if (!Formio.projectUrlSet) {
- Formio.projectUrl = this.projectUrl;
- }
- }
- /* eslint-enable max-statements */
- /**
- * Deletes a remote resource of any provided type.
- *
- * @param {string} type - The type of resource to delete. "submission", "form", etc.
- * @param {object} options - The options passed to {@link Formio.request}
- * @return {Promise}
- */
- Formio.prototype.delete = function (type, opts) {
- var _id = "".concat(type, "Id");
- var _url = "".concat(type, "Url");
- if (!this[_id]) {
- return Promise.reject('Nothing to delete');
- }
- Formio.cache = {};
- return this.makeRequest(type, this[_url], 'delete', null, opts);
- };
- /**
- * Returns the index (array of records) for any provided type.
- *
- * @param {string} type - The type of resource to fetch the index of. "submission", "form", etc.
- * @param {object} query - A query object to pass to the request.
- * @param {object} query.params - A map (key-value pairs) of URL query parameters to add to the url.
- * @param {object} options - Options to pass to {@link Formio.request}
- * @return {Promise}
- */
- Formio.prototype.index = function (type, query, opts) {
- var _url = "".concat(type, "Url");
- query = query || '';
- if (query && (0, lodash_1.isObject)(query)) {
- query = "?".concat(Formio.serialize(query.params));
- }
- return this.makeRequest(type, this[_url] + query, 'get', null, opts);
- };
- /**
- * Save a document record using "upsert". If the document does not exist, it will be created, if the _id is provided,
- * it will be updated.
- *
- * @param {string} type - The type of resource to fetch the index of. "submission", "form", etc.
- * @param {object} data - The resource data object.
- * @param {object} options - Options to pass to {@link Formio.request}
- * @return {Promise