vendor: 4,622 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8132],{40114:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(95962);n.default={framework:"bootstrap3",templates:o.default}},34758:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+="<div\n ",e.attrs)r+="\n "+(null==(n=o)?"":n)+'="'+(null==(n=e.attrs[o])?"":n)+'"\n ';return r+("\n>"+(null==(n=e.message)?"":n))+"</div>\n"}},37557:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(34758);n.default={form:o.default}},32133:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="formio builder row formbuilder">\n <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n '+(null==(n=e.sidebar)?"":n)+'\n </div>\n <div class="col-xs-8 col-sm-9 col-md-10 formarea" ref="form">\n '+(null==(n=e.form)?"":n)+"\n </div>\n</div>\n"}},28002:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(32133);n.default={form:o.default}},27426:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="builder-component" ref="dragComponent">\n ',e.disableBuilderActions||(r+='\n <div class="component-btn-group" data-noattach="true">\n <div class="btn btn-xxs btn-danger component-settings-button component-settings-button-remove" ref="removeComponent">\n <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'"></i>\n </div>\n <div class="btn btn-xxs btn-default component-settings-button component-settings-button-copy" ref="copyComponent">\n <i class="'+(null==(n=e.iconClass("copy"))?"":n)+'"></i>\n </div>\n <div class="btn btn-xxs btn-default component-settings-button component-settings-button-paste" ref="pasteComponent">\n <i class="'+(null==(n=e.iconClass("save"))?"":n)+'"></i>\n </div>\n <div class="btn btn-xxs btn-default component-settings-button component-settings-button-edit-json" ref="editJson">\n <i class="'+(null==(n=e.iconClass("wrench"))?"":n)+'"></i>\n </div>\n <div class="btn btn-xxs btn-default component-settings-button component-settings-button-move" ref="moveComponent">\n <i class="'+(null==(n=e.iconClass("move"))?"":n)+'"></i>\n </div>\n <div class="btn btn-xxs btn-default component-settings-button component-settings-button-edit", ref="editComponent">\n <i class="'+(null==(n=e.iconClass("cog"))?"":n)+'"></i>\n </div>\n </div>\n '),r+="\n "+(null==(n=e.html)?"":n)+"\n</div>\n"}},80532:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(27426);n.default={form:o.default}},99408:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="builder-components drag-container formio-builder-'+(null==(n=e.type)?"":n)+'" ref="'+(null==(n=e.key)?"":n)+'-container">\n '+(null==(n=e.html)?"":n)+"\n</div>\n"}},86107:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(99408);n.default={form:o.default}},72883:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="row">\n <div class="col col-sm-6">\n <p class="lead">'+(null==(n=e.t(e.componentInfo.title,{_userInput:!0}))?"":n)+" "+(null==(n=e.t("Component"))?"":n)+"</p>\n </div>\n ",e.helplinks&&(r+='\n <div class="col col-sm-6">\n <div class="pull-right" style="margin-right: 20px; margin-top: 10px">\n <a href="'+(null==(n=e.t(e.helplinks+e.componentInfo.documentation))?"":n)+'" target="_blank">\n <i class="'+(null==(n=e.iconClass("new-window"))?"":n)+'"> '+(null==(n=e.t("Help"))?"":n)+"</i>\n </a>\n </div>\n </div>\n"),r+='\n</div>\n<div class="row component-edit-content">\n <div class="col component-edit-tabs ',e.preview?r+="col-sm-6":r+="col-sm-12",r+='">\n <div class="editForm" ref="editForm">\n '+(null==(n=e.editForm)?"":n)+"\n </div>\n ",e.preview||(r+='\n <div style="margin-top: 10px;">\n <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(n=e.t("Save"))?"":n)+'</button>\n <button class="btn btn-default" style="margin-right: 10px;" ref="cancelButton">'+(null==(n=e.t("Cancel"))?"":n)+'</button>\n <button class="btn btn-danger" ref="removeButton">'+(null==(n=e.t("Remove"))?"":n)+"</button>\n </div>\n "),r+="\n </div>
1\n ",e.preview&&(r+='\n <div class="col col-sm-6">\n <div class="panel panel-default preview-panel">\n <div class="panel-heading">\n <h3 class="panel-title">'+(null==(n=e.t("Preview"))?"":n)+'</h3>\n </div>\n <div class="panel-body">\n <div class="component-preview" ref="preview">\n '+(null==(n=e.preview)?"":n)+"\n </div>\n </div>\n </div>\n ",e.componentInfo.help&&(r+='\n <div class="well formio-settings-help">\n '+(null==(n=e.componentInfo.help)?"":n)+"\n </div>\n "),r+='\n <div style="margin-top: 10px;">\n <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(n=e.t("Save"))?"":n)+'</button>\n <button class="btn btn-default" style="margin-right: 10px;" ref="cancelButton">'+(null==(n=e.t("Cancel"))?"":n)+'</button>\n <button class="btn btn-danger" ref="removeButton">'+(null==(n=e.t("Remove"))?"":n)+"</button>\n </div>\n </div>\n "),r+="\n</div>\n"}},24304:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(72883);n.default={form:o.default}},90318:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div\n class="alert alert-info no-drag"\n style="text-align:center; margin-bottom: 5px;"\n role="alert"\n data-noattach="true"\n data-position="'+(null==(n=e.position)?"":n)+'"\n>\n '+(null==(n=e.t("Drag and Drop a form component"))?"":n)+"\n</div>\n"}},3893:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(90318);n.default={form:o.default}},93339:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="builder-sidebar'+(n=e.scrollEnabled?" builder-sidebar_scroll":"")+'" ref="sidebar">\n <input class="form-control builder-sidebar_search" type="search" ref="sidebar-search" placeholder="Search field(s)" />\n <div id="'+(null==(n=e.groupId)?"":n)+'" class="panel-group" ref="sidebar-groups">\n ',e.groups.forEach(function(e){r+="\n "+(null==(n=e)?"":n)+"\n "}),r+="\n </div>\n</div>\n"}},83922:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(93339);n.default={form:o.default}},76331:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="panel panel-default form-builder-panel" ref="group-panel-'+(null==(n=e.groupKey)?"":n)+'">\n <div class="panel-heading form-builder-group-header">\n <h5 class="panel-title">\n <button\n class="btn btn-block builder-group-button"\n type="button"\n data-toggle="collapse"\n data-target="#group-'+(null==(n=e.groupKey)?"":n)+'"\n data-parent="#'+(null==(n=e.groupId)?"":n)+'"\n href="#group-'+(null==(n=e.groupKey)?"":n)+'"\n ref="sidebar-anchor"\n >\n '+(null==(n=e.t(e.group.title,{_userInput:!0}))?"":n)+'\n </button>\n </h5>\n </div>\n <div\n id="group-'+(null==(n=e.groupKey)?"":n)+'"\n class="panel-collapse collapse'+(n=e.group.default?" in":"")+'"\n data-parent="#'+(null==(n=e.groupId)?"":n)+'"\n data-default="'+(null==(n=e.group.default)?"":n)+'"\n ref="sidebar-group"\n >\n <div id="group-container-'+(null==(n=e.groupKey)?"":n)+'" class="panel-body no-drop" ref="sidebar-container">\n ',e.group.componentOrder.length||e.subgroups.length?(r+="\n ",e.group.componentOrder.forEach(function(o){r+='\n <span\n data-group="'+(null==(n=e.groupKey)?"":n)+'"\n data-key="'+(null==(n=e.group.components[o].key)?"":n)+'"\n data-type="'+(null==(n=e.group.components[o].schema.type)?"":n)+'"\n class="btn btn-primary btn-xs btn-block formcomponent drag-copy"\n >\n ',e.group.components[o].icon&&(r+='\n <i class="'+(null==(n=e.iconClass(e.group.components[o].icon))?"":n)+'" style="margin-right: 5px;"></i>\n '),r+="\n "+(null==(n=e.t(e.group.components[o].title,{_userInput:!0}))?"":n)+"\n </span>\n "}),r+="\n "+(null==(n=e.subgroups.join(""))?"":n)+"\n "):r+="\n <div>"+(null==(n=e.t("No Matches Found"))?"":n)+"</div>
1\n ",r+="\n </div>\n </div>\n</div>\n\n"}},27421:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(76331);n.default={form:o.default}},55605:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.component.columns.forEach(function(o,i){r+='\n<div class="col\n col-'+(null==(n=o.size)?"":n)+"-"+(null==(n=o.width)?"":n)+"\n col-"+(null==(n=o.size)?"":n)+"-offset-"+(null==(n=o.offset)?"":n)+"\n col-"+(null==(n=o.size)?"":n)+"-push-"+(null==(n=o.push)?"":n)+"\n col-"+(null==(n=o.size)?"":n)+"-pull-"+(null==(n=o.pull)?"":n)+'\n " ref="'+(null==(n=e.columnKey)?"":n)+'">\n '+(null==(n=e.columnComponents[i])?"":n)+"\n</div>\n"}),r+="\n"}},89210:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(55605);n.default={form:o.default}},13445:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default={"formio-tab-panel-active":"active","formio-tab-link-active":"active","formio-tab-link-container-active":"active"}},66842:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table datagrid-table table-bordered\n '+(n=e.component.striped?"table-striped":"")+"\n "+(n=e.component.hover?"table-hover":"")+"\n "+(n=e.component.condensed?"table-condensed":"")+'\n " ',e.component.layoutFixed&&(r+='style="table-layout: fixed;"'),r+=">\n ",e.hasHeader&&(r+="\n <thead>\n <tr>\n ",e.component.reorder&&(r+="<th></th>"),r+="\n ",e.columns.forEach(function(o){r+='\n <th class="'+(n=o.validate&&o.validate.required?"field-required":"")+'">\n '+(null==(n=o.hideLabel?"":e.t(o.label||o.title,{_userInput:!0}))?"":n)+"\n ",o.tooltip&&(r+=' <i ref="tooltip" data-title="'+(null==(n=o.tooltip)?"":n)+'" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>'),r+="\n </th>\n "}),r+="\n ",e.hasExtraColumn&&(r+="\n <th>\n ",!e.builder&&e.hasAddButton&&e.hasTopSubmit&&(r+='\n <button class="btn btn-primary formio-button-add-row" ref="'+(null==(n=e.datagridKey)?"":n)+'-addRow">\n <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":n)+"\n </button>\n "),r+="\n </th>\n "),r+="\n </tr>\n </thead>\n "),r+='\n <tbody ref="'+(null==(n=e.datagridKey)?"":n)+'-tbody" data-key="'+(null==(n=e.datagridKey)?"":n)+'">\n ',e.rows.forEach(function(o,i){r+="\n ",e.hasGroups&&e.groups[i]&&(r+='\n <tr ref="'+(null==(n=e.datagridKey)?"":n)+'-group-header" class="datagrid-group-header'+(n=e.hasToggle?" clickable":"")+'">\n <td\n ref="'+(null==(n=e.datagridKey)?"":n)+'-group-label"\n colspan="'+(null==(n=e.numColumns)?"":n)+'"\n class="datagrid-group-label">'+(null==(n=e.groups[i].label)?"":n)+"</td>\n </tr>\n "),r+='\n <tr ref="'+(null==(n=e.datagridKey)?"":n)+'-row">\n ',e.component.reorder&&(r+='\n <td class="col-md-1">\n <button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="'+(null==(n=e.datagridKey)?"":n)+'"></button>\n </td>\n '),r+="\n ",e.columns.forEach(function(i){r+='\n <td ref="'+(null==(n=e.datagridKey)?"":n)+'">\n '+(null==(n=o[i.key])?"":n)+"\n </td>\n "}),r+="\n ",e.hasExtraColumn&&(r+="\n ",e.hasRemoveButtons&&(r+='\n <td class="col-md-1">\n <button type="button" class="btn btn-default formio-button-remove-row" ref="'+(null==(n=e.datagridKey)?"":n)+'-removeRow">\n <i class="'+(null==(n=e.iconClass("remove-circle"))?"":n)+'"></i>\n </button>\n </td>\n '),r+="\n ",e.canAddColumn&&(r+='\n <td ref="'+(null==(n=e.key)?"":n)+'-container" class="col-md-3">\n '+(null==(n=e.placeholder)?"":n)+"\n </td>\n "),r+="\n "),r+="\n </tr>\n "}),r+="\n </tbody>
1\n ",e.hasAddButton&&e.hasBottomSubmit&&(r+='\n <tfoot>\n <tr>\n <td colspan="'+(null==(n=e.component.layoutFixed?e.numColumns:e.numColumns+1)?"":n)+'">\n <button class="btn btn-primary formio-button-add-row" ref="'+(null==(n=e.datagridKey)?"":n)+'-addRow">\n <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":n)+"\n </button>\n </td>\n </tr>\n </tfoot>\n "),r+="\n</table>\n"}},42405:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table datagrid-table table-bordered\n '+(n=component.striped?"table-striped":"")+"\n "+(n=component.hover?"table-hover":"")+"\n "+(n=component.condensed?"table-condensed":"")+'\n ">\n ',hasHeader&&(r+="\n <thead>\n <tr>\n ",columns.forEach(function(e){r+='\n <th class="'+(n=e.validate&&e.validate.required?"field-required":"")+'">\n '+(null==(n=e.hideLabel?"":t(e.label||e.title))?"":n)+"\n ",e.tooltip&&(r+=' <i ref="tooltip" data-title="'+(null==(n=e.tooltip)?"":n)+'" class="'+(null==(n=iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.tooltip)?"":n)+'"></i>'),r+="\n </th>\n "}),r+="\n </tr>\n </thead>\n "),r+="\n <tbody>\n ",rows.forEach(function(e){r+="\n <tr>\n ",columns.forEach(function(o){r+='\n <td ref="'+(null==(n=datagridKey)?"":n)+'">\n '+(null==(n=e[o.key])?"":n)+"\n </td>\n "}),r+="\n </tr>\n "}),r+="\n </tbody>\n</table>\n"}},1739:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(66842),i=r(42405);n.default={form:o.default,html:i.default}},30900:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="row">\n ',e.dayFirst&&e.showDay&&(r+='\n <div class="form-group col col-xs-3">\n ',e.component.hideInputLabels||(r+='\n <label for="'+(null==(n=e.component.key)?"":n)+'-day" class="',e.component.fields.day.required&&(r+="field-required"),r+='">'+(null==(n=e.t("Day"))?"":n)+"</label>\n "),r+="\n <div>"+(null==(n=e.day)?"":n)+"</div>\n </div>\n "),r+="\n ",e.showMonth&&(r+='\n <div class="form-group col col-xs-4">\n ',e.component.hideInputLabels||(r+='\n <label for="'+(null==(n=e.component.key)?"":n)+'-month" class="',e.component.fields.month.required&&(r+="field-required"),r+='">'+(null==(n=e.t("Month"))?"":n)+"</label>\n "),r+="\n <div>"+(null==(n=e.month)?"":n)+"</div>\n </div>\n "),r+="\n ",!e.dayFirst&&e.showDay&&(r+='\n <div class="form-group col col-xs-3">\n ',e.component.hideInputLabels||(r+='\n <label for="'+(null==(n=e.component.key)?"":n)+'-day" class="',e.component.fields.day.required&&(r+="field-required"),r+='">'+(null==(n=e.t("Day"))?"":n)+"</label>\n "),r+="\n <div>"+(null==(n=e.day)?"":n)+"</div>\n </div>\n "),r+="\n ",e.showYear&&(r+='\n <div class="form-group col col-xs-5">\n ',e.component.hideInputLabels||(r+='\n <label for="'+(null==(n=e.component.key)?"":n)+'-year" class="',e.component.fields.year.required&&(r+="field-required"),r+='">'+(null==(n=e.t("Year"))?"":n)+"</label>\n "),r+="\n <div>"+(null==(n=e.year)?"":n)+"</div>\n </div>\n "),r+='\n</div>\n<input name="data[day]" type="hidden" class="form-control" lang="en" value="" ref="input">\n'}},38904:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(30900);n.default={form:o.default}},77210:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return'<div class="formio-dialog formio-dialog-theme-default component-settings">\n <div class="formio-dialog-overlay" ref="dialogOverlay"></div>\n <div class="formio-dialog-content" ref="dialogContents">\n <div ref="dialogContents"></div>\n <button class="formio-dialog-close pull-right btn btn-default btn-xs" aria-label="close" ref="dialogClose"></button>\n </div>\n</div>\n'}},62741:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(77210);n.default={form:o.default}},8145:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<ul class="editgrid-listgroup list-group\n '+(n=e.component.striped?"table-striped":"")+"\n "+(n=e.component.bordered?"table-bordered":"")+"\n "+(n=e.component.hover?"table-hover":"")+"\n "+(n=e.component.condensed?"table-condensed":"")+'\n ">
1\n ',e.header&&(r+='\n <li class="list-group-item list-group-header">\n '+(null==(n=e.header)?"":n)+"\n </li>\n "),r+="\n ",e.rows.forEach(function(o,i){r+='\n <li class="list-group-item" ref="'+(null==(n=e.ref.row)?"":n)+'">\n '+(null==(n=o)?"":n)+"\n ",e.openRows[i]&&!e.readOnly&&(r+='\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="'+(null==(n=e.ref.saveRow)?"":n)+'">'+(null==(n=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":n)+"</button>\n ",e.component.removeRow&&(r+='\n <button class="btn btn-danger" ref="'+(null==(n=e.ref.cancelRow)?"":n)+'">'+(null==(n=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":n)+"</button>\n "),r+="\n </div>\n "),r+='\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n '+(null==(n=e.errors[i])?"":n)+"\n </div>\n </div>\n </li>\n "}),r+="\n ",e.footer&&(r+='\n <li class="list-group-item list-group-footer">\n '+(null==(n=e.footer)?"":n)+"\n </li>\n "),r+="\n</ul>\n",!e.readOnly&&e.hasAddButton&&(r+='\n<button class="btn btn-primary formio-button-add-another" ref="'+(null==(n=e.ref.addRow)?"":n)+'">\n <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":n)+"\n</button>\n"),r+="\n"}},65797:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<ul class="editgrid-listgroup list-group\n '+(n=e.component.striped?"table-striped":"")+"\n "+(n=e.component.bordered?"table-bordered":"")+"\n "+(n=e.component.hover?"table-hover":"")+"\n "+(n=e.component.condensed?"table-sm":"")+'\n ">\n ',e.header&&(r+='\n <li class="list-group-item list-group-header">\n '+(null==(n=e.header)?"":n)+"\n </li>\n "),r+="\n ",e.rows.forEach(function(o,i){r+='\n <li class="list-group-item" ref="'+(null==(n=e.ref.row)?"":n)+'">\n '+(null==(n=o)?"":n)+"\n ",e.openRows[i]&&!e.readOnly&&(r+='\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="'+(null==(n=e.ref.saveRow)?"":n)+'">'+(null==(n=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":n)+"</button>\n ",e.component.removeRow&&(r+='\n <button class="btn btn-danger" ref="'+(null==(n=e.ref.cancelRow)?"":n)+'">'+(null==(n=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":n)+"</button>\n "),r+="\n </div>\n "),r+='\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n '+(null==(n=e.errors[i])?"":n)+"\n </div>\n </div>\n </li>\n "}),r+="\n ",e.footer&&(r+='\n <li class="list-group-item list-group-footer">\n '+(null==(n=e.footer)?"":n)+"\n </li>\n "),r+="\n</ul>\n"}},2934:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(8145),i=r(65797);n.default={form:o.default,html:i.default}},42368:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+="<p>"+(null==(n=e.t("error"))?"":n)+"</p>\n<ul>\n ",e.errors.forEach(function(o){r+='\n <li\n data-component-key = "'+(null==(n=o.keyOrPath)?"":n)+'"\n aria-label = "'+(null==(n=o.message)?"":n)+". "+(null==(n=e.t("errorsListNavigationMessage"))?"":n)+'"\n ref = "errorRef"\n tabIndex = "0",\n style = "cursor:pointer;"\n ><span>'+(null==(n=o.message)?"":n)+"</span></li>\n "}),r+="\n</ul>\n"}},47981:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(42368);n.default={form:o.default}},18179:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="field-wrapper\n '+(n=e.isRightPosition?"field-wrapper--reverse":"")+'">\n ',e.label.hidden||(r+='\n <div class="field-label\n '+(n=e.isRightAlign?"field-label--right":"")+'"\n style="'+(null==(n=e.labelStyles)?"":n)+'">\n '+(null==(n=e.labelMarkup)?"":n)+"\n </div>\n "),r+="\n\n ",e.label.hidden&&e.label.className&&e.component.validate.required&&(r+='\n <div class="field-label\n '+(n=e.isRightAlign?"field-label--right":"")+'"\n style="'+(null==(n=e.labelStyles)?"":n)+'">\n <label class="'+(null==(n=e.label.className)?"":n)+'"></label>\n </div>\n '),r+='\n\n <div class="filed-content" style="'+(null==(n=e.contentStyles)?"":n)+'">
1\n '+(null==(n=e.element)?"":n)+"\n </div>\n</div>\n\n",e.component.description&&(r+='\n <div class="form-text text-muted">'+(null==(n=e.t(e.component.description,{_userInput:!0}))?"":n)+"</div>\n"),r+="\n"}},16429:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.label.hidden||"bottom"===e.label.labelPosition||(r+="\n "+(null==(n=e.labelMarkup)?"":n)+"\n"),r+="\n\n",e.label.hidden&&e.label.className&&e.component.validate.required&&(r+='\n <label class="'+(null==(n=e.label.className)?"":n)+'"></label>\n'),r+="\n\n"+(null==(n=e.element)?"":n)+"\n",e.label.hidden||"bottom"!==e.label.labelPosition||(r+="\n "+(null==(n=e.labelMarkup)?"":n)+"\n"),r+="\n",e.component.description&&(r+='\n <div class="help-block">'+(null==(n=e.t(e.component.description,{_userInput:!0}))?"":n)+"</div>\n"),r+="\n"}},87152:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(18179),i=r(16429);n.default={align:o.default,form:i.default}},51054:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.self.imageUpload?(r+="\n <div>\n ",e.files.forEach(function(o){r+='\n <div>\n <span>\n <img ref="fileImage" src="" alt="'+(null==(n=o.originalName||o.name)?"":n)+'" style="width:'+(null==(n=e.component.imageSize)?"":n)+'px">\n ',e.disabled||(r+='\n <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="removeLink"></i>\n '),r+="\n </span>\n </div>\n "}),r+="\n </div>\n"):(r+='\n <ul class="list-group list-group-striped">\n <li class="list-group-item list-group-header hidden-xs hidden-sm">\n <div class="row">\n ',e.disabled||(r+='\n <div class="col-md-1"></div>\n '),r+='\n <div class="col-md-',e.self.hasTypes?r+="7":r+="9",r+='"><strong>'+(null==(n=e.t("File Name"))?"":n)+'</strong></div>\n <div class="col-md-2"><strong>'+(null==(n=e.t("Size"))?"":n)+"</strong></div>\n ",e.self.hasTypes&&(r+='\n <div class="col-md-2"><strong>'+(null==(n=e.t("Type"))?"":n)+"</strong></div>\n "),r+="\n </div>\n </li>\n ",e.files.forEach(function(o){r+='\n <li class="list-group-item">\n <div class="row">\n ',e.disabled||(r+='\n <div class="col-md-1"><i class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="removeLink"></i></div>\n '),r+='\n <div class="col-md-',e.self.hasTypes?r+="7":r+="9",r+='">\n ',e.component.uploadOnly?r+="\n "+(null==(n=o.originalName||o.name)?"":n)+"\n ":r+='\n <a href="'+(null==(n=o.url||"#")?"":n)+'" target="_blank" ref="fileLink">'+(null==(n=o.originalName||o.name)?"":n)+"</a>\n ",r+='\n </div>\n <div class="col-md-2">'+(null==(n=e.fileSize(o.size))?"":n)+"</div>\n ",e.self.hasTypes&&!e.disabled&&(r+='\n <div class="col-md-2">\n <select class="file-type" ref="fileType" >\n ',e.component.fileTypes.map(function(e){r+='\n <option class="test" value="'+(null==(n=e.value)?"":n)+'" ',e.label===o.fileType&&(r+='selected="selected"'),r+=">"+(null==(n=e.label)?"":n)+"</option>\n "}),r+="\n </select>\n </div>\n "),r+="\n ",e.self.hasTypes&&e.disabled&&(r+='\n <div class="col-md-2">'+(null==(n=o.fileType)?"":n)+"</div>\n "),r+="\n </div>\n </li>\n "}),r+="\n </ul>\n"),r+="\n",e.disabled||!e.component.multiple&&e.files.length||(r+="\n ",e.self.useWebViewCamera?r+='\n <div class="fileSelector">\n <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(n=e.t("Gallery"))?"":n)+'</button>\n <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(n=e.t("Camera"))?"":n)+"</button>\n </div>\n ":e.self.cameraMode?r+='\n <div class="video-container">\n <video class="video" autoplay="true" ref="videoPlayer"></video>\n </div>\n <button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> '+(null==(n=e.t("Take Picture"))?"":n)+'</button>\n <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(n=e.t("Switch to file upload"))?"":n)+"</button>\n ":(r+='\n <div class="fileSelector" ref="fileDrop" '+(n=e.fileDropHidden?"hidden":"")+'>\n <i class="'+(null==(n=e.iconClass("cloud-upload"))?"":n)+'"></i> '+(null==(n=e.t("Drop files to attach,"))?"":n)+"\n ",e.self.imageUpload&&e.component.webcam&&(r+='\n <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(n=e.t("Use Camera,"))?"":n)+"</a>\n "),r+="\n "+(null==(n=e.t("or"))?"":n)+' <a href="#" ref="fileBrowse" class="browse">'+(null==(n=e.t("browse"))?"":n)+"</a>\n </div>
1\n "),r+="\n"),r+="\n",e.statuses.forEach(function(o){r+='\n <div class="file '+(n="error"===e.statuses.status?" has-error":"")+'">\n <div class="row">\n <div class="fileName col-form-label col-sm-10">'+(null==(n=o.originalName)?"":n)+' <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="fileStatusRemove"></i></div>\n <div class="fileSize col-form-label col-sm-2 text-right">'+(null==(n=e.fileSize(o.size))?"":n)+'</div>\n </div>\n <div class="row">\n <div class="col-sm-12">\n ',"progress"===o.status?r+='\n <div class="progress">\n <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(n=o.progress)?"":n)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(n=o.progress)?"":n)+'%">\n <span class="sr-only">'+(null==(n=o.progress)?"":n)+"% "+(null==(n=e.t("Complete"))?"":n)+"</span>\n </div>\n </div>\n ":"error"===o.status?r+='\n <div class="alert alert-danger bg-'+(null==(n=o.status)?"":n)+'">'+(null==(n=e.t(o.message))?"":n)+"</div>\n ":r+='\n <div class="bg-'+(null==(n=o.status)?"":n)+'">'+(null==(n=e.t(o.message))?"":n)+"</div>\n ",r+="\n </div>\n </div>\n </div>\n"}),r+="\n",(!e.component.storage||e.support.hasWarning)&&(r+='\n <div class="alert alert-warning">\n ',e.component.storage||(r+="\n <p>"+(null==(n=e.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":n)+"</p>\n "),r+="\n ",e.support.filereader||(r+="\n <p>"+(null==(n=e.t("File API & FileReader API not supported."))?"":n)+"</p>\n "),r+="\n ",e.support.formdata||(r+="\n <p>"+(null==(n=e.t("XHR2's FormData is not supported."))?"":n)+"</p>\n "),r+="\n ",e.support.progress||(r+="\n <p>"+(null==(n=e.t("XHR2's upload progress isn't supported."))?"":n)+"</p>\n "),r+="\n </div>\n"),r}},89148:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(51054);n.default={form:o.default}},3279:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<i ref="'+(null==(n=e.ref)?"":n)+'" class="'+(null==(n=e.className)?"":n)+'" style="'+(null==(n=e.styles)?"":n)+'">'+(null==(n=e.content)?"":n)+"</i>\n"}},5863:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(3279);n.default={form:o.default}},62372:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n,r){if("fa"===e)switch(n){case"save":n="download";break;case"zoom-in":n="search-plus";break;case"zoom-out":n="search-minus";break;case"question-sign":n="question-circle";break;case"remove-circle":n="times-circle-o";break;case"new-window":n="window-restore";break;case"move":n="arrows"}return r?e+" "+e+"-"+n+" "+e+"-spin":e+" "+e+"-"+n}},59850:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(97209),i=r(28002),a=r(80532),l=r(86107),u=r(24304),s=r(3893),c=r(83922),f=r(27421),d=r(89210),p=r(13445),h=r(1739),m=r(38904),y=r(62741),v=r(2934),b=r(87152),g=r(89148),w=r(5863),k=r(62372),O=r(79761),_=r(5003),j=r(38216),P=r(8413),S=r(51546),E=r(14053),x=r(32649),C=r(28851),R=r(20150),A=r(63551),M=r(90146),T=r(54598),D=r(68624),I=r(70993),L=r(94159),V=r(70246),N=r(97871),F=r(19163),U=r(64755),B=r(97104),z=r(37557),q=r(47981);n.default={transform:function(e,n){return n&&"class"===e&&this.cssClasses.hasOwnProperty(n.toString())?this.cssClasses[n.toString()]:n},handleBuilderSidebarScroll:function(e){e.scrollResizeObserver&&e.scrollResizeObserver.disconnect(),e.scrollResizeObserver=new o.default(function(){setTimeout(function(){var n=e.refs,r=n.form,o=n.sidebar,i=r&&r.parentNode&&r.parentNode.clientHeight,a=o&&o.clientHeight,l=o&&o.parentNode&&o.parentNode.style;l&&i&&a&&(l.height=Math.max(a+20,i)+"px")})}),e.scrollResizeObserver.observe(e.refs.form),e.scrollResizeObserver.observe(e.refs.sidebar)},clearBuilderSidebarScroll:function(e){e.scrollResizeObserver&&(e.scrollResizeObserver.disconnect(),e.scrollResizeObserver=null)}
vendor: 4,154 bytes, line 1
1,defaultIconset:"glyphicon",iconClass:k.default,cssClasses:p.default,builder:i.default,builderComponent:a.default,builderComponents:l.default,builderEditForm:u.default,builderPlaceholder:s.default,builderSidebar:c.default,builderSidebarGroup:f.default,columns:d.default,datagrid:h.default,day:m.default,dialog:y.default,editgrid:v.default,field:b.default,file:g.default,icon:w.default,input:O.default,label:_.default,message:j.default,modaldialog:P.default,modaledit:S.default,multiValueRow:E.default,multiValueTable:x.default,panel:C.default,radio:R.default,resourceAdd:A.default,signature:M.default,survey:T.default,tab:D.default,table:I.default,well:L.default,wizard:V.default,wizardHeader:N.default,wizardHeaderClassic:F.default,wizardHeaderVertical:U.default,wizardNav:B.default,errorsList:q.default,alert:z.default}},61836:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";if(Array.prototype.join,(e.prefix||e.suffix)&&(r+='\n<div class="input-group">\n '),r+="\n ",e.prefix&&(r+='\n <div class="input-group-addon" ref="prefix">\n ',e.prefix instanceof HTMLElement?r+="\n "+(null==(n=e.t(e.prefix.outerHTML,{_userInput:!0}))?"":n)+"\n ":r+="\n "+(null==(n=e.t(e.prefix,{_userInput:!0}))?"":n)+"\n ",r+="\n </div>\n "),r+="\n ",!e.component.editor&&!e.component.wysiwyg){for(var o in r+="\n <"+(null==(n=e.input.type)?"":n)+'\n ref="'+(null==(n=e.input.ref?e.input.ref:"input")?"":n)+'"\n ',e.input.attr)r+="\n "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n ';r+='\n id="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n >'+(null==(n=e.input.content)?"":n)+"</"+(null==(n=e.input.type)?"":n)+">\n ",e.hasValueMaskInput&&(r+='\n <input ref="valueMaskInput" />\n '),r+="\n"}return r+="\n",(e.component.editor||e.component.wysiwyg)&&(r+='\n <div ref="input"></div>\n'),r+="\n",e.suffix&&(r+='\n <div class="input-group-addon" ref="suffix">\n ',e.suffix instanceof HTMLElement?r+="\n "+(null==(n=e.t(e.suffix.outerHTML,{_userInput:!0}))?"":n)+"\n ":r+="\n "+(null==(n=e.t(e.suffix,{_userInput:!0}))?"":n)+"\n ",r+="\n </div>\n"),r+="\n",(e.prefix||e.suffix)&&(r+="\n </div>\n"),r+="\n",e.component.showCharCount&&(r+='\n<span class="text-muted pull-right" ref="charcount"></span>\n'),r+="\n",e.component.showWordCount&&(r+='\n<span class="text-muted pull-right" ref="wordcount"></span>\n'),r+="\n"}},68735:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div ref="value">',e.value?r+=null==(n=e.value)?"":n:r+="-",r+="</div>\n"}},79761:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(61836),i=r(68735);n.default={form:o.default,html:i.default}},29495:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<label\n class="control-label '+(null==(n=e.label.className)?"":n)+'"\n for="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n>\n ',e.label.hidden||(r+="\n "+(null==(n=e.t(e.component.label,{_userInput:!0}))?"":n)+"\n ",e.component.tooltip&&(r+='\n <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n '),r+="\n "),r+="\n</label>\n"}},5003:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(29495);n.default={form:o.default}},8601:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<p class="help-block '+(null==(n=e.level)?"":n)+'">'+(null==(n=e.message)?"":n)+"</p>\n"}},38216:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(8601);n.default={form:o.default}},84605:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="formio-dialog formio-dialog-theme-default formio-modaledit-dialog">\n <div ref="overlay" class="formio-dialog-overlay"></div>
1\n <div ref="content" class="formio-modaledit-content">\n <button\n ref="close"\n type="button"\n role="button"\n class="btn btn-primary btn-xs formio-modaledit-close">\n '+(null==(n=e.t("Close"))?"":n)+'\n </button>\n <div ref="inner" class="reset-margins"></div>\n </div>\n</div>\n'}},8413:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(84605);n.default={form:o.default}},66725:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div ref="container" class="formio-modaledit-view-container">\n <button\n ref="edit"\n type="button"\n role="button"\n class="btn btn-xxs btn-warning formio-modaledit-edit">\n <i class="'+(null==(n=e.iconClass("edit"))?"":n)+'"></i>\n </button>\n <div ref="input" class="modaledit-view-inner reset-margins">'+(null==(n=e.content)?"":n)+"</div>\n</div>\n"}},51546:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(66725);n.default={form:o.default}},36176:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<tr ref="row">\n <td>\n '+(null==(n=e.element)?"":n)+"\n </td>\n ",e.disabled||(r+='\n <td>\n <button type="button" class="btn btn-default" ref="removeRow">\n <i class="'+(null==(n=e.iconClass("remove-circle"))?"":n)+'"></i>\n </button>\n </td>\n '),r+="\n</tr>\n"}},14053:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(36176);n.default={form:o.default}},66013:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table table-bordered">\n <tbody>\n '+(null==(n=e.rows)?"":n)+"\n ",e.disabled||(r+='\n <tr>\n <td colspan="2">\n <button class="btn btn-primary formio-button-add-another" ref="addButton"><i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.addAnother,{_userInput:!0}))?"":n)+"</button>\n </td>\n </tr>\n "),r+="\n </tbody>\n</table>\n"}},32649:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(66013);n.default={form:o.default}},90332:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="panel panel-'+(null==(n=e.component.theme)?"":n)+'">\n ',(!e.component.hideLabel||e.builder||e.component.collapsible||e.component.tooltip)&&(r+='\n <div class="panel-heading"\n ',e.component.collapsible&&(r+='\n tabindex="0"\n '),r+='\n role="button"\n aria-expanded="'+(null==(n=!e.component.collapsible||!e.collapsed)?"":n)+'"\n aria-controls="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n ref="header"\n >\n <h4 class="mb-0 panel-title">\n ',e.component.collapsible&&(r+='\n <i class="formio-collapse-icon '+(null==(n=e.iconClass(e.collapsed?"plus":"minus"))?"":n)+' text-muted" data-title="Collapse Panel"></i>\n '),r+="\n ",(!e.component.hideLabel||e.builder)&&(r+="\n "+(null==(n=e.t(e.component.title,{_userInput:!0}))?"":n)+"\n "),r+="\n ",e.component.tooltip&&(r+='\n <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n '),r+="\n </h4>\n </div>\n "),r+="\n ",(!e.collapsed||e.builder)&&(r+='\n <div class="panel-body" ref="'+(null==(n=e.nestedKey)?"":n)+'" id="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'">\n '+(null==(n=e.children)?"":n)+"\n </div>\n "),r+="\n</div>\n"}},28851:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(90332);n.default={form:o.default}},79758:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="input-group">\n ',e.values.forEach(function(o){for(var i in r+='\n <div class="'+(null==(n=e.input.attr.type)?"":n)+(n=e.inline?"-inline":"")+'" ref="wrapper">\n <label class="control-label form-check-label label-position-'+(null==(n=e.component.optionsLabelPosition)?"":n)+'" for="'+(null==(n=e.instance.root&&e.instance.root.i
vendor: 4,072 bytes, line 1
1d)?"":n)+"-"+(null==(n=e.id)?"":n)+"-"+(null==(n=e.row)?"":n)+"-"+(null==(n=o.value)?"":n)+'">\n ',("left"===e.component.optionsLabelPosition||"top"===e.component.optionsLabelPosition)&&(r+="\n <span>"+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+"</span>\n "),r+="\n <"+(null==(n=e.input.type)?"":n)+'\n ref="input"\n ',e.input.attr)r+="\n "+(null==(n=i)?"":n)+'="'+(null==(n=e.input.attr[i])?"":n)+'"\n ';r+='\n value="'+(null==(n=o.value)?"":n)+'"\n ',(e.value===o.value||"object"==typeof e.value&&e.value.hasOwnProperty(o.value)&&e.value[o.value])&&(r+="\n checked=true\n "),r+="\n ",o.disabled&&(r+="\n disabled=true\n "),r+='\n id="'+(null==(n=e.instance.root&&e.instance.root.id)?"":n)+"-"+(null==(n=e.id)?"":n)+"-"+(null==(n=e.row)?"":n)+"-"+(null==(n=o.value)?"":n)+'"\n >\n ',e.component.optionsLabelPosition&&"right"!==e.component.optionsLabelPosition&&"bottom"!==e.component.optionsLabelPosition||(r+="\n <span>"+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+"</span>\n "),r+="\n </label>\n </div>\n "}),r+="\n</div>\n"}},61903:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n="";Array.prototype.join,n+='<div ref="value">\n ';var r=e.values.filter(function(n){return e.value===n.value||"object"==typeof e.value&&e.value.hasOwnProperty(n.value)&&e.value[n.value]}).map(function(n){return e.t(n.label,{_userInput:!0})}).join(", ");return n+("\n "+(null==r?"":r))+"\n </div>\n"}},20150:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(79758),i=r(61903);n.default={form:o.default,html:i.default}},2757:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<table class="table table-bordered">\n <tbody>\n <tr>\n <td>\n '+(null==(n=e.element)?"":n)+'\n </td>\n </tr>\n <tr>\n <td colspan="2">\n <button class="btn btn-primary formio-button-add-resource" ref="addResource">\n <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i>\n '+(null==(n=e.t(e.component.addResourceLabel||"Add Resource",{_userInput:!0}))?"":n)+"\n </button>\n </td>\n </tr>\n </tbody>\n</table>\n"}},63551:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(2757);n.default={form:o.default}},70204:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+=(null==(n=e.element)?"":n)+'\n<div\n class="signature-pad-body"\n style="width: '+(null==(n=e.component.width)?"":n)+";height: "+(null==(n=e.component.height)?"":n)+';padding:0;margin:0;"\n tabindex="'+(null==(n=e.component.tabindex||0)?"":n)+'"\n ref="padBody"\n>\n\n <a class="btn btn-sm btn-default signature-pad-refresh" ref="refresh">\n <i class="'+(null==(n=e.iconClass("refresh"))?"":n)+'"></i>\n </a>\n <canvas class="signature-pad-canvas" style="display: none;" height="'+(null==(n=e.component.height)?"":n)+'" ref="canvas"></canvas>\n ',e.required&&(r+='\n <span class="form-control-feedback field-required-inline text-danger">\n <i class="'+(null==(n=e.iconClass("asterisk"))?"":n)+'"></i>\n </span>\n '),r+='\n <img style="width: 100%;display: inherit;" ref="signatureImage">\n</div>\n',e.component.footer&&(r+='\n <div class="signature-pad-footer">\n '+(null==(n=e.t(e.component.footer,{_userInput:!0}))?"":n)+"\n </div>\n"),r+="\n"}},14281:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return'<img style="width: 100%;" ref="signatureImage">\n'}},90146:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(70204),i=r(14281);n.default={form:o.default,html:i.default}},59292:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table table-striped table-bordered">\n <thead>\n <tr>\n <th></th>
1\n ',e.component.values.forEach(function(o){r+='\n <th style="text-align: center;">\n '+(null==(n=e.t(o.label))?"":n)+"\n ",o.tooltip&&(r+='\n <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>\n '),r+="\n </th>\n "}),r+="\n </tr>\n </thead>\n <tbody>\n ",e.component.questions.forEach(function(o){r+="\n <tr>\n <td>\n "+(null==(n=e.t(o.label))?"":n)+"\n ",o.tooltip&&(r+='\n <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>\n '),r+="\n </td>\n ",e.component.values.forEach(function(i){r+='\n <td style="text-align: center;">\n <input type="radio" name="'+(null==(n=e.self.getInputName(o))?"":n)+'" value="'+(null==(n=i.value)?"":n)+'" id="'+(null==(n=e.key)?"":n)+"-"+(null==(n=o.value)?"":n)+"-"+(null==(n=i.value)?"":n)+'" ref="input">\n </td>\n '}),r+="\n </tr>\n "}),r+="\n </tbody>\n</table>\n"}},44502:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table table-striped table-bordered">\n <tbody>\n ',e.component.questions.forEach(function(o){r+="\n <tr>\n <th>"+(null==(n=e.t(o.label))?"":n)+"</th>\n <td>\n ",e.component.values.forEach(function(i){r+="\n ",e.value&&e.value.hasOwnProperty(o.value)&&e.value[o.value]===i.value&&(r+="\n "+(null==(n=e.t(i.label))?"":n)+"\n "),r+="\n "}),r+="\n </td>\n </tr>\n "}),r+="\n </tbody>\n</table>\n"}},54598:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(59292),i=r(44502);n.default={form:o.default,html:i.default}},43016:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.component.components.forEach(function(o,i){r+='\n <div class="panel panel-default">\n <div class="panel-heading">\n <h4 class="panel-title">'+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+'</h4>\n </div>\n <div class="panel-body" ref="'+(null==(n=e.tabKey)?"":n)+'">\n '+(null==(n=e.tabComponents[i])?"":n)+"\n </div>\n </div>\n"}),r+="\n"}},71681:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="tab-container'+(n=e.component.verticalLayout?" card-vertical":"")+'">\n <ul class="nav nav-tabs'+(n=e.component.verticalLayout?" nav-tabs-vertical":"")+'">\n ',e.component.components.forEach(function(o,i){r+='\n <li class="nav-item'+(n=e.currentTab===i?" active":"")+'" role="presentation" ref="'+(null==(n=e.tabLikey)?"":n)+'">\n <a class="nav-link'+(n=e.currentTab===i?" active":"")+(n=e.component.verticalLayout?" nav-link-vertical":"")+'" href="#'+(null==(n=o.key)?"":n)+'" ref="'+(null==(n=e.tabLinkKey)?"":n)+'">'+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+"</a>\n </li>\n "}),r+='\n </ul>\n <div class="tab-content">\n ',e.component.components.forEach(function(o,i){r+='\n <div role="tabpanel" class="tab-pane'+(n=e.currentTab===i?" active":"")+'" ref="'+(null==(n=e.tabKey)?"":n)+'">'+(null==(n=e.tabComponents[i])?"":n)+"</div>\n "}),r+="\n </div>\n</div>\n"}},68624:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(43016),i=r(71681);n.default={flat:o.default,form:i.default}},62835:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table\n '+(n=e.component.striped?"table-striped":"")+"\n "+(n=e.component.bordered?"table-bordered":"")+"\n "+(n=e.component.hover?"table-hover":"")+"\n "+(n=e.component.condensed?"table-condensed":"")+'\n ">\n ',e.component.header&&e.component.header.length>0&&(r+="\n <thead>\n <tr>\n ",e.component.header.forEach(function(o){r+="\n <th>"+(null==(n=e.t(o,{_userInput:!0}))?"":n)+"</th>\n "}),r+="\n </tr>\n </thead>\n "),r+="\n <tbody>
1\n ",e.tableComponents.forEach(function(o,i){r+='\n <tr ref="row-'+(null==(n=e.id)?"":n)+'">\n ',o.forEach(function(o,a){r+='\n <td ref="'+(null==(n=e.tableKey)?"":n)+"-"+(null==(n=i)?"":n)+'"',e.cellClassName&&(r+=' class="'+(null==(n=e.cellClassName)?"":n)+'"'),r+=">"+(null==(n=o)?"":n)+"</td>\n "}),r+="\n </tr>\n "}),r+="\n </tbody>\n</table>\n"}},70993:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(62835);n.default={form:o.default}},6439:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="well">\n <div ref="'+(null==(n=e.nestedKey)?"":n)+'">\n '+(null==(n=e.children)?"":n)+"\n </div>\n</div>\n"}},94159:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(6439);n.default={form:o.default}},40527:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="text-muted text-center">'+(null==(n=e.t(e.component.title,{_userInput:!0}))?"":n)+"</div>\n"}},20514:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="'+(null==(n=e.className)?"":n)+'">\n <div style="position: relative;">\n ',"wizardHeaderVertical"===e.wizardHeaderType?r+='\n <div class="row">\n <div class="col-sm-12 col-md-2">\n '+(null==(n=e.wizardHeader)?"":n)+'\n </div>\n <div class="wizard-page col-sm-offset-1 col-md-offset-0 col-sm-10" ref="'+(null==(n=e.wizardKey)?"":n)+'">\n '+(null==(n=e.components)?"":n)+'\n </div>\n </div>\n <div class="col-sm-offset-4 col-sm-7 col-md-offset-2 col-md-10" style="margin-top: 10px;">\n '+(null==(n=e.wizardNav)?"":n)+"\n </div>\n ":r+=" \n "+(null==(n=e.wizardHeader)?"":n)+'\n <div class="wizard-page" ref="'+(null==(n=e.wizardKey)?"":n)+'">\n '+(null==(n=e.components)?"":n)+"\n </div>\n "+(null==(n=e.wizardNav)?"":n)+"\n ",r+=" \n </div>\n</div>"}},70246:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(40527),i=r(20514);n.default={form:i.default,builder:o.default}},59499:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<nav aria-label="navigation" id="'+(null==(n=e.wizardKey)?"":n)+'-header" ref="'+(null==(n=e.wizardKey)?"":n)+'-header">\n <ul class="pagination">\n ',e.panels.forEach(function(o,i){r+='\n <li class="page-item'+(n=e.currentPage===i?" active":"")+'" style="">
1\n <span class="page-link" ref="'+(null==(n=e.wizardKey)?"":n)+'-link">\n '+(null==(n=e.t(o.title,{_userInput:!0}))?"":n)+"\n ",o.tooltip&&e.currentPage===i&&(r+='\n <i ref="'+(null==(n=e.wizardKey)?"":n)+'-tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>\n '),r+="\n </span>\n </li>\n "}),r+="\n </ul>\n</nav>\n"}},97871:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(59499);n.default={form:o.default}},24296:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<nav aria-label="navigation" id="'+(null==(n=e.wizardKey)?"":n)+'-header">\n <div class="classic-pagination row" style="border-bottom:0;">\n ',e.panels.forEach(function(o,i){r+='\n <div class="classic-pagination-page col-xs-12 col-sm-6 col-md-3\n '+(n=e.currentPage<i?" disabled":"")+"\n "+(n=e.currentPage===i?" active":"")+"\n "+(n=e.currentPage>i?" complete":"")+'">\n <div class="text-center classic-pagination-title">'+(null==(n=e.t(o.title,{_userInput:!0}))?"":n)+"</div>\n ",e.panels.length>1&&(r+='\n <div class="progress"><div class="progress-bar"></div></div>\n '),r+=' \n <span ref="'+(null==(n=e.wizardKey)?"":n)+'-link" class="classic-pagination-dot"></span>\n </div>\n '}),r+="\n </div>\n</nav>\n"}},19163:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(24296);n.default={form:o.default}},66502:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<nav aria-label="navigation" id="'+(null==(n=e.wizardKey)?"":n)+'-header">\n <ul class="pagination">\n ',e.panels.forEach(function(o,i){r+='\n <li class="col-sm-offset-3 col-sm-6 col-md-offset-0 col-md-12 page-item'+(n=e.currentPage===i?" active":"")+'" style="cursor: pointer;">
1\n <span class="page-link" ref="'+(null==(n=e.wizardKey)?"":n)+'-link" style="margin: 0px 0px 5px;">\n '+(null==(n=e.t(o.title,{_userInput:!0}))?"":n)+"\n ",o.tooltip&&e.currentPage===i&&(r+='\n <i ref="'+(null==(n=e.wizardKey)?"":n)+'-tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>\n '),r+="\n </span>\n </li>\n "}),r+="\n </ul>\n</nav>\n"}},64755:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(66502);n.default={form:o.default}},63727:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<ul class="list-inline" id="'+(null==(n=e.wizardKey)?"":n)+'-nav">\n ',e.buttons.cancel&&(r+='\n <li class="list-inline-item">\n <button class="btn btn-default btn-wizard-nav-cancel" ref="'+(null==(n=e.wizardKey)?"":n)+'-cancel">'+(null==(n=e.t("cancel"))?"":n)+"</button>\n </li>\n "),r+="\n ",e.buttons.previous&&(r+='\n <li class="list-inline-item">\n <button class="btn btn-primary btn-wizard-nav-previous" ref="'+(null==(n=e.wizardKey)?"":n)+'-previous">'+(null==(n=e.t("previous"))?"":n)+"</button>\n </li>\n "),r+="\n ",e.buttons.next&&(r+='\n <li class="list-inline-item">\n <button class="btn btn-primary btn-wizard-nav-next" ref="'+(null==(n=e.wizardKey)?"":n)+'-next">'+(null==(n=e.t("next"))?"":n)+"</button>\n </li>\n "),r+="\n ",e.buttons.submit&&(r+='\n <li class="list-inline-item">\n <button class="btn btn-primary btn-wizard-nav-submit" ref="'+(null==(n=e.wizardKey)?"":n)+'-submit">'+(null==(n=e.t("submit"))?"":n)+"</button>\n </li>\n "),r+="\n</ul>\n"}},97104:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(63727);n.default={form:o.default}},95962:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(59850);n.default={bootstrap3:o.default}},34675:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=a(r(2784)),i=a(r(13980));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var n=e.type,r=e.errors;return(Array.isArray(r)?0!==r.filter(function(e){return!!e}).length:r)?o.default.createElement("div",{className:"alert alert-"+(void 0===n?"danger":n),role:"alert"},function e(n){return"string"==typeof n?n:Array.isArray(n)?n.map(e):n.hasOwnProperty("errors")?Object.keys(n.errors).map(function(e,r){var i=n.errors[e];return o.default.createElement("div",{key:r},o.default.createElement("strong",null,i.name," (",i.path,")")," - ",i.message)}):n.hasOwnProperty("message")?n.message:n.hasOwnProperty("name")&&"ValidationError"===n.name?n.details.map(function(e,n){return o.default.createElement("div",{key:n},e.message)}):n.hasOwnProperty("_id")&&n.hasOwnProperty("display")?"Another user has saved this form already. Please reload and re-apply your changes.":"An error occurred. See console logs for details."}(r)):null};l.propTypes={errors:i.default.any,type:i.default.string},n.default=l},90682:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,n){var r=[],o=!0,i=!1,a=void 0;try{for(var l,u=e[Symbol.iterator]();!(o=(l=u.next()).done)&&(r.push(l.value),!n||r.length!==n);o=!0);}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}return r}(e,n);throw TypeError("Invalid attempt to destructure non-iterable instance")},i=r(27609),a=r(2784),l=f(a),u=f(r(13980)),s=f(r(91355)),c=f(r(18149));function f(e){return e&&e.__esModule?e:{default:e}}var d=r(99072).Formio.Form,p=function e(n){var r=void 0,u=void 0,s=void 0,f=o((0,a.useState)(void 0),2),p=f[0],h=f[1],m=(0,a.useRef)(void 0);(0,a.useEffect)(function(){return function(){return p?p.destroy(!0):null}},[p]);var y=function(e){var o=n.options,i=n.formioform,a=n.formReady;return u=(r=new(i||d)(s,e,void 0===o?{}:o)).ready.then(function(e){return h(e),a&&a(e),e})},v=function(e){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];if(e.startsWith("formio.")){var a="on"+e.charAt(7).toUpperCase()+e.slice(8);n.hasOwnProperty(a)&&"function"==typeof n[a]&&n[a].apply(n,o)}},b=function(){var e=n.submission;u&&(r.onAny(v),u.then(function(){p&&e&&(p.submission=e)}))};return(0,a.useEffect)(function(){var e=n.src;e&&(y(e).then(function(n){n&&(n.src=e)}),b())},[n.src]),(0,a.useEffect)(function(){var e=n.form,r=n.url;e&&!(0,c.default)(e,m.current)&&(m.current=(0,i.cloneDeep)(e),y(m.current).then(function(e){e&&(e.form=m.current,r&&(e.url=r))}),b())},[n.form]),(0,a.useEffect)(function(){var r=n.options,o=void 0===r?{}:r;o.events||(o.events=e.getDefaultEmitter())},[n.options]),(0,a.useEffect)(function(){var e=n.submission;p&&e&&!(0,c.default)(p.submission.data,e.data)&&(p.submission=e)},[n.submission,p]),l.default.createElement("div",{ref:function(e){return s=e}})};p.propTypes={src:u.default.string,url:u.default.string,form:u.default.object,submission:u.default.object,options:u.default.shape({readOnly:u.default.bool,useSessionToken:u.default.bool,flatten:u.default.bool,renderMode:u.default.string,sanitize:u.default.string,noAlerts:u.default.bool,i18n:u.default.object,template:u.default.string,saveDraft:u.default.bool,language:u.default.string}),onPrevPage:u.default.func,onNextPage:u.default.func,onCancel:u.default.func,onChange:u.default.func,onCustomEvent:u.default.func,onComponentChange:u.default.func,onSubmit:u.default.func,onSubmitDone:u.default.func,onFormLoad:u.default.func,onError:u.default.func,onRender:u.default.func,onAttach:u.default.func,onBuild:u.default.func,onFocus:u.default.func,onBlur:u.default.func,onInitialized:u.default.func,formReady:u.default.func,formioform:u.default.any},p.getDefaultEmitter=function(){return new s.default({wildcard:!1,maxListeners:0})},n.default=p},93536:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},i=r(2784),a=s(i),l=s(r(13980)),u=r(99072);
1function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){var n=e.options,r=void 0===n?{}:n,l=e.Builder,s=void 0===l?u.FormBuilder:l,c=e.form,f=(0,i.useRef)(),d=void 0,p=function(n){return function(){e.hasOwnProperty(n)&&"function"==typeof e[n]&&e[n].apply(e,arguments)}},h=function(){var n=e.onChange;if(n&&"function"==typeof n){var r=o({},f.current.instance.form);Object.defineProperty(r,"components",{get:function(){return f.current.instance.schema.components}}),n(f.current.instance.form,r)}},m=[{name:"saveComponent",action:p("onSaveComponent")},{name:"updateComponent",action:p("onUpdateComponent")},{name:"removeComponent",action:p("onDeleteComponent")},{name:"cancelComponent",action:p("onUpdateComponent")},{name:"editComponent",action:p("onEditComponent")},{name:"addComponent",action:h},{name:"saveComponent",action:h},{name:"updateComponent",action:h},{name:"removeComponent",action:h},{name:"deleteComponent",action:h},{name:"pdfUploaded",action:h}],y=function(e){var n=e.options,r=e.form,o=e.Builder;n=Object.assign({},n),r=Object.assign({},r),f.current=new o(d,r,n),f.current.ready.then(function(){h(),m.forEach(function(e){var n=e.name,r=e.action;f.current.instance.off(n,r),f.current.instance.on(n,r)})})};(0,i.useEffect)(function(){return y({options:r,Builder:s,form:c}),function(){return f.current?f.current.instance.destroy(!0):null}},[f]),(0,i.useEffect)(function(){!f.current&&c&&y({options:r,Builder:s,form:c})},[c,f]);var v=(0,i.useCallback)(function(e){return d=e});return(0,i.useLayoutEffect)(function(){f.current&&c&&c.display&&f.current.setDisplay(c.display)},[c.display]),(0,i.useLayoutEffect)(function(){f.current&&c&&c.components&&f.current.setForm(c)},[c]),a.default.createElement("div",null,a.default.createElement("div",{ref:v}))};c.propTypes={form:l.default.object,options:l.default.object,onChange:l.default.func,onSaveComponent:l.default.func,onUpdateComponent:l.default.func,onDeleteComponent:l.default.func,onCancelComponent:l.default.func,onEditComponent:l.default.func,Builder:l.default.any},n.default=c},97165:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,n){var r=[],o=!0,i=!1,a=void 0;try{for(var l,u=e[Symbol.iterator]();!(o=(l=u.next()).done)&&(r.push(l.value),!n||r.length!==n);o=!0);}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}return r}(e,n);throw TypeError("Invalid attempt to destructure non-iterable instance")},i=r(2784),a=d(i),l=d(r(13980)),u=d(r(93536)),s=d(r(16765)),c=d(r(9850)),f=d(r(96009));function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e,n){var r=n.type,o=n.value,i=(0,c.default)(e);switch(r){case"formChange":for(var a in o)o.hasOwnProperty(a)&&(e[a]=o[a]);return e;case"replaceForm":return(0,c.default)(o);case"title":"title"!==r||e._id||(i.name=(0,f.default)(o),i.path=(0,f.default)(o).toLowerCase())}return(0,s.default)(i,r,o),i},h=function(e){var n=e.form,r=void 0===n?{title:"",name:"",path:"",display:"form",type:"form",components:[]}:n,l=e.saveText,s=e.options,f=e.builder,d=e.ref,h=o((0,i.useReducer)(p,(0,c.default)(r)),2),m=h[0],y=h[1];(0,i.useEffect)(function(){var n=e.form;n&&(m._id!==n._id||m.modified!==n.modified)&&y({type:"replaceForm",value:n})},[r]);var v=function(){var n=e.saveForm;n&&"function"==typeof n&&n(m)},b=function(e,n){var r=n.target;y({type:e,value:"checkbox"===r.type?r.checked:r.value})};return a.default.createElement("div",null,a.default.createElement("div",{className:"row",ref:d},a.default.createElement("div",{className:"col-lg-2 col-md-4 col-sm-4"},a.default.createElement("div",{id:"form-group-title",className:"form-group"},a.default.createElement("label",{htmlFor:"title",className:"control-label field-required"},"Title"),a.default.createElement("input",{type:"text",className:"form-control",id:"title",placeholder:"Enter the form title",value:m.title||"",onChange:function(e){return b("title",e)}}))),a.default.createElement("div",{className:"col-lg-2 col-md-4 col-sm-4"},a.default.createElement("div",{id:"form-group-name",className:"form-group"},a.default.createElement("label",{htmlFor:"name",className:"control-label field-required"},"Name"),a.default.createElement("input",{type:"text",className:"form-control",id:"name",placeholder:"Enter the form machine name",value:m.name||"",onChange:function(e){return b("name",e)}}))),a.default.createElement("div",{className:"col-lg-2 col-md-3 col-sm-3"},a.default.createElement("div",{id:"form-group-display",className:"form-group"},a.default.createElement("label",{htmlFor:"name",className:"control-label"},"Display as"),a.default.createElement("div",{className:"input-group"},a.default.createElement("select",{className:"form-control",name:"form-display",id:"form-display",value:m.dis
1play||"",onChange:function(e){return b("display",e)}},a.default.createElement("option",{label:"Form",value:"form"},"Form"),a.default.createElement("option",{label:"Wizard",value:"wizard"},"Wizard"),a.default.createElement("option",{label:"PDF",value:"pdf"},"PDF"))))),a.default.createElement("div",{className:"col-lg-2 col-md-3 col-sm-3"},a.default.createElement("div",{id:"form-group-type",className:"form-group"},a.default.createElement("label",{htmlFor:"form-type",className:"control-label"},"Type"),a.default.createElement("div",{className:"input-group"},a.default.createElement("select",{className:"form-control",name:"form-type",id:"form-type",value:m.type,onChange:function(e){return b("type",e)}},a.default.createElement("option",{label:"Form",value:"form"},"Form"),a.default.createElement("option",{label:"Resource",value:"resource"},"Resource"))))),a.default.createElement("div",{className:"col-lg-2 col-md-4 col-sm-4"},a.default.createElement("div",{id:"form-group-path",className:"form-group"},a.default.createElement("label",{htmlFor:"path",className:"control-label field-required"},"Path"),a.default.createElement("div",{className:"input-group"},a.default.createElement("input",{type:"text",className:"form-control",id:"path",placeholder:"example",style:{textTransform:"lowercase",width:"120px"},value:m.path||"",onChange:function(e){return b("path",e)}})))),a.default.createElement("div",{id:"save-buttons",className:"col-lg-2 col-md-5 col-sm-5 save-buttons pull-right"},a.default.createElement("div",{className:"form-group pull-right"},a.default.createElement("span",{className:"btn btn-primary",onClick:function(){return v()}},l)))),a.default.createElement(u.default,{key:m._id,form:m,options:s,builder:f,onChange:function(e){return y({type:"formChange",value:e})}}))};h.propTypes={form:l.default.object.isRequired,options:l.default.object,builder:l.default.any,saveForm:l.default.func,saveText:l.default.string},n.default=h},99686:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=p(r(72579)),i=p(r(61049)),a=p(r(85505)),l=p(r(13980)),u=p(r(2784)),s=r(26034),c=r(60369),f=r(21302),d=p(r(35454));function p(e){return e&&e.__esModule?e:{default:e}}var h=function(e){var n=e.columns,r=e.formAccess,l=void 0===r?function(){return{form:{create:!0,view:!0,edit:!0,delete:!0},submission:{create:!0,view:!0,edit:!0,delete:!0}}}:r,c=e.getForms,p=e.onPageSizeChanged,h=e.operations,m=void 0===h?[{action:"view",buttonType:"primary",icon:"pencil",permissionsResolver:function(){return!0},title:"Enter Data"},{action:"submission",buttonType:"warning",icon:"list-alt",permissionsResolver:function(){return!0},title:"View Data"},{action:"edit",buttonType:"secondary",icon:"edit",permissionsResolver:function(){return!0},title:"Edit Form"},{action:"delete",buttonType:"danger",icon:"trash",permissionsResolver:function(){return!0}}]:h,y=e.pageSizes,v=void 0===y?s.defaultPageSizes:y,b=e.forms,g=b.forms,w=b.limit,k=b.pagination,O=k.page,_=k.numPages,j=k.total,P=b.sort,S=e.onAction,E=function(e,n){var r=(0,a.default)(n)?n:e,o="-"+r;return P===r?o:P===o?"":r},x=function(e){var n=e.access,r=e.form,o=e.onAction;return u.default.createElement("span",{style:{cursor:"pointer"},onClick:(0,f.stopPropagationWrapper)(function(){n.submission.create&&o(r,"view")})},u.default.createElement("h5",null,r.title))},C=function(e){var n=e.icon;return u.default.createElement("span",null,u.default.createElement("i",{className:"fa fa-"+n}),"\xa0")},R=function(e){var n=e.action,r=e.onAction,o=e.form,i=e.buttonType,a=e.icon,l=e.title;return u.default.createElement("span",{className:"btn btn-"+i+" btn-sm form-btn",onClick:(0,f.stopPropagationWrapper)(function(){return r(o,n)})},a?u.default.createElement(C,{icon:a}):null,l)},A=(O-1)*w,M=Math.min(A+w,j);return u.default.createElement(d.default,{Cell:function(e){var n=e.row,r=e.column,a=l(n);return"title"===r.key?u.default.createElement(x,{access:a,form:n,onAction:S}):"operations"===r.key?u.default.createElement("div",null,m.map(function(e){var r=e.action,o=e.buttonType,i=e.icon,a=e.permissionsResolver,l=e.title;return(void 0===a?function(){return!0}:a)(n)?u.default.createElement(R,{key:r,action:r,buttonType:void 0===o?"primary":o,icon:void 0===i?"":i,title:void 0===l?"":l,form:n,onAction:S}):null})):u.default.createElement("span",null,(0,i.default)(r.value)?r.value(n):(0,o.default)(n,r.key,""))}
1,activePage:O,columns:void 0===n?[{key:"title",sort:!0,title:"Form",width:8},{key:"operations",title:"Operations",width:4}]:n,emptyText:"No forms found",firstItem:A+1,items:g,lastItem:M,onAction:S,onPage:void 0===c?function(){}:c,onPageSizeChanged:void 0===p?function(){}:p,onSort:function(n){var r=n.key,o=n.sort;if((0,i.default)(o))return o();(0,e.getForms)(1,{sort:E(r,o)})},pageSize:w,pageSizes:v,pages:_,sortOrder:P,total:j})};h.propTypes={columns:c.Columns,formAccess:l.default.func,forms:l.default.object.isRequired,getForms:l.default.func,onAction:l.default.func,onPageSizeChanged:l.default.func,operations:c.Operations,pageSizes:c.PageSizes},n.default=h},35454:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=d(r(72579)),i=d(r(29259)),a=d(r(85505)),l=d(r(13980)),u=d(r(2784)),s=r(26034),c=r(60369),f=d(r(42342));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return(0,i.default)(e)?e:e===c.AllItemsPerPage?{label:"All",value:999999}:{label:e,value:e}}var h=function(e){var n=e.pages,r=e.onPage;return n&&r},m=function(e){var n=e.pageSize,r=e.pageSizes,o=e.onPageSizeChanged;return n&&r&&r.length&&o},y=function(e){var n=e.firstItem,r=e.lastItem,o=e.total;return n&&r&&o};function v(e){var n=e.Cell,r=void 0===n?function(e){var n=e.column,r=e.row;return u.default.createElement("span",null,(0,o.default)(r,n.key,""))}:n,i=e.activePage,l=void 0===i?1:i,c=e.emptyText,d=e.firstItem,v=void 0===d?0:d,b=e.lastItem,g=void 0===b?0:b,w=e.onAction,k=void 0===w?function(){}:w,O=e.onPage,_=void 0===O?function(){}:O,j=e.onPageSizeChanged,P=void 0===j?function(){}:j,S=e.onSort,E=void 0===S?function(){}:S,x=e.pageNeighbours,C=void 0===x?1:x,R=e.pageSize,A=void 0===R?0:R,M=e.pageSizes,T=void 0===M?s.defaultPageSizes:M,D=e.pages,I=void 0===D?0:D,L=e.sortOrder,V=void 0===L?"":L,N=e.total,F=void 0===N?0:N,U=e.columns,B=e.items,z=T.map(p),q=function(){return u.default.createElement("div",{className:"col-auto"},u.default.createElement("div",{className:"row align-items-center"},u.default.createElement("div",{className:"col-auto"},u.default.createElement("select",{className:"form-control",value:A,onChange:function(e){return P(e.target.value)}},z.map(function(e){var n=e.label,r=e.value;return u.default.createElement("option",{key:r,value:r},n)}))),u.default.createElement("span",{className:"col-auto"},"items per page")))},H=function(){return u.default.createElement("div",{className:"col-auto"},u.default.createElement("div",{className:"row align-items-center"},u.default.createElement("div",{className:"col-auto"},u.default.createElement(f.default,{pages:I,activePage:l,pageNeighbours:C,prev:"Previous",next:"Next",onSelect:_})),m(e)?u.default.createElement(q,null):null))},W=function(){return u.default.createElement("div",{className:"col-auto ml-auto"},u.default.createElement("span",{className:"item-counter pull-right"},u.default.createElement("span",{className:"page-num"},v," - ",g)," / ",F," total"))};return u.default.createElement("div",null,B.length?u.default.createElement("ul",{className:"list-group list-group-striped"},u.default.createElement("li",{className:"list-group-item list-group-header hidden-xs hidden-md"},u.default.createElement("div",{className:"row"},U.map(function(e){var n=e.key,r=e.sort,o=void 0!==r&&r,i=e.title,l=void 0===i?"":i,s={key:n,className:"col col-md-"+e.width};if(!l)return u.default.createElement("div",s);if(!o)return u.default.createElement("div",s,u.default.createElement("strong",null,l));var c=(0,a.default)(o)?o:n,f="";return V===c?f="glyphicon glyphicon-triangle-top fa fa-caret-up":V==="-"+c&&(f="glyphicon glyphicon-triangle-bottom fa fa-caret-down"),u.default.createElement("div",s,u.default.createElement("span",{style:{cursor:"pointer"},onClick:function(){return E(e)}},u.default.createElement("strong",null,l," ",u.default.createElement("span",{className:f}))))}))),B.map(function(e){return u.default.createElement("li",{className:"list-group-item",key:e._id},u.default.createElement("div",{className:"row",onClick:function(){return k(e,"row")}},U.map(function(n){return u.default.createElement("div",{key:n.key,className:"col col-md-"+n.width},u.default.createElement(r,{row:e,column:n}))})))}),h(e)||y(e)?u.default.createElement(function(){return u.default.createElement("li",{className:"list-group-item"},u.default.createElement("div",{className:"row align-items-center"},h(e)?u.default.createElement(H,null):null,y(e)?u.default.createElement(W,null):null))}
1,null):null):u.default.createElement("div",null,void 0===c?"No data found":c))}v.propTypes={Cell:l.default.func,activePage:l.default.number,columns:l.default.array.isRequired,emptyText:l.default.string,firstItem:l.default.number,items:l.default.array.isRequired,lastItem:l.default.number,onAction:l.default.func,onPage:l.default.func,onPageSizeChanged:l.default.func,onSort:l.default.func,pageNeighbours:l.default.number,pageSize:l.default.number,pageSizes:c.PageSizes,pages:l.default.number,sortOrder:l.default.string,total:l.default.number},n.default=v},42342:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=a(r(13980)),i=a(r(2784));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){if(!Array.isArray(e))return Array.from(e);for(var n=0,r=Array(e.length);n<e.length;n++)r[n]=e[n];return r}var u="LEFT",s="RIGHT";function c(e,n){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=e,i=[];o<=n;)i.push(o),o+=r;return i}function f(e){var n=e.activePage,r=void 0===n?1:n,o=e.pageNeighbours,a=e.prev,f=e.next,d=e.pages,p=e.onSelect,h=function(e){var n=e.currentPage,r=e.pageNeighbours,o=e.totalPages,i=2*r+3;if(o>i+2){var a=Math.max(2,n-r),f=Math.min(o-1,n+r),d=3===a?2:a,p=f===o-2?o-1:f,h=c(d,p),m=d>2,y=o-p>1,v=i-(h.length+1),b=void 0;return m&&!y?h=[u].concat(l(b=c(d-v,d-1)),l(h)):!m&&y?(b=c(p+1,p+v),h=[].concat(l(h),l(b),[s])):h=[u].concat(l(h),[s]),[1].concat(l(h),[o])}return c(1,o)}({currentPage:r,pageNeighbours:void 0===o?1:o,totalPages:d});return i.default.createElement("nav",{"aria-label":"Page navigation"},i.default.createElement("ul",{className:"pagination"},i.default.createElement("li",{className:"page-item "+(1===r?"disabled":"")},i.default.createElement("button",{className:"page-link",onClick:function(){1!==r&&p(r-1)}},void 0===a?"Previous":a)),h.map(function(e){var n=e===r?"active":"";return[u,s].includes(e)?i.default.createElement("li",{className:"page-item disabled"},i.default.createElement("span",{className:"page-link"},i.default.createElement("span",{"aria-hidden":"true"},"..."))):i.default.createElement("li",{className:"page-item "+n,key:e},i.default.createElement("button",{className:"page-link",onClick:function(){return p(e)}},e))}),i.default.createElement("li",{className:"page-item "+(r===d?"disabled":"")},i.default.createElement("button",{className:"page-link",onClick:function(){r!==d&&p(r+1)}},void 0===f?"Next":f))))}f.propTypes={activePage:o.default.number,pageNeighbours:o.default.number,pages:o.default.number.isRequired,prev:o.default.string,next:o.default.string,onSelect:o.default.func.isRequired},n.default=f},70092:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(n,r,o){return r&&e(n.prototype,r),o&&e(n,o),n}}(),i=function e(n,r,o){null===n&&(n=Function.prototype);var i=Object.getOwnPropertyDescriptor(n,r);if(void 0===i){var a=Object.getPrototypeOf(n);if(null===a)return;return e(a,r,o)}if("value"in i)return i.value;var l=i.get;if(void 0!==l)return l.call(o)},a=function(e){function n(e,r,o){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n);var i=function(e,n){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&("object"==typeof n||"function"==typeof n)?n:e}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,r,o));
1return i.updateValue=function(e,n){n=n||{};var r=null==e?i.getValue():e,o=void 0!==r&&i.hasChanged(r,i.dataValue);return i.dataValue=Array.isArray(r)?[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var n=0,r=Array(e.length);n<e.length;n++)r[n]=e[n];return r}(r)):r,i.updateOnChange(n,o),o},i.reactInstance=null,i}return!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),o(n,[{key:"init",value:function(){return i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"init",this).call(this)}},{key:"destroy",value:function(){return i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"destroy",this).call(this)}},{key:"beforeSubmit",value:function(){return i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"beforeSubmit",this).call(this)}},{key:"render",value:function(){return i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"render",this).call(this,'<div ref="react-'+this.id+'"></div>')}},{key:"setReactInstance",value:function(e){this.reactInstance=e}},{key:"attach",value:function(e){var r,o,a;return i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"attach",this).call(this,e),this.loadRefs(e,(r={},o="react-"+this.id,a="single",o in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a,r)),this.refs["react-"+this.id]&&(this.attachReact(this.refs["react-"+this.id],this.setReactInstance.bind(this)),this.shouldSetValue&&(this.setValue(this.dataForSetting),this.updateValue(this.dataForSetting))),Promise.resolve()}},{key:"detach",value:function(){this.refs["react-"+this.id]&&this.detachReact(this.refs["react-"+this.id]),i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"detach",this).call(this)}},{key:"attachReact",value:function(e,n){}},{key:"detachReact",value:function(e){}},{key:"setValue",value:function(e){this.reactInstance?(this.reactInstance.setState({value:e}),this.shouldSetValue=!1):(this.shouldSetValue=!0,this.dataForSetting=e)}},{key:"getValue",value:function(){return this.reactInstance?this.reactInstance.state.value:this.defaultValue}},{key:"checkValidity",value:function(e,r,o){return!!i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"checkValidity",this).call(this,e,r,o)&&this.validate(e,r,o)}},{key:"validate",value:function(e,n,r){return!0}}]),n}(r(99072).Formio.Components.components.field);n.default=a},82661:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,n){var r=[],o=!0,i=!1,a=void 0;try{for(var l,u=e[Symbol.iterator]();!(o=(l=u.next()).done)&&(r.push(l.value),!n||r.length!==n);o=!0);}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}return r}(e,n);throw TypeError("Invalid attempt to destructure non-iterable instance")},i=r(27609),a=r(2784),l=f(a),u=f(r(13980)),s=f(r(91355)),c=f(r(18149));function f(e){return e&&e.__esModule?e:{default:e}}var d=r(99072).Formio.Report,p=function e(n){var r=void 0,u=void 0,s=void 0,f=o((0,a.useState)(void 0),2),p=f[0],h=f[1],m=(0,a.useRef)(void 0);if(!d)return l.default.createElement("div",{className:"alert alert-danger",role:"alert"},"Report is not found in Formio. Please make sure that you are using the Formio Reporting module and it is correctly included in your application.");(0,a.useEffect)(function(){return function(){return p?p.destroy(!0):null}},[p]);var y=function(e){var o=n.options,i=void 0===o?{}:o,a=n.onReportReady,l=n.projectEndpoint;return l&&(i.projectEndpoint=l),u=(r=new d(s,e,i)).ready.then(function(e){h(e),a&&a(e)})},v=function(e){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];if(e.startsWith("formio.")){var a="on"+e.charAt(7).toUpperCase()+e.slice(8);n.hasOwnProperty(a)&&"function"==typeof n[a]&&n[a].apply(n,o)}},b=function(){u&&r.onAny(v)};return(0,a.useEffect)(function(){var e=n.src;e&&(y(e),b())},[n.src]),(0,a.useEffect)(function(){var e=n.report;e&&!(0,c.default)(e,m.current)&&(m.current=(0,i.cloneDeep)(e),y(e).then(function(){if(p)return p.form={components:[],report:e},p}),b())},[n.report]),(0,a.useEffect)(function(){var r=n.options,o=void 0===r?{}:r;o.events||(o.events=e.getDefaultEmitter())},[n.options]),l.default.createElement("div",{ref:function(e){return s=e}})};p.propTypes={src:u.default.string,projectEndpoint:u.default.string,report:u.default.object,options:u.default.shape({readOnly:u.default.bool,noAlerts:u.default.bool,i18n:u.default.object,template:u.default.string,language:u.default.string}),onRowClick:u.default.func,onRowSelectChange:u.default.func,onFetchDataError:u.default.func,onChangeItemsPerPage:u.default.func,onPage:u.default.func,onChange:u.default.func,onFormLoad:u.default.func,onError:u.default.func,onRender:u.default.func,onFocus:u.default.func,onBlur:u.default.func,onInitialized:u.default.func,onReportReady:u.default.func},p.getDefaultEmitter=function(){return new s.default({wildcard:!1,maxListeners:0})},n.default=p},43316:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(99072),i=m(r(72579)),a=m(r(61049)),l=m(r(29259)),u=m(r(85505
1)),s=m(r(13980)),c=m(r(2784)),f=r(26034),d=r(60369),p=r(21302),h=m(r(35454));function m(e){return e&&e.__esModule?e:{default:e}}var y=function(e){var n,r=e.columns,s=void 0===r?[]:r,d=e.getSubmissions,m=void 0===d?function(){}:d,y=e.onAction,v=void 0===y?function(){}:y,b=e.onPageSizeChanged,g=e.operations,w=void 0===g?[{action:"view",buttonType:"warning",icon:"list-alt",permissionsResolver:function(){return!0},title:"View"},{action:"edit",buttonType:"secondary",icon:"edit",permissionsResolver:function(){return!0},title:"Edit"},{action:"delete",buttonType:"danger",icon:"trash",permissionsResolver:function(){return!0}}]:g,k=e.pageSizes,O=void 0===k?f.defaultPageSizes:k,_=e.submissions,j=_.sort,P=_.limit,S=_.pagination,E=S.page,x=S.numPages,C=S.total,R=_.submissions,A=e.form,M=function(e,n){var r=(0,u.default)(n)?n:e,o="-"+r;return j===r?o:j===o?"":r},T=function(e){var n=e.icon;return c.default.createElement("span",null,c.default.createElement("i",{className:"fa fa-"+n}),"\xa0")},D=function(e){var n=e.action,r=e.buttonType,o=e.icon,i=e.title,a=e.onAction,l=e.submission;return c.default.createElement("span",{className:"btn btn-"+r+" btn-sm form-btn",onClick:(0,p.stopPropagationWrapper)(function(){return a(l,n)})},o?c.default.createElement(T,{icon:o}):null,i)},I=s.length?s:(n=[],o.Utils.eachComponent(A.components,function(e){e.input&&e.tableView&&e.key&&n.push((0,p.getComponentDefaultColumn)(e))}),n.push({key:"operations",title:"Operations"}),(0,p.setColumnsWidth)(n),n),L=(E-1)*P,V=Math.min(L+P,C);return c.default.createElement(h.default,{Cell:function(e){var n=e.row,r=e.column;if("operations"===r.key)return c.default.createElement("div",null,w.map(function(e){var r=e.action,o=e.buttonType,i=e.icon,a=e.permissionsResolver,l=e.title;return(void 0===a?function(){return!0}:a)(A,n)?c.default.createElement(D,{key:r,action:r,buttonType:void 0===o?"primary":o,icon:void 0===i?"":i,title:void 0===l?"":l,submission:n,onAction:v}):null}));var o=(0,a.default)(r.value)?r.value(n):(0,i.default)(n,r.key,"");return(0,l.default)(o)&&o.content?o.isHtml?c.default.createElement("div",{dangerouslySetInnerHTML:{__html:o.content}}):c.default.createElement("span",null,String(o.content)):c.default.createElement("span",null,String(o))},activePage:E,columns:I,emptyText:"No data found",firstItem:L+1,items:R,lastItem:V,onAction:v,onPage:m,onPageSizeChanged:void 0===b?function(){}:b,onSort:function(e){var n=e.key,r=e.sort;if((0,a.default)(r))return r();m(1,{sort:M(n,r)})},pageSize:P,pageSizes:O,pages:x,sortOrder:j,total:C})};y.propTypes={columns:d.Columns,form:s.default.object.isRequired,getSubmissions:s.default.func,onAction:s.default.func,onPageSizeChanged:s.default.func,operations:d.Operations,pageSizes:d.PageSizes,submissions:s.default.object.isRequired},n.default=y},36946:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(34675);Object.defineProperty(n,"Errors",{enumerable:!0,get:function(){return h(o).default}});var i=r(90682);Object.defineProperty(n,"Form",{enumerable:!0,get:function(){return h(i).default}});var a=r(93536);Object.defineProperty(n,"FormBuilder",{enumerable:!0,get:function(){return h(a).default}});var l=r(97165);Object.defineProperty(n,"FormEdit",{enumerable:!0,get:function(){return h(l).default}});var u=r(99686);Object.defineProperty(n,"FormGrid",{enumerable:!0,get:function(){return h(u).default}});var s=r(35454);Object.defineProperty(n,"Grid",{enumerable:!0,get:function(){return h(s).default}});var c=r(70092);Object.defineProperty(n,"ReactComponent",{enumerable:!0,get:function(){return h(c).default}});var f=r(43316);Object.defineProperty(n,"SubmissionGrid",{enumerable:!0,get:function(){return h(f).default}});var d=r(42342);Object.defineProperty(n,"Pagination",{enumerable:!0,get:function(){return h(d).default}});var p=r(82661);function h(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"Report",{enumerable:!0,get:function(){return h(p).default}})},26034:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.defaultPageSizes=void 0;var o=r(60369);n.defaultPageSizes=[10,25,50,100,o.AllItemsPerPage]},78132:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Templates=n.Utils=n.Formio=n.Components=n.WizardBuilder=n.Wizard=n.WebformBuilder=n.Webform=void 0;var o=r(36946);
1Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return o[e]}})});var i=r(26034);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return i[e]}})});var a=r(35906);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return a[e]}})});var l=r(60369);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return l[e]}})});var u=r(21302);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return u[e]}})});var s=r(99072);Object.defineProperty(n,"Components",{enumerable:!0,get:function(){return s.Components}}),Object.defineProperty(n,"Formio",{enumerable:!0,get:function(){return s.Formio}}),Object.defineProperty(n,"Utils",{enumerable:!0,get:function(){return s.Utils}}),Object.defineProperty(n,"Templates",{enumerable:!0,get:function(){return s.Templates}});var c=s.Formio.Webform,f=s.Formio.WebformBuilder,d=s.Formio.Wizard,p=s.Formio.WizardBuilder;n.Webform=c,n.WebformBuilder=f,n.Wizard=d,n.WizardBuilder=p},64595:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.logout=n.setUser=n.initAuth=void 0;var o=function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,n){var r=[],o=!0,i=!1,a=void 0;try{for(var l,u=e[Symbol.iterator]();!(o=(l=u.next()).done)&&(r.push(l.value),!n||r.length!==n);o=!0);}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}return r}(e,n);throw TypeError("Invalid attempt to destructure non-iterable instance")},i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},a=r(99072),l=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n.default=e,n}(r(32453));function u(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var s=function(e){return{type:l.USER_REQUEST_SUCCESS,user:e}},c=function(){return{type:l.USER_LOGOUT}};n.initAuth=function(){return function(e){var n=a.Formio.getProjectUrl();e({type:l.USER_REQUEST}),Promise.all([a.Formio.currentUser(),a.Formio.makeStaticRequest(n+"/access").then(function(n){var r,o=Object.values(n.forms).reduce(function(e,n){return i({},e,u({},n.name,n.submissionAccess.reduce(function(e,n){return i({},e,u({},n.type,n.roles))},{})))},{}),a=Object.values(n.forms).reduce(function(e,n){return i({},e,u({},n.name,n.access.reduce(function(e,n){return i({},e,u({},n.type,n.roles))},{})))},{});e({type:l.USER_SUBMISSION_ACCESS,submissionAccess:o}),e({type:l.USER_FORM_ACCESS,formAccess:a}),e((r=n.roles,{type:l.USER_ROLES,roles:r}))}).catch(function(){}),a.Formio.makeStaticRequest(n).then(function(n){var r;e((r=n.access.reduce(function(e,n){return i({},e,u({},n.type,n.roles))},{}),{type:l.USER_PROJECT_ACCESS,projectAccess:r}))}).catch(function(){})]).then(function(n){var r=o(n,1)[0];r?e(s(r)):e(c())}).catch(function(n){e({type:l.USER_REQUEST_FAILURE,error:n})})}},n.setUser=function(e){return function(n){a.Formio.setUser(e),n(s(e))}},n.logout=function(){return function(e){a.Formio.logout().then(function(){e(c())})}}},32453:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.USER_REQUEST="USER_REQUEST",n.USER_REQUEST_SUCCESS="USER_REQUEST_SUCCESS",n.USER_REQUEST_FAILURE="USER_REQUEST_FAILURE",n.USER_LOGOUT="USER_LOGOUT",n.USER_SUBMISSION_ACCESS="USER_SUBMISSION_ACCESS",n.USER_FORM_ACCESS="USER_FORM_ACCESS",n.USER_PROJECT_ACCESS="USER_PROJECT_ACCESS",n.USER_ROLES="USER_ROLES"},18610:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(64595);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return o[e]}})});var i=r(32453);
1Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return i[e]}})});var a=r(37219);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return a[e]}})});var l=r(71837);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return l[e]}})})},37219:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.auth=void 0;var o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},i=function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,n){var r=[],o=!0,i=!1,a=void 0;try{for(var l,u=e[Symbol.iterator]();!(o=(l=u.next()).done)&&(r.push(l.value),!n||r.length!==n);o=!0);}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}return r}(e,n);throw TypeError("Invalid attempt to destructure non-iterable instance")},a=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n.default=e,n}(r(32453));function l(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var u={init:!1,isActive:!1,user:null,authenticated:!1,submissionAccess:{},formAccess:{},projectAccess:{},roles:{},is:{},error:""};function s(e){return Object.keys(e).reduce(function(e,n){return o({},e,l({},n,"anonymous"===n))},{})}n.auth=function(e){return function(){var e,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,c=arguments[1];switch(c.type){case a.USER_REQUEST:return o({},r,{init:!0,submissionAccess:!1,isActive:!0});case a.USER_REQUEST_SUCCESS:return o({},r,{isActive:!1,user:c.user,authenticated:!0,is:(e=r.roles,n=c.user.roles,Object.entries(e).reduce(function(e,r){var a=i(r,2),u=a[0],s=a[1];return o({},e,l({},u,n.includes(s._id)))},{})),error:""});case a.USER_REQUEST_FAILURE:return o({},r,{isActive:!1,is:s(r.roles),error:c.error});case a.USER_LOGOUT:return o({},r,{user:null,isActive:!1,authenticated:!1,is:s(r.roles),error:""});case a.USER_SUBMISSION_ACCESS:return o({},r,{submissionAccess:c.submissionAccess});case a.USER_FORM_ACCESS:return o({},r,{formAccess:c.formAccess});case a.USER_PROJECT_ACCESS:return o({},r,{projectAccess:c.projectAccess});case a.USER_ROLES:return o({},r,{roles:c.roles});default:return r}}}},71837:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default={}},3545:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.deleteForm=n.saveForm=n.getForm=n.resetForm=n.clearFormError=void 0;var o=r(99072),i=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n.default=e,n}(r(2234)),a=r(15811);n.clearFormError=function(e){return{type:i.FORM_CLEAR_ERROR,name:e}};var l=function(e,n,r){return{type:i.FORM_SUCCESS,form:n,name:e,url:r}},u=function(e,n){return{type:i.FORM_FAILURE,error:n,name:e}},s=n.resetForm=function(e){return{type:i.FORM_RESET,name:e}};n.getForm=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};return function(s,c){var f=(0,a.selectForm)(e,c());if(!(f.components&&Array.isArray(f.components))||!f.components.length||f._id!==n){var d=o.Formio.getProjectUrl()+"/"+(n?"form/"+n:e),p=new o.Formio(d);return s({type:i.FORM_REQUEST,name:e,id:n,url:d}),p.loadForm().then(function(n){s(l(e,n)),r(null,n)}).catch(function(n){s(u(e,n)),r(n)})}}},n.saveForm=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};return function(a){a({type:i.FORM_SAVE,form:n,name:e});var s=n._id,c=o.Formio.getProjectUrl()+"/form"+(s?"/"+s:"");new o.Formio(c).saveForm(n).then(function(n){var i=o.Formio.getProjectUrl()+"/form/"+n._id;a(l(e,n,i)),r(null,n)}).catch(function(n){a(u(e,n)),r(n)})}},n.deleteForm=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};return function(i){var a=o.Formio.getProjectUrl()+"/form/"+n;return new o.Formio(a).deleteForm().then(function(){i(s(e)),r()}).catch(function(n){i(u(e,n)),r(n)})}}},2234:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.FORM_CLEAR_ERROR="FORM_CLEAR_ERROR",n.FORM_REQUEST="FORM_REQUEST",n.FORM_SUCCESS="FORM_SUCCESS",n.FORM_FAILURE="FORM_FAILURE",n.FORM_SAVE="FORM_SAVE",n.FORM_RESET="FORM_RESET"},31093:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(3545);
1Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return o[e]}})});var i=r(2234);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return i[e]}})});var a=r(3692);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return a[e]}})});var l=r(15811);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return l[e]}})})},3692:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e};n.form=function(e){var n={id:"",isActive:!1,lastUpdated:0,form:{},url:"",error:""};return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,a=arguments[1];if(a.name!==e.name)return r;switch(a.type){case i.FORM_CLEAR_ERROR:return o({},r,{error:""});case i.FORM_REQUEST:return o({},r,{isActive:!0,id:a.id,form:{},url:a.url,error:""});case i.FORM_SUCCESS:return o({},r,{isActive:!1,id:a.form._id,form:a.form,url:a.url||r.url,error:""});case i.FORM_FAILURE:return o({},r,{isActive:!1,isInvalid:!0,error:a.error});case i.FORM_SAVE:return o({},r,{isActive:!0});case i.FORM_RESET:return n;default:return r}}};var i=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n.default=e,n}(r(2234))},15811:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.selectForm=void 0;var o=r(20841);n.selectForm=function(e,n){return(0,o.selectRoot)(e,n).form}},28571:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.indexForms=n.resetForms=void 0;var o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},i=r(99072),a=r(20841),l=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n.default=e,n}(r(20926));n.resetForms=function(e){return{type:l.FORMS_RESET,name:e}},n.indexForms=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};return function(s,c){s({type:l.FORMS_REQUEST,name:e,page:n,params:r});var f=(0,a.selectRoot)(e,c()),d=f.limit,p=f.query,h=f.select,m=f.sort,y=new i.Formio(i.Formio.getProjectUrl()+"/form"),v=o({},p,r);return 10!==d?v.limit=d:delete v.limit,1!==n?v.skip=(n-1)*d:delete v.skip,h?v.select=h:delete v.select,m?v.sort=m:delete v.sort,y.loadForms({params:v}).then(function(n){s({type:l.FORMS_SUCCESS,name:e,forms:n}),u(null,n)}).catch(function(n){s({type:l.FORMS_FAILURE,name:e,error:n}),u(n)})}}},20926:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.FORMS_RESET="FORMS_RESET",n.FORMS_REQUEST="FORMS_REQUEST",n.FORMS_SUCCESS="FORMS_SUCCESS",n.FORMS_FAILURE="FORMS_FAILURE"},93375:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(28571);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return o[e]}})});var i=r(20926);
1Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return i[e]}})});var a=r(12995);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return a[e]}})});var l=r(92897);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return l[e]}})})},12995:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e};n.forms=function(e){var n=e.name,r=e.limit,o=e.query,u=e.select,s=e.sort,c={error:"",forms:[],isActive:!1,limit:void 0===r?10:r,pagination:{numPages:0,page:1,total:0},query:void 0===o?{}:o,select:void 0===u?"":u,sort:void 0===s?"":s};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,r=arguments[1];if(r.name!==n)return e;switch(r.type){case l.FORMS_RESET:return c;case l.FORMS_REQUEST:return i({},e,(0,a.default)(r.params,["limit","query","select","sort"]),{error:"",forms:[],isActive:!0,pagination:i({},e.pagination,{page:r.page})});case l.FORMS_SUCCESS:var o=r.forms.serverCount;return i({},e,{forms:r.forms,isActive:!1,pagination:i({},e.pagination,{numPages:Math.ceil(o/e.limit),total:o})});case l.FORMS_FAILURE:return i({},e,{error:r.error,isActive:!1});default:return e}}};var a=(o=r(13888))&&o.__esModule?o:{default:o},l=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n.default=e,n}(r(20926))},92897:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.selectForms=void 0;var o=r(20841);n.selectForms=function(e,n){return(0,o.selectRoot)(e,n).forms}},35906:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(18610);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return o[e]}})});var i=r(31093);
1Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return i[e]}})});var a=r(93375);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return a[e]}})});var l=r(20841);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return l[e]}})});var u=r(10814);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return u[e]}})});var s=r(758);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return s[e]}})})},20841:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(41536);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return o[e]}})})},41536:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=n.selectRoot=function(e,n){return n[e]};n.selectError=function(e,n){return r(e,n).error},n.selectIsActive=function(e,n){return r(e,n).isActive}},17087:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.deleteSubmission=n.saveSubmission=n.getSubmission=n.resetSubmission=n.clearSubmissionError=void 0;var o=r(99072),i=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n.default=e,n}(r(70418));n.clearSubmissionError=function(e){return{type:i.SUBMISSION_CLEAR_ERROR,name:e}};var a=function(e,n,r){return{type:i.SUBMISSION_SUCCESS,name:e,submission:n,url:r}},l=function(e,n){return{type:i.SUBMISSION_FAILURE,name:e,error:n}},u=n.resetSubmission=function(e){return{type:i.SUBMISSION_RESET,name:e}};n.getSubmission=function(e,n,r){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};return function(s,c){if(c().id!==n){var f=o.Formio.getProjectUrl()+"/"+(r?"form/"+r:e)+"/submission/"+n,d=new o.Formio(f);s({type:i.SUBMISSION_REQUEST,name:e,id:n,formId:r,url:f}),d.loadSubmission().then(function(n){s(a(e,n)),u(null,n)}).catch(function(n){s(l(e,n)),u(n)})}}},n.saveSubmission=function(e,n,r){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};return function(s){s({type:i.SUBMISSION_SAVE,name:e});var c=n._id;new o.Formio(o.Formio.getProjectUrl()+"/"+(r?"form/"+r:e)+"/submission"+(c?"/"+c:"")).saveSubmission(n).then(function(n){var i=o.Formio.getProjectUrl()+"/"+(r?"form/"+r:e)+"/submission/"+n._id;s(a(e,n,i)),u(null,n)}).catch(function(n){s(l(e,n)),u(n)})}},n.deleteSubmission=function(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};return function(a,s){return new o.Formio(o.Formio.getProjectUrl()+"/"+(r?"form/"+r:e)+"/submission/"+n).deleteSubmission().then(function(){a(u(e)),i(null,!0)}).catch(function(n){a(l(e,n)),i(n)})}}},70418:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SUBMISSION_CLEAR_ERROR="SUBMISSION_CLEAR_ERROR",n.SUBMISSION_REQUEST="SUBMISSION_REQUEST",n.SUBMISSION_SAVE="SUBMISSION_SAVE",n.SUBMISSION_SUCCESS="SUBMISSION_SUCCESS",n.SUBMISSION_FAILURE="SUBMISSION_FAILURE",n.SUBMISSION_RESET="SUBMISSION_RESET"},10814:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(17087);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return o[e]}})});var i=r(70418);
1Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return i[e]}})});var a=r(60283);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return a[e]}})});var l=r(44570);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return l[e]}})})},60283:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e};n.submission=function(e){var n={formId:"",id:"",isActive:!1,lastUpdated:0,submission:{},url:"",error:""};return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,a=arguments[1];if(a.name!==e.name)return r;switch(a.type){case i.SUBMISSION_CLEAR_ERROR:return o({},r,{error:""});case i.SUBMISSION_REQUEST:return o({},r,{formId:a.formId,id:a.id,url:a.url,submission:{},isActive:!0});case i.SUBMISSION_SAVE:return o({},r,{formId:a.formId,id:a.id,url:a.url||r.url,submission:{},isActive:!0});case i.SUBMISSION_SUCCESS:return o({},r,{id:a.submission._id,submission:a.submission,isActive:!1,error:""});case i.SUBMISSION_FAILURE:return o({},r,{isActive:!1,isInvalid:!0,error:a.error});case i.SUBMISSION_RESET:return n;default:return r}}};var i=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n.default=e,n}(r(70418))},44570:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.selectSubmission=void 0;var o=r(20841);n.selectSubmission=function(e,n){return(0,o.selectRoot)(e,n).submission}},13770:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getSubmissions=n.resetSubmissions=void 0;var o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},i=r(99072),a=r(20841),l=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n.default=e,n}(r(59569));n.resetSubmissions=function(e){return{type:l.SUBMISSIONS_RESET,name:e}},n.getSubmissions=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){};return function(c,f){c({type:l.SUBMISSIONS_REQUEST,name:e,page:n,params:r,formId:u});var d=(0,a.selectRoot)(e,f()),p=d.limit,h=d.query,m=d.select,y=d.sort,v=new i.Formio(i.Formio.getProjectUrl()+"/"+(u?"form/"+u:e)+"/submission"),b=o({},h,r);return 10!==p?b.limit=p:delete b.limit,1!==n?b.skip=(n-1)*p:delete b.skip,m?b.select=m:delete b.select,y?b.sort=y:delete b.sort,v.loadSubmissions({params:b}).then(function(n){c({type:l.SUBMISSIONS_SUCCESS,name:e,submissions:n}),s(null,n)}).catch(function(n){c({type:l.SUBMISSIONS_FAILURE,name:e,error:n}),s(n)})}}},59569:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SUBMISSIONS_RESET="SUBMISSIONS_RESET",n.SUBMISSIONS_REQUEST="SUBMISSIONS_REQUEST",n.SUBMISSIONS_SUCCESS="SUBMISSIONS_SUCCESS",n.SUBMISSIONS_FAILURE="SUBMISSIONS_FAILURE"},758:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(13770);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return o[e]}})});var i=r(59569);
1Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return i[e]}})});var a=r(41303);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return a[e]}})});var l=r(46664);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return l[e]}})})},41303:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e};n.submissions=function(e){var n=e.name,r=e.limit,o=e.query,u=e.select,s=e.sort,c={error:"",formId:"",isActive:!1,limit:void 0===r?10:r,pagination:{numPages:0,page:1,total:0},query:void 0===o?{}:o,select:void 0===u?"":u,sort:void 0===s?"":s,submissions:[]};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,r=arguments[1];if(r.name!==n)return e;switch(r.type){case l.SUBMISSIONS_RESET:return c;case l.SUBMISSIONS_REQUEST:return i({},e,(0,a.default)(r.params,["limit","query","select","sort"]),{error:"",formId:r.formId,isActive:!0,pagination:i({},e.pagination,{page:r.page}),submissions:[]});case l.SUBMISSIONS_SUCCESS:var o=r.submissions.serverCount;return i({},e,{isActive:!1,pagination:i({},e.pagination,{numPages:Math.ceil(o/e.limit),total:o}),submissions:r.submissions});case l.SUBMISSIONS_FAILURE:return i({},e,{error:r.error,isActive:!1});default:return e}}};var a=(o=r(13888))&&o.__esModule?o:{default:o},l=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n.default=e,n}(r(59569))},46664:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.selectSubmissions=void 0;var o=r(20841);n.selectSubmissions=function(e,n){return(0,o.selectRoot)(e,n).submissions}},60369:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PageSizes=n.PageSize=n.Operations=n.Operation=n.Columns=n.Column=n.AllItemsPerPage=void 0;var o,i=(o=r(13980))&&o.__esModule?o:{default:o},a=n.AllItemsPerPage="all",l=n.Column=i.default.shape({key:i.default.string.isRequired,sort:i.default.oneOfType([i.default.bool,i.default.string,i.default.func]),title:i.default.string,value:i.default.func,width:i.default.number});n.Columns=i.default.arrayOf(l);var u=n.Operation=i.default.shape({action:i.default.string.isRequired,buttonType:i.default.string,icon:i.default.string,permissionsResolver:i.default.func,title:i.default.string});n.Operations=i.default.arrayOf(u);var s=n.PageSize=i.default.oneOfType([i.default.number,i.default.shape({label:i.default.string,value:i.default.number}),i.default.oneOf([a])]);n.PageSizes=i.default.arrayOf(s)},21302:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.stopPropagationWrapper=n.getComponentDefaultColumn=void 0,n.setColumnsWidth=function(e){if(e.length>6)e.forEach(function(e){e.width=2});else{var n=e.length,r=Math.floor(12/n),o=12-r*n;e.forEach(function(e,n){e.width=n<o?r+1:r})}};var o,i=r(99072),a=(o=r(72579))&&o.__esModule?o:{default:o};n.getComponentDefaultColumn=function(e){return{component:i.Components.create(e,null,null,!0),key:"data."+e.key,sort:!0,title:e.label||e.title||e.key,value:function(e){var n=(0,a.default)(e,this.key,null);if(null===n)return"";var r=this.component.asString(n);return n!==r?{content:r,isHtml:!0}:n}}},n.stopPropagationWrapper=function(e){return function(n){n.stopPropagation(),e()}}},75530:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(41036);n.default={framework:"semantic",templates:o.default}},41036:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(49831);n.default={semantic:o.default}},69353:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+="<div\n ",e.attrs)r+="\n ","class"===o?r+="\
1n "+(null==(n=o)?"":n)+'="ui message '+(null==(n=e.attrs[o])?"":n)+'"\n ':r+="\n "+(null==(n=o)?"":n)+'="'+(null==(n=e.attrs[o])?"":n)+'"\n ',r+="\n ";return r+("\n>"+(null==(n=e.message)?"":n))+"</div>\n"}},12720:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(69353);n.default={form:o.default}},26810:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="formio builder ui grid formbuilder">\n <div class="four wide column formcomponents">\n '+(null==(n=e.sidebar)?"":n)+'\n </div>\n <div class="twelve wide column formarea" ref="form">\n '+(null==(n=e.form)?"":n)+"\n </div>\n</div>\n"}},18083:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(26810);n.default={form:o.default}},55353:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="builder-component" ref="dragComponent">\n <div class="component-btn-group" data-noattach="true">\n <div class="ui button mini icon primary component-settings-button-edit", ref="editComponent">\n <i class="'+(null==(n=e.iconClass("cog"))?"":n)+'"></i>\n </div>\n <div class="ui button mini icon component-settings-button-copy" ref="copyComponent">\n <i class="'+(null==(n=e.iconClass("copy"))?"":n)+'"></i>\n </div>\n <div class="ui button mini icon component-settings-button-paste" ref="pasteComponent">\n <i class="'+(null==(n=e.iconClass("save"))?"":n)+'"></i>\n </div>\n <div class="ui button mini icon component-settings-button-edit-json" ref="editJson">\n <i class="'+(null==(n=e.iconClass("wrench"))?"":n)+'"></i>\n </div>\n <div class="ui button mini icon component-settings-button-move" ref="moveComponent">\n <i class="'+(null==(n=e.iconClass("move"))?"":n)+'"></i>\n </div>\n <div class="ui button mini icon secondary component-settings-button-remove" ref="removeComponent">\n <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'"></i>\n </div>\n </div>\n '+(null==(n=e.html)?"":n)+"\n</div>\n"}},85465:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(55353);n.default={form:o.default}},50628:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="builder-components drag-container '+(null==(n=e.type)?"":n)+'" ref="'+(null==(n=e.key)?"":n)+'-container">\n '+(null==(n=e.html)?"":n)+"\n</div>\n"}},14077:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(50628);n.default={form:o.default}},69979:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="ui grid">\n <div class="eight wide column">\n <h3 class="lead">'+(null==(n=e.t(e.componentInfo.title))?"":n)+" "+(null==(n=e.t("Component"))?"":n)+'</h3>\n </div>\n <div class="eight wide column">\n <div class="right floated" style="margin-right: 20px; margin-top: 10px">\n <a href="'+(null==(n=e.componentInfo.documentation)?"":n)+'" target="_blank">\n <i class="'+(null==(n=e.iconClass("new-window"))?"":n)+'"> '+(null==(n=e.t("Help"))?"":n)+'</i>\n </a>\n </div>\n </div>\n</div>\n<div class="ui grid">\n <div class="',e.preview?r+="eight":r+="sixteen",r+=' wide column">\n <div ref="editForm">\n '+(null==(n=e.editForm)?"":n)+"\n </div>\n ",e.preview||(r+='\n <div style="margin-top: 10px;">\n <button class="ui button primary" style="margin-right: 10px;" ref="saveButton">'+(null==(n=e.t("Save"))?"":n)+'</button>\n <button class="ui button default" style="margin-right: 10px;" ref="cancelButton">'+(null==(n=e.t("Cancel"))?"":n)+'</button>\n <button class="ui button negative" ref="removeButton">'+(null==(n=e.t("Remove"))?"":n)+"</button>\n </div>\n "),r+="\n </div>\n ",e.preview&&(r+='\n <div class="eight wide column">\n <div class="ui top attached block header">\n '+(null==(n=e.t("Preview"))?"":n)+'\n </div>\n <div class="ui bottom attached segment" ref="preview">\n '+(null==(n=e.preview)?"":n)+"\n </div>\n ",e.componentInfo.help&&(r+='\n <div class="ui secondary segment formio-settings-help">\n '+(null==(n=e.componentInfo.help)?"":n)+"\n </div>\n "),r+='\n <div style="margin-top: 10px;">\n <button class="ui button primary" style="margin-right: 10px;" ref="saveButton">'+(null==(n=e.t("Save"))?"":n)+'</button>\n <button class="ui button default" style="margin-right: 10px;" ref="cancelButton">'+(null==(n=e.t("Cancel"))?"":n)+'</button>\n <button class="ui button negative" ref="removeButton">'+(null==(n=e.t("Remove"))?"":n)+"</button>\n </div>\n </div>\n "),r+="\n</div>\n"}},28328:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(69979);n.default={form:o.default}},9239:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div\n class="ui info message no-drag"\n style="text-align:center; margin-bottom: 5px;"\n role="alert"\n data-noattach="true"\n data-position="'+(null==(n=e.position)?"":n)+'"\n>\n Drag and Drop a form component\n</div>\n'}},90730:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(9239);n.default={form:o.default}},69574:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div id="builder-sidebar-'+(null==(n=e.id)?"":n)+'" class="ui segments" ref="sidebar">
1\n ',e.groups.forEach(function(e){r+="\n "+(null==(n=e)?"":n)+"\n "}),r+="\n</div>\n"}},58784:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(69574);n.default={form:o.default}},34932:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="ui segment secondary form-builder-panel" style="padding: 0" ref="group-panel-'+(null==(n=e.groupKey)?"":n)+'">\n <div class="form-builder-group-header">\n <h5 class="panel-title">\n <button\n class="ui button basic fluid builder-group-button"\n type="button"\n data-toggle="collapse"\n data-target="#group-'+(null==(n=e.groupKey)?"":n)+'"\n data-parent="'+(null==(n=e.groupId)?"":n)+'"\n ref="sidebar-anchor"\n >\n '+(null==(n=e.t(e.group.title))?"":n)+'\n </button>\n </h5>\n </div>\n</div>\n<div class="ui segment" style="padding: 0">\n <div\n class="panel-collapse collapse '+(n=e.group.default?" in":"")+'"\n data-parent="#'+(null==(n=e.groupId)?"":n)+'"\n data-default="'+(null==(n=e.group.default)?"":n)+'"\n id="group-'+(null==(n=e.groupKey)?"":n)+'"\n ref="sidebar-group"\n >\n <div id="group-container-'+(null==(n=e.groupKey)?"":n)+'" class="card-body panel-body no-drop" ref="sidebar-container">\n ',e.group.componentOrder.forEach(function(o){r+='\n <span\n data-group="'+(null==(n=e.groupKey)?"":n)+'"\n data-key="'+(null==(n=e.group.components[o].key)?"":n)+'"\n data-type="'+(null==(n=e.group.components[o].schema.type)?"":n)+'"\n class="ui button mini primary fluid formcomponent drag-copy"\n >\n ',e.group.components[o].icon&&(r+='\n <i class="'+(null==(n=e.iconClass(e.group.components[o].icon))?"":n)+'" style="margin-right: 5px;"></i>\n '),r+="\n "+(null==(n=e.t(e.group.components[o].title))?"":n)+"\n </span>\n "}),r+="\n "+(null==(n=e.subgroups.join(""))?"":n)+"\n </div>\n </div>\n</div>\n"}},97325:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(34932);n.default={form:o.default}},9347:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="formio builder ui grid formbuilder">\n <div class="four wide column formcomponents">\n '+(null==(n=e.sidebar)?"":n)+'\n </div>\n <div class="twelve wide column formarea">\n <div class="ui breadcrumb" style="margin-bottom: 0.5em">\n ',e.pages.forEach(function(o,i){r+='\n <div title="'+(null==(n=o.title)?"":n)+'" class="',i===e.self.page?r+=" active section ":r+=" section ",r+=' wizard-page-label" ref="gotoPage">'+(null==(n=o.title)?"":n)+'</div>\n <div class="divider">/</div>\n '}),r+='\n <div title="'+(null==(n=e.t("Create Page"))?"":n)+'" class="section wizard-page-label" ref="addPage"><i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t("Page"))?"":n)+'</div>\n </div>\n <div ref="form">\n '+(null==(n=e.form)?"":n)+"\n </div>\n </div>\n</div>\n"}},1958:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(9347);n.default={form:o.default}},75585:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+="<"+(null==(n=e.input.type)?"":n)+'\n ref="button"\n class="ui button '+(null==(n=e.transform("theme",e.component.theme))?"":n)+" "+(null==(n=e.component.customClass)?"":n)+'"\n ',e.input.attr)r+="\n "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n ';return r+="\n>\n",e.component.leftIcon&&(r+='<i class="'+(null==(n=e.component.leftIcon)?"":n)+'"></i> '),r+="\n"+(null==(n=e.input.content)?"":n)+"\n",e.component.tooltip&&(r+='\n <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n'),r+="\n",e.component.rightIcon&&(r+=' <i class="'+(null==(n=e.component.rightIcon)?"":n)+'"></i>'),r+="\n</"+(null==(n=e.input.type)?"":n)+'>\n<div ref="buttonMessageContainer">\n <span class="help-block" ref="buttonMessage"></span>\n</div>\n'}},80705:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return"\n"}},15119:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(75585),i=r(80705);n.default={form:o.default,html:i.default}},9101:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+='<div class="ui checkbox">\n <'+(null==(n=e.input.type)?"":n)+'\n ref="input"\n id="'+(null==(n=e.id)?"":n)+'"\n ',e.input.attr)r+="\n "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n ';return r+="\n ",e.checked&&(r+="checked=true"),r+="\n >\n </"+(null==(n=e.input.type)?"":n)+'>\n <label class="'+(null==(n=e.input.labelClass)?"":n)+'" for="'+(null==(n=e.id)?"":n)+'">\n '+(null==(n=e.input.content)?"":n)+"\n ",e.self.labelIsHidden()||(r+="<span>"+(null==(n=e.input.label)?"":n)+"</span>"),r+="\n </label>\n ",e.component.tooltip&&(r+='\n <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n '),r+="\n</div>\n"}},10850:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<label class="'+(null==(n=e.input.labelClass)?"":n)+'">\n '+(null==(n=e.input.content)?"":n)+"\n ",e.self.labelIsHidden()||(r+="<span>"+(null==(n=e.input.label)?"":n)+"</span>"),r+='\n</label>\n<div ref="value">',e.checked?r+="True":r+="False",r+="</div>\n"}},53658:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(9101),i=r(10850);n.default={form:o.default,html:i.default}},75115:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="ui grid" style="width: 100%">\n ',e.component.columns.forEach(function(o,i){r+='\n <div class="'+(null==(n=e.transform("columns",o.width))?"":n)+' wide column" ref="'+(null==(n=e.columnKey)?"":n)+'">\n '+(null==(n=e.columnComponents[i])?"":n)+"\n </div>\n "}),r+="\n</div>\n"}},44537:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(75115);n.default={form:o.default}},10793:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div id="'+(null==(n=e.id)?"":n)+'" class="field '+(null==(n=e.classes)?"":n)+'"',e.styles&&(r+=' style="'+(null==(n=e.styles)?"":n)+'"'),r+=' ref="component">\n ',e.visible&&(r+="\n "+(null==(n=e.children)?"":n)+'\n <div ref="messageContainer"></div>\n '),r+="\n</div>\n"}},74176:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(10793);n.default={form:o.default}},25255:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default={"has-error":"error","is-invalid":"error","formio-tab-panel-active":"active","formio-tab-link-active":"active","formio-tab-link-container-active":"active"}}
1,1841:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="ui table datagrid-table\n '+(n=e.component.striped?"striped":"")+"\n "+(n=e.component.bordered?"celled":"")+"\n "+(n=e.component.hover?"selectable":"")+"\n "+(n=e.component.condensed?"compact":"padded")+'\n " ',e.component.layoutFixed&&(r+='style="table-layout: fixed;"'),r+=">\n ",e.hasHeader&&(r+="\n <thead>\n <tr>\n ",e.component.reorder&&(r+="<th></th>"),r+="\n ",e.columns.forEach(function(o){r+='\n <th class="'+(n=o.validate&&o.validate.required?"field-required":"")+'">\n '+(null==(n=o.hideLabel?"":e.t(o.label||o.title))?"":n)+"\n ",o.tooltip&&(r+=' <i ref="tooltip" data-title="'+(null==(n=o.tooltip)?"":n)+'" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>'),r+="\n </th>\n "}),r+="\n ",e.hasExtraColumn&&(r+="\n <th>\n ",e.hasAddButton&&e.hasTopSubmit&&(r+='\n <button class="ui button primary" ref="'+(null==(n=e.datagridKey)?"":n)+'-addRow">\n <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.component.addAnother||"Add Another"))?"":n)+"\n </button>\n "),r+="\n </th>\n "),r+="\n </tr>\n </thead>\n "),r+='\n <tbody ref="'+(null==(n=e.datagridKey)?"":n)+'-tbody">\n ',e.rows.forEach(function(o,i){r+="\n ",e.hasGroups&&e.groups[i]&&(r+='\n <tr ref="'+(null==(n=e.datagridKey)?"":n)+'-group-header" class="datagrid-group-header'+(n=e.hasToggle?" clickable":"")+'">\n <td\n ref="'+(null==(n=e.datagridKey)?"":n)+'-group-label"\n colspan="'+(null==(n=e.numColumns)?"":n)+'"\n class="datagrid-group-label">'+(null==(n=e.groups[i].label)?"":n)+"</td>\n </tr>\n "),r+='\n <tr ref="'+(null==(n=e.datagridKey)?"":n)+'-row">\n ',e.component.reorder&&(r+='\n <td>\n <button type="button" class="formio-drag-button ui icon button"><i aria-hidden="true" class="bars icon"></i></button>\n </td>\n '),r+="\n ",e.columns.forEach(function(i){r+='\n <td ref="'+(null==(n=e.datagridKey)?"":n)+'">\n '+(null==(n=o[i.key])?"":n)+"\n </td>\n "}),r+="\n ",e.hasExtraColumn&&(r+="\n ",e.hasRemoveButtons&&(r+='\n <td>\n <button type="button" class="btn-xss ui icon button secondary formio-'+(null==(n=e.component.type)?"":n)+'-remove" ref="'+(null==(n=e.datagridKey)?"":n)+'-removeRow">\n <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'"></i>\n </button>\n </td>\n '),r+="\n ",e.canAddColumn&&(r+='\n <td ref="'+(null==(n=e.key)?"":n)+'-container">\n '+(null==(n=e.placeholder)?"":n)+"\n </td>\n "),r+="\n "),r+="\n </tr>\n "}),r+="\n </tbody>\n ",e.hasAddButton&&e.hasBottomSubmit&&(r+='\n <tfoot>\n <tr>\n <td colspan="'+(null==(n=e.numColumns+1)?"":n)+'">\n <button class="ui button primary" ref="'+(null==(n=e.datagridKey)?"":n)+'-addRow">\n <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.component.addAnother||"Add Another"))?"":n)+"\n </button>\n </td>\n </tr>\n </tfoot>\n "),r+="\n</table>\n"}},19801:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="ui table datagrid-table\n '+(n=e.component.striped?"striped":"")+"\n "+(n=e.component.bordered?"celled":"")+"\n "+(n=e.component.hover?"selectable":"")+"\n "+(n=e.component.condensed?"compact":"padded")+'\n ">\n ',e.hasHeader&&(r+="\n <thead>\n <tr>\n ",e.columns.forEach(function(o){r+='\n <th class="'+(n=o.validate&&o.validate.required?"field-required":"")+'">\n '+(null==(n=o.hideLabel?"":e.t(o.label||o.title))?"":n)+"\n ",o.tooltip&&(r+=' <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>'),r+="\n </th>\n "}),r+="\n </tr>\n </thead>\n "),r+="\n <tbody>\n ",e.rows.forEach(function(o){r+="\n <tr>\n ",e.columns.forEach(function(i){r+='\n <td ref="'+(null==(n=e.datagridKey)?"":n)+'">\n '+(null==(n=o[i.key])?"":n)+"\n </td>\n "}),r+="\n </tr>\n "}),r+="\n </tbody>\n</table>\n"}},81148:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(1841),i=r(19801);n.default={form:o.default,html:i.default}},22384:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="ui grid">
1\n ',e.dayFirst&&e.showDay&&(r+='\n <div class="four wide column">\n <label for="'+(null==(n=e.component.key)?"":n)+'-day" class="">'+(null==(n=e.t("Day"))?"":n)+"</label>\n "+(null==(n=e.day)?"":n)+"\n </div>\n "),r+="\n ",e.showMonth&&(r+='\n <div class="five wide column">\n <label for="'+(null==(n=e.component.key)?"":n)+'-month" class="">'+(null==(n=e.t("Month"))?"":n)+"</label>\n "+(null==(n=e.month)?"":n)+"\n </div>\n "),r+="\n ",!e.dayFirst&&e.showDay&&(r+='\n <div class="four wide column">\n <label for="'+(null==(n=e.component.key)?"":n)+'-day" class="">'+(null==(n=e.t("Day"))?"":n)+"</label>\n "+(null==(n=e.day)?"":n)+"\n </div>\n "),r+="\n ",e.showYear&&(r+='\n <div class="seven wide column">\n <label for="'+(null==(n=e.component.key)?"":n)+'-year" class="">'+(null==(n=e.t("Year"))?"":n)+"</label>\n "+(null==(n=e.year)?"":n)+"\n </div>\n "),r+='\n</div>\n<input name="data[day]" type="hidden" class="form-control" lang="en" value="" ref="input">\n'}},75736:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(22384);n.default={form:o.default}},22493:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="editgrid-listgroup ui celled list">\n ',e.header&&(r+='\n <div class="item list-group-header">\n '+(null==(n=e.header)?"":n)+"\n </div>\n "),r+="\n ",e.rows.forEach(function(o,i){r+='\n <div class="item" ref="'+(null==(n=e.ref.row)?"":n)+'">\n '+(null==(n=o)?"":n)+"\n ",e.openRows[i]&&!e.readOnly&&(r+='\n <div class="editgrid-actions">\n <button class="ui button primary" ref="'+(null==(n=e.ref.saveRow)?"":n)+'">'+(null==(n=e.t(e.component.saveRow||"Save"))?"":n)+"</button>\n ",e.component.removeRow&&(r+='\n <button class="ui button secondary" ref="'+(null==(n=e.ref.cancelRow)?"":n)+'">'+(null==(n=e.t(e.component.removeRow||"Cancel"))?"":n)+"</button>\n "),r+="\n </div>\n "),r+='\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n '+(null==(n=e.errors[i])?"":n)+"\n </div>\n </div>\n </div>\n "}),r+="\n ",e.footer&&(r+='\n <div class="item list-group-footer">\n '+(null==(n=e.footer)?"":n)+"\n </div>\n "),r+="\n</div>\n",!e.readOnly&&e.hasAddButton&&(r+='\n<button class="ui button primary" ref="'+(null==(n=e.ref.addRow)?"":n)+'">\n <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.component.addAnother||"Add Another"))?"":n)+"\n</button>\n"),r+="\n"}},15963:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="editgrid-listgroup ui celled list">\n ',e.header&&(r+='\n <div class="item list-group-header">\n '+(null==(n=e.header)?"":n)+"\n </div>\n "),r+="\n ",e.rows.forEach(function(o,i){r+='\n <div class="item" ref="'+(null==(n=e.ref.row)?"":n)+'">\n '+(null==(n=o)?"":n)+"\n ",e.openRows[i]&&!e.readOnly&&(r+='\n <div class="editgrid-actions">\n <button class="ui button primary" ref="'+(null==(n=e.ref.saveRow)?"":n)+'">'+(null==(n=e.t(e.component.saveRow||"Save"))?"":n)+"</button>\n ",e.component.removeRow&&(r+='\n <button class="ui button secondary" ref="'+(null==(n=e.ref.cancelRow)?"":n)+'">'+(null==(n=e.t(e.component.removeRow||"Cancel"))?"":n)+"</button>\n "),r+="\n </div>\n "),r+='\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n '+(null==(n=e.errors[i])?"":n)+"\n </div>\n </div>\n </div>\n "}),r+="\n ",e.footer&&(r+='\n <div class="item list-group-footer">\n '+(null==(n=e.footer)?"":n)+"\n </div>\n "),r+="\n</div>\n"}},52905:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(22493),i=r(15963);n.default={form:o.default,html:i.default}},33391:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+="<p>"+(null==(n=e.t("error"))?"":n)+"</p>\n<ul>
1\n ",e.errors.forEach(function(o){r+='\n <li\n data-component-key = "'+(null==(n=o.keyOrPath)?"":n)+'"\n aria-label = "'+(null==(n=o.message)?"":n)+". "+(null==(n=e.t("errorsListNavigationMessage"))?"":n)+'"\n ref = "errorRef"\n tabIndex = "0",\n style = "cursor:pointer;"\n ><span>'+(null==(n=o.message)?"":n)+"</span></li>\n "}),r+="\n</ul>\n\n"}},84117:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(33391);n.default={form:o.default}},9744:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="field-wrapper\n '+(n=e.isRightPosition?"field-wrapper--reverse":"")+'">\n ',e.label.hidden||(r+='\n <div class="field-label\n '+(n=e.isRightAlign?"field-label--right":"")+'"\n style="'+(null==(n=e.labelStyles)?"":n)+'">\n '+(null==(n=e.labelMarkup)?"":n)+"\n </div>\n "),r+="\n\n ",e.label.hidden&&e.label.className&&e.component.validate.required&&(r+='\n <div class="field-label\n '+(n=e.isRightAlign?"field-label--right":"")+'"\n style="'+(null==(n=e.labelStyles)?"":n)+'">\n <label class="'+(null==(n=e.label.className)?"":n)+'"></label>\n </div>\n '),r+='\n\n <div class="filed-content" style="'+(null==(n=e.contentStyles)?"":n)+'">\n '+(null==(n=e.element)?"":n)+"\n </div>\n</div>\n\n",e.component.description&&(r+='\n <div class="form-text text-muted">'+(null==(n=e.t(e.component.description))?"":n)+"</div>\n"),r+="\n"}},26015:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.label.hidden||"bottom"===e.label.labelPosition||(r+="\n "+(null==(n=e.labelMarkup)?"":n)+"\n"),r+="\n\n",e.label.hidden&&e.label.className&&e.component.validate.required&&(r+='\n <label class="'+(null==(n=e.label.className)?"":n)+'"></label>\n'),r+="\n\n"+(null==(n=e.element)?"":n)+"\n",e.label.hidden||"bottom"!==e.label.labelPosition||(r+="\n "+(null==(n=e.labelMarkup)?"":n)+"\n"),r+="\n",e.component.description&&(r+='\n <div class="help-block">'+(null==(n=e.t(e.component.description))?"":n)+"</div>\n"),r+="\n"}},5597:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(26015),i=r(9744);n.default={form:o.default,align:i.default}},43762:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<fieldset>\n <legend ref="header" class="'+(n=e.component.collapsible?"formio-clickable":"")+'">\n '+(null==(n=e.t(e.component.legend))?"":n)+"\n ",e.component.tooltip&&(r+='\n <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+'" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n '),r+="\n </legend> ",e.collapsed||(r+='\n <div class="card-body" ref="'+(null==(n=e.nestedKey)?"":n)+'">\n '+(null==(n=e.children)?"":n)+"\n </div>\n "),r+="\n</fieldset>\n"}},79276:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(43762);n.default={form:o.default}},96182:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.self.imageUpload?(r+="\n <div>\n ",e.files.forEach(function(o){r+='\n <div>\n <span>\n <img ref="fileImage" src="" alt="'+(null==(n=o.originalName||o.name)?"":n)+'" style="width:'+(null==(n=e.component.imageSize)?"":n)+'px">\n ',e.disabled||(r+='\n <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="removeLink"></i>\n '),r+="\n </span>\n </div>\n "}),r+="\n </div>\n"):(r+='\n <div class="ui celled list">\n <div class="item">\n <div class="ui grid">\n ',e.disabled||(r+='\n <div class="one wide column"></div>\n '),r+='\n <div class="',e.self.hasTypes?r+="nine":r+="twelve",r+=' wide column"><strong>'+(null==(n=e.t("File Name"))?"":n)+'</strong></div>\n <div class="three wide column"><strong>'+(null==(n=e.t("Size"))?"":n)+"</strong></div>\n ",e.self.hasTypes&&(r+='\n <div class="three wide column"><strong>'+(null==(n=e.t("Type"))?"":n)+"</strong></div>\n "),r+="\n </div>\n </div>
1\n ",e.files.forEach(function(o){r+='\n <li class="list-group-item">\n <div class="ui grid">\n ',e.disabled||(r+='\n <div class="one wide column"><i class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="removeLink"></i></div>\n '),r+='\n <div class="',e.self.hasTypes?r+="nine":r+="twelve",r+=' wide column">\n ',e.component.uploadOnly?r+="\n "+(null==(n=o.originalName||o.name)?"":n)+"\n ":r+='\n <a href="'+(null==(n=o.url||"#")?"":n)+'" target="_blank" ref="fileLink">'+(null==(n=o.originalName||o.name)?"":n)+"</a>\n ",r+='\n </div>\n <div class="three wide column">'+(null==(n=e.fileSize(o.size))?"":n)+"</div>\n ",e.self.hasTypes&&!e.disabled&&(r+='\n <div class="three wide column">\n <select class="file-type" ref="fileType">\n ',e.component.fileTypes.map(function(e){r+='\n <option class="test" value="'+(null==(n=e.value)?"":n)+'" ',e.label===o.fileType&&(r+='selected="selected"'),r+=">"+(null==(n=e.label)?"":n)+"</option>\n "}),r+="\n </select>\n </div>\n "),r+="\n ",e.self.hasTypes&&e.disabled&&(r+='\n <div class="three wide column">'+(null==(n=o.fileType)?"":n)+"</div>\n "),r+="\n </div>\n </li>\n "}),r+="\n </div>\n"),r+="\n",e.disabled||!e.component.multiple&&e.files.length||(r+="\n ",e.self.useWebViewCamera?r+='\n <div class="fileSelector">\n <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(n=e.t("Gallery"))?"":n)+'</button>\n <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(n=e.t("Camera"))?"":n)+"</button>\n </div>\n ":e.self.cameraMode?r+='\n <div>\n <video class="video" autoplay="true" ref="videoPlayer"></video>\n </div>\n <button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> '+(null==(n=e.t("Take Picture"))?"":n)+'</button>\n <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(n=e.t("Switch to file upload"))?"":n)+"</button>\n ":(r+='\n <div class="fileSelector" ref="fileDrop" '+(n=e.fileDropHidden?"hidden":"")+'>\n <i class="'+(null==(n=e.iconClass("cloud-upload"))?"":n)+'"></i> '+(null==(n=e.t("Drop files to attach,"))?"":n)+"\n ",e.self.imageUpload&&e.component.webcam&&(r+='\n <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(n=e.t("Use Camera,"))?"":n)+"</a>\n "),r+="\n "+(null==(n=e.t("or"))?"":n)+' <a href="#" ref="fileBrowse" class="browse">'+(null==(n=e.t("browse"))?"":n)+"</a>\n </div>\n "),r+="\n"),r+="\n",e.statuses.forEach(function(o){r+='\n <div class="file '+(n="error"===e.statuses.status?" has-error":"")+'">\n <div class="ui grid">\n <div class="fileName control-label thirteen wide column">'+(null==(n=o.originalName)?"":n)+' <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="fileStatusRemove"></i></div>\n <div class="fileSize control-label three wide column">'+(null==(n=e.fileSize(o.size))?"":n)+'</div>\n </div>\n <div class="ui grid">\n <div class="thirteen wide column">\n ',"progress"===o.status?r+='\n <div class="progress">\n <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(n=o.progress)?"":n)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(n=o.progress)?"":n)+'">\n <span class="sr-only">'+(null==(n=o.progress)?"":n)+"% "+(null==(n=e.t("Complete"))?"":n)+"</span>\n </div>\n </div>\n ":r+='\n <div class="bg-'+(null==(n=o.status)?"":n)+'">'+(null==(n=e.t(o.message))?"":n)+"</div>\n ",r+="\n </div>\n </div>\n </div>\n"}),r+="\n",(!e.component.storage||e.support.hasWarning)&&(r+='\n <div class="alert alert-warning">\n ',e.component.storage||(r+="\n <p>"+(null==(n=e.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":n)+"</p>
vendor: 7,280 bytes, line 1
1\n "),r+="\n ",e.support.filereader||(r+="\n <p>"+(null==(n=e.t("File API & FileReader API not supported."))?"":n)+"</p>\n "),r+="\n ",e.support.formdata||(r+="\n <p>"+(null==(n=e.t("XHR2's FormData is not supported."))?"":n)+"</p>\n "),r+="\n ",e.support.progress||(r+="\n <p>"+(null==(n=e.t("XHR2's upload progress isn't supported."))?"":n)+"</p>\n "),r+="\n </div>\n"),r+="\n"}},97199:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(96182);n.default={form:o.default}},6306:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<i ref="'+(null==(n=e.ref)?"":n)+'" class="'+(null==(n=e.className)?"":n)+'" style="'+(null==(n=e.styles)?"":n)+'">'+(null==(n=e.content)?"":n)+"</i>\n"}},34435:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(6306);n.default={form:o.default}},71697:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n,r){var o={"plus-squre-o":"plus square outline","minus-squre-o":"minus square outline","question-sign":"question circle","remove-circle":"trash alternate outline","new-window":"external alternate","files-o":"file outline",move:"arrows alternate",link:"linkify"};return o.hasOwnProperty(n)&&(n=o[n]),n=(n=(n=n||"").replace(/-/g," ")).replace(/ o$/," outline"),r?"icon ".concat(n," loading"):"icon ".concat(n)}},49831:function(e,n,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var n,r=1,o=arguments.length;r<o;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0});var i=r(18083),a=r(85465),l=r(14077),u=r(28328),s=r(90730),c=r(58784),f=r(97325),d=r(1958),p=r(15119),h=r(53658),m=r(44537),y=r(74176),v=r(25255),b=r(81148),g=r(75736),w=r(52905),k=r(5597),O=r(79276),_=r(97199),j=r(34435),P=r(71697),S=r(11056),E=r(22111),x=r(64331),C=r(68038),R=r(18050),A=r(47017),M=r(76452),T=r(95442),D=r(80376),I=r(76111),L=r(64821),V=r(82468),N=r(37773),F=r(3128),U=r(79462),B=r(65166),z=r(32438),q=r(77841),H=r(53974),W=r(18934),K=r(25436),G=r(98305),Y=r(88269),J=r(98229),X=r(23698),Z=r(12720),Q=r(84117);n.default=o(o({transform:function(e,n){if(!n)return n;var r={1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine",10:"ten",11:"eleven",12:"twelve",13:"thirteen",14:"fourteen",15:"fifteen",16:"sixteen"};switch(e){case"columns":return r.hasOwnProperty(n.toString())?r[n.toString()]:n;case"class":return this.cssClasses.hasOwnProperty(n.toString())?this.cssClasses[n.toString()]:n}return n},defaultIconset:"icon",iconClass:P.default,cssClasses:v.default,builder:i.default,builderComponent:a.default,builderComponents:l.default,builderEditForm:u.default,builderPlaceholder:s.default,builderSidebar:c.default,builderSidebarGroup:f.default,builderWizard:d.default,button:p.default,checkbox:h.default,columns:m.default,component:y.default,datagrid:b.default,day:g.default,editgrid:w.default,field:k.default,fieldset:O.default,file:_.default,icon:j.default,input:S.default,label:E.default,loader:x.default,loading:C.default,message:R.default,multiValueRow:A.default,multiValueTable:M.default,panel:T.default,radio:D.default,resourceAdd:I.default,select:L.default,selectOption:V.default,signature:N.default,survey:F.default,tab:U.default,tree:z.default},q.default),{table:B.default,webform:H.default,well:W.default,wizard:K.default,wizardHeader:G.default,wizardHeaderClassic:Y.default,wizardHeaderVertical:J.default,wizardNav:X.default,alert:Z.default,errorsList:Q.default})},31045:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";if(Array.prototype.join,r+='<div class="ui '+(n=e.component.editor?"":"input")+" fluid "+(n=e.suffix?" right":"")+(n=e.prefix||e.suffix?" labeled":"")+'">\n',e.prefix&&(r+='\n<label class="ui label" ref="prefix">\n',e.prefix instanceof HTMLElement?r+="\n "+(null==(n=e.t(e.prefix.outerHTML))?"":n)+"\n":r+="\n "+(null==(n=e.t(e.prefix))?"":n)+"\n",r+="\n</label>\n"),r+="\n",!e.component.editor&&!e.component.wysiwyg){for(var o in r+="\n<"+(null==(n=e.input.type)?"":n)+'\n ref="'+(null==(n=e.input.ref?e.input.ref:"input")?"":n)+'"\n ',e.input.attr)r+="\n "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n ';r+='\n id="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n>'+(null==(n=e.input.content)?"":n)+"</"+(null==(n=e.input.type)?"":n)+">\n"}return r+="\n",(e.component.editor||e.component.wysiwyg)&&(r+='\n<div ref="input"></div>\n'),r+="\n",e.component.showCharCount&&(r+='\n<span class="ui right floated" ref="charcount"></span>\n'),r+="\n",e.component.showWordCount&&(r+='\n<span class="ui right floated" ref="wordcount"></span>\n'),r+="\n",e.suffix&&(r+='\n<div class="ui label" ref="suffix">\n',e.suffix instanceof HTMLElement?r+="\n "+(null==(n=e.t(e.suffix.outerHTML))?"":n)+"\n":r+="\n "+(null==(n=e.t(e.suffix))?"":n)+"\n",r+="\n</div>\n"),r+="\n</div>\n"}},15224:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div ref="value">',e.value?r+=null==(n=e.value)?"":n:r+="-",r+="</div>\n"}},11056:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(31045),i=r(15224);n.default={form:o.default,html:i.default}},42315:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<label\n class="'+(null==(n=e.label.className)?"":n)+'"\n for="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n>\n ',e.label.hidden||(r+="\n "+(null==(n=e.t(e.component.label))?"":n)+"\n ",e.component.tooltip&&(r+='\n <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n '),r+="\n "),r+="\n</label>\n"}},22111:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(42315);n.default={form:o.default}},191:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return'<div class="formio-loader">\n <div class="loader-wrapper">\n <div class="ui active centered inline loader"></div>\n </div>\n</div>\n'}},64331:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(191);n.default={form:o.default}},20504:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return"Loading...\n"}},68038:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(20504);n.default={form:o.default}},9044:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="ui pointing red basic label '+(null==(n=e.level)?"":n)+'">\n '+(null==(n=e.message)?"":n)+"\n</div>\n"}},18050:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(9044);n.default={form:o.default}},21648:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<tr ref="row">\n <td>
1\n '+(null==(n=e.element)?"":n)+"\n </td>\n ",e.disabled||(r+='\n <td>\n <button type="button" class="ui icon button secondary" ref="removeRow">\n <i class="trash icon"></i>\n </button>\n </td>\n '),r+="\n</tr>\n"}},47017:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(21648);n.default={form:o.default}},83293:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="ui celled table">\n <tbody>\n '+(null==(n=e.rows)?"":n)+"\n ",e.disabled||(r+='\n <tr>\n <td colspan="2">\n <button class="ui button primary" ref="addButton"><i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.addAnother))?"":n)+"</button>\n </td>\n </tr>\n "),r+="\n </tbody>\n</table>\n"}},76452:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(83293);n.default={form:o.default}},71845:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,(!e.component.hideLabel||e.builder||e.component.collapsible||e.component.tooltip)&&(r+='\n<h4 class="ui top attached block header '+(null==(n=e.component.className)?"":n)+'" ref="header">\n ',e.component.collapsible&&(r+='\n <i class="formio-collapse-icon '+(null==(n=e.iconClass(e.collapsed?"plus-square-o":"minus-square-o"))?"":n)+' text-muted" data-title="Collapse Panel"></i>\n '),r+="\n ",(!e.component.hideLabel||e.builder)&&(r+="\n "+(null==(n=e.t(e.component.title))?"":n)+"\n "),r+="\n ",e.component.tooltip&&(r+='\n <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n '),r+="\n</h4>\n"),r+="\n",(!e.collapsed||e.builder)&&(r+='\n<div class="ui bottom attached segment" ref="'+(null==(n=e.nestedKey)?"":n)+'">\n '+(null==(n=e.children)?"":n)+"\n</div>\n"),r+="\n"}},95442:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(71845);n.default={form:o.default}},33748:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="fields '+(n=e.inline?"inline":"grouped")+'">\n ',e.values.forEach(function(o){for(var i in r+='\n <div class="field">\n <div class="ui '+(n="radio"===e.input.attr.type?"radio":"")+' checkbox" ref="wrapper">\n <'+(null==(n=e.input.type)?"":n)+'\n ref="input"\n ',e.input.attr)r+="\n "+(null==(n=i)?"":n)+'="'+(null==(n=e.input.attr[i])?"":n)+'"\n ';r+='\n value="'+(null==(n=o.value)?"":n)+'"\n ',(e.value===o.value||"object"==typeof e.value&&e.value.hasOwnProperty(o.value)&&e.value[o.value])&&(r+="\n checked=true\n "),r+="\n ",o.disabled&&(r+="\n disabled=true\n "),r+='\n id="'+(null==(n=e.instance.root&&e.instance.root.id)?"":n)+"-"+(null==(n=e.id)?"":n)+"-"+(null==(n=e.row)?"":n)+"-"+(null==(n=o.value)?"":n)+'"\n >\n <label class="" for="'+(null==(n=e.instance.root&&e.instance.root.id)?"":n)+"-"+(null==(n=e.id)?"":n)+"-"+(null==(n=e.row)?"":n)+"-"+(null==(n=o.value)?"":n)+'">\n <span>'+(null==(n=e.t(o.label))?"":n)+"</span>\n </label>\n </div>\n </div>\n "}),r+="\n</div>\n"}},31775:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n="";Array.prototype.join,n+='<div ref="value">\n ';var r=e.values.filter(function(n){return e.value===n.value||"object"==typeof e.value&&e.value.hasOwnProperty(n.value)&&e.value[n.value]}).map(function(n){return e.t(n.label)}).join(", ");return n+("\n "+(null==r?"":r))+"\n </div>\n"}},80376:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(33748),i=r(31775);n.default={form:o.default,html:i.default}},37827:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<table class="ui table celled">\n <tbody>\n <tr>\n <td>\n '+(null==(n=e.element)?"":n)+'\n </td>\n </tr>\n <tr>\n <td colspan="2">\n <button class="ui button primary" ref="addResource">\n <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i>\n '+(null==(n=e.t(e.component.addResourceLabel||"Add Resource"))?"":n)+"\n </button>\n </td>\n </tr>\n </tbody>\n</table>\n"}},76111:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(37827);n.default={form:o.default}},88e3:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+='<select\n ref="'+(null==(n=e.input.ref?e.input.ref:"selectContainer")?"":n)+'"\n class="ui search dropdown"\n '+(n=e.input.multiple?"multiple":"")+"\n ",e.input.attr)r+="\n "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n ';return r+="\n ",e.input.attr.id||(r+='\n id="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n '),r+="\n>"+(null==(n=e.selectOptions)?"":n)+'</select>\n<input type="text"\n class="formio-select-autocomplete-input"\n ref="autocompleteInput"\n ',e.input.attr.autocomplete&&(r+='\n autocomplete="'+(null==(n=e.input.attr.autocomplete)?"":n)+'"\n '),r+='\n tabindex="-1"\n/>\n'}},68819:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div ref="value">',e.value?r+=null==(n=e.self.itemValueForHTMLMode(e.value))?"":n:r+="-",r+="</div>\n"}},64821:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(88e3),i=r(68819);n.default={form:o.default,html:i.default}},41248:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+="<option "+(n=e.selected?'selected="selected"':"")+"\n value='"+(null==(n=e.option.value)?"":n)+"'\n ",e.attrs)r+="\n "+(null==(n=o)?"":n)+'="'+(null==(n=e.attrs[o])?"":n)+'"\n ';return r+("\n >\n "+(null==(n=e.t(e.option.label))?"":n))+"\n</option>\n"}},92904:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.selected&&(r+=null==(n=e.t(e.option.label))?"":n),r+="\n"}},82468:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(41248),i=r(92904);n.default={form:o.default,html:i.default}},83754:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+=(null==(n=e.element)?"":n)+'\n<div\n class="signature-pad-body"\n style="width: '+(null==(n=e.component.width)?"":n)+";height: "+(null==(n=e.component.height)?"":n)+';padding:0;margin:0;"\n tabindex="'+(null==(n=e.component.tabindex||0)?"":n)+'"\n ref="padBody"\n>\n\n <a class="ui basic button mini icon signature-pad-refresh" ref="refresh">\n <i class="'+(null==(n=e.iconClass("refresh"))?"":n)+'"></i>\n </a>\n <canvas class="signature-pad-canvas" height="'+(null==(n=e.component.height)?"":n)+'" ref="canvas"></canvas>
1\n ',e.required&&(r+='\n <span class="form-control-feedback field-required-inline text-danger">\n <i class="'+(null==(n=e.iconClass("asterisk"))?"":n)+'"></i>\n </span>\n '),r+='\n <img style="width: 100%;display: none;" ref="signatureImage">\n</div>\n',e.component.footer&&(r+='\n <div class="signature-pad-footer">\n '+(null==(n=e.t(e.component.footer))?"":n)+"\n </div>\n"),r+="\n"}},6671:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return'<img style="width: 100%;" ref="signatureImage">\n'}},37773:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(83754),i=r(6671);n.default={form:o.default,html:i.default}},37865:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="ui table striped celled">\n <thead>\n <tr>\n <th></th>\n ',e.component.values.forEach(function(o){r+='\n <th style="text-align: center;">'+(null==(n=e.t(o.label))?"":n)+"</th>\n "}),r+="\n </tr>\n </thead>\n <tbody>\n ",e.component.questions.forEach(function(o){r+="\n <tr>\n <td>"+(null==(n=e.t(o.label))?"":n)+"</td>\n ",e.component.values.forEach(function(i){r+='\n <td style="text-align: center;">\n <input type="radio" name="'+(null==(n=e.self.getInputName(o))?"":n)+'" value="'+(null==(n=i.value)?"":n)+'" id="'+(null==(n=e.key)?"":n)+"-"+(null==(n=o.value)?"":n)+"-"+(null==(n=i.value)?"":n)+'" ref="input">\n </td>\n '}),r+="\n </tr>\n "}),r+="\n </tbody>\n</table>\n"}},97892:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="ui table striped celled">\n <tbody>\n ',e.component.questions.forEach(function(o){r+="\n <tr>\n <th>"+(null==(n=e.t(o.label))?"":n)+"</th>\n <td>\n ",e.component.values.forEach(function(i){r+="\n ",e.value&&e.value.hasOwnProperty(o.value)&&e.value[o.value]===i.value&&(r+="\n "+(null==(n=e.t(i.label))?"":n)+"\n "),r+="\n "}),r+="\n </td>\n </tr>\n "}),r+="\n </tbody>\n</table>\n"}},3128:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(37865),i=r(97892);n.default={form:o.default,html:i.default}},42138:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.component.components.forEach(function(o,i){r+='\n <h4 class="ui top attached block header">'+(null==(n=e.t(o.label))?"":n)+'</h4>\n <div class="ui bottom attached segment">\n '+(null==(n=e.tabComponents[i])?"":n)+"\n </div>\n"}),r+="\n"}},63247:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="tab-container'+(n=e.component.verticalLayout?" card-vertical":"")+'">\n <div class="ui top attached tabular menu'+(n=e.component.verticalLayout?" nav-tabs-vertical":"")+'">\n ',e.component.components.forEach(function(o,i){r+='\n <a class="item'+(n=e.currentTab===i?" active":"")+'" role="presentation" ref="'+(null==(n=e.tabLinkKey)?"":n)+'">'+(null==(n=e.t(o.label))?"":n)+"</a>\n "}),r+="\n </div>\n ",e.component.components.forEach(function(o,i){r+='\n <div role="tabpanel" class="ui bottom attached tab segment'+(n=e.currentTab===i?" active":"")+'" ref="'+(null==(n=e.tabKey)?"":n)+'"">'+(null==(n=e.tabComponents[i])?"":n)+"</div>\n "}),r+="\n</div>\n"}},79462:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(42138),i=r(63247);n.default={flat:o.default,form:i.default}},87105:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="ui table\n '+(n=e.component.striped?"striped":"")+"\n "+(n=e.component.bordered?"celled":"")+"\n "+(n=e.component.hover?"selectable":"")+"\n "+(n=e.component.condensed?"compact":"padded")+'\n ">\n ',e.component.header&&e.component.header.length>0&&(r+="\n <thead>\n <tr>\n ",e.component.header.forEach(function(o){r+="\n <th>"+(null==(n=e.t(o))?"":n)+"</th>\n "}),r+="\n </tr>\n </thead>\n "),r+="\n <tbody>
1\n ",e.tableComponents.forEach(function(o,i){r+='\n <tr ref="row-'+(null==(n=e.id)?"":n)+'">\n ',o.forEach(function(o,i){r+='\n <td ref="'+(null==(n=e.tableKey)?"":n)+"-"+(null==(n=e.rowIndex)?"":n)+'"',e.cellClassName&&(r+=' class="'+(null==(n=e.cellClassName)?"":n)+'"'),r+=">"+(null==(n=o)?"":n)+"</td>\n "}),r+="\n </tr>\n "}),r+="\n </tbody>\n</table>\n"}},65166:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(87105);n.default={form:o.default}},20211:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.node.isRoot?r+='\n <div class="ui relaxed list">\n <div class="item" ref="root" role="listitem">\n ':r+='\n <div ref="node" class="item tree__level" role="listitem">\n ',r+="\n ",e.content&&(r+='\n <div ref="content" class="tree__node-content content">\n '+(null==(n=e.content)?"":n)+"\n </div>\n "),r+="\n ",e.childNodes&&e.childNodes.length&&(r+='\n <div ref="childNodes" class="tree__node-children list" role="list">\n '+(null==(n=e.childNodes.join(""))?"":n)+"\n </div>\n "),r+="\n ",e.node.isRoot?r+="\n </div>\n </div>\n ":r+="\n </div>\n",r+="\n"}},32438:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(20211);n.default={form:o.default}},32653:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="node-edit">\n <div ref="nodeEdit">'+(null==(n=e.children)?"":n)+"</div>\n ",e.readOnly||(r+='\n <div class="node-actions">\n <button ref="saveNode" class="ui mini primary button saveNode">'+(null==(n=e.t("Save"))?"":n)+'</button>\n <button ref="cancelNode" class="ui mini negative button cancelNode">'+(null==(n=e.t("Cancel"))?"":n)+"\n </div>\n "),r+="\n</div>\n"}},77841:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(32653),i=r(17421);n.default={treeView:{form:i.default},treeEdit:{form:o.default}}},17421:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="ui grid">\n <div class="row">\n ',e.values.forEach(function(e){r+='\n <div class="two wide column">\n '+(null==(n=e)?"":n)+"\n </div>\n "}),r+='\n <div class="five wide column">\n <div class="ui mini right floated buttons">\n ',e.node.hasChildren&&(r+='\n <button ref="toggleNode" class="ui button toggleNode">'+(null==(n=e.t(e.node.collapsed?"Expand":"Collapse"))?"":n)+'</button>\n <div class="or"></div>\n '),r+="\n ",e.readOnly||(r+='\n <button ref="addChild" class="ui button primary addChild">'+(null==(n=e.t("Add"))?"":n)+'</button>\n <div class="or"></div>\n <button ref="editNode" class="ui button editNode">'+(null==(n=e.t("Edit"))?"":n)+'</button>\n <div class="or"></div>\n <button ref="removeNode" class="ui button negative removeNode">'+(null==(n=e.t("Delete"))?"":n)+"</button>\n ",e.node.revertAvailable&&(r+='\n <div class="or"></div>\n <button ref="revertNode" class="ui button negative revertNode">'+(null==(n=e.t("Revert"))?"":n)+"</button>\n "),r+="\n "),r+="\n </div>\n </div>\n </div>\n</div>\n"}},63022:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="ui visible message"><p>'+(null==(n=e.t(e.component.title))?"":n)+"</p></div>\n"}},20809:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="'+(null==(n=e.classes)?"":n)+' ui form" ref="webform" novalidate>'+(null==(n=e.children)?"":n)+"</div>\n"}},53974:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(63022),i=r(20809);n.default={form:i.default,builder:o.default}},23694:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="ui secondary segment">\n <div class="content" ref="'+(null==(n=e.nestedKey)?"":n)+'">
1\n '+(null==(n=e.children)?"":n)+"\n </div>\n</div>\n"}},18934:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(23694);n.default={form:o.default}},16074:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="formio-wizard-builder-component-title">'+(null==(n=e.t(e.component.title))?"":n)+"</div>\n"}},19084:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="'+(null==(n=e.className)?"":n)+'">\n <div style="position: relative;">\n ',"wizardHeaderVertical"===e.wizardHeaderType?r+='\n <div class="ui stackable grid">\n <div class="three wide computer sixteen wide tablet sixteen wide mobile column">\n '+(null==(n=e.wizardHeader)?"":n)+'\n </div>\n <div class="one wide computer one wide mobile one wide tablet column"></div>\n <div class="wizard-page ten wide computer fourteen wide tablet fourteen wide mobiles column" ref="'+(null==(n=e.wizardKey)?"":n)+'">\n '+(null==(n=e.components)?"":n)+'\n </div>\n </div>\n <div class="ui grid" style="margin-top: 10px;">\n <div class="four wide column"></div>\n <div class="twelve wide column">\n '+(null==(n=e.wizardNav)?"":n)+"\n </div>\n </div>\n ":r+=" \n "+(null==(n=e.wizardHeader)?"":n)+'\n <div class="wizard-page" ref="'+(null==(n=e.wizardKey)?"":n)+'">\n '+(null==(n=e.components)?"":n)+"\n </div>\n "+(null==(n=e.wizardNav)?"":n)+"\n ",r+=" \n </div>\n</div>"}},25436:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(16074),i=r(19084);n.default={form:i.default,builder:o.default}},77313:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<nav aria-label="navigation" id="'+(null==(n=e.wizardKey)?"":n)+'-header" ref="'+(null==(n=e.wizardKey)?"":n)+'-header">\n <div class="ui steps">\n ',e.panels.forEach(function(o,i){r+='\n <a class="'+(n=e.currentPage===i?" active":"")+' step" ref="'+(null==(n=e.wizardKey)?"":n)+'-link">\n <div class="content">\n <div class="title">\n '+(null==(n=o.title)?"":n)+"\n ",o.tooltip&&e.currentPage===i&&(r+='\n <span data-tooltip="'+(null==(n=e.wizardPageTooltip)?"":n)+'" data-position="right center">\n <i class="'+(null==(n=e.iconClass("question-sign"))?"":n)+'"></i>\n </span>\n '),r+="\n </div>\n </div>\n </a>\n "}),r+="\n </div>\n</nav>\n"}},98305:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(77313);n.default={form:o.default}},34417:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<nav aria-label="navigation" id="'+(null==(n=e.wizardKey)?"":n)+'-header">\n <div class=" ui stackable grid" style="border-bottom:0;">\n ',e.panels.forEach(function(o,i){r+='\n <div class="classic-pagination-page four wide computer eight wide tablet sixteen wide mobile column\n '+(n=e.currentPage<i?" disabled":"")+"\n "+(n=e.currentPage===i?" active":"")+"\n "+(n=e.currentPage>i?" complete":"")+'" style="padding: 0;">\n <div class="ui center aligned header classic-pagination-title">'+(null==(n=e.t(o.title,{_userInput:!0}))?"":n)+"</div>\n ",e.panels.length>1&&(r+='\n <div class="classic-pagination-progress" style="border-radius: 0;"><div class="classic-pagination-progress-bar"></div></div>\n '),r+=' \n <span ref="'+(null==(n=e.wizardKey)?"":n)+'-link" class="classic-pagination-dot" style="top: 45px;"></span>\n </div>\n '}),r+="\n </div>\n</nav>\n"}},88269:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(34417);n.default={form:o.default}},40239:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<nav aria-label="navigation" id="'+(null==(n=e.wizardKey)?"":n)+'-header">\n <ul class="ui vertical fluid tabular menu">
1\n ',e.panels.forEach(function(o,i){r+='\n <li class=" item page-item'+(n=e.currentPage===i?" active":"")+'" style="cursor: pointer;">\n <span class="page-link" ref="'+(null==(n=e.wizardKey)?"":n)+'-link" style="margin-left: 0px;">\n '+(null==(n=e.t(o.title,{_userInput:!0}))?"":n)+"\n ",o.tooltip&&e.currentPage===i&&(r+='\n <i ref="'+(null==(n=e.wizardKey)?"":n)+'-tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>\n '),r+="\n </span>\n </li>\n "}),r+="\n </ul>\n</nav>\n"}},98229:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(40239);n.default={form:o.default}},62449:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="ui horizontal list" id="'+(null==(n=e.wizardKey)?"":n)+'-nav">\n ',e.buttons.cancel&&(r+='\n <div class="item">\n <button class="ui button secondary btn-wizard-nav-cancel" ref="'+(null==(n=e.wizardKey)?"":n)+'-cancel">'+(null==(n=e.t("cancel"))?"":n)+"</button>\n </div>\n "),r+="\n ",e.buttons.previous&&(r+='\n <div class="item">\n <button class="ui button primary btn-wizard-nav-previous" ref="'+(null==(n=e.wizardKey)?"":n)+'-previous">'+(null==(n=e.t("previous"))?"":n)+"</button>\n </div>\n "),r+="\n ",e.buttons.next&&(r+='\n <div class="item">\n <button class="ui button primary btn-wizard-nav-next" ref="'+(null==(n=e.wizardKey)?"":n)+'-next">'+(null==(n=e.t("next"))?"":n)+"</button>\n </div>\n "),r+="\n ",e.buttons.submit&&(r+='\n <div class="item">\n <button class="ui button primary btn-wizard-nav-submit" ref="'+(null==(n=e.wizardKey)?"":n)+'-submit">'+(null==(n=e.t("submit"))?"":n)+"</button>\n </div>\n "),r+="\n</div>\n"}},23698:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(62449);n.default={form:o.default}},15560:function(e){var n;n=function(){return function(e){function n(o){if(r[o])return r[o].exports;var i=r[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var r={};return n.m=e,n.c=r,n.p="",n(0)}([function(e,n,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(1);Object.defineProperty(n,"createAutoCorrectedDatePipe",{enumerable:!0,get:function(){return o(i).default}});var a=r(2);Object.defineProperty(n,"createNumberMask",{enumerable:!0,get:function(){return o(a).default}});var l=r(3);Object.defineProperty(n,"emailMask",{enumerable:!0,get:function(){return o(l).default}})},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mm dd yyyy",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.minYear,a=void 0===i?1:i,l=n.maxYear,u=void 0===l?9999:l,s=e.split(/[^dmyHMS]+/).sort(function(e,n){return o.indexOf(e)-o.indexOf(n)});return function(n){var o=[],i={dd:31,mm:12,yy:99,yyyy:u,HH:23,MM:59,SS:59},l={dd:1,mm:1,yy:0,yyyy:a,HH:0,MM:0,SS:0},c=n.split("");s.forEach(function(n){var r=e.indexOf(n),a=parseInt(i[n].toString().substr(0,1),10);parseInt(c[r],10)>a&&(c[r+1]=c[r],c[r]=0,o.push(r))});var f=0;return!s.some(function(o){var s=e.indexOf(o),c=o.length,d=n.substr(s,c).replace(/\D/g,""),p=parseInt(d,10);"mm"===o&&(f=p||0);var h="dd"===o?r[f]:i[o];if("yyyy"===o&&(1!==a||9999!==u)){var m=parseInt(i[o].toString().substring(0,d.length),10);return p<parseInt(l[o].toString().substring(0,d.length),10)||p>m}return p>h||d.length===c&&p<l[o]})&&{value:c.join(""),indexesOfPipedChars:o}}};var r=[31,31,29,31,30,31,30,31,31,30,31,30,31],o=["yyyy","yy","mm","dd","HH","MM","SS"]},function(e,n){"use strict";function r(e){return e.split(a).map(function(e){return p.test(e)?p:e})}Object.defineProperty(n,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.default=function(){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,n=e.length;if(e===a||e[0]===y[0]&&1===n)return y.split(a).concat([p]).concat(b.split(a));if(e===S&&j)return y.split(a).concat(["0",S,p]).concat(b.split(a));var i=e[0]===s&&M;i&&(e=e.toString().substr(1));var l=e.lastIndexOf(S),u=-1!==l,m=void 0,v=void 0,g=void 0;if(e.slice(-1*N)===b&&(e=e.slice(0,-1*N)),u&&(j||R)?(m=e.slice(e.slice(0,V)===y?V:0,l),v=r((v=e.slice(l+1,n)).replace(f,a))):m=e.slice(0,V)===y?e.slice(V):e,L&&(void 0===L?"undefined":o(L))===d){var k="."===O?"[.]":""+O,_=(m.match(RegExp(k,"g"))||[]).length;m=m.slice(0,L+_*F)}return m=m.replace(f,a),D||(m=m.replace(/^0+(0$|[^0])/,"$1")),g=r(m=w?m.replace(/\B(?=(\d{3})+(?!\d))/g,O):m),(u&&j||!0===R)&&(e[l-1]!==S&&g.push(h),g.push(S,h),v&&((void 0===x?"undefined":o(x))===d&&(v=v.slice(0,x)),g=g.concat(v)),!0===R&&e[l-1]===S&&g.push(p)),V>0&&(g=y.split(a).concat(g)),i&&(g.length===V&&g.push(p),g=[c].concat(g)),b.length>0&&(g=g.concat(b.split(a))),g}var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},m=n.prefix,y=void 0===m?i:m,v=n.suffix,b=void 0===v?a:v,g=n.includeThousandsSeparator,w=void 0===g||g,k=n.thousandsSeparatorSymbol,O=void 0===k?l:k,_=n.allowDecimal,j=void 0!==_&&_,P=n.decimalSymbol,S=void 0===P?u:P,E=n.decimalLimit,x=void 0===E?2:E,C=n.requireDecimal,R=void 0!==C&&C,A=n.allowNegative,M=void 0!==A&&A,T=n.allowLeadingZeroes,D=void 0!==T&&T,I=n.integerLimit,L=void 0===I?null:I,V=y&&y.length||0,N=b&&b.length||0,F=O&&O.length||0;return e.instanceOf="createNumberMask",e};var i="$",a="",l=",",u=".",s="-",c=/-/,f=/\D+/g,d="number",p=/\d/,h="[]"},function(e,n,r){"use strict";function o(e,n,r){var o=[];return e[n]===r?o.push(r):o.push(s,r),o.push(s),o}function i(e,n){return e.split(u).map(function(e){return e===c?e:n?d:f})}Object.defineProperty(n,"__esModule",{value:!0});var a,l=(a=r(4))&&a.__esModule?a:{default:a},u="",s="[]",c=" ",f=/[^\s]/,d=/[^.\s]/,p=/\s/g;n.default={mask:function(e,n){e=e.replace(p,u);var r,a,l,s,f,d=n.placeholderChar,h=n.currentCaretPosition,m=e.indexOf("@"),y=e.lastIndexOf("."),v=y<m?-1:y,b=o(e,m+1,"@"),g=o(e,v-1,"."),w=(r=e,-1===m?r:r.slice(0,m)),k=(a=e,l=u,-1!==m&&(l=-1===v?a.slice(m+1,a.length):a.slice(m+1,v)),"@"===(l=l.replace(RegExp("[\\s"+d+"]","g"),u))?"*":l.length<1?c:"."===l[l.length-1]?l.slice(0,l.length-1):l),O=(s=e,f=u,-1!==v&&(f=s.slice(v+1,s.length)),0===(f=f.replace(RegExp("[\\s"+d+".]","g"),u)).length?"."===s[v-1]&&h!==s.length?"*":u:f);return w=i(w),k=i(k),O=i(O,!0),w.concat(b).concat(k).concat(g).concat(O)},pipe:l.default}},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n){var f,d=n.currentCaretPosition,p=n.rawValue,h=n.previousConformedValue,m=n.placeholderChar,y=e,v=(f=0,y=y.replace(o,function(){return 1==++f?r:i})).indexOf(a);if(null===p.match(RegExp("[^@\\s."+m+"]")))return i;if(-1!==y.indexOf(u)||-1!==v&&d!==v+1||-1===p.indexOf(r)&&h!==i&&-1!==p.indexOf(l))return!1;var b=y.indexOf(r);return(y.slice(b+1,y.length).match(c)||s).length>1&&y.substr(-1)===l&&d!==p.length&&(y=y.slice(0,y.length-1)),y};var r="@",o=/@/g,i="",a="@.",l=".",u="..",s=[],c=/\./g}])},e.exports=n()},93808:function(e){var n;n=function(){return function(e){function n(o){if(r[o])return r[o].exports;var i=r[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var r={};return n.m=e,n.c=r,n.p="",n(0)}([function(e,n,r){"use strict";
vendor: 4,605 bytes, line 1
1function o(e){return e&&e.__esModule?e:{default:e}}function i(e){var n=e.inputElement,r=e.afterUpdate,o=(0,l.default)(e),i=function(e){var n=e.target.value;o.update(n),"function"==typeof r&&r(n)};return n.addEventListener("input",i),o.update(n.value),{textMaskInputElement:o,destroy:function(){n.removeEventListener("input",i)}}}Object.defineProperty(n,"__esModule",{value:!0}),n.conformToMask=void 0,n.maskInput=i;var a=r(2);Object.defineProperty(n,"conformToMask",{enumerable:!0,get:function(){return o(a).default}});var l=o(r(5));n.default=i},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.placeholderChar="_",n.strFunction="function"},function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,i.isArray)(n)){if((void 0===n?"undefined":o(n))!==a.strFunction)throw Error("Text-mask:conformToMask; The mask property must be an array.");n=n(e,r),n=(0,i.processCaretTraps)(n).maskWithoutCaretTraps}var s=r.guide,c=void 0===s||s,f=r.previousConformedValue,d=void 0===f?u:f,p=r.placeholderChar,h=void 0===p?a.placeholderChar:p,m=r.placeholder,y=void 0===m?(0,i.convertMaskToPlaceholder)(n,h):m,v=r.currentCaretPosition,b=r.keepCharPositions,g=!1===c&&void 0!==d,w=e.length,k=d.length,O=y.length,_=n.length,j=w-k,P=j>0,S=v+(P?-j:0),E=S+Math.abs(j);if(!0===b&&!P){for(var x=u,C=S;C<E;C++)y[C]===h&&(x+=h);e=e.slice(0,S)+x+e.slice(S,w)}for(var R=e.split(u).map(function(e,n){return{char:e,isNew:n>=S&&n<E}}),A=w-1;A>=0;A--){var M=R[A].char;M!==h&&M===y[A>=S&&k===_?A-j:A]&&R.splice(A,1)}var T=u,D=!1;e:for(var I=0;I<O;I++){var L=y[I];if(L===h){if(R.length>0)for(;R.length>0;){var V=R.shift(),N=V.char,F=V.isNew;if(N===h&&!0!==g){T+=h;continue e}if(n[I].test(N)){if(!0===b&&!1!==F&&d!==u&&!1!==c&&P){for(var U=R.length,B=null,z=0;z<U;z++){var q=R[z];if(q.char!==h&&!1===q.isNew)break;if(q.char===h){B=z;break}}null!==B?(T+=N,R.splice(B,1)):I--}else T+=N;continue e}D=!0}!1===g&&(T+=y.substr(I,O));break}T+=L}if(g&&!1===P){for(var H=null,W=0;W<T.length;W++)y[W]===h&&(H=W);T=null!==H?T.substr(0,H+1):u}return{conformedValue:T,meta:{someCharsRejected:D}}};var i=r(3),a=r(1),l=[],u=""},function(e,n,r){"use strict";function o(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}Object.defineProperty(n,"__esModule",{value:!0}),n.convertMaskToPlaceholder=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.placeholderChar;if(!o(e))throw Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(n))throw Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(n)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map(function(e){return e instanceof RegExp?n:e}).join("")},n.isArray=o,n.isString=function(e){return"string"==typeof e||e instanceof String},n.isNumber=function(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)},n.isNil=function(e){return null==e},n.processCaretTraps=function(e){for(var n=[],r=void 0;-1!==(r=e.indexOf(l));)n.push(r),e.splice(r,1);return{maskWithoutCaretTraps:e,indexes:n}};var i=r(1),a=[],l="[]"},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n=e.previousConformedValue,i=void 0===n?o:n,a=e.previousPlaceholder,l=void 0===a?o:a,u=e.currentCaretPosition,s=void 0===u?0:u,c=e.conformedValue,f=e.rawValue,d=e.placeholderChar,p=e.placeholder,h=e.indexesOfPipedChars,m=e.caretTrapIndexes,y=void 0===m?r:m;if(0===s||!f.length)return 0;var v=f.length,b=i.length,g=p.length,w=c.length,k=v-b,O=k>0;if(k>1&&!O&&0!==b)return s;var _=0,j=void 0,P=void 0;if(O&&(i===c||c===p))_=s-k;else{var S=c.toLowerCase(),E=f.toLowerCase().substr(0,s).split(o).filter(function(e){return -1!==S.indexOf(e)});P=E[E.length-1];var x=l.substr(0,E.length).split(o).filter(function(e){return e!==d}).length,C=p.substr(0,E.length).split(o).filter(function(e){return e!==d}).length,R=void 0!==l[E.length-1]&&void 0!==p[E.length-2]&&l[E.length-1]!==d&&l[E.length-1]!==
1p[E.length-1]&&l[E.length-1]===p[E.length-2];!O&&(C!==x||R)&&x>0&&p.indexOf(P)>-1&&void 0!==f[s]&&(j=!0,P=f[s]);for(var A=(void 0===h?r:h).map(function(e){return S[e]}),M=A.filter(function(e){return e===P}).length,T=E.filter(function(e){return e===P}).length,D=p.substr(0,p.indexOf(d)).split(o).filter(function(e,n){return e===P&&f[n]!==e}).length,I=D+T+M+(j?1:0),L=0,V=0;V<w;V++){var N=S[V];if(_=V+1,N===P&&L++,L>=I)break}}if(O){for(var F=_,U=_;U<=g;U++)if(p[U]===d&&(F=U),p[U]===d||-1!==y.indexOf(U)||U===g)return F}else if(j){for(var B=_-1;B>=0;B--)if(c[B]===P||-1!==y.indexOf(B)||0===B)return B}else for(var z=_;z>=0;z--)if(p[z-1]===d||-1!==y.indexOf(z)||0===z)return z};var r=[],o=""},function(e,n,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.default=function(e){var n={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:n,update:function(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,y=o.inputElement,v=o.mask,b=o.guide,g=o.pipe,w=o.placeholderChar,k=void 0===w?c.placeholderChar:w,O=o.keepCharPositions,_=o.showMask;if(void 0===r&&(r=y.value),r!==n.previousConformedValue){(void 0===v?"undefined":a(v))===p&&void 0!==v.pipe&&void 0!==v.mask&&(g=v.pipe,v=v.mask);var j=void 0,P=void 0;if(v instanceof Array&&(j=(0,s.convertMaskToPlaceholder)(v,k)),!1!==v){var S,E=function(e){if((0,s.isString)(e))return e;if((0,s.isNumber)(e))return String(e);if(null==e)return f;throw Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}(r),x=y.selectionEnd,C=n.previousConformedValue,R=n.previousPlaceholder,A=void 0;if((void 0===v?"undefined":a(v))===c.strFunction){if(!1===(P=v(E,{currentCaretPosition:x,previousConformedValue:C,placeholderChar:k})))return;var M=(0,s.processCaretTraps)(P),T=M.maskWithoutCaretTraps,D=M.indexes;P=T,A=D,j=(0,s.convertMaskToPlaceholder)(P,k)}else P=v;var I={previousConformedValue:C,guide:b,placeholderChar:k,pipe:g,placeholder:j,currentCaretPosition:x,keepCharPositions:void 0!==O&&O},L=(0,u.default)(E,P,I).conformedValue,V=(void 0===g?"undefined":a(g))===c.strFunction,N={};V&&(!1===(N=g(L,i({rawValue:E},I)))?N={value:C,rejected:!0}:(0,s.isString)(N)&&(N={value:N}));var F=V?N.value:L,U=(0,l.default)({previousConformedValue:C,previousPlaceholder:R,conformedValue:F,placeholder:j,rawValue:E,currentCaretPosition:x,placeholderChar:k,indexesOfPipedChars:N.indexesOfPipedChars,caretTrapIndexes:A}),B=F===j&&0===U,z=void 0!==_&&_?j:f,q=B?z:F;n.previousConformedValue=q,n.previousPlaceholder=j,y.value!==q&&(y.value=q,((S=e.shadowRoot)?S.activeElement:document.activeElement)===y&&(h?m(function(){return y.setSelectionRange(U,U,d)},0):y.setSelectionRange(U,U,d)))}}}}};var l=o(r(4)),u=o(r(2)),s=r(3),c=r(1),f="",d="none",p="object",h="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),m="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout}])},e.exports=n()},44719:function(e,n,r){"use strict";r.r(n),r.d(n,{cancelAnimationFrame:function(){return a},requestAnimationFrame:function(){return i}});var o=["webkit","moz","ms","o"],i=function(){for(var e=0,n=o.length;e<n&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[o[e]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var r=0;window.requestAnimationFrame=function(e){var n=new Date().getTime(),o=Math.max(0,16-n-r),i=window.setTimeout(function(){return e(n+o)},o);return r=n+o,i}}return window.requestAnimationFrame.bind(window)}(),a=function(){for(var e=0,n=o.length;e<n&&!window.cancelAnimationFrame;++e)window.cancelAnimationFrame=window[o[e]+"CancelAnimationFrame"]||window[o[e]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){window.clearTimeout(e)}),window.cancelAnimationFrame.bind(window)}()},17665:function(e,n,r){e.exports="function"==typeof Array.from?Array.from:r(78360)},78360:function(e){var n,r,o,i,a;e.exports=(n=function(e){return"function"==typeof e},r=function(e){var n=Number(e);return isNaN(n)?0:0!==n&&isFinite(n)?(n>0?1:-1)*Math.floor(Math.abs(n)):n},o=function(e){if(null!=e){if(["string","number","boolean","symbol"].indexOf(typeof e)>-1||"undefined"!=typeof Symbol&&"iterator"in Symbol&&Symbol.iterator in e)return Symbol.iterator;if("@@iterator"in e)return"@@iterator"}},i=function(e,r){if(null!=e&&null!=r){var o=e[r];
1if(null!=o){if(!n(o))throw TypeError(o+" is not a function");return o}}},a=function(e){var n=e.next();return!n.done&&n},function(e){"use strict";var l=arguments.length>1?arguments[1]:void 0;if(void 0!==l){if(!n(l))throw TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(s=arguments[2])}var u=i(e,o(e));if(void 0!==u){c=n(this)?Object(new this):[];var s,c,f,d,p,h=u.call(e);if(null==h)throw TypeError("Array.from requires an array-like or iterable object");for(f=0;;){if(!(d=a(h))){c.length=f;break}p=d.value,l?c[f]=l.call(s,p,f):c[f]=p,f++}}else{var m,y=Object(e);if(null==e)throw TypeError("Array.from requires an array-like object - not null or undefined");var v=Math.min(Math.max(r(y.length),0),9007199254740991);for(c=n(this)?Object(new this(v)):Array(v),f=0;f<v;)m=y[f],l?c[f]=l.call(s,m,f):c[f]=m,f++;c.length=v}return c})},49889:function(e){var n;n=function(){return function(e){var n,r,o=document,i=e.container||o.createElement("div");i.id=i.id||"autocomplete-"+y();var a=i.style,l=e.debounceWaitMs||0,u=e.preventSubmit||!1,s=e.disableAutoSelect||!1,c=[],f="",d=2,p=e.showOnFocus,h=0;if(void 0!==e.minLength&&(d=e.minLength),!e.input)throw Error("input undefined");var m=e.input;function y(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}function v(){r&&window.clearTimeout(r)}function b(){return!!i.parentNode}function g(){var e;h++,c=[],f="",n=void 0,m.setAttribute("aria-activedescendant",""),m.setAttribute("aria-expanded","false"),(e=i.parentNode)&&e.removeChild(i)}function w(){for(;i.firstChild;)i.removeChild(i.firstChild);m.setAttribute("aria-activedescendant","");var r=function(e,n,r){var i=o.createElement("div");return i.textContent=e.label||"",i};e.render&&(r=e.render);var l=function(e,n){var r=o.createElement("div");return r.textContent=e,r};e.renderGroup&&(l=e.renderGroup);var u=o.createDocumentFragment(),s="#9?$";if(c.forEach(function(o,a){if(o.group&&o.group!==s){s=o.group;var c=l(o.group,f);c&&(c.className+=" group",u.appendChild(c))}var d=r(o,f,a);d&&(d.id=i.id+"_"+a,d.setAttribute("role","option"),d.addEventListener("click",function(n){e.onSelect(o,m),g(),n.preventDefault(),n.stopPropagation()}),o===n&&(d.className+=" selected",d.setAttribute("aria-selected","true"),m.setAttribute("aria-activedescendant",d.id)),u.appendChild(d))}),i.appendChild(u),c.length<1){if(e.emptyMsg){var d=o.createElement("div");d.id=i.id+"_"+y(),d.className="empty",d.textContent=e.emptyMsg,i.appendChild(d),m.setAttribute("aria-activedescendant",d.id)}else{g();return}}i.parentNode||o.body.appendChild(i),function(){if(b()){m.setAttribute("aria-expanded","true"),a.height="auto",a.width=m.offsetWidth+"px";var n,r=0;l(),l(),e.customize&&n&&e.customize(m,n,i,r)}function l(){var e=o.documentElement,i=e.clientTop||o.body.clientTop||0,l=e.clientLeft||o.body.clientLeft||0,u=window.pageYOffset||e.scrollTop,s=window.pageXOffset||e.scrollLeft,c=(n=m.getBoundingClientRect()).top+m.offsetHeight+u-i,f=n.left+s-l;a.top=c+"px",a.left=f+"px",(r=window.innerHeight-(n.top+m.offsetHeight))<0&&(r=0),a.top=c+"px",a.bottom="",a.left=f+"px",a.maxHeight=r+"px"}}(),function(){var e=i.getElementsByClassName("selected");if(e.length>0){var n=e[0],r=n.previousElementSibling;if(r&&-1!==r.className.indexOf("group")&&!r.previousElementSibling&&(n=r),n.offsetTop<i.scrollTop)i.scrollTop=n.offsetTop;else{var o=n.offsetTop+n.offsetHeight,a=i.scrollTop+i.offsetHeight;o>a&&(i.scrollTop+=o-a)}}}()}function k(){b()&&w()}function O(e){e.target!==i?b()&&w():e.preventDefault()}function _(n){for(var r=n.which||n.keyCode||0,o=e.keysToIgnore||[38,13,27,39,37,16,17,18,20,91,9],i=0;i<o.length;i++)if(r===o[i])return;r>=112&&r<=123&&!e.keysToIgnore||40===r&&b()||S(0)}function j(r){var o=r.which||r.keyCode||0;if(38===o||40===o||27===o){var i=b();if(27===o)g();else{if(!i||c.length<1)return;38===o?function(){if(c.length<1)n=void 0;else if(n===c[0])n=c[c.length-1];else for(var e=c.length-1;e>0;e--)if(n===c[e]||1===e){n=c[e-1];break}}():function(){if(c.length<1&&(n=void 0),!n||n===c[c.length-1]){n=c[0];return}for(var e=0;e<c.length-1;e++)if(n===c[e]){n=c[e+1];break}}(),w()}r.preventDefault(),i&&r.stopPropagation();return}13===o&&(n&&(e.onSelect(n,m),g()),u&&r.preventDefault())}function P(){p&&S(1)}function S(o){var i=++h,a=m.value,u=m.selectionStart||0;a.length>
1=d||1===o?(v(),r=window.setTimeout(function(){e.fetch(a,function(e){h===i&&e&&(c=e,f=a,n=c.length<1||s?void 0:c[0],w())},o,u)},0===o?l:0)):g()}function E(){setTimeout(function(){o.activeElement!==m&&g()},200)}return i.className="autocomplete "+(e.className||""),i.setAttribute("role","listbox"),m.setAttribute("role","combobox"),m.setAttribute("aria-expanded","false"),m.setAttribute("aria-autocomplete","list"),m.setAttribute("aria-controls",i.id),m.setAttribute("aria-owns",i.id),m.setAttribute("aria-activedescendant",""),m.setAttribute("aria-haspopup","listbox"),a.position="absolute",i.addEventListener("mousedown",function(e){e.stopPropagation(),e.preventDefault()}),i.addEventListener("focus",function(){return m.focus()}),m.addEventListener("keydown",j),m.addEventListener("keyup",_),m.addEventListener("blur",E),m.addEventListener("focus",P),window.addEventListener("resize",k),o.addEventListener("scroll",O,!0),{destroy:function(){m.removeEventListener("focus",P),m.removeEventListener("keydown",j),m.removeEventListener("keyup",_),m.removeEventListener("blur",E),window.removeEventListener("resize",k),o.removeEventListener("scroll",O,!0),m.removeAttribute("role"),m.removeAttribute("aria-expanded"),m.removeAttribute("aria-autocomplete"),m.removeAttribute("aria-controls"),m.removeAttribute("aria-activedescendant"),m.removeAttribute("aria-owns"),m.removeAttribute("aria-haspopup"),v(),g()}}}},e.exports=n()}
vendor: 5,867 bytes, line 1
1,15371:function(e,n){n.defaults={},n.set=function(e,r,o){var i=o||{},a=n.defaults,l=i.expires||a.expires,u=i.domain||a.domain,s=void 0!==i.path?i.path:void 0!==a.path?a.path:"/",c=void 0!==i.secure?i.secure:a.secure,f=void 0!==i.httponly?i.httponly:a.httponly,d=void 0!==i.samesite?i.samesite:a.samesite,p=l?new Date("number"==typeof l?new Date().getTime()+864e5*l:l):0;document.cookie=e.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+r.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(p&&p.getTime()>=0?";expires="+p.toUTCString():"")+(u?";domain="+u:"")+(s?";path="+s:"")+(c?";secure":"")+(f?";httponly":"")+(d?";samesite="+d:"")},n.get=function(e){for(var n=document.cookie.split(";");n.length;){var r=n.pop(),o=r.indexOf("=");if(o=o<0?r.length:o,decodeURIComponent(r.slice(0,o).replace(/^\s+/,""))===e)return decodeURIComponent(r.slice(o+1))}return null},n.erase=function(e,r){n.set(e,"",{expires:-1,domain:r&&r.domain,path:r&&r.path,secure:0,httponly:0})},n.all=function(){for(var e={},n=document.cookie.split(";");n.length;){var r=n.pop(),o=r.indexOf("=");o=o<0?r.length:o,e[decodeURIComponent(r.slice(0,o).replace(/^\s+/,""))]=decodeURIComponent(r.slice(o+1))}return e}},10151:function(e){var n;n=function(){"use strict";var e,n,r,o,i=(e=o={exports:{}},o.exports,r=function(e){var n=function(e,n){return e+n&4294967295},r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function o(e,r,o,i,a,l){return r=n(n(r,e),n(i,l)),n(r<<a|r>>>32-a,o)}function i(e,n,r,i,a,l,u){return o(n&r|~n&i,e,n,a,l,u)}function a(e,n,r,i,a,l,u){return o(n&i|r&~i,e,n,a,l,u)}function l(e,n,r,i,a,l,u){return o(n^r^i,e,n,a,l,u)}function u(e,n,r,i,a,l,u){return o(r^(n|~i),e,n,a,l,u)}function s(e,r){var o=e[0],s=e[1],c=e[2],f=e[3];o=i(o,s,c,f,r[0],7,-680876936),f=i(f,o,s,c,r[1],12,-389564586),c=i(c,f,o,s,r[2],17,606105819),s=i(s,c,f,o,r[3],22,-1044525330),o=i(o,s,c,f,r[4],7,-176418897),f=i(f,o,s,c,r[5],12,1200080426),c=i(c,f,o,s,r[6],17,-1473231341),s=i(s,c,f,o,r[7],22,-45705983),o=i(o,s,c,f,r[8],7,1770035416),f=i(f,o,s,c,r[9],12,-1958414417),c=i(c,f,o,s,r[10],17,-42063),s=i(s,c,f,o,r[11],22,-1990404162),o=i(o,s,c,f,r[12],7,1804603682),f=i(f,o,s,c,r[13],12,-40341101),c=i(c,f,o,s,r[14],17,-1502002290),s=i(s,c,f,o,r[15],22,1236535329),o=a(o,s,c,f,r[1],5,-165796510),f=a(f,o,s,c,r[6],9,-1069501632),c=a(c,f,o,s,r[11],14,643717713),s=a(s,c,f,o,r[0],20,-373897302),o=a(o,s,c,f,r[5],5,-701558691),f=a(f,o,s,c,r[10],9,38016083),c=a(c,f,o,s,r[15],14,-660478335),s=a(s,c,f,o,r[4],20,-405537848),o=a(o,s,c,f,r[9],5,568446438),f=a(f,o,s,c,r[14],9,-1019803690),c=a(c,f,o,s,r[3],14,-187363961),s=a(s,c,f,o,r[8],20,1163531501),o=a(o,s,c,f,r[13],5,-1444681467),f=a(f,o,s,c,r[2],9,-51403784),c=a(c,f,o,s,r[7],14,1735328473),s=a(s,c,f,o,r[12],20,-1926607734),o=l(o,s,c,f,r[5],4,-378558),f=l(f,o,s,c,r[8],11,-2022574463),c=l(c,f,o,s,r[11],16,1839030562),s=l(s,c,f,o,r[14],23,-35309556),o=l(o,s,c,f,r[1],4,-1530992060),f=l(f,o,s,c,r[4],11,1272893353),c=l(c,f,o,s,r[7],16,-155497632),s=l(s,c,f,o,r[10],23,-1094730640),o=l(o,s,c,f,r[13],4,681279174),f=l(f,o,s,c,r[0],11,-358537222),c=l(c,f,o,s,r[3],16,-722521979),s=l(s,c,f,o,r[6],23,76029189),o=l(o,s,c,f,r[9],4,-640364487),f=l(f,o,s,c,r[12],11,-421815835),c=l(c,f,o,s,r[15],16,530742520),s=l(s,c,f,o,r[2],23,-995338651),o=u(o,s,c,f,r[0],6,-198630844),f=u(f,o,s,c,r[7],10,1126891415),c=u(c,f,o,s,r[14],15,-1416354905),s=u(s,c,f,o,r[5],21,-57434055),o=u(o,s,c,f,r[12],6,1700485571),f=u(f,o,s,c,r[3],10,-1894986606),c=u(c,f,o,s,r[10],15,-1051523),s=u(s,c,f,o,r[1],21,-2054922799),o=u(o,s,c,f,r[8],6,1873313359),f=u(f,o,s,c,r[15],10,-30611744),c=u(c,f,o,s,r[6],15,-1560198380),s=u(s,c,f,o,r[13],21,1309151649),o=u(o,s,c,f,r[4],6,-145523070),f=u(f,o,s,c,r[11],10,-1120210379),c=u(c,f,o,s,r[2],15,718787259),s=u(s,c,f,o,r[9],21,-343485551),e[0]=n(o,e[0]),e[1]=n(s,e[1]),e[2]=n(c,e[2]),e[3]=n(f,e[3])}function c(e){var n,r=[];for(n=0;n<64;n+=4)r[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return r}function f(e){var n,r=[];for(n=0;n<64;n+=4)r[n>>2]=e[n]+(e[n+1]<<8)+(e[n+2]<<16)+(e[n+3]<<24);return r}function d(e){var n,r,o,i,a,l,u=e.length,f=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=u;n+=64)s(f,c(e.substring(n-64,n)));for(r=(e=e.substring(n-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0;n<r;n+=1)o[n>>2]|=e.charCodeAt(n)<<(n%4<<3);if(o[n>>2]|=128<<(n%4<<3),n>55)for(s(f,o),n=0;n<16;n+=1)o[n]=0;return a=parseInt((i=(i=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(i[1],16)||0,o[14]=a,o[15]=l,s(f,o),f}function p(e){var n;for(n=0;n<e.length;n+=1)e[n]=function(e){var n,o="";for(n=0;n<4;n+=1)o+=r[e>>8*n+4&15]+r[e>>8*n&15];return o}(e[n]);return e.join("")}function h(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function m(e){var n,r=[],o=e.length;for(n=0;n<o-1;n+=2)r.push(parseInt(e.substr(n,2),16));return String.fromCharCode.apply(String,r)}function y(){this.reset()}return"5d41402abc4b2a76b9719d911017c592"!==p(d("hello"))&&(n=function(e,n){var r=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(r>>16)<<16|65535&r}),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function n(e,n){return(e=0|e||0)<0?Math.max(e+n,0):Math.min(e,n)}ArrayBuffer.prototype.slice=function(r,o){var i,a,l,u,s=this.byteLength,c=n(r,s),f=s;return(e!==o&&(f=n(o,s)),c>f)?new ArrayBuffer(0):(l=new Uint8Array(a=new ArrayBuffer(i=f-c)),u=new Uint8Array(this,c,i),l.set(u),a)}}(),y.prototype.append=function(e){return this.appendBinary(h(e)),this},y.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var n,r=this._buff.length;for(n=64;n<=r;n+=64)s(this._hash,c(this._buff.substring(n-64,n)));return this._buff=this._buff.substring(n-64),this},y.prototype.end=function(e){var n,r,o=this._buff,i=o.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n<i;n+=1)a[n>>
12]|=o.charCodeAt(n)<<(n%4<<3);return this._finish(a,i),r=p(this._hash),e&&(r=m(r)),this.reset(),r},y.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},y.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},y.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},y.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},y.prototype._finish=function(e,n){var r,o,i,a=n;if(e[a>>2]|=128<<(a%4<<3),a>55)for(s(this._hash,e),a=0;a<16;a+=1)e[a]=0;o=parseInt((r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),i=parseInt(r[1],16)||0,e[14]=o,e[15]=i,s(this._hash,e)},y.hash=function(e,n){return y.hashBinary(h(e),n)},y.hashBinary=function(e,n){var r=p(d(e));return n?m(r):r},y.ArrayBuffer=function(){this.reset()},y.ArrayBuffer.prototype.append=function(e){var n,r,o,i=((r=new Uint8Array((n=this._buff.buffer).byteLength+e.byteLength)).set(new Uint8Array(n)),r.set(new Uint8Array(e),n.byteLength),r),a=i.length;for(this._length+=e.byteLength,o=64;o<=a;o+=64)s(this._hash,f(i.subarray(o-64,o)));return this._buff=new Uint8Array(o-64<a?i.buffer.slice(o-64):0),this},y.ArrayBuffer.prototype.end=function(e){var n,r,o=this._buff,i=o.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n<i;n+=1)a[n>>2]|=o[n]<<(n%4<<3);return this._finish(a,i),r=p(this._hash),e&&(r=m(r)),this.reset(),r},y.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},y.ArrayBuffer.prototype.getState=function(){var e,n=y.prototype.getState.call(this);return n.buff=(e=n.buff,String.fromCharCode.apply(null,new Uint8Array(e))),n},y.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,n){var r,o=e.length,i=new ArrayBuffer(o),a=new Uint8Array(i);for(r=0;r<o;r+=1)a[r]=e.charCodeAt(r);return n?a:i}(e.buff,!0),y.prototype.setState.call(this,e)},y.ArrayBuffer.prototype.destroy=y.prototype.destroy,y.ArrayBuffer.prototype._finish=y.prototype._finish,y.ArrayBuffer.hash=function(e,n){var r=p(function(e){var n,r,o,i,a,l,u=e.length,c=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=u;n+=64)s(c,f(e.subarray(n-64,n)));for(r=(e=n-64<u?e.subarray(n-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0;n<r;n+=1)o[n>>2]|=e[n]<<(n%4<<3);if(o[n>>2]|=128<<(n%4<<3),n>55)for(s(c,o),n=0;n<16;n+=1)o[n]=0;return a=parseInt((i=(i=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(i[1],16)||0,o[14]=a,o[15]=l,s(c,o),c}(new Uint8Array(e)));return n?m(r):r},y},e.exports=r(),o.exports);class a{md5(e,n,r){this.aborted=!1,this.progress=0;let o=0,a=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,l=Math.ceil(e.size/2097152),u=new i.ArrayBuffer,s=new FileReader;function c(){let n=2097152*o,r=n+2097152>=e.size?e.size:n+2097152;s.readAsArrayBuffer(a.call(e,n,r))}c(),s.onloadend=e=>{if(u.append(e.target.result),o++,this.progress=o/l,r&&"function"==typeof r&&r(this.progress),this.aborted){n("aborted");return}o<l?c():n(null,u.end())}}abort(){this.aborted=!0}}return a},e.exports=n()},89480:function(e,n,r){"use strict";r.r(n),r.d(n,{compare:function(){return a},compareVersions:function(){return o},satisfies:function(){return l},validate:function(){return i}});let o=(e,n)=>{let r=s(e),o=s(n),i=r.pop(),a=o.pop(),l=h(r,o);return 0!==l?l:i&&a?h(i.split("."),a.split(".")):i||a?i?-1:1:0},i=e=>"string"==typeof e&&/^[v\d]/.test(e)&&u.test(e),a=(e,n,r)=>{v(r);let i=o(e,n);return m[r].includes(i)},l=(e,n)=>{let r=n.match(/^([<>=~^]+)/),o=r?r[1]:"=";if("^"!==o&&"~"!==o)return a(e,n,o);let[i,l,u,,c]=s(e),[f,d,p,,m]=s(n),y=[i,l,u],v=[f,null!=d?d:"x",null!=p?p:"x"];if(m&&(!c||0!==h(y,v)||-1===h(c.split("."),m.split("."))))return!1;let b=v.findIndex(e=>"0"!==e)+1,g="~"===o?2:b>1?b:1;return 0===h(y.slice(0,g),v.slice(0,g))&&-1!==h(y.slice(g),v.slice(g))},u=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,s=e=>{if("string"!=typeof e)throw TypeError("Invalid argument expected string");let n=e.match(u);
vendor: 5,855 bytes, line 1
1if(!n)throw Error(`Invalid argument not valid semver ('${e}' received)`);return n.shift(),n},c=e=>"*"===e||"x"===e||"X"===e,f=e=>{let n=parseInt(e,10);return isNaN(n)?e:n},d=(e,n)=>typeof e!=typeof n?[String(e),String(n)]:[e,n],p=(e,n)=>{if(c(e)||c(n))return 0;let[r,o]=d(f(e),f(n));return r>o?1:r<o?-1:0},h=(e,n)=>{for(let r=0;r<Math.max(e.length,n.length);r++){let o=p(e[r]||"0",n[r]||"0");if(0!==o)return o}return 0},m={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},y=Object.keys(m),v=e=>{if("string"!=typeof e)throw TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(-1===y.indexOf(e))throw Error(`Invalid operator, expected one of ${y.join("|")}`)}},18693:function(e,n,r){"use strict";var o=r(3230);e.exports=function(e,n){n=n||{};var r=o.boolean(n.allowUpdate,!0);return function(n){if(n=n||window.event,e.target=n.target||n.srcElement||n.originalTarget,e.element=this,e.type=n.type,r(n)){if(n.targetTouches)e.x=n.targetTouches[0].clientX,e.y=n.targetTouches[0].clientY,e.pageX=n.targetTouches[0].pageX,e.pageY=n.targetTouches[0].pageY,e.screenX=n.targetTouches[0].screenX,e.screenY=n.targetTouches[0].screenY;else{if(null===n.pageX&&null!==n.clientX){var o=n.target&&n.target.ownerDocument||document,i=o.documentElement,a=o.body;e.pageX=n.clientX+(i&&i.scrollLeft||a&&a.scrollLeft||0)-(i&&i.clientLeft||a&&a.clientLeft||0),e.pageY=n.clientY+(i&&i.scrollTop||a&&a.scrollTop||0)-(i&&i.clientTop||a&&a.clientTop||0)}else e.pageX=n.pageX,e.pageY=n.pageY;e.x=n.clientX,e.y=n.clientY,e.screenX=n.screenX,e.screenY=n.screenY}e.clientX=e.x,e.clientY=e.y}}}},25322:function(){!function(){if("undefined"!=typeof window)try{var e=new window.CustomEvent("test",{cancelable:!0});if(e.preventDefault(),!0!==e.defaultPrevented)throw Error("Could not prevent default")}catch(e){var n=function(e,n){var r,o;return(n=n||{}).bubbles=!!n.bubbles,n.cancelable=!!n.cancelable,(r=document.createEvent("CustomEvent")).initCustomEvent(e,n.bubbles,n.cancelable,n.detail),o=r.preventDefault,r.preventDefault=function(){o.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},r};n.prototype=window.Event.prototype,window.CustomEvent=n}}()},5343:function(e,n,r){"use strict";var o,i=r(3230),a=r(44719),l=r(21306),u=r(99725),s=(o=r(45302))&&"object"==typeof o&&"default"in o?o.default:o;function c(e,n){void 0===n&&(n={});var r=this,o=4,c=!1;this.margin=n.margin||-1,this.scrollWhenOutside=n.scrollWhenOutside||!1;var d={},p=u.createPointCB(d),h=s(),m=!1;window.addEventListener("mousemove",p,!1),window.addEventListener("touchmove",p,!1),isNaN(n.maxSpeed)||(o=n.maxSpeed),this.autoScroll=i.boolean(n.autoScroll),this.syncMove=i.boolean(n.syncMove,!1),this.destroy=function(n){window.removeEventListener("mousemove",p,!1),window.removeEventListener("touchmove",p,!1),window.removeEventListener("mousedown",O,!1),window.removeEventListener("touchstart",O,!1),window.removeEventListener("mouseup",_,!1),window.removeEventListener("touchend",_,!1),window.removeEventListener("pointerup",_,!1),window.removeEventListener("mouseleave",P,!1),window.removeEventListener("mousemove",E,!1),window.removeEventListener("touchmove",E,!1),window.removeEventListener("scroll",k,!0),e=[],n&&j()},this.add=function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return l.addElements.apply(void 0,[e].concat(n)),this},this.remove=function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return l.removeElements.apply(void 0,[e].concat(n))};var y,v=null;"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),b=e,e=[],b.forEach(function(e){e===window?v=window:r.add(e)}),Object.defineProperties(this,{down:{get:function(){return m}},maxSpeed:{get:function(){return o}},point:{get:function(){return d}},scrolling:{get:function(){return c}}});var b,g,w=null;function k(n){for(var r=0;r<e.length;r++)if(e[r]===n.target){c=!0;break}c&&a.requestAnimationFrame(function(){return c=!1})}function O(){m=!0}function _(){m=!1,j()}function j(){a.cancelAnimationFrame(g),a.cancelAnimationFrame(y)}function P(){m=!1}function S(){for(var n=null,r=0;r<e.length;r++)f(d,e[r])&&(n=e[r]);return n}function E(n){if(r.autoScroll()&&!n.dispatched){var o=n.target,i=document.body;!w||f(d,w)||r.scrollWhenOutside||(w=null),o&&o.parentNode===i?o=S():(o=function(n){if(!n)return null;if(w===n||l.hasElement(e,n))return n;for(;n=n.parentNode;)if(l.hasElement(e,n))return n;return null}(o))||(o=S()),o&&o!==w&&(w=o),v&&(a.cancelAnimationFrame(y),y=a.requestAnimationFrame(x)),w&&(a.cancelAnimationFrame(g),g=a.requestAnimationFrame(C))}}function x(){R(v),a.cancelAnimationFrame(y),y=a.requestAnimationFrame(x)}function C(){w&&(R(w),a.cancelAnimationFrame(g),g=a.requestAnimationFrame(C))}function R(e){var n,o,i=u.getClientRect(e);n=d.x<i.left+r.margin?Math.floor(Math.max(-1,(d.x-i.left)/r.margin-1)*r.maxSpeed):d.x>i.right-r.margin?Math.ceil(Math.min(1,(d.x-i.right)/r.margin+1)*r.maxSpeed):0,o=d.y<i.top+r.margin?Math.floor(Math.max(-1,(d.y-i.top)/r.margin-1)*r.maxSpeed):d.y>i.bottom-r.margin?Math.ceil(Math.min(1,(d.y-i.bottom)/r.margin+1)*r.maxSpeed):0,r.syncMove()&&h.dispatch(e,{pageX:d.pageX+n,pageY:d.pageY+o,clientX:d.x+n,clientY:d.y+o}),setTimeout(function(){o&&(e===window?window.scrollTo(e.pageXOffset,e.pageYOffset+o):e.scrollTop+=o),n&&(e===window?window.scrollTo(e.pageXOffset+n,e.pageYOffset):e.scrollLeft+=n)})}window.addEventListener("mousedown",O,!1),window.addEventListener("touchstart",O,!1),window.addEventListener("mouseup",_,!1),window.addEventListener("touchend",_,!1),window.addEventListener("pointerup",_,!1),window.addEventListener("mousemove",E,!1),window.addEventListener("touchmove",E,!1),window.addEventListener("mouseleave",P,!1),window.addEventListener("scroll",k,!0)}function f(e,n,r){return r?e.y>r.top&&e.y<r.bottom&&e.x>r.left&&e.x<r.right:u.pointInside(e,n)}
1e.exports=function(e,n){return new c(e,n)}},45302:function(e){"use strict";var n,r=void 0;"function"!=typeof Object.create?(n=function(){},r=function(e,r){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");n.prototype=e||{};var o=new n;return n.prototype=null,void 0!==r&&Object.defineProperties(o,r),null===e&&(o.__proto__=null),o}):r=Object.create;var o=r,i=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function a(e,n){n=n||{};for(var r=o(e),a=0;a<i.length;a++)void 0!==n[i[a]]&&(r[i[a]]=n[i[a]]);return r}function l(e,n){console.log("data ",n),e.data=n||{},e.dispatched="mousemove"}e.exports=function(e){var n={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null};function r(e){for(var r=0;r<i.length;r++)n[i[r]]=e[i[r]]}return void 0!==e&&e.addEventListener("mousemove",r),{destroy:function(){e&&e.removeEventListener("mousemove",r,!1),n=null},dispatch:MouseEvent?function(e,r,o){var i=new MouseEvent("mousemove",a(n,r));return l(i,o),e.dispatchEvent(i)}:"function"==typeof document.createEvent?function(e,r,o){var i=a(n,r),u=document.createEvent("MouseEvents");return u.initMouseEvent("mousemove",!0,!0,window,0,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,i.relatedTarget),l(u,o),e.dispatchEvent(u)}:"function"==typeof document.createEventObject?function(e,r,o){var i=document.createEventObject(),u=a(n,r);for(var s in u)i[s]=u[s];return l(i,o),e.dispatchEvent(i)}:void 0}}},99725:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,i=(o=r(18693))&&"object"==typeof o&&"default"in o?o.default:o;function a(e){if(e===window)return function(){var e={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},e);var n={};return Object.defineProperties(n,e),n}();try{var n=e.getBoundingClientRect();return void 0===n.x&&(n.x=n.left,n.y=n.top),n}catch(n){throw TypeError("Can't call getBoundingClientRect on "+e)}}n.createPointCB=i,n.getClientRect=a,n.pointInside=function(e,n){var r=a(n);return e.y>r.top&&e.y<r.bottom&&e.x>r.left&&e.x<r.right}},21306:function(e,n,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(n,"__esModule",{value:!0});var i=o(r(17665)),a=o(r(98216)),l=o(r(14667)),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},s=function(e){return null!=e&&(void 0===e?"undefined":u(e))==="object"&&1===e.nodeType&&"object"===u(e.style)&&"object"===u(e.ownerDocument)};function c(e){if("string"==typeof e)try{return document.querySelector(e)}catch(e){throw e}else if(l(e))return e}function f(e,n){if(!s(n=h(n,!0)))return -1;for(var r=0;r<e.length;r++)if(e[r]===n)return r;return -1}function d(e,n){return -1!==f(e,n)}function p(e){if(!e)return[];try{if("string"==typeof e)return i(document.querySelectorAll(e));if(a(e))return e.map(h);if(void 0===e.length)return[h(e)];return i(e,h)}catch(e){throw Error(e)}}function h(e,n){if("string"==typeof e)try{return document.querySelector(e)}catch(e){throw e}if(!s(e)&&!n)throw TypeError(e+" is not a DOM element.");return e}n.indexOfElement=f,n.hasElement=d,n.domListOf=p,n.concatElementLists=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return e.reduce(function(e,n){return n.length?e:e.concat(p(n))},[])},n.addElements=function(e){for(var n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return function(e,n){for(var r=0;r<n.length;r++)d(e,n[r])||e.push(n[r]);return n}(e,n=n.map(h))},n.removeElements=function(e){for(var n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return n.map(h).reduce(function(n,r){var o=f(e,r);return -1!==o?n.concat(e.splice(o,1)):n},[])},n.resolveElement=h,n.select=c,n.selectAll=function(e){return"string"==typeof e?Array.prototype.slice.apply(document.querySelectorAll(e)):a(e)?e.map(c):"length"in e?i(e).map(c):void 0}},81641:function(e,n){var r,o,i;o=[],void 0!==(i="function"==typeof(r=function(){return function e(n,r,o){var i,a,l=window,u="application/octet-stream",s=o||u,c=n,f=!r&&!o&&c,d=document.createElement("a"),p=function(e){return String(e)},h=l.Blob||l.MozBlob||l.WebKitBlob||p,m=r||"download";if(h=h.call?h.bind(l):Blob,"true"===String(this)&&(s=(c=[c,s])[0],c=c[1]),f&&f.length<2048&&(m=f.split("/").pop().split("?")[0],d.href=f,-1!==d.href.indexOf(f))){var y=new XMLHttpRequest;return y.open("GET",f,!0),y.responseType="blob",y.onload=function(n){e(n.target.response,m,u)},setTimeout(function(){y.send()},0),y}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(c)){if(!(c.length>2096103.424)||h===p)return navigator.msSaveBlob?navigator.msSaveBlob(w(c),m):k(c);s=(c=w(c)).type||u}else if(/([\x80-\xff])/.test(c)){for(var v=0,b=new Uint8Array(c.length),g=b.length;v<g;++v)b[v]=c.charCodeAt(v);c=new h([b],{type:s})}function w(e){for(var n=e.split(/[:;
1,]/),r=n[1],o=("base64"==n[2]?atob:decodeURIComponent)(n.pop()),i=o.length,a=0,l=new Uint8Array(i);a<i;++a)l[a]=o.charCodeAt(a);return new h([l],{type:r})}function k(e,n){if("download"in d)return d.href=e,d.setAttribute("download",m),d.className="download-js-link",d.innerHTML="downloading...",d.style.display="none",document.body.appendChild(d),setTimeout(function(){d.click(),document.body.removeChild(d),!0===n&&setTimeout(function(){l.URL.revokeObjectURL(d.href)},250)},66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,u)),!window.open(e)&&confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=e),!0;var r=document.createElement("iframe");document.body.appendChild(r),!n&&/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,u)),r.src=e,setTimeout(function(){document.body.removeChild(r)},333)}if(i=c instanceof h?c:new h([c],{type:s}),navigator.msSaveBlob)return navigator.msSaveBlob(i,m);if(l.URL)k(l.URL.createObjectURL(i),!0);else{if("string"==typeof i||i.constructor===p)try{return k("data:"+s+";base64,"+l.btoa(i))}catch(e){return k("data:"+s+","+encodeURIComponent(i))}(a=new FileReader).onload=function(e){k(this.result)},a.readAsDataURL(i)}return!0}})?r.apply(n,o):r)&&(e.exports=i)},21996:function(e,n,r){var o;o=function(){return(function e(n,r,o){function i(l,u){if(!r[l]){if(!n[l]){if(a)return a(l,!0);var s=Error("Cannot find module '"+l+"'");throw s.code="MODULE_NOT_FOUND",s}var c=r[l]={exports:{}};n[l][0].call(c.exports,function(e){return i(n[l][1][e]||e)},c,c.exports,e,n,r,o)}return r[l].exports}for(var a=void 0,l=0;l<o.length;l++)i(o[l]);return i})({1:[function(e,n,r){"use strict";var o={};function i(e){var n=o[e];return n?n.lastIndex=0:o[e]=n=RegExp("(?:^|\\s)"+e+"(?:\\s|$)","g"),n}n.exports={add:function(e,n){var r=e.className;r.length?i(n).test(r)||(e.className+=" "+n):e.className=n},rm:function(e,n){e.className=e.className.replace(i(n)," ").trim()}}},{}],2:[function(e,n,o){(function(r){"use strict";var o=e("contra/emitter"),i=e("crossvent"),a=e("./classes"),l=document,u=l.documentElement;function s(e,n,o,a){r.navigator.pointerEnabled?i[n](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[o],a):r.navigator.msPointerEnabled?i[n](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[o],a):(i[n](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[o],a),i[n](e,o,a))}function c(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var n=e.button;if(void 0!==n)return 1&n?1:2&n?3:4&n?2:0}function f(e,n){return void 0!==r[n]?r[n]:u.clientHeight?u[e]:l.body[e]}function d(e,n,r){var o,i=(e=e||{}).className||"";return e.className+=" gu-hide",o=l.elementFromPoint(n,r),e.className=i,o}function p(){return!1}function h(){return!0}function m(e){return e.width||e.right-e.left}function y(e){return e.height||e.bottom-e.top}function v(e){return e.parentNode===l?null:e.parentNode}function b(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||function e(n){return!!n&&"false"!==n.contentEditable&&("true"===n.contentEditable||e(v(n)))}(e)}function g(e){return e.nextElementSibling||function(){var n=e;do n=n.nextSibling;while(n&&1!==n.nodeType);return n}()}function w(e,n){var r=n.targetTouches&&n.targetTouches.length?n.targetTouches[0]:n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,o={pageX:"clientX",pageY:"clientY"};return e in o&&!(e in r)&&o[e]in r&&(e=o[e]),r[e]}n.exports=function(e,n){var r,k,O,_,j,P,S,E,x,C,R,A,M=arguments.length;1===M&&!1===Array.isArray(e)&&(n=e,e=[]);var T=null,D=n||{};void 0===D.moves&&(D.moves=h),void 0===D.accepts&&(D.accepts=h),void 0===D.invalid&&(D.invalid=function(){return!1}),void 0===D.containers&&(D.containers=e||[]),void 0===D.isContainer&&(D.isContainer=p),void 0===D.copy&&(D.copy=!1),void 0===D.copySortSource&&(D.copySortSource=!1),void 0===D.revertOnSpill&&(D.revertOnSpill=!1),void 0===D.removeOnSpill&&(D.removeOnSpill=!1),void 0===D.direction&&(D.direction="vertical"),void 0===D.ignoreInputTextSelection&&(D.ignoreInputTextSelection=!0),void 0===D.mirrorContainer&&(D.mirrorContainer=l.body);var I=o({containers:D.containers,start:function(e){var n=q(e);n&&H(n)},end:W,cancel:X,remove:J,destroy:function(){V(!0),G({})},canMove:function(e){return!!q(e)},dragging:!1});return!0===D.removeOnSpill&&I.on("over",function(e){a.rm(e,"gu-hide")}).on("out",function(e){I.dragging&&a.add(e,"gu-hide")}),V(),I;function L(e){return -1!==I.containers.indexOf(e)||D.isContainer(e)}function V(e){var n=e?"remove":"add";s(u,n,"mousedown",B),s(u,n,"mouseup",G)}function N(e){s(u,e?"remove":"add","mousemove",z)}function F(e){var n=e?"remove":"add";
1i[n](u,"selectstart",U),i[n](u,"click",U)}function U(e){A&&e.preventDefault()}function B(e){if(P=e.clientX,S=e.clientY,1===c(e)&&!e.metaKey&&!e.ctrlKey){var n=e.target,r=q(n);r&&(A=r,N(),"mousedown"===e.type&&(b(n)?n.focus():e.preventDefault()))}}function z(e){if(A){if(0===c(e)){G({});return}if(!(void 0!==e.clientX&&Math.abs(e.clientX-P)<=(D.slideFactorX||0)&&void 0!==e.clientY&&Math.abs(e.clientY-S)<=(D.slideFactorY||0))){if(D.ignoreInputTextSelection){var n,o=w("clientX",e)||0,i=w("clientY",e)||0;if(b(l.elementFromPoint(o,i)))return}var d=A;N(!0),F(),W(),H(d);var p={left:(n=O.getBoundingClientRect()).left+f("scrollLeft","pageXOffset"),top:n.top+f("scrollTop","pageYOffset")};_=w("pageX",e)-p.left,j=w("pageY",e)-p.top,a.add(C||O,"gu-transit"),function(){if(!r){var e=O.getBoundingClientRect();(r=O.cloneNode(!0)).style.width=m(e)+"px",r.style.height=y(e)+"px",a.rm(r,"gu-transit"),a.add(r,"gu-mirror"),D.mirrorContainer.appendChild(r),s(u,"add","mousemove",et),a.add(D.mirrorContainer,"gu-unselectable"),I.emit("cloned",r,O,"mirror")}}(),et(e)}}}function q(e){if(!(I.dragging&&r||L(e))){for(var n=e;v(e)&&!1===L(v(e));)if(D.invalid(e,n)||!(e=v(e)))return;var o=v(e);if(!(!o||D.invalid(e,n))&&D.moves(e,o,n,g(e)))return{item:e,source:o}}}function H(e){var n,r;n=e.item,r=e.source,("boolean"==typeof D.copy?D.copy:D.copy(n,r))&&(C=e.item.cloneNode(!0),I.emit("cloned",C,e.item,"copy")),k=e.source,O=e.item,E=x=g(e.item),I.dragging=!0,I.emit("drag",O,k)}function W(){if(I.dragging){var e=C||O;Y(e,v(e))}}function K(){A=!1,N(!0),F(!0)}function G(e){if(K(),I.dragging){var n=C||O,o=w("clientX",e)||0,i=w("clientY",e)||0,a=ee(d(r,o,i),o,i);a&&(C&&D.copySortSource||!C||a!==k)?Y(n,a):D.removeOnSpill?J():X()}}function Y(e,n){var r=v(e);C&&D.copySortSource&&n===k&&r.removeChild(O),Q(n)?I.emit("cancel",e,k,k):I.emit("drop",e,n,k,x),Z()}function J(){if(I.dragging){var e=C||O,n=v(e);n&&n.removeChild(e),I.emit(C?"cancel":"remove",e,n,k),Z()}}function X(e){if(I.dragging){var n=arguments.length>0?e:D.revertOnSpill,r=C||O,o=v(r),i=Q(o);!1===i&&n&&(C?o&&o.removeChild(C):k.insertBefore(r,E)),i||n?I.emit("cancel",r,k,k):I.emit("drop",r,o,k,x),Z()}}function Z(){var e=C||O;K(),r&&(a.rm(D.mirrorContainer,"gu-unselectable"),s(u,"remove","mousemove",et),v(r).removeChild(r),r=null),e&&a.rm(e,"gu-transit"),R&&clearTimeout(R),I.dragging=!1,T&&I.emit("out",e,T,k),I.emit("dragend",e),k=O=C=E=x=R=T=null}function Q(e,n){var o;return o=void 0!==n?n:r?x:g(C||O),e===k&&o===E}function ee(e,n,r){for(var o=e;o&&!function(){if(!1===L(o))return!1;var i=en(o,e),a=er(o,i,n,r);return!!Q(o,a)||D.accepts(O,o,k,a)}();)o=v(o);return o}function et(e){if(r){e.preventDefault();var n,o=w("clientX",e)||0,i=w("clientY",e)||0,a=o-_,l=i-j;r.style.left=a+"px",r.style.top=l+"px";var u=C||O,s=d(r,o,i),c=ee(s,o,i),f=null!==c&&c!==T;(f||null===c)&&(T&&m("out"),T=c,f&&m("over"));var p=v(u);if(c===k&&C&&!D.copySortSource){p&&p.removeChild(u);return}var h=en(c,s);if(null!==h)n=er(c,h,o,i);else if(!0!==D.revertOnSpill||C){C&&p&&p.removeChild(u);return}else n=E,c=k;(null===n&&f||n!==u&&n!==g(u))&&(x=n,c.insertBefore(u,n),I.emit("shadow",u,c,k))}function m(e){I.emit(e,u,T,k)}}function en(e,n){for(var r=n;r!==e&&v(r)!==e;)r=v(r);return r===u?null:r}function er(e,n,r,o){var i,a="horizontal"===D.direction;return n!==e?(i=n.getBoundingClientRect(),a?r>i.left+m(i)/2?g(n):n:o>i.top+y(i)/2?g(n):n):function(){var n,i,l,u=e.children.length;for(n=0;n<u;n++)if(l=(i=e.children[n]).getBoundingClientRect(),a&&l.left+l.width/2>r||!a&&l.top+l.height/2>o)return i;return null}()}}}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":1,"contra/emitter":5,crossvent:6}],3:[function(e,n,r){n.exports=function(e,n){return Array.prototype.slice.call(e,n)}},{}],4:[function(e,n,r){"use strict";var o=e("ticky");n.exports=function(e,n,r){e&&o(function(){e.apply(r||null,n||[])})}},{ticky:10}],5:[function(e,n,r){"use strict";var o=e("atoa"),i=e("./debounce");n.exports=function(e,n){var r=n||{},a={};return void 0===e&&(e={}),e.on=function(n,r){return a[n]?a[n].push(r):a[n]=[r],e},e.once=function(n,r){return r._once=!0,e.on(n,r),e},e.off=function(n,r){var o=arguments.length;if(1===o)delete a[n];else if(0===o)a={};else{var i=a[n];if(!i)return e;i.splice(i.indexOf(r),1)}return e},e.emit=function(){var n=o(arguments);return e.emitterSnapshot(n.shift()).apply(this,n)},e.emitterSnapshot=function(n){var l=(a[n]||[]).slice(0);return function(){var a=o(arguments),u=this||e;if("error"===n&&!1!==r.throws&&!l.length)throw 1===a.length?a[0]:a;return l.forEach(function(o){r.async?i(o,a,u):o.apply(u,a),o._once&&e.off(n,o)}),e}},e}},{"./debounce":4,atoa:3}],6:[function(e,n,o){(function(r){"use strict";var o=e("custom-event"),i=e("./eventmap"),a=r.document,l=function(e,n,r,o){return e.addEventListener(n,r,o)},u=function(e,n,r,o){return e.removeEventListener(n,r,o)},s=[];function c(e,n,r){var o=function(e,n,r){var o,i;for(o=0;o<s.length;o++)if((i=s[o]).element===e&&i.type===n&&i.fn===r)return o}(e,n,r);if(o){var i=s[o].wrapper;return s.splice(o,1),i}}r.addEventListener||(l=function(e,n,o){var i,a,l,u;return e.attachEvent("on"+n,(u=c(i=e,a=n,l=o)||function(e){var n=e||r.event;n.target=n.target||n.srcElement,n.preventDefault=n.preventDefault||function(){n.returnValue=!1},n.stopPropagation=n.stopPropagation||function(){n.cancelBubble=!0},n.which=n.which||n.keyCode,l.call(i,n)},s.push({wrapper:u,element:i,type:a,fn:l}),u))},u=function(e,n,r){var o=c(e,n,r);if(o)return e.detachEvent("on"+n,o)}),n.exports={add:l,remove:u,fabricate:function(e,n,r){var l,u=-1===i.indexOf(n)?new o(n,{detail:r}):(a.createEvent?(l=a.createEvent("Event")).initEvent(n,!0,!0):a.createEventObject&&(l=a.createEventObject()),l);e.dispatchEvent?e.dispatchEvent(u):e.fireEvent("on"+n,u)}}}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./eventmap":7,"custom-event":8}],7:[function(e,n,o){(function(e){"use strict";var r=[],o="",i=/^on/;for(o in e)i.test(o)&&r.push(o.slice(2));n.exports=r}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,n,o){(function(e){var r=e.CustomEvent;n.exports=!function(){try{var e=new r("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,n){var r=document.createEvent("CustomEvent");return n?r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail):r.initCustomEvent(e,!1,!1,void 0),r}:function(e,n){var r=document.createEventObject();return r.type=e,n?(r.bubbles=!!n.bubbles,r.cancelable=!!n.cancelable,r.detail=n.detail):(r.bubbles=!1,r.cancelable=!1,r.detail=void 0),r}:r}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(e,n,r){var o,i,a,l=n.exports={};function u(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function c(e){if(o===setTimeout)return setTimeout(e,0);if((o===u||!o)&&setTimeout)return o=setTimeout,setTimeout(e,0);try{return o(e,0)}catch(n){try{return o.call(null,e,0)}catch(n){return o.call(this,e,0)}}}!function(){try{o="function"==typeof setTimeout?setTimeout:u}catch(e){o=u}try{i="function"==typeof clearTimeout?clearTimeout:s}
1catch(e){i=s}}();var f=[],d=!1,p=-1;function h(){d&&a&&(d=!1,a.length?f=a.concat(f):p=-1,f.length&&m())}function m(){if(!d){var e=c(h);d=!0;for(var n=f.length;n;){for(a=f,f=[];++p<n;)a&&a[p].run();p=-1,n=f.length}a=null,d=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(n){try{return i.call(null,e)}catch(n){return i.call(this,e)}}}(e)}}function y(e,n){this.fun=e,this.array=n}function v(){}l.nextTick=function(e){var n=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];f.push(new y(e,n)),1!==f.length||d||c(m)},y.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=v,l.addListener=v,l.once=v,l.off=v,l.removeListener=v,l.removeAllListeners=v,l.emit=v,l.prependListener=v,l.prependOnceListener=v,l.listeners=function(e){return[]},l.binding=function(e){throw Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(e){throw Error("process.chdir is not supported")},l.umask=function(){return 0}},{}],10:[function(e,n,r){(function(e){var r;r="function"==typeof e?function(n){e(n)}:function(e){setTimeout(e,0)},n.exports=r}).call(this,e("timers").setImmediate)},{timers:11}],11:[function(e,n,r){(function(n,o){var i=e("process/browser.js").nextTick,a=Function.prototype.apply,l=Array.prototype.slice,u={},s=0;function c(e,n){this._id=e,this._clearFn=n}r.setTimeout=function(){return new c(a.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new c(a.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,n){clearTimeout(e._idleTimeoutId),e._idleTimeout=n},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var n=e._idleTimeout;n>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},n))},r.setImmediate="function"==typeof n?n:function(e){var n=s++,o=!(arguments.length<2)&&l.call(arguments,1);return u[n]=!0,i(function(){u[n]&&(o?e.apply(null,o):e.call(null),r.clearImmediate(n))}),n},r.clearImmediate="function"==typeof o?o:function(e){delete u[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":9,timers:11}]},{},[2])(2)},e.exports=o()},91355:function(e,n,r){var o,i=r(34406);!function(a){var l=Object.hasOwnProperty,u=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},s="object"==typeof i&&"function"==typeof i.nextTick,c="function"==typeof Symbol,f="object"==typeof Reflect,d="function"==typeof setImmediate?setImmediate:setTimeout,p=c?f&&"function"==typeof Reflect.ownKeys?Reflect.ownKeys:function(e){var n=Object.getOwnPropertyNames(e);return n.push.apply(n,Object.getOwnPropertySymbols(e)),n}:Object.keys;function h(){this._events={},this._conf&&m.call(this,this._conf)}function m(e){e&&(this._conf=e,e.delimiter&&(this.delimiter=e.delimiter),a!==e.maxListeners&&(this._maxListeners=e.maxListeners),e.wildcard&&(this.wildcard=e.wildcard),e.newListener&&(this._newListener=e.newListener),e.removeListener&&(this._removeListener=e.removeListener),e.verboseMemoryLeak&&(this.verboseMemoryLeak=e.verboseMemoryLeak),e.ignoreErrors&&(this.ignoreErrors=e.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function y(e,n){var r="(node) warning: possible EventEmitter memory leak detected. "+e+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(r+=" Event name: "+n+"."),void 0!==i&&i.emitWarning){var o=Error(r);o.name="MaxListenersExceededWarning",o.emitter=this,o.count=e,i.emitWarning(o)}else console.error(r),console.trace&&console.trace()}var v=function(e,n,r){var o=arguments.length;switch(o){case 0:return[];case 1:return[e];case 2:return[e,n];case 3:return[e,n,r];default:for(var i=Array(o);o--;)i[o]=arguments[o];return i}};function b(e,n){for(var r={},o=e.length,i=n?n.length:0,l=0;l<o;l++)r[e[l]]=l<i?n[l]:a;return r}function g(e,n,r){if(this._emitter=e,this._target=n,this._listeners={},this._listenersCount=0,(r.on||r.off)&&(o=r.on,i=r.off),n.addEventListener?(o=n.addEventListener,i=n.removeEventListener):n.addListener?(o=n.addListener,i=n.removeListener):n.on&&(o=n.on,i=n.off),!o&&!i)throw Error("target does not implement any known event API");if("function"!=typeof o)throw TypeError("on method must be a function");if("function"!=typeof i)throw TypeError("off method must be a function");this._on=o,this._off=i;var o,i,a=e._observers;a?a.push(this):e._observers=[this]}function w(e,n,r,o){var i,u,s,c=Object.assign({},n);if(!e)return c;if("object"!=typeof e)throw TypeError("options must be an object");var f=Object.keys(e),d=f.length;function p(e){throw Error('Invalid "'+i+'" option value'+(e?". Reason: "+e:""))}for(var h=0;h<d;h++){if(i=f[h],!o&&!l.call(n,i))throw Error('Unknown "'+i+'" option');a!==(u=e[i])&&(s=r[i],c[i]=s?s(u,p):u)}return c}function k(e,n){return"function"==typeof e&&e.hasOwnProperty("prototype")||n("value must be a constructor"),e}function O(e){var n="value must be type of "+e.join("|"),r=e.length,o=e[0],i=e[1];return 1===r?function(e,r){if(typeof e===o)return e;r(n)}:2===r?function(e,r){var a=typeof e;if(a===o||a===i)return e;r(n)}:function(o,i){for(var a=typeof o,l=r;l-- >0;)if(a===e[l])return o;i(n)}}Object.assign(g.prototype,{subscribe:function(e,n,r){var o=this,i=this._target,a=this._emitter,l=this._listeners,u=function(){var o=v.apply(null,arguments),l={data:o,name:n,original:e};if(r){!1!==r.call(i,l)&&a.emit.apply(a,[l.name].concat(o));return}a.emit.apply(a,[n].concat(o))};if(l[e])throw Error("Event '"+e+"' is already listening");this._listenersCount++,a._newListener&&a._removeListener&&!o._onNewListener?(this._onNewListener=function(r){r===n&&null===l[e]&&(l[e]=u,o._on.call(i,e,u))},a.on("newListener",this._onNewListener),this._onRemoveListener=function(r){r===n&&!a.hasListeners(r)&&l[e]&&(l[e]=null,o._off.call(i,e,u))},l[e]=null,a.on("removeListener",this._onRemoveListener)):(l[e]=u,o._on.call(i,e,u))},unsubscribe:function(e){var n,r,o,i=this,a=this._listeners,l=this._emitter,u=this._off,s=this._target;if(e&&"string"!=typeof e)throw TypeError("event must be a string");function c(){i._onNewListener&&(l.off("newListener",i._onNewListener),l.off("removeListener",i._onRemoveListener),i._onNewListener=null,i._onRemoveListener=null);var e=S.call(l,i);l._observers.splice(e,1)}if(e){if(!(n=a[e]))return;u.call(s,e,n),delete a[e],--this._listenersCount||c()}else{for(o=(r=p(a)).length;o-- >0;)e=r[o],u.call(s,e,a[e]);this._listeners={},this._listenersCount=0,c()}}});var _=O(["function"]),j=O(["object","function"]);function P(e,n,r){var o,i,a,l=0,u=new e(function(s,c,f){function d(){i&&(i=null),l&&(clearTimeout(l),l=0)}o=!(r=w(r,{timeout:0,overload:!1},{timeout:function(e,n){return("number"!=typeof(e*=1)||e<0||!Number.isFinite(e))&&n("timeout must be a positive number"),e}})).overload&&"function"==typeof e.prototype.cancel&&"function"==typeof f;var p=function(e){d(),s(e)},h=function(e){d(),c(e)};
1o?n(p,h,f):(i=[function(e){h(e||Error("canceled"))}],n(p,h,function(e){if(a)throw Error("Unable to subscribe on cancel event asynchronously");if("function"!=typeof e)throw TypeError("onCancel callback must be a function");i.push(e)}),a=!0),r.timeout>0&&(l=setTimeout(function(){var e=Error("timeout");e.code="ETIMEDOUT",l=0,u.cancel(e),c(e)},r.timeout))});return o||(u.cancel=function(e){if(i){for(var n=i.length,r=1;r<n;r++)i[r](e);i[0](e),i=null}}),u}function S(e){var n=this._observers;if(!n)return -1;for(var r=n.length,o=0;o<r;o++)if(n[o]._target===e)return o;return -1}function E(e,n,r,o,i){if(!r)return null;if(0===o){var a=typeof n;if("string"===a){var l,u,s=0,c=0,f=this.delimiter,d=f.length;if(-1!==(u=n.indexOf(f))){l=[,,,,,];do l[s++]=n.slice(c,u),c=u+d;while(-1!==(u=n.indexOf(f,c)));l[s++]=n.slice(c),n=l,i=s}else n=[n],i=1}else"object"===a?i=n.length:(n=[n],i=1)}var h,m,y,v,b,g,w,k=null,O=n[o],_=n[o+1];if(o===i)r._listeners&&("function"==typeof r._listeners?e&&e.push(r._listeners):e&&e.push.apply(e,r._listeners),k=[r]);else{if("*"===O){for(u=(g=p(r)).length;u-- >0;)"_listeners"!==(h=g[u])&&(w=E(e,n,r[h],o+1,i))&&(k?k.push.apply(k,w):k=w);return k}if("**"===O){for((b=o+1===i||o+2===i&&"*"===_)&&r._listeners&&(k=E(e,n,r,i,i)),u=(g=p(r)).length;u-- >0;)"_listeners"!==(h=g[u])&&("*"===h||"**"===h?(r[h]._listeners&&!b&&(w=E(e,n,r[h],i,i))&&(k?k.push.apply(k,w):k=w),w=E(e,n,r[h],o,i)):w=h===_?E(e,n,r[h],o+2,i):E(e,n,r[h],o,i),w&&(k?k.push.apply(k,w):k=w));return k}r[O]&&(k=E(e,n,r[O],o+1,i))}if((m=r["*"])&&E(e,n,m,o+1,i),y=r["**"]){if(o<i)for(y._listeners&&E(e,n,y,i,i),u=(g=p(y)).length;u-- >0;)"_listeners"!==(h=g[u])&&(h===_?E(e,n,y[h],o+2,i):h===O?E(e,n,y[h],o+1,i):((v={})[h]=y[h],E(e,n,{"**":v},o+1,i)));else y._listeners?E(e,n,y,i,i):y["*"]&&y["*"]._listeners&&E(e,n,y["*"],i,i)}return k}function x(e,n,r){var o,i,a=0,l=0,u=this.delimiter,s=u.length;if("string"==typeof e){if(-1!==(o=e.indexOf(u))){i=[,,,,,];do i[a++]=e.slice(l,o),l=o+s;while(-1!==(o=e.indexOf(u,l)));i[a++]=e.slice(l)}else i=[e],a=1}else i=e,a=e.length;if(a>1){for(o=0;o+1<a;o++)if("**"===i[o]&&"**"===i[o+1])return}var c,f=this.listenerTree;for(o=0;o<a;o++)if(f=f[c=i[o]]||(f[c]={}),o===a-1){f._listeners?("function"==typeof f._listeners&&(f._listeners=[f._listeners]),r?f._listeners.unshift(n):f._listeners.push(n),!f._listeners.warned&&this._maxListeners>0&&f._listeners.length>this._maxListeners&&(f._listeners.warned=!0,y.call(this,f._listeners.length,c))):f._listeners=n;break}return!0}function C(e,n,r,o){for(var i,a,l,u,s=p(e),c=s.length,f=e._listeners;c-- >0;)i=e[a=s[c]],l="_listeners"===a?r:r?r.concat(a):[a],u=o||"symbol"==typeof a,f&&n.push(u?l:l.join(this.delimiter)),"object"==typeof i&&C.call(this,i,n,l,u);return n}function R(e){for(var n,r,o,i=p(e),a=i.length;a-- >0;)(n=e[r=i[a]])&&(o=!0,"_listeners"===r||R(n)||delete e[r]);return o}function A(e,n,r){this.emitter=e,this.event=n,this.listener=r}function M(e,n,r){if(!0===r)l=!0;else if(!1===r)o=!0;else{if(!r||"object"!=typeof r)throw TypeError("options should be an object or true");var o=r.async,l=r.promisify,u=r.nextTick,c=r.objectify}if(o||u||l){var f=n,p=n._origin||n;if(u&&!s)throw Error("process.nextTick is not supported");a===l&&(l="AsyncFunction"===n.constructor.name),(n=function(){var e=arguments,n=this,r=this.event;return l?u?Promise.resolve():new Promise(function(e){d(e)}).then(function(){return n.event=r,f.apply(n,e)}):(u?i.nextTick:d)(function(){n.event=r,f.apply(n,e)})})._async=!0,n._origin=p}return[n,c?new A(this,e,n):this]}function T(e){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,m.call(this,e)}A.prototype.off=function(){return this.emitter.off(this.event,this.listener),this},T.EventEmitter2=T,T.prototype.listenTo=function(e,n,r){if("object"!=typeof e)throw TypeError("target musts be an object");var o=this;return r=w(r,{on:a,off:a,reducers:a},{on:_,off:_,reducers:j}),function(n){if("object"!=typeof n)throw TypeError("events must be an object");var i,a,l=r.reducers,u=S.call(o,e);i=-1===u?new g(o,e,r):o._observers[u];for(var s=p(n),c=s.length,f="function"==typeof l,d=0;d<c;d++)a=s[d],i.subscribe(a,n[a]||a,f?l:l&&l[a])}(u(n)?b(n):"string"==typeof n?b(n.split(/\s+/)):n),this},T.prototype.stopListeningTo=function(e,n){var r,o=this._observers;if(!o)return!1;var i=o.length,a=!1;if(e&&"object"!=typeof e)throw TypeError("target should be an object");for(;i-- >0;)r=o[i],e&&r._target!==e||(r.unsubscribe(n),a=!0);return a},T.prototype.delimiter=".",T.prototype.setMaxListeners=function(e){a!==e&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},T.prototype.getMaxListeners=function(){return this._maxListeners},T.prototype.event="",T.prototype.once=function(e,n,r){return this._once(e,n,!1,r)},T.prototype.prependOnceListener=function(e,n,r){return this._once(e,n,!0,r)},T.prototype._once=function(e,n,r,o){return this._many(e,1,n,r,o)},T.prototype.many=function(e,n,r,o){return this._many(e,n,r,!1,o)}
1,T.prototype.prependMany=function(e,n,r,o){return this._many(e,n,r,!0,o)},T.prototype._many=function(e,n,r,o,i){var a=this;if("function"!=typeof r)throw Error("many only accepts instances of Function");function l(){return 0==--n&&a.off(e,l),r.apply(this,arguments)}return l._origin=r,this._on(e,l,o,i)},T.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||h.call(this);var e,n,r,o,i,a,l,u=arguments[0],s=this.wildcard;if("newListener"===u&&!this._newListener&&!this._events.newListener)return!1;if(s&&(l=u,"newListener"!==u&&"removeListener"!==u&&"object"==typeof u)){if(n=u.length,c){for(r=0;r<n;r++)if("symbol"==typeof u[r]){i=!0;break}}i||(u=u.join(this.delimiter))}var f=arguments.length;if(this._all&&this._all.length)for(r=0,n=(a=this._all.slice()).length;r<n;r++)switch(this.event=u,f){case 1:a[r].call(this,u);break;case 2:a[r].call(this,u,arguments[1]);break;case 3:a[r].call(this,u,arguments[1],arguments[2]);break;default:a[r].apply(this,arguments)}if(s)a=[],E.call(this,a,l,this.listenerTree,0,n);else{if("function"==typeof(a=this._events[u])){switch(this.event=u,f){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:for(o=1,e=Array(f-1);o<f;o++)e[o-1]=arguments[o];a.apply(this,e)}return!0}a&&(a=a.slice())}if(a&&a.length){if(f>3)for(o=1,e=Array(f-1);o<f;o++)e[o-1]=arguments[o];for(r=0,n=a.length;r<n;r++)switch(this.event=u,f){case 1:a[r].call(this);break;case 2:a[r].call(this,arguments[1]);break;case 3:a[r].call(this,arguments[1],arguments[2]);break;default:a[r].apply(this,e)}return!0}if(!this.ignoreErrors&&!this._all&&"error"===u){if(arguments[1]instanceof Error)throw arguments[1];throw Error("Uncaught, unspecified 'error' event.")}return!!this._all},T.prototype.emitAsync=function(){if(!this._events&&!this._all)return!1;this._events||h.call(this);var e,n,r,o,i,a,l,u=arguments[0],s=this.wildcard;if("newListener"===u&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);if(s&&(a=u,"newListener"!==u&&"removeListener"!==u&&"object"==typeof u)){if(n=u.length,c){for(r=0;r<n;r++)if("symbol"==typeof u[r]){l=!0;break}}l||(u=u.join(this.delimiter))}var f=[],d=arguments.length;if(this._all)for(r=0,n=this._all.length;r<n;r++)switch(this.event=u,d){case 1:f.push(this._all[r].call(this,u));break;case 2:f.push(this._all[r].call(this,u,arguments[1]));break;case 3:f.push(this._all[r].call(this,u,arguments[1],arguments[2]));break;default:f.push(this._all[r].apply(this,arguments))}if(s?(i=[],E.call(this,i,a,this.listenerTree,0)):i=this._events[u],"function"==typeof i)switch(this.event=u,d){case 1:f.push(i.call(this));break;case 2:f.push(i.call(this,arguments[1]));break;case 3:f.push(i.call(this,arguments[1],arguments[2]));break;default:for(o=1,e=Array(d-1);o<d;o++)e[o-1]=arguments[o];f.push(i.apply(this,e))}else if(i&&i.length){if(i=i.slice(),d>3)for(o=1,e=Array(d-1);o<d;o++)e[o-1]=arguments[o];for(r=0,n=i.length;r<n;r++)switch(this.event=u,d){case 1:f.push(i[r].call(this));break;case 2:f.push(i[r].call(this,arguments[1]));break;case 3:f.push(i[r].call(this,arguments[1],arguments[2]));break;default:f.push(i[r].apply(this,e))}}else if(!this.ignoreErrors&&!this._all&&"error"===u)return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(f)},T.prototype.on=function(e,n,r){return this._on(e,n,!1,r)},T.prototype.prependListener=function(e,n,r){return this._on(e,n,!0,r)},T.prototype.onAny=function(e){return this._onAny(e,!1)},T.prototype.prependAny=function(e){return this._onAny(e,!0)},T.prototype.addListener=T.prototype.on,T.prototype._onAny=function(e,n){if("function"!=typeof e)throw Error("onAny only accepts instances of Function");return this._all||(this._all=[]),n?this._all.unshift(e):this._all.push(e),this},T.prototype._on=function(e,n,r,o){if("function"==typeof e)return this._onAny(e,n),this;if("function"!=typeof n)throw Error("on only accepts instances of Function");this._events||h.call(this);var i,l=this;return(a!==o&&(n=(i=M.call(this,e,n,o))[0],l=i[1]),this._newListener&&this.emit
1("newListener",e,n),this.wildcard)?x.call(this,e,n,r):this._events[e]?("function"==typeof this._events[e]&&(this._events[e]=[this._events[e]]),r?this._events[e].unshift(n):this._events[e].push(n),!this._events[e].warned&&this._maxListeners>0&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,y.call(this,this._events[e].length,e))):this._events[e]=n,l},T.prototype.off=function(e,n){if("function"!=typeof n)throw Error("removeListener only takes instances of Function");var r,o=[];if(this.wildcard){var i="string"==typeof e?e.split(this.delimiter):e.slice();if(!(o=E.call(this,null,i,this.listenerTree,0)))return this}else{if(!this._events[e])return this;r=this._events[e],o.push({_listeners:r})}for(var a=0;a<o.length;a++){var l=o[a];if(u(r=l._listeners)){for(var s=-1,c=0,f=r.length;c<f;c++)if(r[c]===n||r[c].listener&&r[c].listener===n||r[c]._origin&&r[c]._origin===n){s=c;break}if(s<0)continue;return this.wildcard?l._listeners.splice(s,1):this._events[e].splice(s,1),0===r.length&&(this.wildcard?delete l._listeners:delete this._events[e]),this._removeListener&&this.emit("removeListener",e,n),this}(r===n||r.listener&&r.listener===n||r._origin&&r._origin===n)&&(this.wildcard?delete l._listeners:delete this._events[e],this._removeListener&&this.emit("removeListener",e,n))}return this.listenerTree&&R(this.listenerTree),this},T.prototype.offAny=function(e){var n,r=0,o=0;if(e&&this._all&&this._all.length>0){for(r=0,o=(n=this._all).length;r<o;r++)if(e===n[r]){n.splice(r,1),this._removeListener&&this.emit("removeListenerAny",e);break}}else{if(n=this._all,this._removeListener)for(r=0,o=n.length;r<o;r++)this.emit("removeListenerAny",n[r]);this._all=[]}return this},T.prototype.removeListener=T.prototype.off,T.prototype.removeAllListeners=function(e){if(a===e)return this._events&&h.call(this),this;if(this.wildcard){var n,r=E.call(this,null,e,this.listenerTree,0);if(!r)return this;for(n=0;n<r.length;n++)r[n]._listeners=null;this.listenerTree&&R(this.listenerTree)}else this._events&&(this._events[e]=null);return this},T.prototype.listeners=function(e){var n,r,o,i,l,u=this._events;if(a===e){if(this.wildcard)throw Error("event name required for wildcard emitter");if(!u)return[];for(i=(n=p(u)).length,o=[];i-- >0;)"function"==typeof(r=u[n[i]])?o.push(r):o.push.apply(o,r);return o}if(this.wildcard){if(!(l=this.listenerTree))return[];var s=[],c="string"==typeof e?e.split(this.delimiter):e.slice();return E.call(this,s,c,l,0),s}return u&&(r=u[e])?"function"==typeof r?[r]:r:[]},T.prototype.eventNames=function(e){var n=this._events;return this.wildcard?C.call(this,this.listenerTree,[],null,e):n?p(n):[]},T.prototype.listenerCount=function(e){return this.listeners(e).length},T.prototype.hasListeners=function(e){if(this.wildcard){var n=[],r="string"==typeof e?e.split(this.delimiter):e.slice();return E.call(this,n,r,this.listenerTree,0),n.length>0}var o=this._events,i=this._all;return!!(i&&i.length||o&&(a===e?p(o).length:o[e]))},T.prototype.listenersAny=function(){return this._all?this._all:[]},T.prototype.waitFor=function(e,n){var r=this,o=typeof n;return"number"===o?n={timeout:n}:"function"===o&&(n={filter:n}),P((n=w(n,{timeout:0,filter:a,handleError:!1,Promise:Promise,overload:!1},{filter:_,Promise:k})).Promise,function(o,i,a){function l(){var a=n.filter;if(!a||a.apply(r,arguments)){if(r.off(e,l),n.handleError){var u=arguments[0];u?i(u):o(v.apply(null,arguments).slice(1))}else o(v.apply(null,arguments))}}a(function(){r.off(e,l)}),r._on(e,l,!1)},{timeout:n.timeout,overload:n.overload})};var D=T.prototype;Object.defineProperties(T,{defaultMaxListeners:{get:function(){return D._maxListeners},set:function(e){if("number"!=typeof e||e<0||Number.isNaN(e))throw TypeError("n must be a non-negative number");D._maxListeners=e},enumerable:!0},once:{value:function(e,n,r){return P((r=w(r,{Promise:Promise,timeout:0,overload:!1},{Promise:k}
1)).Promise,function(r,o,i){if("function"==typeof e.addEventListener){a=function(){r(v.apply(null,arguments))},i(function(){e.removeEventListener(n,a)}),e.addEventListener(n,a,{once:!0});return}var a,l,u=function(){l&&e.removeListener("error",l),r(v.apply(null,arguments))};"error"!==n&&(l=function(r){e.removeListener(n,u),o(r)},e.once("error",l)),i(function(){l&&e.removeListener("error",l),e.removeListener(n,u)}),e.once(n,u)},{timeout:r.timeout,overload:r.overload})},writable:!0,configurable:!0}}),Object.defineProperties(D,{_maxListeners:{value:10,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),a!==(o=(function(){return T}).call(n,r,n,e))&&(e.exports=o)}()},10161:function(e){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function o(){}function i(e,n,r){this.fn=e,this.context=n,this.once=r||!1}function a(e,n,o,a,l){if("function"!=typeof o)throw TypeError("The listener must be a function");var u=new i(o,a||e,l),s=r?r+n:n;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],u]:e._events[s].push(u):(e._events[s]=u,e._eventsCount++),e}function l(e,n){0==--e._eventsCount?e._events=new o:delete e._events[n]}function u(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(r=!1)),u.prototype.eventNames=function(){var e,o,i=[];if(0===this._eventsCount)return i;for(o in e=this._events)n.call(e,o)&&i.push(r?o.slice(1):o);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},u.prototype.listeners=function(e){var n=r?r+e:e,o=this._events[n];if(!o)return[];if(o.fn)return[o.fn];for(var i=0,a=o.length,l=Array(a);i<a;i++)l[i]=o[i].fn;return l},u.prototype.listenerCount=function(e){var n=r?r+e:e,o=this._events[n];return o?o.fn?1:o.length:0},u.prototype.emit=function(e,n,o,i,a,l){var u=r?r+e:e;if(!this._events[u])return!1;var s,c,f=this._events[u],d=arguments.length;if(f.fn){switch(f.once&&this.removeListener(e,f.fn,void 0,!0),d){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,n),!0;case 3:return f.fn.call(f.context,n,o),!0;case 4:return f.fn.call(f.context,n,o,i),!0;case 5:return f.fn.call(f.context,n,o,i,a),!0;case 6:return f.fn.call(f.context,n,o,i,a,l),!0}for(c=1,s=Array(d-1);c<d;c++)s[c-1]=arguments[c];f.fn.apply(f.context,s)}else{var p,h=f.length;for(c=0;c<h;c++)switch(f[c].once&&this.removeListener(e,f[c].fn,void 0,!0),d){case 1:f[c].fn.call(f[c].context);break;case 2:f[c].fn.call(f[c].context,n);break;case 3:f[c].fn.call(f[c].context,n,o);break;case 4:f[c].fn.call(f[c].context,n,o,i);break;default:if(!s)for(p=1,s=Array(d-1);p<d;p++)s[p-1]=arguments[p];f[c].fn.apply(f[c].context,s)}}return!0},u.prototype.on=function(e,n,r){return a(this,e,n,r,!1)},u.prototype.once=function(e,n,r){return a(this,e,n,r,!0)},u.prototype.removeListener=function(e,n,o,i){var a=r?r+e:e;if(!this._events[a])return this;if(!n)return l(this,a),this;var u=this._events[a];if(u.fn)u.fn!==n||i&&!u.once||o&&u.context!==o||l(this,a);else{for(var s=0,c=[],f=u.length;s<f;s++)(u[s].fn!==n||i&&!u[s].once||o&&u[s].context!==o)&&c.push(u[s]);c.length?this._events[a]=1===c.length?c[0]:c:l(this,a)}return this},u.prototype.removeAllListeners=function(e){var n;return e?(n=r?r+e:e,this._events[n]&&l(this,n)):(this._events=new o,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u},4547:function(e,n,r){var o;!function(i){"use strict";function a(e){var r,o=e&&e.Promise||i.Promise,a=e&&e.XMLHttpRequest||i.XMLHttpRequest;return r=Object.create(i,{fetch:{value:void 0,writable:!0}}),function(e){var n=void 0!==r&&r||"undefined"!=typeof self&&self||void 0!==n&&n,i={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};if(i.arrayBuffer)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array
1]"],u=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var n={next:function(){var n=e.shift();return{done:void 0===n,value:n}}};return i.iterable&&(n[Symbol.iterator]=function(){return n}),n}function d(e){this.map={},e instanceof d?e.forEach(function(e,n){this.append(n,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(n){this.append(n,e[n])},this)}function p(e){if(e.bodyUsed)return o.reject(TypeError("Already read"));e.bodyUsed=!0}function h(e){return new o(function(n,r){e.onload=function(){n(e.result)},e.onerror=function(){r(e.error)}})}function m(e){var n=new FileReader,r=h(n);return n.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var n=new Uint8Array(e.byteLength);return n.set(new Uint8Array(e)),n.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(i.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var n;i.arrayBuffer&&i.blob&&(n=e)&&DataView.prototype.isPrototypeOf(n)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?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(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return o.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return o.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return o.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?o.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):o.resolve(this._bodyArrayBuffer)):this.blob().then(m)}),this.text=function(){var e,n,r,i=p(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,r=h(n=new FileReader),n.readAsText(e),r;if(this._bodyArrayBuffer)return o.resolve(function(e){for(var n=new Uint8Array(e),r=Array(n.length),o=0;o<n.length;o++)r[o]=String.fromCharCode(n[o]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return o.resolve(this._bodyText);throw Error("could not read FormData body as text")},i.formData&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,n){e=s(e),n=c(n);var r=this.map[e];this.map[e]=r?r+", "+n:n},d.prototype.delete=function(e){delete this.map[s(e)]},d.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},d.prototype.set=function(e,n){this.map[s(e)]=c(n)},d.prototype.forEach=function(e,n){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(n,this.map[r],r,this)},d.prototype.keys=function(){var e=[];return this.forEach(function(n,r){e.push(r)}),f(e)},d.prototype.values=function(){var e=[];return this.forEach(function(n){e.push(n)}),f(e)},d.prototype.entries=function(){var e=[];return this.forEach(function(n,r){e.push([r,n])}),f(e)},i.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(e,n){if(!(this instanceof g))throw TypeError('Please use the "new" operator, this DOM object c
1onstructor cannot be called as a function.');var r,o,i=(n=n||{}).body;if(e instanceof g){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",(n.headers||!this.headers)&&(this.headers=new d(n.headers)),this.method=(o=(r=n.method||this.method||"GET").toUpperCase(),b.indexOf(o)>-1?o:r),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),("GET"===this.method||"HEAD"===this.method)&&("no-store"===n.cache||"no-cache"===n.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function w(e){var n=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),o=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");n.append(decodeURIComponent(o),decodeURIComponent(i))}}),n}function k(e,n){if(!(this instanceof k))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');n||(n={}),this.type="default",this.status=void 0===n.status?200:n.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in n?n.statusText:"",this.headers=new d(n.headers),this.url=n.url||"",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},v.call(g.prototype),v.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},k.error=function(){var e=new k(null,{status:0,statusText:""});return e.type="error",e};var O=[301,302,303,307,308];k.redirect=function(e,n){if(-1===O.indexOf(n))throw RangeError("Invalid status code");return new k(null,{status:n,headers:{location:e}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(n){e.DOMException=function(e,n){this.message=e,this.name=n;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function _(r,l){return new o(function(o,u){var s=new g(r,l);if(s.signal&&s.signal.aborted)return u(new e.DOMException("Aborted","AbortError"));var f=new a;function p(){f.abort()}f.onload=function(){var e,n,r={status:f.status,statusText:f.statusText,headers:(e=f.getAllResponseHeaders()||"",n=new d,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),o=r.shift().trim();if(o){var i=r.join(":").trim();n.append(o,i)}}),n)};r.url="responseURL"in f?f.responseURL:r.headers.get("X-Request-URL");var i="response"in f?f.response:f.responseText;setTimeout(function(){o(new k(i,r))},0)},f.onerror=function(){setTimeout(function(){u(TypeError("Network request failed"))},0)},f.ontimeout=function(){setTimeout(function(){u(TypeError("Network request failed"))},0)},f.onabort=function(){setTimeout(function(){u(new e.DOMException("Aborted","AbortError"))},0)},f.open(s.method,function(e){try{return""===e&&n.location.href?n.location.href:e}catch(n){return e}}(s.url),!0),"include"===s.credentials?f.withCredentials=!0:"omit"===s.credentials&&(f.withCredentials=!1),"responseType"in f&&(i.blob?f.responseType="blob":i.arrayBuffer&&s.headers.get("Content-Type")&&-1!==s.headers.get("Content-Type").indexOf("application/octet-stream")&&(f.responseType="arraybuffer")),!l||"object"!=typeof l.headers||l.headers instanceof d?s.headers.forEach(function(e,n){f.setRequestHeader(n,e)}):Object.getOwnPropertyNames(l.headers).forEach(function(e){f.setRequestHeader(e,c(l.headers[e]))}),s.signal&&(s.signal.addEventListener("abort",p),f.onreadystatechange=function(){4===f.readyState&&s.signal.removeEventListener("abort",p)}),f.send(void 0===s._bodyInit?null:s._bodyInit)})}_.polyfill=!0,n.fetch||(n.fetch=_,n.Headers=d,n.Request=g,n.Response=k),e.Headers=d,e.Request=g,e.Response=k,e.fetch=_,Object.defineProperty(e,"__esMo
1dule",{value:!0})}(n),{fetch:r.fetch,Headers:r.Headers,Request:r.Request,Response:r.Response,DOMException:r.DOMException}}void 0!==(o=(function(){return a}).call(n,r,n,e))&&(e.exports=o)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==r.g?r.g:this)},87340:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(26944),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var i=function(){var e;function n(e){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n),this.baseUrl=e||"https://cdn.form.io",this.overrides={},this.libs={ace:"1.4.12",bootstrap:"4.6.2",ckeditor:"19.0.0",flatpickr:"4.6.8","flatpickr-formio":"4.6.13-formio.3","font-awesome":"4.7.0",grid:"latest","moment-timezone":"latest",quill:"2.0.0-dev.3","shortcut-buttons-flatpickr":"0.4.0",uswds:"2.4.8",core:""},this.updateUrls()}return e=[{key:"getVersion",value:function(e){return this.libs[e]}},{key:"setVersion",value:function(e,n){this.libs[e]=n,this.updateUrls()}},{key:"setBaseUrl",value:function(e){this.baseUrl=e,this.updateUrls()}},{key:"setOverrideUrl",value:function(e,n){this.overrides[e]=n,this.updateUrls()}},{key:"removeOverride",value:function(e){delete this.overrides[e],this.updateUrls()}},{key:"removeOverrides",value:function(){this.overrides={},this.updateUrls()}},{key:"buildUrl",value:function(e,n,r){return"latest"===r||""===r?"".concat(e,"/").concat(n):"".concat(e,"/").concat(n,"/").concat(r)}},{key:"updateUrls",value:function(){for(var e in this.libs)e in this.overrides?this[e]=this.buildUrl(this.overrides[e],e,this.libs[e]):this[e]=this.buildUrl(this.baseUrl,e,this.libs[e])}}],function(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=i},62670:function(e,n,r){"use strict";r(26944),r(11102),r(17943),r(15469),r(1542),r(92370),r(77762),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(45343),r(43001),r(88455),r(17223),r(32334),r(92100),r(18036),r(59012),r(12551),r(97172),r(76381),r(41126),r(5746),r(69446),r(6588),r(28121),r(83972),r(30902),r(18997),r(24956),r(6765),r(12443),r(92884);var o=d(r(10976)),i=r(38388),a=function(e,n){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!=typeof e)return{default:e};var r=f(void 0);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(9494)),l=d(r(23867)),u=d(r(76635)),s=d(r(89868)),c=d(r(93808));function f(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:n})(e)}function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var h=function(){var e;function n(e){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n),this.options=Object.assign({language:"en",highlightErrors:!0,componentErrorClass:"formio-error-wrapper",componentWarningClass:"formio-warning-wrapper",row:"",namespace:"formio"},e||{}),this.id=a.getRandomComponentId(),this.eventHandlers=[],this.i18next=this.options.i18next||l.default,this.events=e&&e.events?e.events:new o.default,this.defaultMask=null,this.helplinks="false"!==this.options.helplinks&&(this.options.helplinks||"https://help.form.io")}return e=[{key:"on",value:function(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.events){var i="".concat(this.options.namespace,".").concat(e);return n.id=this.id,n.key=this.key,n.internal=r,this.events[o?"once":"on"](i,n)}}},{key:"once",value:function(e,n,r){return this.on(e,n,r,!0)}},{key:"onAny",value:function(e){if(this.events)return this.events.onAny(e)}},{key:"offAny",value:function(e){if(this.events)return this.events.offAny(e)}},{key:"off",value:function(e,n){var r=this;if(this.events){var o="".concat(this.options.namespace,".").concat(e);
1this.events.listeners(o).forEach(function(e){e&&e.id===r.id&&(!n||n===e)&&r.events.off(o,e)})}}},{key:"emit",value:function(e){if(this.events){for(var n,r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];(n=this.events).emit.apply(n,["".concat(this.options.namespace,".").concat(e)].concat(o))}}},{key:"hasEventHandler",value:function(e){var n=this;if(!this.events)return!1;var r="".concat(this.options.namespace,".").concat(e);return this.events.listeners(r).some(function(e){return!!e&&(e.id===n.id||e.key===n.key)})}},{key:"addEventListener",value:function(e,n,r,o){if(e)return o||this.eventHandlers.push({id:this.id,obj:e,type:n,func:r}),"addEventListener"in e?e.addEventListener(n,r,!1):"attachEvent"in e&&e.attachEvent("on".concat(n),r),this}},{key:"removeEventListener",value:function(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=[];if(e)return this.eventHandlers.forEach(function(a,l){a.id===r.id&&e.removeEventListener&&a.type===n&&(!o||a.func===o)&&(e.removeEventListener(n,a.func),i.push(l))}),i.length&&u.default.pullAt(this.eventHandlers,i),this}},{key:"removeEventListeners",value:function(){var e=this;this.eventHandlers.forEach(function(n){e.id===n.id&&n.type&&n.obj&&n.obj.removeEventListener&&n.obj.removeEventListener(n.type,n.func)}),this.eventHandlers=[]}},{key:"removeAllEvents",value:function(e){var n=this;u.default.each(this.events._events,function(r,o){u.default.each(r,function(r){r&&n.id===r.id&&(e||r.internal)&&n.events.off(o,r)})})}},{key:"destroy",value:function(){this.removeEventListeners(),this.removeAllEvents()}},{key:"appendTo",value:function(e,n){return null==n||n.appendChild(e),this}},{key:"prependTo",value:function(e,n){if(n){if(n.firstChild)try{n.insertBefore(e,n.firstChild)}catch(r){console.warn(r),n.appendChild(e)}else n.appendChild(e)}return this}},{key:"removeChildFrom",value:function(e,n){if(n&&n.contains(e))try{n.removeChild(e)}catch(e){console.warn(e)}return this}},{key:"ce",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=document.createElement(e);return n&&this.attr(o,n),this.appendChild(o,r),o}},{key:"appendChild",value:function(e,n){var r=this;return Array.isArray(n)?n.forEach(function(n){return r.appendChild(e,n)}):n instanceof HTMLElement||n instanceof Text?e.appendChild(n):n&&e.appendChild(this.text(n.toString())),this}},{key:"maskPlaceholder",value:function(e){var n=this;return e.map(function(e){return e instanceof RegExp?n.placeholderChar:e}).join("")}},{key:"placeholderChar",get:function(){var e;return(null===(e=this.component)||void 0===e?void 0:e.inputMaskPlaceholderChar)||"_"}},{key:"setInputMask",value:function(e,n,r){if(e&&n){var o=a.getInputMask(n,this.placeholderChar);this.defaultMask=o;try{e.mask&&e.mask.destroy(),e.mask=(0,c.default)({inputElement:e,mask:o,placeholderChar:this.placeholderChar,shadowRoot:this.root?this.root.shadowRoot:null})}catch(e){console.warn(e)}o.numeric&&e.setAttribute("pattern","\\d*"),r&&e.setAttribute("placeholder",this.maskPlaceholder(o))}}},{key:"t",value:function(e){for(var n,r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return(n=this.i18next).t.apply(n,[e].concat(o))}},{key:"text",value:function(e){return document.createTextNode(this.t(e))}},{key:"attr",value:function(e,n){var r=this;e&&u.default.each(n,function(n,o){void 0!==n&&(0===o.indexOf("on")?r.addEventListener(e,o.substr(2).toLowerCase(),n):e.setAttribute(o,n))})}},{key:"hasClass",value:function(e,n){return!!e&&(n=" ".concat(n," ")," ".concat(e.className," ").replace(/[\n\t\r]/g," ").indexOf(n)>-1)}},{key:"addClass",value:function(e,n){if(!e||!(e instanceof HTMLElement))return this;var r=e.getAttribute("class");return null!=r&&r.includes(n)||e.setAttribute("class","".concat(r," ").concat(n)),this}},{key:"removeClass",value:function(e,n){if(!e||!n||!(e instanceof HTMLElement))return this;var r=e.getAttribute("class");return r&&(r=r.replace(RegExp(" ".concat(n),"g"),""),e.setAttribute("class",r)),this}},{key:"empty",value:function(e){if(e)for(;e.firstChild;)e.removeChild(e.firstChild)}},{key:"evalContext",value:function(e){var n;return Object.assign({_:u.default,utils:a,util:a,user:i.GlobalFormio.getUser(),moment:s.default,instance:this,self:this,token:i.GlobalFormio.getToken({decode:!0}),config:this.root&&this.root.form&&this.root.form.config?this.root.form.config:null!==(n=this.options)&&void 0!==n&&n.formConfig?this.options.formConfig:{}},e,u.default.get(this.root,"options.evalContext",{}))}},{key:"interpolate",value:function(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"function"!=typeof e&&(this.component.content||this.component.html)&&!a.Evaluator.templateSettings.interpolate.test(e)&&(e=a.translateHTMLTemplate(String(e),function(e){return r.t(e)})),a.interpolate(e,this.evalContext(n),o)}},{key:"evaluate",value:function(e,n,r,o){return a.evaluate(e,this.evalContext(n),r,o)}},{key:"hook",value:function(){var e=arguments[0];if(this.options&&this.options.hooks&&this.options.hooks[e])return this.options.hooks[e].apply(this,Array.prototype.slice.call(arguments,1
1));var n="function"==typeof arguments[arguments.length-1]?arguments[arguments.length-1]:null;return n?n(null,arguments[1]):arguments[1]}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==p(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==p(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===p(n)?n:String(n)}(o.key),o)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=h},10976:function(e,n,r){"use strict";r(26944),r(27846),r(9473),r(22818),r(19169),r(77762),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(92370),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var o=r(10161),i=function(e,n){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var r=a(void 0);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var s=i?Object.getOwnPropertyDescriptor(e,u):null;s&&(s.get||s.set)?Object.defineProperty(o,u,s):o[u]=e[u]}return o.default=e,r&&r.set(e,o),o}(r(9494));function a(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:n})(e)}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,n){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function s(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=f(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==l(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===l(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var p=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&u(e,n)}(o,e);var n,r=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=f(o);return e=n?Reflect.construct(r,arguments,f(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===l(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return s(e)}(this,e)});function o(){var e,n,a,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,o);var u=l.loadLimit,p=void 0===u?1e3:u,h=l.eventsSafeInterval,m=void 0===h?300:h;d(s(a=r.call(this)),"onAny",function(e){a.on("any",e)}),d(s(a),"offAny",function(e){a.off("any",e)});var y=i.observeOverload(function(){console.warn("There were more than ".concat(p," events emitted in ").concat(m," ms. It might be caused by events' infinite loop"),a.id)},{limit:p,delay:m});return a.emit=function(){for(var r,i,l=arguments.length,u=Array(l),d=0;d<l;d++)u[d]=arguments[d];(r=c((e=s(a),f(o.prototype)),"emit",e)).call.apply(r,[e].concat(u)),(i=c((n=s(a),f(o.prototype)),"emit",n)).call.apply(i,[n,"any"].concat(u)),y()},a}return Object.defineProperty(o,"prototype",{writable:!1}),o}(o.EventEmitter);n.default=p},15587:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(17943),r(15469),r(92370),r(1542),r(77762),r(11102),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(45343),r(59012),r(17223),r(12551),r(43001),r(75162),r(27846),r(9473),r(22818);var i=d(r(62670)),a=r(38388),l=d(r(68619)),u=d(r(8159)),s=function(e,n){if(e&&e.__esMo
1dule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=f(void 0);if(r&&r.has(e))return r.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var u=a?Object.getOwnPropertyDescriptor(e,l):null;u&&(u.get||u.set)?Object.defineProperty(i,l,u):i[l]=e[l]}return i.default=e,r&&r.set(e,i),i}(r(9494)),c=d(r(18947));function f(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:n})(e)}function d(e){return e&&e.__esModule?e:{default:e}}function p(e,n,r){return(p=y()?Reflect.construct.bind():function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&m(i,r.prototype),i}).apply(null,arguments)}function h(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function m(e,n){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function y(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&m(e,n)}(d,e);var n,r,i,f=(n=y(),function(){var e,r=v(d);return e=n?Reflect.construct(r,arguments,v(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);var e,n=(arguments.length<=0?void 0:arguments[0])instanceof HTMLElement?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1];return a.GlobalFormio.options&&a.GlobalFormio.options.form&&(n=Object.assign(n,a.GlobalFormio.options.form)),(e=f.call(this,n)).options.useSessionToken&&a.GlobalFormio.useSessionToken(e.options),e.ready=new c.default(function(n,r){e.readyResolve=n,e.readyReject=r}),e.instance=null,(arguments.length<=0?void 0:arguments[0])instanceof HTMLElement?(e.element=arguments.length<=0?void 0:arguments[0],e.options=(arguments.length<=2?void 0:arguments[2])||{},e.options.events=e.events,e.setForm(arguments.length<=1?void 0:arguments[1]).then(function(){return e.readyResolve(e.instance)}).catch(e.readyReject)):(arguments.length<=0?void 0:arguments[0])?(e.element=null,e.options=(arguments.length<=1?void 0:arguments[1])||{},e.options.events=e.events,e.setForm(arguments.length<=0?void 0:arguments[0]).then(function(){return e.readyResolve(e.instance)}).catch(e.readyReject)):(e.element=null,e.options={},e.options.events=e.events),e.display="",e}return r=[{key:"create",value:function(e){return(this.options&&(this.options.flatten||"flat"===this.options.renderMode)&&(e="form"),this.display=e,l.default.displays[e])?new l.default.displays[e](this.element,this.options):new l.default.displays.webform(this.element,this.options)}},{key:"form",get:function(){return this._form},set:function(e){return this.setForm(e)}},{key:"errorForm",value:function(e){return{components:[{label:"HTML",tag:"div",className:"error error-message alert alert-danger ui red message",attrs:[{attr:"role",value:"alert"}],key:"errorMessage",type:"htmlelement",input:!1,content:"string"==typeof e?e:e.message}]}}},{key:"setForm",value:function(e){var n=this;if("string"==typeof(e=e||this.form)){var r,o,i=new a.GlobalFormio(e);r=this.getSubmission(i,this.options).catch(function(e){o=e}).then(function(r){return i.loadForm().catch(function(e){o=e}).then(function(i){if(o&&(i=n.errorForm(o)),n.instance=n.instance||n.create(i.display),n.instance.url=e,n.instance.nosubmit=!1,n._form=n.instance.form=i,r&&(n.instance.submission=r),o)throw o;return n.instance})})}
1else this.instance=this.instance||this.create(e.display),this._form=this.instance.form=e,r=this.instance.ready;return r.then(function(){return n.element=n.instance.element,n.instance})}},{key:"getSubmission",value:function(e,n){return e.submissionId?e.loadSubmission(null,n):c.default.resolve()}},{key:"setDisplay",value:function(e){return this.display===e&&this.instance?c.default.resolve(this.instance):(this.form.display=e,this.instance.destroy(),this.instance=this.create(e),this.setForm(this.form))}},{key:"empty",value:function(){if(this.element)for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}},{key:"sanitize",value:function(e,n){return!1!==this.options.sanitize||n?s.sanitize(e,this.options):e}},{key:"setContent",value:function(e,n,r){return e instanceof HTMLElement&&(e.innerHTML=this.sanitize(n,r),!0)}},{key:"build",value:function(){var e=this;if(!this.instance)return c.default.reject("Form not ready. Use form.ready promise");if(!this.element)return c.default.reject("No DOM element for form.");var n=this.options&&this.options.template?this.options.template:"bootstrap",r=u.default[n].loader||u.default.bootstrap.loader;return this.setContent(this.element,r.form),this.render().then(function(n){return e.setContent(e.element,n),e.attach(e.element).then(function(){return e.instance})}).then(function(n){return e.emit("build",n),n})}},{key:"render",value:function(){var e=this;return this.instance?c.default.resolve(this.instance.render()).then(function(n){return e.emit("render",n),n}):c.default.reject("Form not ready. Use form.ready promise")}},{key:"attach",value:function(e){var n=this;return this.instance?(this.element=e,this.instance.attach(this.element).then(function(e){return n.emit("attach",e),e})):c.default.reject("Form not ready. Use form.ready promise")}}],i=[{key:"embed",value:function(e){var n=this;return new c.default(function(r){e&&e.src||r();var o=n.id||"formio-".concat(Math.random().toString(36).substring(7)),i=e.class||"formio-form-wrapper",a=e.styles?'<link rel="stylesheet" href="'.concat(e.styles,'">'):"";a+='<div id="'.concat(o,'" class="').concat(i,'"></div>'),document.write(a);var l=0,u=setInterval(function(){l++;var n=document.getElementById(o);(n||l>10)&&(r(new d(n,e.src).ready),clearInterval(u))},10)})}}],r&&h(d.prototype,r),i&&h(d,i),Object.defineProperty(d,"prototype",{writable:!1}),d}(i.default);n.default=b,a.GlobalFormio.embedForm=function(e){return b.embed(e)},a.GlobalFormio.createForm=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return p(b,n).ready},a.GlobalFormio.Form=b},39505:function(e,n,r){"use strict";r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(45343),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var o,i,a=r(38388),l=u(r(76597));function u(e){return e&&e.__esModule?e:{default:e}}function s(e,n,r){return(s=d()?Reflect.construct.bind():function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&f(i,r.prototype),i}).apply(null,arguments)}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,n){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function d(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){var n=function(e,n){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==c(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===c(n)?n:String(n)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&f(e,n)}(i,e);var n,r,o=(n=d(),function(){var e,r=p(i);return e=n?Reflect.construct(r,arguments,p(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===c(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e,n,r){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,i),n=n||{},r=r||{},o.call(this,e,n,Object.assign(r,i.options,a.GlobalFormio.options&&a.GlobalFormio.options.builder?a.GlobalFormio.options.builder:{}))}return r=[{key:"create",value:function(e){return l.default.builders[e]?new l.default.builders[e](this.element,this.options):new l.default.builders.webform(this.element,this.options)}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}(i.prototype,r),Object.defineProperty(i,"prototype",{writable:!1}),i}(u(r(15587)).default);n.default=m,i={},(o=h(o="options"))in m?Object.defineProperty(m,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):m[o]=i,a.GlobalFormio.builder=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return s(m,n).ready},a.GlobalFormio.FormBuilder=m},38388:function(e,n,r){"use strict";r(18997),r(24956),r(26944),r(30902),r(34078),r(12083),Object.defineProperty(n,"__esModule",{value:!0}
vendor: 9,719 bytes, line 1
1),n.default=n.GlobalFormio=void 0,r(18036),r(5746),r(45009),r(41666),r(69446),r(43001),r(41126),r(12551),r(6588),r(97172),r(28121),r(83972),r(28818),r(45343),r(88455),r(17223),r(32334),r(92884),r(35968),r(13423),r(76381),r(52315),r(59012),r(75162),r(6765),r(12443),r(11102),r(17943),r(15469),r(1542);var o,i=v(r(18947)),a=v(r(4547)),l=v(r(10976)),u=v(r(15371)),s=v(r(90420)),c=v(r(30898)),f=v(r(72579)),d=v(r(9850)),p=v(r(84573)),h=r(9494),m=v(r(51949));r(16812);var y=v(r(87340));function v(e){return e&&e.__esModule?e:{default:e}}function b(e,n){if(e){if("string"==typeof e)return g(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,n)}}function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function w(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,k(o.key),o)}}function k(e){var n=function(e,n){if("object"!==O(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==O(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===O(n)?n:String(n)}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var _=(0,a.default)({Promise:i.default}),j=_.fetch,P=_.Headers,S=function(e){return null==e},E=function(e){return e&&"object"===O(e)};function x(e){var n=(0,d.default)(e);return Array.isArray(e)&&(n.skip=e.skip,n.limit=e.limit,n.serverCount=e.serverCount),n}var C=function(){var e,n;function o(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,o),!(this instanceof o))return new o(e);if(this.base="",this.projectsUrl="",this.projectUrl="",this.projectId="",this.roleUrl="",this.rolesUrl="",this.roleId="",this.formUrl="",this.formsUrl="",this.formId="",this.submissionsUrl="",this.submissionUrl="",this.submissionId="",this.actionsUrl="",this.actionId="",this.actionUrl="",this.vsUrl="",this.vId="",this.vUrl="",this.query="",this.path=e,this.options=r,r.useSessionToken&&o.useSessionToken(r),r.hasOwnProperty("base")?this.base=r.base:o.baseUrl?this.base=o.baseUrl:"undefined"!=typeof window&&(this.base=window.location.href.match(/http[s]?:\/\/api./)[0]),!e){this.projectUrl=o.projectUrl||"".concat(this.base,"/project"),this.projectsUrl="".concat(this.base,"/project"),this.projectId=!1,this.query="";return}r.hasOwnProperty("project")&&(this.projectUrl=r.project);var i=this.projectUrl||o.projectUrl,a=/(^|\/)(project)($|\/[^/]+)/,l=-1!==e.search(a);i&&this.base===i&&!l&&(this.noProject=!0,this.projectUrl=this.base),0!==e.indexOf("http")&&0!==e.indexOf("//")&&(e=this.base+e);var u=this.getUrlParts(e),s=[],c=u[1]+u[2],f=(e=u.length>3?u[3]:"").split("?");f.length>1&&(e=f[0],this.query="?".concat(f[1]));var d=function(r,o){n["".concat(r,"sUrl")]="".concat(o,"/").concat(r);var i=new RegExp("/".concat(r,"/([^/]+)"));return -1!==e.search(i)&&(s=e.match(i),n["".concat(r,"Url")]=s?o+s[0]:"",n["".concat(r,"Id")]=s.length>1?s[1]:"",o+=s[0]),o},p=function e(n,r,o){for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];if(Array.isArray(a))e(a,r,!0);else{var l=d(a,r);r=o?r:l}}};if(!this.projectUrl||this.projectUrl===this.base){if(this.projectUrl||l||"Subdirectories"!==o.pathType)this.projectUrl=c;else{var h="^".concat(c.replace(/\//g,"\\/"),".[^/]+"),m=i.match(new RegExp(h));this.projectUrl=m?m[0]:c}}var y=!1;if(o.pathType&&(y="Subdomains"!==o.pathType),!this.noProject){if(l)p(["project"],c),e=e.replace(a,"");else if(c===this.base){if(u.length>3&&e.split("/").length>1){var v=e.match(/.json/),b=e.split("/");v?this.projectUrl=c:(b.shift(),this.projectId=b.shift(),e="/".concat(b.join("/")),this.projectUrl="".concat(c,"/").concat(this.projectId))}}else u.length>2&&(u[2].split(".").length>2||c.includes("localhost"))&&!y&&(this.projectUrl=c,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=RegExp("/(submission|action|v)($|/.*)"),w=e.match(g);this.pathType=w&&w.length>1?w[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 k=["submission","action","v"];for(var O in k)if(k.hasOwnProperty(O)){var _=k[O];this["".concat(_,"sUrl")]="".concat(this.projectUrl+e,"/").concat(_),this.pathType===_&&w.length>2&&w[2]&&(this["".concat(_,"Id")]=w[2].replace(/^\/+|\/+$/g,""),this["".concat(_,"Url")]=this.projectUrl+e+w[0])}}o.projectUrlSet||(o.projectUrl=this.projectUrl)}return e=[{key:"delete",value:function(e,n){var r="".concat(e,"Id"),a="".concat(e,"Url");return this[r]?(o.cache={},this.makeRequest(e,this[a],"delete",null,n)):i.default.reject("Nothing to delete")}},{key:"index",value:function(e,n,r){var i="".concat(e,"Url");return(n=n||"")&&E(n)&&(n="?".concat(o.serialize(n.params))),this.makeRequest(e,this[i]+n,"get",null,r)}},{key:"save",value:function(e,n,r){var i="".concat(e,"Id"),a="".concat(e,"Url"),l=this[i]||n._id?"put":"post",u=this[i]?this[a]:this["".concat(e,"sUrl")];return this[i]||!n._id||"put"!==l||u.includes(n._id)||(u+="/".concat(n._id)),o.cache={},this.makeRequest(e,u+this.query,l,n,r)}},{key:"load",value:function(e,n,r){var a="".concat(e,"Id"),l="".concat(e,"Url");if(n&&E(n)&&(n=o.serialize(n.params)),n=n?this.query?"".concat(this.query,"&").concat(n):"?".concat(n):this.query,!this[a])return i.default.reject("Missing ".concat(a));var u=this[l]+n;return"form"!==e||isNaN(parseInt(this.vId))||0===parseInt(this.vId)||(u+=(u.match(/\?/)?"&":"?")+"formRevision=".concat(this.vId)),this.makeRequest(e,u,"get",null,r)}},{key:"makeRequest",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.makeRequest.apply(o,[this].concat(n))}},{key:"loadProject",value:function(e,n){return this.load("project",e,n)}},{key:"saveProject",value:function(e,n){return this.save("project",e,n)}},{key:"deleteProject",value:function(e){return this.delete("project",e)}},{key:"loadRole",value:function(e){return this.load("role",null,e)}},{key:"saveRole",value:function(e,n){return this.save("role",e,n)}},{key:"deleteRole",value:function(e){return this.delete("role",e)}},{key:"loadRoles",value:function(e){return this.index("roles",null,e)}},{key:"loadForm",value:function(e,n){var r=this;return this.load("form",e,n).then(function(i){return!i.revisions||isNaN(parseInt(r.vId))||"current"===i.revisions&&r.submissionId||i._vid==r.vId||i.revisionId===r.vId?i:(e&&E(e)&&(e=o.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(e){return i._vid=e._vid,i.components=e.components,i.settings=e.settings,i.revisionId=e.revisionId,Object.assign({},i)}).catch(function(){return Object.assign({},i)}))})}},{key:"saveForm",value:function(e,n){return this.save("form",e,n)}},{key:"deleteForm",value:function(e){return this.delete("form",e)}},{key:"loadForms",value:function(e,n){return this.index("forms",e,n)}},{key:"loadSubmission",value:function(e,n){var r=this;return this.load("submission",e,n).then(function(e){return r.vId=e._frid||e._fvid,r.vUrl="".concat(r.formUrl,"/v/").concat(r.vId),e})}},{key:"saveSubmission",value:function(e,n){return isNaN(parseInt(this.vId))||(e._fvid=this.vId),this.save("submission",e,n)}},{key:"deleteSubmission",value:function(e){return this.delete("submission",e)}},{key:"loadSubmissions",value:function(e,n){return this.index("submissions",e,n)}},{key:"loadAction",value:function(e,n){return this.load("action",e,n)}},{key:"saveAction",value:function(e,n){return this.save("action",e,n)}},{key:"deleteAction",value:function(e){return this.delete("action",e)}},{key:"loadActions",value:function(e,n){return this.index("actions",e,n)}},{key:"availableActions",value:function(){return this.makeRequest("availableActions","".concat(this.formUrl,"/actions"))}},{key:"actionInfo",value:function(e){return this.makeRequest("actionInfo","".concat(this.formUrl,"/actions/").concat(e))}},{key:"isObjectId",value:function(e){return RegExp("^[0-9a-fA-F]{24}$").test(e)}},{key:"getProjectId",value:function(){return this.projectId?this.isObjectId(this.projectId)?i.default.resolve(this.projectId):this.loadProject().then(function(e){return e._id}):i.default.resolve("")}},{key:"getFormId",value:function(){return this.formId?this.isObjectId(this.formId)?i.default.resolve(this.formId):this.loadForm().then(function(e){return e._id}):i.default.resolve("")}},{key:"currentUser",value:function(e){return o.currentUser(this,e)}},{key:"accessInfo",value:function(){return o.accessInfo(this)}},{key:"oauthLogoutURI",value:function(e,n){return o.oauthLogoutURI(e,Object.assign({formio:this},this.options,n))}},{key:"getToken",value:function(e){return o.getToken(Object.assign({formio:this},this.options,e))}},{key:"setToken",value:function(e,n){return o.setToken(e,Object.assign({formio:this},this.options,n))}},{key:"getTempToken",value:function(e,n,r){if(!o.getToken(r))return i.default.reject("You must be authenticated to generate a temporary auth token.");var a=o.authUrl||this.projectUrl;
1return this.makeRequest("tempToken","".concat(a,"/token"),"GET",null,{ignoreCache:!0,header:new P({"x-expire":e,"x-allow":n})})}},{key:"getDownloadUrl",value:function(e){var n=this;if(!this.submissionId)return i.default.resolve("");if(!e)return this.loadForm().then(function(e){return e?n.getDownloadUrl(e):""});var r="/project/".concat(e.project);r+="/form/".concat(e._id)+"/submission/".concat(this.submissionId);var o=e.submissionRevisions&&e.settings.changeLog?"/download/changelog":"/download";r+=o;var a=this.base+r;return new i.default(function(e,o){n.getTempToken(3600,"GET:".concat(r)).then(function(n){e(a+="?token=".concat(n.key))},function(){e(a)}).catch(o)})}},{key:"uploadFile",value:function(e,n,r,i,a,l,u,c,f,d,p,h){var m=this,y={provider:e,method:"upload",file:n,fileName:r,dir:i};c=c||"file";var v=o.pluginWait("preRequest",y).then(function(){return o.pluginGet("fileRequest",y).then(function(o){if(e&&S(o)){var y=s.default.getProvider("storage",e);if(y){var v=new y(m);return p&&p(),v.uploadFile(n,r,i,a,l,u,c,f,d,h)}throw"Storage provider not found"}return o||{url:""}})});return o.pluginAlter("wrapFileRequestPromise",v,y)}},{key:"downloadFile",value:function(e,n){var r=this,i={method:"download",file:e},a=o.pluginWait("preRequest",i).then(function(){return o.pluginGet("fileRequest",i).then(function(o){if(e.storage&&S(o)){var i=s.default.getProvider("storage",e.storage);if(i)return new i(r).downloadFile(e,n);throw"Storage provider not found"}return o||{url:""}})});return o.pluginAlter("wrapFileRequestPromise",a,i)}},{key:"deleteFile",value:function(e,n){var r=this,i={method:"delete",file:e},a=o.pluginWait("preRequest",i).then(function(){return o.pluginGet("fileRequest",i).then(function(o){if(e.storage&&S(o)){var i=s.default.getProvider("storage",e.storage);if(i)return new i(r).deleteFile(e,n);throw"Storage provider not found"}return o||{url:""}})});return o.pluginAlter("wrapFileRequestPromise",a,i)}},{key:"userPermissions",value:function(e,n,r){return i.default.all([void 0!==n?i.default.resolve(n):this.loadForm(),void 0!==e?i.default.resolve(e):this.currentUser(),void 0===r&&this.submissionId?this.loadSubmission():i.default.resolve(r),this.accessInfo()]).then(function(e){var n=e.shift(),r=e.shift()||{_id:!1,roles:[]},o=e.shift(),i=e.shift(),a={create:"create",read:"read",update:"edit",delete:"delete"},l={user:r,form:n,access:i,create:!1,read:!1,edit:!1,delete:!1};for(var u in i.roles)if(i.roles.hasOwnProperty(u)){var s=i.roles[u];if(s.default&&!1===r._id)r.roles.push(s._id);else if(s.admin&&-1!==r.roles.indexOf(s._id))return l.create=!0,l.read=!0,l.delete=!0,l.edit=!0,l}if(n&&n.submissionAccess)for(var d=0;d<n.submissionAccess.length;d++){var p,m=n.submissionAccess[d],y=function(e){if(Array.isArray(e))return e}(p=m.type.split("_"))||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,u=[],s=!0,c=!1;try{for(a=(r=r.call(e)).next;!(s=(o=a.call(r)).done)&&(u.push(o.value),2!==u.length);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return u}}(p,2)||b(p,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),v=y[0],g=y[1];["create","read","update","delete"].includes(v)&&(0,c.default)(m.roles,r.roles).length&&(l[a[v]]="all"===g||!o||r._id===o.owner)}return o&&(0,h.eachComponent)(n.components,function(e,n){if(e&&e.defaultPermission){var i=(0,f.default)(o.data,n);(Array.isArray(i)?i:[i]).forEach(function(n){n&&n._id&&r.roles.indexOf(n._id)>-1&&("read"===e.defaultPermission&&(l[a.read]=!0),"create"===e.defaultPermission&&(l[a.create]=!0,l[a.read]=!0),"write"===e.defaultPermission&&(l[a.create]=!0,l[a.read]=!0,l[a.update]=!0),"admin"===e.defaultPermission&&(l[a.create]=!0,l[a.read]=!0,l[a.update]=!0,l[a.delete]=!0))})}}),l})}},{key:"canSubmit",value:function(){var e=this;return this.userPermissions().then(function(n){return!n.create&&o.getUser()?e.userPermissions(null).then(function(e){return!!e.create&&(o.setUser(null),!0)}):n.create})}},{key:"getUrlParts",value:function(e){return o.getUrlParts(e,this)}}
1],n=[{key:"useSessionToken",value:function(e){var n="".concat(e.namespace||o.namespace||"formio","Token"),r=localStorage.getItem(n);r&&(localStorage.removeItem(n),sessionStorage.setItem(n,r));var i="".concat(e.namespace||o.namespace||"formio","User"),a=localStorage.getItem(i);a&&(localStorage.removeItem(i),sessionStorage.setItem(i,a)),localStorage.setItem("useSessionToken",!0)}},{key:"loadProjects",value:function(e,n){return E(e=e||"")&&(e="?".concat(o.serialize(e.params))),o.makeStaticRequest("".concat(o.baseUrl,"/project").concat(e),"GET",null,n)}},{key:"getUrlParts",value:function(e,n){var r=n&&n.base?n.base:o.baseUrl,i="^(http[s]?:\\/\\/)";return r&&0===e.indexOf(r)?i+="(".concat(r.replace(/^http[s]?:\/\//,""),")"):i+="([^/]+)",i+="($|\\/.*)",e.match(new RegExp(i))}},{key:"serialize",value:function(e,n){var r,o=[];for(var i in e)e.hasOwnProperty(i)&&o.push("".concat(encodeURIComponent(i),"=").concat(encodeURIComponent((r=e[i],n?n(r):r))));return o.join("&")}},{key:"getRequestArgs",value:function(e,n,r,o,i,a){o=(o||"GET").toUpperCase(),a&&E(a)||(a={});var l={url:r,method:o,data:i||null,opts:a};return n&&(l.type=n),e&&(l.formio=e),l}},{key:"makeStaticRequest",value:function(e,n,r,i){var a=o.getRequestArgs(null,"",e,n,r,i),l=o.pluginWait("preRequest",a).then(function(){return o.pluginGet("staticRequest",a).then(function(e){return S(e)?o.request(a.url,a.method,a.data,a.opts.header,a.opts):e})});return o.pluginAlter("wrapStaticRequestPromise",l,a)}},{key:"makeRequest",value:function(e,n,r,i,a,l){if(!e)return o.makeStaticRequest(r,i,a,l);var u=o.getRequestArgs(e,n,r,i,a,l);u.opts=u.opts||{},u.opts.formio=e,u.opts.headers||(u.opts.headers={}),u.opts.headers=(0,p.default)(u.opts.headers,{Accept:"application/json","Content-type":"application/json"});var s=o.pluginWait("preRequest",u).then(function(){return o.pluginGet("request",u).then(function(e){return S(e)?o.request(u.url,u.method,u.data,u.opts.header,u.opts):e})});return o.pluginAlter("wrapRequestPromise",s,u)}},{key:"request",value:function(e,n,r,a,l){if(!e)return i.default.reject("No url provided");n=(n||"GET").toUpperCase(),O(l)===O(!0)&&(l={ignoreCache:l}),l&&E(l)||(l={});var u=btoa(encodeURI(e));if(!l.ignoreCache&&"GET"===n&&o.cache.hasOwnProperty(u))return i.default.resolve(x(o.cache[u]));var s=a||new P(l.headers||{Accept:"application/json","Content-type":"application/json"}),c=o.getToken(l);c&&!l.noToken&&s.append("x-jwt-token",c);var f={};s.forEach(function(e,n){f[n]=e});var d={method:n,headers:f,mode:"cors"};r&&(d.body=JSON.stringify(r)),((d=o.pluginAlter("requestOptions",d,e)).namespace||o.namespace)&&(l.namespace=d.namespace||o.namespace);var p=d.headers["x-jwt-token"];return o.pluginAlter("wrapFetchRequestPromise",o.fetch(e,d),{url:e,method:n,data:r,opts:l}).then(function(a){if(!(a=o.pluginAlter("requestResponse",a,o,r)).ok){if(440===a.status)o.setToken(null,l),o.events.emit("formio.sessionExpired",a.body);else if(401===a.status)o.events.emit("formio.unauthorized",a.body);else if(416===a.status)o.events.emit("formio.rangeIsNotSatisfiable",a.body);else if(504===a.status)return i.default.reject(Error("Network request failed"));return(a.headers.get("content-type").includes("application/json")?a.json():a.text()).then(function(e){return i.default.reject(e)})}var u=a.headers.get("x-jwt-token"),s=!1;return("GET"!==n||p||!u||l.external||e.includes("token=")||e.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),s=!0),a.status>=200&&a.status<300&&u&&""!==u&&!s&&o.setToken(u,l),204===a.status)?{}:(a.headers.get("content-type").includes("application/json")?a.json():a.text()).then(function(e){var n=a.headers.get("content-range");if(n&&E(e)){if("*"!==(n=n.split("/"))[0]){var r=n[0].split("-");e.skip=Number(r[0]),e.limit=r[1]-r[0]+1}e.serverCount="*"===n[1]?n[1]:Number(n[1])}if(!l.getHeaders)return e;var o={};return a.headers.forEach(function(e,n){o[n]=e}),{result:e,headers:o}})}).then(function(e){return l.getHeaders?e:("GET"===n&&(o.cache[u]=e),x(e))}).catch(function(r){return"Bad Token"===r&&(o.setToken(null,l),o.events.emit("formio.badToken",r)),r.message&&((r=Error("Could not connect to API server (".concat(r.message,"): ").concat(e))).networkError=!0),"GET"===n&&delete o.cache[u],i.default.reject(r)})}},{key:"token",get:function(){return o.tokens||(o.tokens={}),o.tokens.formioToken||""},set:function(e){o.tokens||(o.tokens={}),o.tokens.formioToken=e||""}},{key:"setToken",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;e=e||"",n="string"==typeof n?{namespace:n}:n||{};var r="".concat(n.namespace||o.namespace||"formio","Token");o.tokens||(o.tokens={});var a=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){n.fromUser||(n.fromToken=!0,o.setUser(null,n));try{a.removeItem(r)}catch(e){u.default.erase(r,{path:"/"})}return o.tokens[r]=e,i.default.resolve(null)}if(o.tokens[r]!==e){o.tokens[r]=e;try{a.setItem(r,e)}catch(n){u.default.set(r,e,{path:"/"})}}return this.currentUserResolved?o.currentUser(n.formio,n):i.default.resolve(null)}},{key:"getToken",value:function(e){e="string"==typeof e?{namespace:e}:e||{};var n="".concat(e.namespace||o.namespace||"formio","Token"),r=e.decode?"".concat(n,"Decoded"):n;if(o.tokens||(o.tokens={}),o.tokens[r])return o.tokens[r];try{var i=localStorage.getItem("useSessionToken")?sessionStorage.getItem(n):localStorage.getItem(n);if(o.tokens[n]=i||"",e.decode)return o.tokens[r]=o.tokens[n]?(0,m.default)(o.tokens[n]):{},o.tokens[r];return o.tokens[n]}catch(e){return o.tokens[n]=u.default.get(n),o.tokens[n]}}}
vendor: 4,317 bytes, line 1
1,{key:"oauthLogoutURI",value:function(e,n){n="string"==typeof n?{namespace:n}:n||{};var r="".concat(n.namespace||o.namespace||"formio","LogoutAuthUrl");return o.tokens[r],localStorage.setItem(r,e),o.tokens[r]}},{key:"setUser",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="".concat(n.namespace||o.namespace||"formio","User"),i=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){n.fromToken||(n.fromUser=!0,o.setToken(null,n)),o.events.emit("formio.user",null);try{return i.removeItem(r)}catch(e){return u.default.erase(r,{path:"/"})}}try{i.setItem(r,JSON.stringify(e))}catch(n){u.default.set(r,JSON.stringify(e),{path:"/"})}o.events.emit("formio.user",e)}},{key:"getUser",value:function(e){e=e||{};var n="".concat(e.namespace||o.namespace||"formio","User");try{return JSON.parse((localStorage.getItem("useSessionToken")?sessionStorage:localStorage).getItem(n)||null)}catch(e){return JSON.parse(u.default.get(n))}}},{key:"setBaseUrl",value:function(e){o.baseUrl=e,o.projectUrlSet||(o.projectUrl=e)}},{key:"getBaseUrl",value:function(){return o.baseUrl}},{key:"setApiUrl",value:function(e){return o.setBaseUrl(e)}},{key:"getApiUrl",value:function(){return o.getBaseUrl()}},{key:"setAppUrl",value:function(e){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),o.projectUrl=e,o.projectUrlSet=!0}},{key:"setProjectUrl",value:function(e){o.projectUrl=e,o.projectUrlSet=!0}},{key:"setAuthUrl",value:function(e){o.authUrl=e}},{key:"getAppUrl",value:function(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),o.projectUrl}},{key:"getProjectUrl",value:function(){return o.projectUrl}},{key:"clearCache",value:function(){o.cache={}}},{key:"noop",value:function(){}},{key:"identity",value:function(e){return e}},{key:"deregisterPlugin",value:function(e){var n=o.plugins.length;return o.plugins=o.plugins.filter(function(n){return n!==e&&n.__name!==e||((n.deregister||o.noop).call(e,o),!1)}),n!==o.plugins.length}},{key:"registerPlugin",value:function(e,n){o.plugins.push(e),o.plugins.sort(function(e,n){return(n.priority||0)-(e.priority||0)}),e.__name=n,(e.init||o.noop).call(e,o)}},{key:"getPlugin",value:function(e){var n,r=function(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=b(e))){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){u=!0,a=e},f:function(){try{l||null==r.return||r.return()}finally{if(u)throw a}}}}(o.plugins);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.__name===e)return i}}catch(e){r.e(e)}finally{r.f()}return null}},{key:"pluginWait",value:function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return i.default.all(o.plugins.map(function(n){var i;return(i=n[e]||o.noop).call.apply(i,[n].concat(r))}))}},{key:"pluginGet",value:function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return function n(a){var l,u=o.plugins[a];return u?i.default.resolve((l=u[e]||o.noop).call.apply(l,[u].concat(r))).then(function(e){return S(e)?n(a+1):e}):i.default.resolve(null)}(0)}},{key:"pluginAlter",value:function(e,n){for(var r=arguments.length,i=Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return o.plugins.reduce(function(n,r){return(r[e]||o.identity).apply(void 0,[n].concat(i))},n)}},{key:"accessInfo",value:function(e){var n=e?e.projectUrl:o.projectUrl;return o.makeRequest(e,"accessInfo","".concat(n,"/access"))}},{key:"projectRoles",value:function(e){var n=e?e.projectUrl:o.projectUrl;return o.makeRequest(e,"projectRoles","".concat(n,"/role"))}},{key:"currentUser",value:function(e,n){var r=this,a=o.authUrl;a||(a=e?e.projectUrl:o.projectUrl||o.baseUrl),a+="/current";var l=o.getUser(n);if(l)return o.pluginAlter("wrapStaticRequestPromise",i.default.resolve(l),{url:a,method:"GET",options:n});var u=o.getToken(n);return n&&n.external||u?(this.currentUserResolved=!1,o.makeRequest
1(e,"currentUser",a,"GET",null,n).then(function(e){return r.currentUserResolved=!0,o.setUser(e,n),e})):o.pluginAlter("wrapStaticRequestPromise",i.default.resolve(null),{url:a,method:"GET",options:n})}},{key:"logout",value:function(e,n){(n=n||{}).formio=e;var r=o.authUrl?o.authUrl:e?e.projectUrl:o.baseUrl,i=function(){o.setToken(null,n),o.setUser(null,n),o.clearCache(),localStorage.removeItem("useSessionToken")};return o.makeRequest(e,"logout","".concat(r,"/logout")).then(function(e){return i(),e}).catch(function(e){throw i(),e})}},{key:"pageQuery",value:function(){var e={};e.paths=[];var n=location.hash.substr(1).replace(/\?/g,"&").split("&"),r=[];return location.search.substr(1).split("&").forEach(function(n){(r=n.split("=")).length>1&&(e[r[0]]=r[1]&&decodeURIComponent(r[1]))}),n.forEach(function(n){(r=n.split("=")).length>1?e[r[0]]=r[1]&&decodeURIComponent(r[1]):0===n.indexOf("/")&&(e.paths=n.substr(1).split("/"))}),e}},{key:"oAuthCurrentUser",value:function(e,n){return o.currentUser(e,{external:!0,headers:{Authorization:"Bearer ".concat(n)}})}},{key:"samlInit",value:function(e){e=e||{};var n=o.pageQuery();if(n.saml){o.setUser(null);var r=o.setToken(n.saml),i=window.location.toString();return i=i.substring(0,i.indexOf("?")),window.location.hash&&(i+=window.location.hash),window.history.replaceState({},document.title,i),r}e.relay||(e.relay=window.location.href);var a=o.authUrl||o.projectUrl;return window.location.href="".concat(a,"/saml/sso?relay=").concat(encodeURI(e.relay)),!1}},{key:"oktaInit",value:function(e){if(e=e||{},("undefined"==typeof OktaAuth?"undefined":O(OktaAuth))!==void 0&&(e.OktaAuth=OktaAuth),void 0===O(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),i.default.reject(n)}return new i.default(function(n,r){var i=e.OktaAuth;delete e.OktaAuth;var a=new i(e);a.tokenManager.get("accessToken").then(function(i){i?n(o.oAuthCurrentUser(e.formio,i.accessToken)):location.hash?a.token.parseFromUrl().then(function(r){a.tokenManager.add("accessToken",r),n(o.oAuthCurrentUser(e.formio,r.accessToken))}).catch(function(e){console.warn(e),r(e)}):(a.token.getWithRedirect({responseType:"token",scopes:e.scopes}),n(!1))}).catch(function(e){r(e)})})}},{key:"ssoInit",value:function(e,n){switch(e){case"saml":return o.samlInit(n);case"okta":return o.oktaInit(n);default:return console.warn("Unknown SSO type"),i.default.reject("Unknown SSO type")}}},{key:"requireLibrary",value:function(e,n,r,a,l){if(!o.libraries.hasOwnProperty(e)){o.libraries[e]={},o.libraries[e].ready=new i.default(function(n,r){o.libraries[e].resolve=n,o.libraries[e].reject=r});var u="".concat(e,"Callback");a||window[u]||(window[u]=function(){return o.libraries[e].resolve()});var s=(0,f.default)(window,n);if(s)o.libraries[e].resolve(s);else if((r=Array.isArray(r)?r:[r]).forEach(function(n){var r={},i="";switch("string"==typeof n&&(n={type:"script",src:n}),n.type){case"script":i="script",r={src:n.src,type:"text/javascript",defer:!0,async:!0,referrerpolicy:"origin"};break;case"styles":i="link",r={href:n.src,rel:"stylesheet"}}var a=document.createElement(i);if(a.setAttribute)for(var u in r)a.setAttribute(u,r[u]);l&&a.addEventListener("load",function(){o.libraries[e].loaded=!0,l(o.libraries[e].ready)});var s=document.head;s&&s.appendChild(a)}),a)var c=setInterval(function(){var r=(0,f.default)(window,n);r&&(clearInterval(c),o.libraries[e].resolve(r))},200)}var d=o.libraries[e];return l&&d.loaded?l(d.ready):d.ready}},{key:"libraryReady",value:function(e){return o.libraries.hasOwnProperty(e)&&o.libraries[e].ready?o.libraries[e].ready:i.default.reject("".concat(e," library was not required."))}},{key:"addToGlobal",value:function(e){"object"!==O(e)||e.Formio||(e.Formio=o)}},{key:"setPathType",value:function(e){"string"==typeof e&&(o.pathType=e)}},{key:"getPathType",value:function(){return o.pathType}},{key:"rulesEntities",get:function(){return{ValueSources:o.ValueSources,Conjunctions:o.Conjunctions,Operators:o.Operators,Transformers:o.Transformers,Qu
1ickRules:o.QuickRules,Rules:o.Rules}}},{key:"GlobalFormio",get:function(){return void 0!==r.g&&r.g.Formio?r.g.Formio:"undefined"!=typeof window&&window.Formio?window.Formio:o}}],e&&w(o.prototype,e),n&&w(o,n),Object.defineProperty(o,"prototype",{writable:!1}),o}();(o=k(o="currentUserResolved"))in C?Object.defineProperty(C,o,{value:!0,enumerable:!0,configurable:!0,writable:!0}):C[o]=!0,C.libraries={},C.Promise=i.default,C.fetch=j,C.Headers=P,C.baseUrl="https://api.form.io",C.projectUrl=C.baseUrl,C.authUrl="",C.projectUrlSet=!1,C.plugins=[],C.cache={},C.Providers=s.default,C.version="4.17.1",C.pathType="",C.events=new l.default,C.cdn=new y.default,(C.version||"").includes("rc")&&C.cdn.setBaseUrl("https://cdn.test-form.io"),void 0!==r.g&&C.addToGlobal(r.g),"undefined"!=typeof window&&C.addToGlobal(window);var R=C.GlobalFormio;n.GlobalFormio=R,n.default=C},23639:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(24646),r(35968),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(17223),r(3192),r(62089),r(97172),r(34078),r(50703),r(27846),r(9473),r(22818);var i=s(r(18947)),a=r(38388),l=s(r(43392)),u=r(9494);function s(e){return e&&e.__esModule?e:{default:e}}function c(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function f(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=h(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(s,e);var n,r,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=h(s);return e=n?Reflect.construct(r,arguments,h(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(e,n){var r;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,s),n.display="pdf",(r=l.call(this,e,n)).components=[],r}return r=[{key:"init",value:function(){var e=this;d(h(s.prototype),"init",this).call(this),this.on("iframe-submission",function(n){return e.setValue(n,{fromIframe:!0})},!0),this.on("iframe-change",function(n){return e.setValue(n,{fromIframe:!0})},!0),this.on("iframe-getIframePositions",function(n){var r=document.getElementById("iframe-".concat(n.formId));if(r){var o=r.getBoundingClientRect();e.postMessage({name:"iframePositions",data:{formId:n.formId,iframe:{top:o.top},scrollY:window.scrollY||window.pageYOffset}})}}),this.on("iframe-ready",function(){return e.iframeReadyResolve()},!0)}},{key:"render",value:function(){return this.submitButton=this.addComponent({disabled:this.form.disableWizardSubmit,input:!0,type:"button",action:"submit",internal:!0,label:"Submit",key:"submit",ref:"button",hidden:this.isSubmitButtonHidden()}),this.renderTemplate("pdf",{submitButton:this.submitButton.render(),classes:"formio-form-pdf",children:this.renderComponents()})}},{key:"redraw",value:function(){return this.postMessage({name:"redraw"}),this.builderMode?i.default.resolve():d(h(s.prototype),"redraw",this).call(this)}},{key:"rebuild",value:function(){return this.builderMode&&this.component.components?(this.destroyComponents(),this.addComponents(),i.default.resolve()):(this.postMessage({name:"redraw"}),d(h(s.prototype),"rebuild",this).call(this))}},{key:"attachComponents",value:function(e,n,r){return n=n||this.components,r=r||this.component.components,e=this.hook("attachComponents",e,n,r,this),Promise.resolve()}},{key:"attach",value:function(e){var n=this;return d(h(s.prototype),"attach",this).call(this,e).then(function(){n.loadRefs(e,{button:"single",buttonMessageContainer:"single",buttonMessage:"single",zoomIn:"single",zoomOut:"single",iframeContainer:"single"}),n.submitButton.refs=function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
1n%2?c(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=f(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}({},n.refs),n.submitButton.attachButton(),n.iframeReady=new i.default(function(e,r){n.iframeReadyResolve=e,n.iframeReadyReject=r}),n.iframeElement=n.ce("iframe",{src:n.getSrc(),id:"iframe-".concat(n.id),seamless:!0,class:"formio-iframe"}),n.iframeElement.formioContainer=n.component.components,n.iframeElement.formioComponent=n,n.empty(n.refs.iframeContainer),n.appendChild(n.refs.iframeContainer,n.iframeElement),n.form.base=a.GlobalFormio.getBaseUrl(),n.form.projectUrl=a.GlobalFormio.getProjectUrl(),n.postMessage({name:"form",data:n.form});var r=n.components.find(function(e){return e.element===n.refs.button});r&&n.refs.button.classList.toggle("hidden",!r.visible),n.addEventListener(n.refs.zoomIn,"click",function(e){e.preventDefault(),n.postMessage({name:"zoomIn"})}),n.addEventListener(n.refs.zoomOut,"click",function(e){e.preventDefault(),n.postMessage({name:"zoomOut"})});var o=(0,u.fastCloneDeep)(n.form);n.formio&&(o.projectUrl=n.formio.projectUrl,o.url=n.formio.formUrl,o.base=n.formio.base,n.postMessage({name:"token",data:n.formio.getToken()})),n.emit("attach")})}},{key:"getSubmission",value:function(){var e=this;return new i.default(function(n){e.once("iframe-submission",n),e.postMessage({name:"getSubmission"})})}},{key:"submitForm",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.postMessage({name:"getErrors"}),this.getSubmission().then(function(){return d(h(s.prototype),"submitForm",e).call(e,n)})}},{key:"getSrc",value:function(){if(!this._form||!this._form.settings||!this._form.settings.pdf)return"";var e="".concat(this._form.settings.pdf.src,".html"),n=["id=".concat(this.id)];return(this.options.showCheckboxBackground||this._form.settings.showCheckboxBackground)&&n.push("checkboxbackground=1"),this.options.readOnly&&n.push("readonly=1"),this.options.zoom&&n.push("zoom=".concat(this.options.zoom)),this.builderMode&&n.push("builder=1"),n.length&&(e+="?".concat(n.join("&"))),e}},{key:"setForm",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d(h(s.prototype),"setForm",this).call(this,e,r).then(function(){n.formio&&(e.projectUrl=n.formio.projectUrl,e.url=n.formio.formUrl,e.base=n.formio.base,n.postMessage({name:"token",data:n.formio.getToken()})),n.postMessage({name:"form",data:n.form})})}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=d(h(s.prototype),"setValue",this).call(this,e,r);return r&&r.fromIframe||this.once("iframe-ready",function(){o&&n.postMessage({name:"submission",data:e})}),o}},{key:"postMessage",value:function(e){var n=this;this.iframeReady&&(e.type||(e.type="iframe-data"),this.iframeReady.then(function(){n.iframeElement&&n.iframeElement.contentWindow&&!("form"===e.name&&n.iframeFormSetUp)&&(n.iframeElement.contentWindow.postMessage(JSON.stringify(e),"*"),n.iframeFormSetUp="form"===e.name)}))}},{key:"focusOnComponent",value:function(e){this.postMessage({name:"focusErroredField",data:e})}},{key:"clear",value:function(){}},{key:"showErrors",value:function(e,n){var r,o=document.getElementById("submit-error"),i=this.t("submitError"),a=(null===(r=this.refs.buttonMessage)||void 0===r?void 0:r.textContent.trim())===i;if(!o&&this.errors.length&&!a){var l=this.ce("p",{class:"help-block"});this.setContent(l,i),l.addEventListener("click",function(){window.scrollTo(0,0)});var u=this.ce("div",{id:"submit-error",class:"has-error"});this.appendTo(l,u),this.appendTo(u,this.element)}!this.errors.length&&o&&o.remove(),d(h(s.prototype),"showErrors",this).call(this,e,n)}},{key:"isSubmitButtonHidden",value:function(){var e=!1;return(0,u.eachComponent)(this.component.components,function(n){"button"!==n.type||"submit"!==n.action&&n.action||(e=n.hidden||!1)}),e}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}(s.prototype,r),Object.defineProperty(s,"prototype",{writable:!1}),s}(l.default);n.default=m,"undefined"!=typeof window&&window.addEventListener("message",function(e){var n=null;try{n=JSON.parse(e.data)}catch(e){n=null}n&&n.name&&n.formId&&a.GlobalFormio.forms.hasOwnProperty(n.formId)&&a.GlobalFormio.forms[n.formId].emit("iframe-".concat(n.name),n.data)})},67663:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(18036),r(11102),r(12083),r(30902),r(34078),r(5746),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(76381),r(43001),r(17943),r(17223),r(15469),r(1542),r(32889),r(3169),r(28121),r(83972),r(9473),r(88455),r(32334),r(51106),r(27846),r(22818);var i=p(r(76635)),a=p(r(18947)),l=r(38388),u=p(r(51695)),s=r(9494),c=r(57853),f=p(r(65319)),d=p(r(23639));
1function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return m(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function y(){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=g(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function v(e,n){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function b(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&v(e,n)}(p,e);var n,r,u=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=g(p);return e=n?Reflect.construct(r,arguments,g(this).constructor):r.apply(this,arguments),b(this,e)});function p(){var e,n,r;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p),arguments[0]instanceof HTMLElement||arguments[1]?(n=arguments[0],r=arguments[1]):r=arguments[0],r.skipInit=!0,r.display="pdf",(e=n?u.call(this,n,r):u.call(this,r)).dragDropEnabled=!1,b(e)}return r=[{key:"defaultGroups",get:function(){return{pdf:{title:"PDF Fields",weight:0,default:!0,components:{textfield:!0,number:!0,password:!0,email:!0,phoneNumber:!0,currency:!0,checkbox:!0,signature:!0,select:!0,textarea:!0,datetime:!0,file:!0,htmlelement:!0,signrequestsignature:!0}},basic:!1,advanced:!1,layout:!1,data:!1,premium:!1,resource:!1}}},{key:"hasPDF",get:function(){return i.default.has(this.webform.form,"settings.pdf")}},{key:"projectUrl",get:function(){return this.options.projectUrl||l.GlobalFormio.getProjectUrl()}},{key:"init",value:function(){this.options.attachMode="builder",this.webform=this.webform||this.createForm(this.options),this.webform.init()}},{key:"render",value:function(){var e=this;return this.renderTemplate("pdfBuilder",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:"builder-sidebar-".concat(this.id),groups:this.groupOrder.map(function(n){return e.renderTemplate("builderSidebarGroup",{group:e.groups[n],groupKey:n,groupId:"builder-sidebar-".concat(e.id),subgroups:e.groups[n].subgroups.map(function(r){return e.renderTemplate("builderSidebarGroup",{group:r,groupKey:r.key,groupId:"group-container-".concat(n),subgroups:[]})})})})}),form:this.hasPDF?this.webform.render():this.renderTemplate("pdfBuilderUpload",{})})}},{key:"attach",value:function(e){var n=this;if(!this.hasPDF){if(this.loadRefs(e,{fileDrop:"single",fileBrowse:"single",hiddenFileInputElement:"single",uploadError:"single",uploadProgress:"single",uploadProgressWrapper:"single",dragDropText:"single"}),this.addEventListener(this.refs["pdf-upload-button"],"click",function(e){e.preventDefault()}),this.projectUrl?this.setUploadError():this.setUploadError('Form options.projectUrl not set. Please set the "projectUrl" property of the options for this form or use Formio.setProjectUrl(). This setting is necessary to upload a pdf background.'),this.refs.fileDrop){var r=this;this.addEventListener(this.refs.fileDrop,"dragover",function(e){this.className="fileSelector fileDragOver",e.preventDefault()}),this.addEventListener(this.refs.fileDrop,"dragleave",function(e){this.className="fileSelector",e.preventDefault()}),this.addEventListener(this.refs.fileDrop,"drop",function(e){return this.className="fileSelector",e.preventDefault(),r.upload(e.dataTransfer.files[0]),!1})}return this.refs.fileBrowse&&this.refs.hiddenFileInputElement&&(this.addEventListener(this.refs.fileBrowse,"click",function(e){e.preventDefault(),"function"==typeof n.refs.hiddenFileInputElement.trigger?n.refs.hiddenFileInputElement.trigger("click"):n.refs.hiddenFileInputElement.click()}),this.addEventListener(this.refs.hiddenFileInputElement,"change",function(){n.refs.hiddenFileInputElement.value&&(n.upload(n.refs.hiddenFileInputElement.files[0]),n.refs.hiddenFileInputElement.value="")}
1)),a.default.resolve()}return y(g(p.prototype),"attach",this).call(this,e).then(function(){return n.loadRefs(n.element,{iframeDropzone:"single","sidebar-container":"multiple",sidebar:"single"}),n.afterAttach(),n.element})}},{key:"afterAttach",value:function(){var e=this;this.on("saveComponent",function(n){e.webform.postMessage({name:"updateElement",data:n})}),this.on("removeComponent",function(n){e.webform.postMessage({name:"removeElement",data:n})}),this.initIframeEvents(),this.updateDropzoneDimensions();var n=this.refs.sidebar;n&&(this.addClass(n,"disabled"),this.webform.on("iframe-ready",function(){e.pdfLoaded=!0,e.updateDragAndDrop(),e.removeClass(n,"disabled")},!0))}},{key:"upload",value:function(e){var n=this,r=new l.GlobalFormio(this.projectUrl);this.refs.dragDropText&&(this.refs.dragDropText.style.display="none"),this.refs.uploadProgressWrapper&&(this.refs.uploadProgressWrapper.style.display="inherit"),r.uploadFile("url",e,e,"",function(e){if(n.refs.uploadProgress){var r=Math.floor(e.loaded/e.total*100);n.refs.uploadProgress.style.width="".concat(r,"%"),r>98?n.refs.uploadProgress.innerHTML=n.t("Converting PDF. Please wait."):n.refs.uploadProgress.innerHTML="".concat(n.t("Uploading")," ").concat(r,"%")}},"".concat(this.projectUrl,"/upload"),{},"file").then(function(e){var r=!1;if(null!==(o=e.data.formfields)&&void 0!==o&&o.components&&e.data.formfields.components.length){var o,a,l,u,s=(null===(a=n.webform.form.components[0])||void 0===a?void 0:a.key)==="submit",c=(null===(l=n.webform.form.components[0])||void 0===l?void 0:l.key)==="page1"&&(null===(u=n.webform.form.components[0])||void 0===u?void 0:u.components.length)===0,f=0===n.webform.form.components.length;(s||c||f)&&(r=!0,n.webform.form.components=e.data.formfields.components)}n.refs.dragDropText&&(n.refs.dragDropText.style.display="inherit"),n.refs.uploadProgressWrapper&&(n.refs.uploadProgressWrapper.style.display="none"),i.default.set(n.webform.form,"settings.pdf",{id:e.data.file,src:e.data.filesServer?"".concat(e.data.filesServer).concat(e.data.path):"".concat(new URL(n.projectUrl).origin,"/pdf-proxy").concat(e.data.path),nonFillableConversionUsed:r&&e.data.formfields.nonFillableConversionUsed}),n.emit("pdfUploaded",e.data),n.redraw()}).catch(function(e){return n.setUploadError(e)})}},{key:"setUploadError",value:function(e){this.refs.uploadError&&(this.refs.uploadError.style.display=e?"":"none",this.refs.uploadError.innerHTML=e)}},{key:"createForm",value:function(e){var n=this;return e.skipInit=!1,e.hideLoader=!0,this.webform=new d.default(this.element,e),this.webform.on("attach",function(){n.refs.iframeDropzone&&!h(n.refs.form.children).includes(n.refs.iframeDropzone)&&n.prependTo(n.refs.iframeDropzone,n.refs.form)}),this.webform}},{key:"destroy",value:function(e){y(g(p.prototype),"destroy",this).call(this,e),this.webform.destroy(e)}},{key:"getParentContainer",value:function(e){var n=[],r=null;return(0,c.eachComponent)(this.webform._form.components,function(o,i,a){if(o.id===e.component.id)return n=a,r=o,!0},!0),{formioComponent:e.parent,formioContainer:n,originalComponent:r}}},{key:"initIframeEvents",value:function(){var e=this;this.webform.off("iframe-elementUpdate"),this.webform.off("iframe-componentUpdate"),this.webform.off("iframe-componentClick"),this.webform.on("iframe-elementUpdate",function(n){var r=e.webform.getComponentById(n.id);return r&&r.component&&(r.component.overlay={page:n.page,left:n.left,top:n.top,height:n.height,width:n.width},e.options.noNewEdit||r.component.noNewEdit||e.editComponent(r.component,e.getParentContainer(r),!0),e.emit("updateComponent",r.component)),r}),this.webform.on("iframe-componentUpdate",function(n){var r=e.webform.getComponentById(n.id);return r&&r.component&&(r.component.overlay={page:n.overlay.page,left:n.overlay.left,top:n.overlay.top,height:n.overlay.height,width:n.overlay.width},e.emit("updateComponent",r.component),e.emit("change",e.form)),r}),this.webform.on("iframe-componentClick",function(n){var r=e.webform.getComponentById(n.id);r&&e.editComponent(r.component,e.getParentContainer(r))},!0)}},{key:"initDropzoneEvents",value:function(){this.refs.iframeDropzone&&(this.removeEventListener(this.refs.iframeDropzone,"dragover"),this.removeEventListener(this.refs.iframeDropzone,"drop"),this.addEventListener(this.refs.iframeDropzone,"dragover",function(e){return e.preventDefault(),!1}),this.addEventListener(this.refs.iframeDropzone,"drop",this.onDropzoneDrop.bind(this)))}},{key:"updateDragAndDrop",value:function(){this.pdfLoaded&&(this.initDropzoneEvents(),this.prepSidebarComponentsForDrag())}},{key:"prepSidebarComponentsForDrag",value:function(){var e=this;this.refs["sidebar-container"]&&this.refs["sidebar-container"].forEach(function(n){h(n.
1children).forEach(function(n){n.draggable=!0,n.setAttribute("draggable",!0),e.removeEventListener(n,"dragstart"),e.removeEventListener(n,"dragend"),e.addEventListener(n,"dragstart",e.onDragStart.bind(e),!0),e.addEventListener(n,"dragend",e.onDragEnd.bind(e),!0),e.addEventListener(n,"drag",function(e){e.target.style.cursor="none"})})})}},{key:"updateDropzoneDimensions",value:function(){if(this.refs.iframeDropzone){var e=(0,s.getElementRect)(this.webform.refs.iframeContainer);this.refs.iframeDropzone.style.height=e&&e.height?"".concat(e.height,"px"):"1000px",this.refs.iframeDropzone.style.width=e&&e.width?"".concat(e.width,"px"):"100%"}}},{key:"onDragStart",value:function(e){var n=e.offsetX,r=e.offsetY;this.itemOffsetX=void 0===n?0:n,this.itemOffsetY=void 0===r?0:r,e.dataTransfer.setData("text",""),this.updateDropzoneDimensions(),this.addClass(this.refs.iframeDropzone,"enabled"),this.dropEmitted=!1}},{key:"onDropzoneDrop",value:function(e){return this.dropEmitted=!0,this.dropEvent=e,e.preventDefault(),!1}},{key:"onDragEnd",value:function(e){var n=this.webform.refs.iframeContainer.getBoundingClientRect(),r=this.dropEvent?this.dropEvent.layerX:null,o=this.dropEvent?this.dropEvent.layerY:null;if(this.removeClass(this.refs.iframeDropzone,"enabled"),!this.dropEvent){if(this.dropEmitted||!(0,s.getBrowserInfo)().chrome&&!(0,s.getBrowserInfo)().edge||"macOS"!==globalThis.navigator.userAgentData.platform||!(n.left<e.clientX)||!(n.top<e.clientY))return;this.dropEvent=e,this.dropEvent.dataTransfer.effectAllowed="all",this.dropEmitted=!0}var a=e.target,l=a.getAttribute("data-type"),u=a.getAttribute("data-key"),c=a.getAttribute("data-group"),d=(0,s.fastCloneDeep)(this.schemas[l]);if(u&&c){var p=this.getComponentInfo(u,c);i.default.merge(d,p)}f.default.uniquify([this.webform._form],d),this.webform._form.components.push(d),d.overlay={top:o?o-this.itemOffsetY+20:e.clientY-n.top-(this.itemOffsetY-20)*2,left:r?r-this.itemOffsetX:e.clientX-n.left-2*this.itemOffsetX,width:100,height:20},this.webform.addComponent(d,{},null,!0),this.webform.postMessage({name:"addElement",data:d}),this.emit("addComponent",d,this.webform,d.key,this.webform.component.components.length,!this.options.noNewEdit&&!d.noNewEdit),this.dropEvent=null,e.target.style.cursor="default"}},{key:"highlightInvalidComponents",value:function(){var e=this,n=this.findRepeatablePaths();i.default.isEqual(this.repeatablePaths,n)||((0,c.eachComponent)(this.webform.getComponents(),function(n,r){e.repeatablePaths.includes(r)&&e.webform.postMessage({name:"updateElement",data:n.component})}),this.repeatablePaths=n),n.length&&(0,c.eachComponent)(this.webform.getComponents(),function(n,r){e.repeatablePaths.includes(r)&&e.webform.postMessage({name:"showBuilderErrors",data:{compId:n.component.id,errorMessage:"API Key is not unique: ".concat(n.key)}})})}}],function(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}(p.prototype,r),Object.defineProperty(p,"prototype",{writable:!1}),p}(u.default);n.default=w},43392:function(e,n,r){"use strict";r(26944),r(27846),r(22818),r(15264),r(14785),r(19169),r(77762),r(24646),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(9473),r(69446),r(5746),r(45343),r(75162),r(18036),r(88455),r(17223),r(32334),r(43001),r(35968),r(28818),r(28121),r(83972),r(76381),r(34078),r(18997),r(24956),r(6765),r(12443),r(92884);var o=y(r(76635)),i=y(r(89868)),a=y(r(89480)),l=y(r(10976)),u=y(r(23867)),s=y(r(41098)),c=r(38388),f=y(r(18947)),d=y(r(6296)),p=y(r(98087)),h=r(9494),m=r(57853);function y(e){return e&&e.__esModule?e:{default:e}}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function g(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
1n%2?b(Object(r),!0).forEach(function(n){j(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w(){return(w="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=_(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function k(e,n){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function O(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e,n,r){return(n=P(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function P(e){var n=function(e,n){if("object"!==v(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==v(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===v(n)?n:String(n)}c.GlobalFormio.forms={},c.GlobalFormio.registerComponent=d.default.setComponent;var S=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&k(e,n)}(p,e);var n,r,d=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=_(p);return e=n?Reflect.construct(r,arguments,_(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===v(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return O(e)}(this,e)});function p(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p),arguments[0]instanceof HTMLElement||arguments[1]?(i=arguments[0],a=arguments[1]):a=arguments[0],j(O(r=d.call(this,null,(e=a,(e=o.default.defaults(e,{submitOnEnter:!1,iconset:"fontawesome"===(n=e&&e.icons?e.icons:c.GlobalFormio.icons)?"fa":n||"",i18next:u.default,saveDraft:!1,alwaysDirty:!1,saveDraftThrottle:5e3,display:"form",cdnUrl:c.GlobalFormio.cdn.baseUrl})).events||(e.events=new l.default),e))),"executeShortcuts",function(e){var n=e.target;if(r.keyboardCatchableElement(n)){var i=e.ctrlKey||e.metaKey,a=e.keyCode,l="";65<=a&&a<=90?l=String.fromCharCode(a):13===a?l="Enter":27===a&&(l="Esc"),o.default.each(r.shortcuts,function(n){(!n.ctrl||i)&&n.shortcut===l&&(n.element.click(),e.preventDefault())})}}),r.element=i,c.GlobalFormio.forms[r.id]=O(r),r.options.baseUrl&&c.GlobalFormio.setBaseUrl(r.options.baseUrl);var e,n,r,i,a,m=s.default;if(a&&a.i18n&&!a.i18nReady&&(a.i18n.resources?m=a.i18n:o.default.each(a.i18n,function(e,n){"options"===n?o.default.merge(m,e):m.resources[n]?o.default.assign(m.resources[n].translation,e):m.resources[n]={translation:o.default.assign((0,h.fastCloneDeep)(s.default.resources.en.translation),e)}}),a.i18n=m,a.i18nReady=!0),a&&a.i18n?r.options.i18n=a.i18n:r.options.i18n=m,r.options.language&&(r.options.i18n.lng=r.options.language),r.type="form",r._src="",r._loading=!1,r._form={},r.draftEnabled=!1,r.savingDraft=!0,r.options.saveDraftThrottle?r.triggerSaveDraft=o.default.throttle(r.saveDraft.bind(O(r)),r.options.saveDraftThrottle):r.triggerSaveDraft=r.saveDraft.bind(O(r)),r.customErrors=[],r.nosubmit=!1,r.submitted=!1,r.submitting=!1,r.formio=null,r.loader=null,r.alert=null,r.onSubmission=null,r.submissionSet=!1,r.formReady=new f.default(function(e,n){r.formReadyResolve=e,r.formReadyReject=n}),r.submissionReady=new f.default(function(e,n){r.submissionReadyResolve=e,r.submissionReadyReject=n}),r.shortcuts=[],r.localize().then(function(){r.language=r.options.language}),r.options.saveDraft&&!r.options.skipDraftRestore){var y=c.GlobalFormio.getUser();y&&!r.submissionSet&&r.restoreDraft(y._id)}return r.component.clearOnHide=!1,r.root=O(r),r.localRoot=O(r),r}return r=[{key:"language",get:function(){return this.options.language},set:function(e){var n=this;if(this.options.language=e,this.i18next.language!==e)try{this.i18next.changeLanguage(e,function(e){e||(n.rebuild(),n.emit("languageChanged"))})}catch(e){return}}},{key:"emptyValue",get:function(){return null}},{key:"componentContext",value:function(){return this._data}},{key:"componentComponents",get:function(){return this.form.components}},{key:"shadowRoot",get:function(){return this.options.shadowRoot}},{key:"addLanguage",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=o.default.assign((0,h.fastCloneDeep)(s.default.resources.en.translation),n);this.i18next.addResourceBundle(e,"translation",i,!0,!0),r&&(this.language=e)}},{key:"localize",value:function(){var e=this;return this.i18next.initialized?f.default.resolve(this.i18next):(this.i18next.initialized=!0,new f.default(function(n,r){try{e.i18next.init(g(g({},e.options.i18n),{compatibilityJSON:"v3"}
1),function(o){if(e.options.language=e.i18next.language.split(";")[0],o)return r(o);n(e.i18next)})}catch(e){return r(e)}}))}},{key:"keyboardCatchableElement",value:function(e){return"TEXTAREA"!==e.nodeName&&("INPUT"!==e.nodeName||-1===["text","email","password"].indexOf(e.type))}},{key:"addShortcut",value:function(e,n){n&&/^([A-Z]|Enter|Esc)$/i.test(n)&&("Enter"===(n=o.default.capitalize(n))||"Esc"===n?"BUTTON"===e.tagName&&this.shortcuts.push({shortcut:n,element:e}):this.shortcuts.push({ctrl:!0,shortcut:n,element:e}))}},{key:"removeShortcut",value:function(e,n){n&&/^([A-Z]|Enter|Esc)$/i.test(n)&&o.default.remove(this.shortcuts,{shortcut:n,element:e})}},{key:"src",get:function(){return this._src},set:function(e){this.setSrc(e)}},{key:"loadSubmission",value:function(){var e=this;return this.loadingSubmission=!0,this.formio.submissionId?this.onSubmission=this.formio.loadSubmission().then(function(n){return e.setSubmission(n)},function(n){return e.submissionReadyReject(n)}).catch(function(n){return e.submissionReadyReject(n)}):this.submissionReadyResolve(),this.submissionReady}},{key:"setSrc",value:function(e,n){var r=this;return this.setUrl(e,n)?(this.nosubmit=!1,this.formio.loadForm({params:{live:1}}).then(function(e){var n=r.setForm(e);return r.loadSubmission(),n}).catch(function(e){console.warn(e),r.formReadyReject(e)})):f.default.resolve()}},{key:"url",get:function(){return this._src},set:function(e){this.setUrl(e)}},{key:"setUrl",value:function(e,n){return!!e&&"string"==typeof e&&e!==this._src&&(this._src=e,this.nosubmit=!0,this.formio=this.options.formio=new c.GlobalFormio(e,n),"form"===this.type&&(this.options.src=e),!0)}},{key:"ready",get:function(){var e=this;return this.formReady.then(function(){return w(_(p.prototype),"ready",e).then(function(){return!e.loadingSubmission||e.submissionReady})})}},{key:"loading",get:function(){return this._loading},set:function(e){if(this._loading!==e){if(this._loading=e,!this.loader&&e){this.loader=this.ce("div",{class:"loader-wrapper"});var n=this.ce("div",{class:"loader text-center"});this.loader.appendChild(n)}if(this.loader)try{e?this.prependTo(this.loader,this.wrapper):this.removeChildFrom(this.loader,this.wrapper)}catch(e){}}}},{key:"setForm",value:function(e,n){var r,i,l,u=this,s=this._form&&(null===(l=this._form.components)||void 0===l?void 0:l.length);try{if(s&&JSON.stringify(this._form)===JSON.stringify(e)||(this._form=null!=n&&n.keepAsReference?e:o.default.cloneDeep(e),this.onSetForm&&this.onSetForm(o.default.cloneDeep(this._form),e),null!==(r=this.parent)&&void 0!==r&&null!==(i=r.component)&&void 0!==i&&i.modalEdit))return f.default.resolve()}catch(e){return console.warn(e),f.default.resolve()}if(e&&e.settings&&e.settings.components&&(this.options.components=e.settings.components),e&&e.properties&&(this.options.properties=e.properties),"schema"in e&&(0,a.default)(e.schema,"1.x")>0&&this.ready.then(function(){u.setAlert("alert alert-danger","Form schema is for a newer version, please upgrade your renderer. Some functionality may not work.")}),e&&e.module){var d=null;if("string"==typeof e.module)try{d=this.evaluate("return ".concat(e.module))}catch(e){console.warn(e)}else d=e.module;d&&(c.GlobalFormio.use(d),d.options&&d.options.form&&(this.options=Object.assign(this.options,d.options.form)))}return this.initialized=!1,(this.rebuild()||f.default.resolve()).then(function(){return u.emit("formLoad",e),u.triggerRecaptcha(),setTimeout(function(){u.onChange(n),u.formReadyResolve()},0),u.formReady})}},{key:"form",get:function(){return this._form||(this._form={components:[]}),this._form},set:function(e){this.setForm(e)}},{key:"submission",get:function(){return this.getValue()},set:function(e){this.setSubmission(e)}},{key:"setSubmission",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=g(g({},r),{},{fromSubmission:!o.default.has(r,"fromSubmission")||r.fromSubmission}),this.onSubmission=this.formReady.then(function(o){return o&&(r=g(g({},r),o)),n.submissionSet=!0,n.triggerChange(r),n.emit("beforeSetSubmission",e),n.setValue(e,r),n.submissionReadyResolve(e)},function(e){return n.submissionReadyReject(e)}).catch(function(e){return n.submissionReadyReject(e)})}},{key:"saveDraft",value:function(){var e=this;if(this.draftEnabled){if(!this.formio){console.warn(this.t("saveDraftInstanceError"));return}if(!c.GlobalFormio.getUser()){console.warn(this.t("saveDraftAuthError"));return}var n=(0,h.fastCloneDeep)(this.submission);
1n.state="draft",this.savingDraft||(this.emit("saveDraftBegin"),this.savingDraft=!0,this.formio.saveSubmission(n).then(function(n){e.submission._id=n._id,e.savingDraft=!1,e.emit("saveDraft",n)}))}}},{key:"restoreDraft",value:function(e){var n=this;if(!this.formio){console.warn(this.t("restoreDraftInstanceError"));return}this.savingDraft=!0,this.formio.loadSubmissions({params:{state:"draft",owner:e}}).then(function(e){if(e.length>0&&!n.options.skipDraftRestore){var r=(0,h.fastCloneDeep)(e[0]);return n.setSubmission(r).then(function(){n.draftEnabled=!0,n.savingDraft=!1,n.emit("restoreDraft",r)})}n.draftEnabled=!0,n.savingDraft=!1,n.emit("restoreDraft",null)})}},{key:"schema",get:function(){var e=(0,h.fastCloneDeep)(o.default.omit(this._form,["components"]));return e.components=[],this.eachComponent(function(n){return e.components.push(n.schema)}),e}},{key:"mergeData",value:function(e,n){o.default.mergeWith(e,n,function(e,n){if(Array.isArray(e)&&Array.isArray(n)&&e.length!==n.length)return n})}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&e.data||(e={data:{}}),this._submission.metadata=e.metadata||{},this.editing=!!e._id,!this.options.submissionTimezone&&e.metadata&&e.metadata.timezone&&(this.options.submissionTimezone=e.metadata.timezone);var r=w(_(p.prototype),"setValue",this).call(this,e.data,n);return n.sanitize||this.mergeData(this.data,e.data),e.data=this.data,this._submission=e,r}},{key:"getValue",value:function(){return this._submission.data||(this._submission.data={}),this.viewOnly||(this._submission.data=this.data),this._submission}},{key:"init",value:function(){var e=this;return this._submission=this._submission||{data:{}},this.components&&this.components.length&&(this.destroyComponents(),this.components=[]),this.component?this.component.components=this.form?this.form.components:[]:this.component=this.form,this.component.type="form",this.component.input=!1,this.addComponents(),this.on("submitButton",function(n){e.submit(!1,n).catch(function(e){return!1!==e&&console.log(e)})},!0),this.on("checkValidity",function(n){return e.checkValidity(n,!0,n)},!0),this.on("requestUrl",function(n){return e.submitUrl(n.url,n.headers)},!0),this.on("resetForm",function(){return e.resetValue()},!0),this.on("deleteSubmission",function(){return e.deleteSubmission()},!0),this.on("refreshData",function(){return e.updateValue()},!0),this.executeFormController(),this.formReady}},{key:"executeFormController",value:function(){var e=this;if(!this.form||!this.form.controller||(!this.visible||this.component.hidden)&&this.component.clearOnHide&&!this.rootPristine)return!1;this.formReady.then(function(){e.evaluate(e.form.controller,{components:e.components,instance:e})})}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.off("submitButton"),this.off("checkValidity"),this.off("requestUrl"),this.off("resetForm"),this.off("deleteSubmission"),this.off("refreshData"),e&&(this.emit
1("formDelete",this.id),delete c.GlobalFormio.forms[this.id]),w(_(p.prototype),"destroy",this).call(this)}},{key:"build",value:function(e){var n=this;return e||this.element?this.ready.then(function(){e=e||n.element,w(_(p.prototype),"build",n).call(n,e)}):this.ready}},{key:"getClassName",value:function(){var e="formio-form";return this.options.readOnly&&(e+=" formio-read-only"),e}},{key:"render",value:function(){return w(_(p.prototype),"render",this).call(this,this.renderTemplate("webform",{classes:this.getClassName(),children:this.renderComponents()}),this.builderMode?"builder":"form",!0)}},{key:"redraw",value:function(){return this.element?(this.clear(),this.setContent(this.element,this.render()),this.attach(this.element)):f.default.resolve()}},{key:"attach",value:function(e){var n=this;this.element=e,this.loadRefs(e,{webform:"single"});var r=this.attachComponents(this.refs.webform);return this.addEventListener(document,"keydown",this.executeShortcuts),this.currentForm=this,this.hook("attachWebform",e,this),r.then(function(){return n.emit("render",n.element),n.setValue(n._submission,{noUpdateEvent:!0})})}},{key:"hasRequiredFields",value:function(){var e=!1;return(0,m.eachComponent)(this.form.components,function(n){if(n.validate.required)return e=!0,!0},!0),e}},{key:"resetValue",value:function(){o.default.each(this.getComponents(),function(e){return e.resetValue()}),this.setPristine(!0),this.onChange()}},{key:"setAlert",value:function(e,n,r){var o=this;if(!e&&this.submitted){this.alert&&(this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach(function(e){o.removeEventListener(e,"click"),o.removeEventListener(e,"keypress")}),this.removeChild(this.alert),this.alert=null);return}if(this.options.noAlerts){n||this.emit("error",!1);return}if(this.alert)try{this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach(function(e){o.removeEventListener(e,"click"),o.removeEventListener(e,"keypress")}),this.removeChild(this.alert),this.alert=null}catch(e){}if(n){var i={class:r&&r.classes||"alert alert-".concat(e),id:"error-list-".concat(this.id)},a={message:n instanceof HTMLElement?n.outerHTML:n,attrs:i,type:e};this.alert=(0,h.convertStringToHTMLElement)(this.renderTemplate("alert",a),"#".concat(i.id))}this.alert&&(this.loadRefs(this.alert,{errorRef:"multiple"}),this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach(function(e){o.addEventListener(e,"click",function(e){var n=e.currentTarget.dataset.componentKey;o.focusOnComponent(n)}),o.addEventListener(e,"keydown",function(e){if(13===e.keyCode){e.preventDefault();var n=e.currentTarget.dataset.componentKey;o.focusOnComponent(n)}})}),this.prepend(this.alert))}},{key:"focusOnComponent",value:function(e){if(e){var n=this.getComponent(e);n&&n.focus()}}},{key:"showErrors",value:function(e,n,r){var i=this;this.loading=!1;var a=this.errors;if(e?Array.isArray(e)?a=a.concat(e):a.push(e):a=w(_(p.prototype),"errors",this),!(a=(a=a.concat(this.customErrors)).concat(this.serverErrors||[])).length){this.setAlert(!1);return}a.forEach(function(e){var n=e.components,r=void 0===n?[]:n;e.component&&r.push(e.component),e.path&&r.push(e.path),r.forEach(function(n){var r=i._parentPath+(0,h.getStringFromComponentPath)(n),a=i.getComponent(n,o.default.identity,r);e.fromServer&&(a.serverErrors?a.serverErrors.push(e):a.serverErrors=[e]),o.default.compact(Array.isArray(a)?a:[a]).forEach(function(n){return n.setCustomValidity(e.message,!0)})})});var l=[];a.forEach(function(e){if(e){var n=function(n,r){var a=!o.default.isUndefined(r)&&e.messages&&e.messages[r],l=a&&a.formattedKeyOrPath||a.path||e.component&&e.component.key||e.fromServer&&e.path,u=l?(0,h.getStringFromComponentPath)(l):"";return u=i._parentPath+u,"string"==typeof e||e.formattedKeyOrPath||(e.formattedKeyOrPath=u),{message:(0,h.unescapeHTML)(n),keyOrPath:u}};if(e.messages=o.default.uniqBy(e.messages,function(e){return e.message}),e.messages&&e.messages.length){var r=e.component;e.messages.forEach(function(e,o){var a=e.message,u=e.context,s=e.fromServer,c=null!=u&&u.hasLabel||s?i.t("alertMessage",{message:i.t(a)}):i.t("alertMessageWithLabel",{label:i.t(r.label),message:i.t(a)});l.push(n(c,o))})}else if(e){var a=o.default.isObject(e)?i.t("alertMessage",{message:i.t(e.message||"")}):i.t("alertMessage",{message:i.t(e)});l.push(n(a))}}});var u=this.renderTemplate("errorsList",{errors:l});
1return this.root.setAlert("danger",u),n&&this.emit("error",a),a}},{key:"onSubmit",value:function(e,n){var r;return this.loading=!1,this.submitting=!1,this.setPristine(!0),this.setValue((0,h.fastCloneDeep)(e),{noValidate:!0,noCheck:!0}),this.setAlert("success","<p>".concat(this.t("complete"),"</p>")),this.draftEnabled&&null!==(r=this.triggerSaveDraft)&&void 0!==r&&r.cancel&&this.triggerSaveDraft.cancel(),this.emit("submit",e,n),n&&this.emit("submitDone",e),e}},{key:"normalizeError",value:function(e){return e&&("object"===v(e)&&"details"in e&&(e=e.details),"string"==typeof e&&(e={message:e})),e}},{key:"onSubmissionError",value:function(e){var n;return(e=this.normalizeError(e),this.submitting=!1,this.setPristine(!1),this.emit("submitError",e),e&&e.silent)?(this.emit("change",{isValid:!0},{silent:!0}),!1):(n=this.submitted?this.showErrors():this.showErrors(e,!0),this.root&&this.root.alert&&this.scrollIntoView(this.root.alert),n)}},{key:"onChange",value:function(e,n,r,i){e=e||{};var a=!1;n&&n.component&&(this.customErrors=this.customErrors.filter(function(e){return e.component&&e.component!==n.component.key})),w(_(p.prototype),"onChange",this).call(this,e,!0);var l=o.default.clone(this.submission);e.changed=l.changed=n,e.changes=i,r&&this.pristine&&(this.pristine=!1),l.isValid=this.checkData(l.data,e),this.loading=!1,this.submitted&&this.showErrors(),r&&this.options.saveDraft&&this.triggerSaveDraft(),e&&e.noEmit||(this.emit
1("change",l,e,r),a=!0),a&&!this.initialized&&(this.emit("initialized"),this.initialized=!0)}},{key:"checkData",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=w(_(p.prototype),"checkData",this).call(this,e,n);return(o.default.isEmpty(n)||n.noValidate)&&this.submitted&&this.showErrors(),r}},{key:"deleteSubmission",value:function(){var e=this;return this.formio.deleteSubmission().then(function(){e.emit("submissionDeleted",e.submission),e.resetValue()})}},{key:"cancel",value:function(e){return this.hook("beforeCancel",!0)&&(e||confirm(this.t("confirmCancel")))?(this.resetValue(),!0):(this.emit("cancelSubmit"),!1)}},{key:"setMetadata",value:function(e){e.metadata=e.metadata||{},o.default.defaults(e.metadata,{timezone:o.default.get(this,"_submission.metadata.timezone",(0,h.currentTimezone)()),offset:parseInt(o.default.get(this,"_submission.metadata.offset",(0,i.default)().utcOffset()),10),origin:document.location.origin,referrer:document.referrer,browserName:navigator.appName,userAgent:navigator.userAgent,pathName:window.location.pathname,onLine:navigator.onLine})}},{key:"submitForm",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.clearServerErrors(),new f.default(function(r,i){if(e.options.readOnly)return r({submission:e.submission,saved:!1});var a=(0,h.fastCloneDeep)(e.submission||{});e.setMetadata(a),a.state=n.state||"submitted";var l="draft"===a.state;e.hook("beforeSubmit",g(g({},a),{},{component:n.component}),function(u,s){return u?i(u):(a._vnote=s&&s._vnote?s._vnote:"",l||a.data)?l||e.checkValidity(a.data,!0)?void(e.everyComponent(function(e){"client-only"===e.component.persistent&&o.default.unset(a.data,e.path)}),e.hook("customValidation",g(g({},a),{},{component:n.component}),function(n){if(n)return"string"==typeof n&&(n={message:n}),n=Array.isArray(n)?n:[n],e.customErrors=n,i();if(e.loading=!0,e._form&&e._form.action){var o=a.data._id&&e._form.action.includes(a.data._id)?"PUT":"POST";return c.GlobalFormio.makeStaticRequest(e._form.action,o,a,e.formio?e.formio.options:{}).then(function(e){return r({submission:e,saved:!0})}).catch(function(n){return e.setServerErrors(n),i(n)})}var l=e.formio;if(e.nosubmit||!l)return r({submission:a,saved:!1});var u=l.actionUrl?"saveAction":"saveSubmission";l[u](a).then(function(e){return r({submission:e,saved:!0})}).catch(function(n){return e.setServerErrors(n),i(n)})})):i():i("Invalid Submission")})})}},{key:"setServerErrors",value:function(e){e.details?this.serverErrors=e.details.filter(function(e){return e.level?"error"===e.level:e}).map(function(e){return e.fromServer=!0,e}):"string"==typeof e&&(this.serverErrors=[{fromServer:!0,level:"error",message:e}])}},{key:"executeSubmit",value:function(e){var n=this;return this.submitted=!0,this.submitting=!0,this.submitForm(e).then(function(e){var r=e.submission,o=e.saved;return n.onSubmit(r,o)}).then(function(e){return n.submissionInProcess=!1,e}).catch(function(e){return n.submissionInProcess=!1,f.default.reject(n.onSubmissionError(e))})}},{key:"clearServerErrors",value:function(){var e,n=this;null===(e=this.serverErrors)||void 0===e||e.forEach(function(e){if(e.path){var r=(0,h.getArrayFromComponentPath)(e.path),i=n.getComponent(r,o.default.identity,e.formattedKeyOrPath);i&&(i.serverErrors=[])}}),this.serverErrors=[]}},{key:"submit",value:function(e,n){var r=this;return(this.submissionInProcess=!0,e)?this.executeSubmit(n):this.beforeSubmit(n).then(function(){return r.executeSubmit(n)})}},{key:"submitUrl",value:function(e,n){var r=this;if(!e)return console.warn("Missing URL argument");var o=this.submission||{},i={method:"POST",headers:{}};if(n&&n.length>0&&n.map(function(e){""!==e.header&&""!==e.value&&(i.headers[e.header]=r.interpolate(e.value,o))}),!e||!i)return this.emit("error","You should add a URL to this button."),this.setAlert("warning","You should add a URL to this button."),console.warn("You should add a URL to this button.");c.GlobalFormio.makeStaticRequest(e,i.method,o,{headers:i.headers}).then(function(){r.emit("requestDone"),r.setAlert("success","<p> Success </p>")}).catch(function(e){r.showErrors("".concat(e.statusText?e.statusText:""," ").concat(e.status?e.status:e)),r.emit("error","".concat(e.statusText?e.statusText:""," ").concat(e.status?e.status:e)),console.error("".concat(e.statusText?e.statusText:""," ").concat(e.status?e.status:e)),r.setAlert("danger","<p> ".concat(e.statusText?e.statusText:""," ").concat(e.status?e.status:e," </p>"))})}},{key:"triggerRecaptcha",value:function(){if(this&&this.components){var e=(0,h.searchComponents)(this.components,{"component.type":"recaptcha","component.eventType":"formLoad"});e.length>0&&e[0].verify("".concat(this.form.name?this.form.name:"form","Load"))}}},{key:"nosubmit",get:function(){return this._nosubmit||!1}
1,set:function(e){this._nosubmit=!!e,this.emit("nosubmit",this._nosubmit)}},{key:"conditions",get:function(){var e,n;return null!==(e=null===(n=this.schema.settings)||void 0===n?void 0:n.conditions)&&void 0!==e?e:[]}},{key:"variables",get:function(){var e,n;return null!==(e=null===(n=this.schema.settings)||void 0===n?void 0:n.variables)&&void 0!==e?e:[]}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,P(o.key),o)}}(p.prototype,r),Object.defineProperty(p,"prototype",{writable:!1}),p}(p.default);n.default=S,S.setBaseUrl=c.GlobalFormio.setBaseUrl,S.setApiUrl=c.GlobalFormio.setApiUrl,S.setAppUrl=c.GlobalFormio.setAppUrl},51695:function(e,n,r){"use strict";r(26944),r(27846),r(22818),r(15264),r(14785),r(19169),r(77762),r(30534),r(98197),r(11102),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(76381),r(13423),r(35968),r(17223),r(5746),r(6588),r(28121),r(83972),r(34078),r(9473),r(24646),r(69446),r(18036),r(43001),r(88455),r(32334),r(30902),r(45009),r(97172),r(12083),r(15469),r(62089),r(98595),r(92100),r(92782),r(17943),r(31206),r(1542),r(36686),r(17216),r(18997),r(24956),r(6765),r(12443),r(92884);var o,i=y(r(43392)),a=y(r(11275)),l=y(r(62323)),u=y(r(18947)),s=y(r(6296)),c=r(38388),f=r(9494),d=r(57853),p=y(r(65319)),h=y(r(76635)),m=y(r(5343));function y(e){return e&&e.__esModule?e:{default:e}}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return g(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function w(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function k(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?w(Object(r),!0).forEach(function(n){S(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O(){return(O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=P(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function _(e,n){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function j(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e,n,r){return(n=E(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function E(e){var n=function(e,n){if("object"!==v(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==v(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===v(n)?n:String(n)}r(24192);var x=c.GlobalFormio.Templates;x||(x=r(538).default),"undefined"!=typeof window&&(o=r(21996));var C=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&_(e,n)}(y,e);var n,r,a=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=P(y);return e=n?Reflect.construct(r,arguments,P(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===v(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return j(e)}(this,e)});function y(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,y),arguments[0]instanceof HTMLElement||arguments[1]?(n=arguments[0],r=arguments[1]):r=arguments[0],r.skipInit=!1,r.display=r.display||"form",S(j(e=a.c
1all(this,null,r)),"moveHandler",function(n){(38===n.keyCode||40===n.keyCode||13===n.keyCode)&&(n.stopPropagation(),n.preventDefault()),38===n.keyCode&&e.updateComponentPlacement(!0),40===n.keyCode&&e.updateComponentPlacement(!1),13===n.keyCode&&e.stopMoving(e.selectedComponent)}),e.element=n,e.builderHeight=0,e.schemas={},e.repeatablePaths=[],e.sideBarScroll=h.default.get(e.options,"sideBarScroll",!0),e.sideBarScrollOffset=h.default.get(e.options,"sideBarScrollOffset",0),e.dragDropEnabled=!0,e.builder=h.default.defaultsDeep({},e.options.builder,e.defaultGroups),h.default.each(e.defaultGroups,function(n,r){!1===n&&(e.builder[r]=!1)}),e.groups={},e.groupOrder=[];var e,n,r,o=function(n){e.builder[n]&&(e.builder[n].key=n,e.groups[n]=e.builder[n],e.groups[n].components=e.groups[n].components||{},e.groups[n].componentOrder=e.groups[n].componentOrder||[],e.groups[n].subgroups=Object.keys(e.groups[n].groups||{}).map(function(r){return e.groups[n].groups[r].componentOrder=Object.keys(e.groups[n].groups[r].components).map(function(e){return e}),e.groups[n].groups[r]}),e.groupOrder.push(e.groups[n]))};for(var i in e.builder)o(i);for(var l in e.groupOrder=e.groupOrder.filter(function(e){return e&&!e.ignore}).sort(function(e,n){return e.weight-n.weight}).map(function(e){return e.key}),s.default.components){var u=s.default.components[l];if(u.builderInfo&&u.builderInfo.schema){e.schemas[l]=u.builderInfo.schema,u.type=l;var f=u.builderInfo;f.key=u.type,e.addBuilderComponentInfo(f)}}for(var d in e.groups){var p=e.groups[d];for(var m in p.components){var v="resource"===d?"component-".concat(m):m,b=p.components[v];!0===b&&s.default.components[m]&&s.default.components[m].builderInfo&&(b=s.default.components[m].builderInfo),b&&b.schema?(e.schemas[m]=b.schema,p.components[v]=b,p.components[v].key=m):delete p.components[v]}e.orderComponents(p)}e.options.hooks=e.options.hooks||{},e.options.hooks.renderComponent=function(n,r){var o,i=r.component,a=r.self;return"form"!==a.type||a.key?e.options.disabled&&e.options.disabled.includes(a.key)||a.parent.noDragDrop?n:e.renderTemplate("builderComponent",{html:n,disableBuilderActions:null==a?void 0:null===(o=a.component)||void 0===o?void 0:o.disableBuilderActions,childComponent:i}):e.hook("renderComponentFormTemplate",n.replace("formio-component-form",""))},e.options.hooks.renderComponents=function(n,r){var o=r.components,i=r.self;return"datagrid"===i.type&&o.length>0||i.noDragDrop?n:(o&&(o.length||o.nodrop)&&("form"!==i.type||!(o.length<=1)||0!==o.length&&"button"!==o[0].type)||(n=e.renderTemplate("builderPlaceholder",{position:0})+n),e.renderTemplate("builderComponents",{key:i.key,type:i.type,html:n}))},e.options.hooks.renderInput=function(e,n){var r=n.self;return"hidden"===r.type?e+r.name:e},e.options.hooks.renderLoading=function(e,n){var r=n.self;return"form"===r.type&&r.key?r.name:e},e.options.hooks.attachComponents=function(n,r,o,i){if(n){if(i.noDragDrop)return n;var a=n.querySelector('[ref="'.concat(i.component.key,'-container"]'))||n;return(a.formioContainer=o,a.formioComponent=i,e.dragula&&e.allowDrop(n)&&e.dragula.containers.push(a),("datagrid"===i.type||"datamap"===i.type)&&r.length>0)?n:n.children[0]}}
vendor: 5,799 bytes, line 1
1,e.options.hooks.attachDatagrid=function(e,n){n.loadRefs(e,S({},"".concat(n.key,"-container"),"single"));var r=n.refs["".concat(n.key,"-container")];r&&n.attachComponents(r.parentNode,[],n.component.components)},e.options.hooks.attachComponent=e.attachComponent.bind(j(e));var g={params:{type:"resource",limit:1e6,select:"_id,title,name,components"}};e.options&&e.options.resourceTag?g.params.tags=[e.options.resourceTag]:e.options&&e.options.hasOwnProperty("resourceTag")||(g.params.tags=["builder"]);var w=new c.GlobalFormio(c.GlobalFormio.projectUrl),k=e.options.builder&&!1===e.options.builder.resource;if(w.loadProject().then(function(n){if(n&&(h.default.get(n,"settings.addConfigToForms",!1)||h.default.get(n,"addConfigToForms",!1))){var r=n.config||{};e.options.formConfig=r;var o="webform._form.config",i=h.default.get(j(e),o);e.webform&&!i&&h.default.set(j(e),o,r)}}).catch(function(e){console.warn("Could not load project settings: ".concat(e.message||e))}),!w.noProject&&!k){var O=e.options.builder&&e.options.builder.resource;w.loadForms(g).then(function(n){n.length&&(e.builder.resource={title:O?O.title:"Existing Resource Fields",key:"resource",weight:O?O.weight:50,subgroups:[],components:[],componentOrder:[]},e.groups.resource={title:O?O.title:"Existing Resource Fields",key:"resource",weight:O?O.weight:50,subgroups:[],components:[],componentOrder:[]},e.groupOrder.includes("resource")||e.groupOrder.push("resource"),e.addExistingResourceFields(n))})}return e.options.attachMode="builder",e.webform=e.webform||e.createForm(e.options),e.pathComponentsMapping={},e.arrayDataComponentPaths=[],e.nestedDataComponents=[],e.arrayDataComponents=[],e}return r=[{key:"allowDrop",value:function(){return!0}},{key:"addExistingResourceFields",value:function(e){var n=this;h.default.each(e,function(e,r){var o="resource-".concat(e.name),i={key:o,title:e.title,components:[],componentOrder:[],default:0===r};(0,d.eachComponent)(e.components,function(r){if("button"!==r.type&&(!n.options||!n.options.resourceFilter||r.tags&&-1!==r.tags.indexOf(n.options.resourceFilter))){var a=r.label;!a&&r.key&&(a=h.default.upperFirst(r.key)),i.componentOrder.push("component-".concat(r.key)),i.components["component-".concat(r.key)]=h.default.merge((0,f.fastCloneDeep)(s.default.components[r.type]?s.default.components[r.type].builderInfo:s.default.components.unknown.builderInfo),{key:r.key,title:a,group:"resource",subgroup:o},{schema:k(k({},r),{},{label:r.label,key:r.key,lockKey:!0,source:n.options.noSource?void 0:e._id,isNew:!0})})}},!0),n.groups.resource.subgroups.push(i)}),this.triggerRedraw()}},{key:"attachTooltip",value:function(e,n){return(0,l.default)(e,{allowHTML:!0,trigger:"mouseenter focus",placement:"top",delay:[200,0],zIndex:1e4,content:n})}},{key:"attachComponent",value:function(e,n){var r=this;if(!(n instanceof y)){if(e.formioComponent=n,n.loadRefs(e,{removeComponent:"single",editComponent:"single",moveComponent:"single",copyComponent:"single",pasteComponent:"single",editJson:"single"}),n.refs.copyComponent&&(this.attachTooltip(n.refs.copyComponent,this.t("Copy")),n.addEventListener(n.refs.copyComponent,"click",function(){return r.copyComponent(n)})),n.refs.pasteComponent){var o=this.attachTooltip(n.refs.pasteComponent,this.t("Paste below"));n.addEventListener(n.refs.pasteComponent,"click",function(){o.hide(),r.pasteComponent(n)})}n.refs.moveComponent&&(this.attachTooltip(n.refs.moveComponent,this.t("Move")),this.keyboardActionsEnabled&&n.addEventListener(n.refs.moveComponent,"click",function(){r.moveComponent(n)}));var i=this.getParentElement(e);return n.refs.editComponent&&(this.attachTooltip(n.refs.editComponent,this.t("Edit")),n.addEventListener(n.refs.editComponent,"click",function(){return r.editComponent(n.schema,i,!1,!1,n.component,{inDataGrid:n.isInDataGrid})})),n.refs.editJson&&(this.attachTooltip(n.refs.editJson,this.t("Edit JSON")),n.addEventListener(n.refs.editJson,"click",function(){return r.editComponent(n.schema,i,!1,!0,n.component)})),n.refs.removeComponent&&(this.attachTooltip(n.refs.removeComponent,this.t("Remove")),n.addEventListener(n.refs.removeComponent,"click",function(){return r.removeComponent(n.schema,i,n.component)})),e}}},{key:"createForm",value:function(e){return this.webform=new i.default(this.element,e),this.element&&(this.loadRefs(this.element,{form:"single"}),this.refs.form&&(this.webform.element=this.refs.form)),this.webform}},{key:"ready",get:function(){return this.webform.ready}},{key:"defaultGroups",get:function(){return{basic:{title:"Basic",weight:0,default:!0},advanced:{title:"Advanced",weight:10},layout:{title:"Layout",weight:20},data:{title:"Data",weight:30},premium:{title:"Premium",weight:40}}}},{key:"redraw",value:function(){return i.default.prototype.redraw.call(this)}},{key:"form",get:function(){return this.webform.form},set:function(e){this.setForm(e)}},{key:"schema",get:function(){return this.webform.schema}},{key:"container",get:function(){return this.webform.form.components}},{key:"findNamespaceRoot",value:function(e){var n=(0,f.getArrayFromComponentPath)(e.path),r=this.webform.getComponent(n);r=Array.isArray(r)?r[0]:r;var o=this.recurseNamespace(r);if(!o||this.form.key===o)return this.form.components;var i=e.component;if(o===e.key)return[].concat(b(i.components),[i]);var a=(0,d.getComponent)(this.form.components,o,!0);return a?a.components:r.components}},{key:"recurseNamespace",value:function(e){return e?["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree?e.key:this.recurseNamespace(e.parent):null}},{key:"render",value:function(){var e=this;return this.renderTemplate("builder",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:"builder-sidebar-".concat(this.id
1),groups:this.groupOrder.map(function(n){return e.renderTemplate("builderSidebarGroup",{group:e.groups[n],groupKey:n,groupId:"builder-sidebar-".concat(e.id),subgroups:e.groups[n].subgroups.map(function(r){return e.renderTemplate("builderSidebarGroup",{group:r,groupKey:r.key,groupId:"group-container-".concat(n),subgroups:[]})}),keyboardActionsEnabled:e.keyboardActionsEnabled})})}),form:this.webform.render()})}},{key:"attach",value:function(e){var n=this;return this.on("change",function(e){n.populateRecaptchaSettings(e)}),O(P(y.prototype),"attach",this).call(this,e).then(function(){n.loadRefs(e,{form:"single",sidebar:"single","sidebar-search":"single","sidebar-groups":"single",container:"multiple","sidebar-anchor":"multiple","sidebar-group":"multiple","sidebar-container":"multiple","sidebar-component":"multiple"}),n.sideBarScroll&&x.current.handleBuilderSidebarScroll&&x.current.handleBuilderSidebarScroll.call(n,n),"undefined"!=typeof window&&window.sessionStorage&&window.sessionStorage.getItem("formio.clipboard")&&n.addClass(n.refs.form,"builder-paste-mode"),(0,f.bootstrapVersion)(n.options)||(n.refs["sidebar-group"].forEach(function(e){e.style.display="true"===e.getAttribute("data-default")?"inherit":"none"}),n.refs["sidebar-anchor"].forEach(function(e,r){n.addEventListener(e,"click",function(){var o=e.getAttribute("data-parent").slice(17),i=e.getAttribute("data-target").slice(7);n.refs["sidebar-group"].forEach(function(e,n){var a="true"===e.getAttribute("data-default"),l=e.getAttribute("id").slice(6),u=e.getAttribute("data-parent").slice(17);e.style.display=a&&u===i||l===o||n===r?"inherit":"none"})},!0)})),n.keyboardActionsEnabled&&n.refs["sidebar-component"].forEach(function(e){n.addEventListener(e,"keydown",function(r){13===r.keyCode&&n.addNewComponent(e)})}),n.addEventListener(n.refs["sidebar-search"],"input",h.default.debounce(function(e){var r=e.target.value;n.searchFields(r)},300)),n.dragDropEnabled&&n.initDragula();var r=n.dragula;if(n.refs.form)return(0,m.default)([window],{margin:20,maxSpeed:6,scrollWhenOutside:!0,autoScroll:function(){return this.down&&(null==r?void 0:r.dragging)}}),n.webform.attach(n.refs.form)})}},{key:"searchFields",value:function(){var e,n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=r.toLowerCase(),i=this.refs.sidebar,a=this.refs["sidebar-groups"];if(i&&a){var l=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=h.default.toPlainObject(e),i=o.subgroups,a=o.components,l=[];for(var u in a){var s=a[u].title.toLowerCase().match(r),c=a[u].key.toLowerCase().match(r);(s||c)&&l.push(a[u])}return(n.orderComponents(o,l),r&&(o.default=!0),o.componentOrder.length||(void 0===i?[]:i).length)?o:null},u=function(e){var r;return{group:l(n.groups[e],o),groupKey:e,groupId:i.id||a.id,subgroups:(r=n.groups[e].subgroups,h.default.clone(r).map(function(e){return l(e,o)}).filter(function(e){return!h.default.isNull(e)})).map(function(r){return n.renderTemplate("builderSidebarGroup",{group:r,groupKey:r.key,groupId:"group-container-".concat(e),subgroups:[]})})}};a.innerHTML=(e=this.groupOrder,h.default.cloneDeep(e).filter(function(e){return l(n.groups[e],o)})).map(function(e){return n.renderTemplate("builderSidebarGroup",u(e))}).join(""),this.loadRefs(this.element,{"sidebar-groups":"single","sidebar-anchor":"multiple","sidebar-group":"multiple","sidebar-container":"multiple"}),this.updateDragAndDrop(),""===o&&this.triggerRedraw()}}},{key:"orderComponents",value:function(e,n){var r=n||e.components,o=0===e.key.indexOf("resource-");r&&(e.componentOrder=Object.keys(r).map(function(e){return r[e]}).filter(function(e){return e&&!e.ignore&&!e.ignoreForForm}).sort(function(e,n){return e.weight-n.weight}).map(function(e){return o?"component-".concat(e.key):e.key}))}},{key:"updateDragAndDrop",value:function(){if(this.dragDropEnabled&&this.initDragula(),this.refs.form)return this.webform.attach(this.refs.form)}},{key:"initDragula",value:function(){var e=this,n=this.options;this.dragula&&this.dragula.destroy();var r=Array.prototype.slice.call(this.refs["sidebar-container"]).filter(function(e){return"group-container-resource"!==e.id});o&&(this.dragula=o(r,{moves:function(e){var r=!0;return Array.from(e.classList).filter(function(e){return 0===e.indexOf("formio-component-")}
1).forEach(function(e){var o=e.slice(17);n.disabled&&n.disabled.includes(o)&&(r=!1)}),e.classList.contains("no-drag")&&(r=!1),r},copy:function(e){return e.classList.contains("drag-copy")},accepts:function(e,n){return!e.contains(n)&&!n.classList.contains("no-drop")}}).on("drop",function(n,r,o,i){return e.onDrop(n,r,o,i)}))}},{key:"detach",value:function(){this.dragula&&this.dragula.destroy(),this.dragula=null,this.sideBarScroll&&x.current.clearBuilderSidebarScroll&&x.current.clearBuilderSidebarScroll.call(this,this),O(P(y.prototype),"detach",this).call(this)}},{key:"getComponentInfo",value:function(e,n){var r;if(n&&"resource"===n.slice(0,n.indexOf("-"))){var o=this.groups.resource.subgroups,i=h.default.find(o,{key:n});i&&i.components.hasOwnProperty("component-".concat(e))&&(r=(0,f.fastCloneDeep)(i.components["component-".concat(e)].schema))}else if(this.schemas.hasOwnProperty(e))r=(0,f.fastCloneDeep)(this.schemas[e]);else if(this.groups.hasOwnProperty(n)){var a=this.groups[n].components;a.hasOwnProperty(e)&&(r=(0,f.fastCloneDeep)(a[e].schema))}else if("searchFields"===n)for(var l=this.groups.resource.subgroups,u=0;u<l.length;u++){var s=l[u];if(s.components.hasOwnProperty("component-".concat(e))){r=(0,f.fastCloneDeep)(s.components["component-".concat(e)].schema);break}}return r&&(r.key=this.generateKey(r)),r}},{key:"getComponentsPath",value:function(e,n){var r="components",o=0,i=0,a=0,l=0;switch(n.type){case"table":i=h.default.findIndex(n.rows,function(n){return n.some(function(n){return n.components.some(function(n){return n.key===e.key})})}),a=h.default.findIndex(n.rows[i],function(n){return n.components.some(function(n){return n.key===e.key})}),r="rows[".concat(i,"][").concat(a,"].components");break;case"columns":o=h.default.findIndex(n.columns,function(n){return n.components.some(function(n){return n.key===e.key})}),r="columns[".concat(o,"].components");break;case"tabs":l=h.default.findIndex(n.components,function(n){return n.components.some(function(n){return n.key===e.key})}),r="components[".concat(l,"].components")}return r}},{key:"onDrop",value:function(e,n,r,o){var i,a,l,s,c,f,m=this;if(!(!n||e.contains(n))){var y=e.getAttribute("data-key"),v=e.getAttribute("data-type"),b=e.getAttribute("data-group");if(y&&b?((i=this.getComponentInfo(y,b))||!v||(i=this.getComponentInfo(v,b)),a=!0):r.formioContainer&&-1!==(s=h.default.findIndex(r.formioContainer,{key:e.formioComponent.component.key}))&&(i=(i=r.formioContainer.splice(h.default.findIndex(r.formioContainer,{key:e.formioComponent.component.key}),1))[0]),i){var g="resource"===b?"component-".concat(y):y,w=(null===(f=this.groups[b])||void 0===f?void 0:f.components[g])||{};if(w.disableSiblings){var k=!1;if((0,d.eachComponent)(this.webform.components,function(e){if(e.type===w.schema.type){k=!0;return}},!0),k){this.webform.redraw(),this.webform.setAlert("danger","You cannot add more than one ".concat(w.key," component to one page."));return}}n!==r&&p.default.uniquify(this.findNamespaceRoot(n.formioComponent),i);var O=n.formioComponent;n.formioContainer&&(o?-1!==(s=o.getAttribute("data-noattach")?o.getAttribute("data-position"):-1===(s=h.default.findIndex(n.formioContainer,{key:h.default.get(o,"formioComponent.component.key")}))?0:s)&&n.formioContainer.splice(s,0,i):n.formioContainer.push(i),l=this.getComponentsPath(i,O.component),-1===(s=h.default.findIndex(h.default.get(O.schema,l),{key:i.key}))&&(s=0)),O&&O.addChildComponent&&O.addChildComponent(i,e,n,r,o);var _="datagrid"===O.type;return!a||this.options.noNewEdit||i.noNewEdit||this.editComponent(i,n,a,null,null,{inDataGrid:_}),n!==r?r.formioContainer&&r.contains(n)?c=r.formioComponent.rebuild():(n.contains(r)||r.formioContainer&&(c=r.formioComponent.rebuild()),c=n.formioComponent.rebuild()):c=n.formioComponent.rebuild(),c||(c=u.default.resolve()),c.then(function(){m.emit("addComponent",i,O,l,s,a&&!m.options.noNewEdit&&!i.noNewEdit),(!a||m.options.noNewEdit||i.noNewEdit)&&m.emit("change",m.form)})}}}},{key:"setForm",value:function(e){var n,r=this;if(e.components||(e.components=[]),e&&e.properties&&(this.options.properties=e.properties),this.keyboardActionsEnabled=h.default.get(this.options,"keyboardBuilder",!1)||(null===(n=this.options.properties)||void 0===n?void 0:n.keyboardBuilder),this.options.noDefaultSubmitButton||e.components.length||e.components.push({type:"button",label:"Submit",key:"submit",size:"md",block:!1,action:"submit",disableOnInvalid:!0,theme:"primary"}),this.webform){var o=!this.webform.form.components||e.components.length!==this.webform.form.components.length;return this.webform.setForm(e,{keepAsReference:!0}).then(function(){return(r.refs.form&&(r.builderHeight=r.refs.form.offsetHeight),o)?r.rebuild().then(function(){return r.form}):r.form})}return u.default.resolve(e)}},{key:"populateRecaptchaSettings",value:function(e){var n=!1;this.form.components&&((0,d.eachComponent)(e.components,function(e){if(!n&&"recaptcha"===e.type)return n=!0,!1}),n?h.default.set(e,"settings.recaptcha.isEnabled",!0):h.default.get(e,"settings.recaptcha.isEnabled")&&h.default.set(e,"settings.recaptcha.isEnabled",!1))}},{key:"removeComponent",value:function(e,n,r){var o=this;if(n){var i=!0,a=!e.skipRemoveConfirm&&(Array.isArray(e.components)&&e.components.length||Array.isArray(e.rows)&&e.rows.length||Array.isArray(e.columns)&&e.columns.length);(this.options.alwaysConfirmComponentRemoval||a)&&(i=window.confirm(this.t(a?"Removing this component will also remove all of its children. Are you sure you want to do this?":"Are you sure you want to remove this component?"))),r||(r=n.formioContainer.find(function(n){return n.id===e.id}));var l=n.formioContainer?n.formioContainer.indexOf(r):0;if(i&&-1!==l){var s=this.getComponentsPath(e,n.formioComponent.component);n.formioContainer?n.formioContainer.splice(l,1):n.formioComponent&&n.formioComponent.removeChildComponent&&n.formioComponent.removeChildComponent(e),(n.formioComponent.rebuild()||u.default.resolve()).then(function(){o.emit
vendor: 11,594 bytes, line 1
1("removeComponent",e,n.formioComponent.schema,s,l),o.emit("change",o.form)})}return i}}},{key:"replaceDoubleQuotes",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e)return n.forEach(function(n){e[n]&&(e[n]=e[n].replace(/"/g,"'"))}),e}},{key:"updateComponent",value:function(e,n){var r=this;if(this.preview){this.preview.form={components:[h.default.omit(k({},e),["hidden","conditional","calculateValue","logic","autofocus","customConditional"])],config:this.options.formConfig||{}};var o=["label","tooltip"];this.preview.form.components.forEach(function(e){return r.replaceDoubleQuotes(e,o)});var i=this.componentEdit.querySelector('[ref="preview"]');i&&(this.setContent(i,this.preview.render()),this.preview.attach(i))}var a=(0,d.getComponent)(this.editForm.components,"defaultValue",!0);if(a&&"hidden"!==e.type){if(n&&(n.component&&"defaultValue"===n.component.key||n.instance&&a.hasComponent&&a.hasComponent(n.instance))){var l=n.instance._data.key,u=(0,f.getArrayFromComponentPath)(n.instance.path);u.shift(),u.length&&(u.unshift(e.key),l=(0,f.getStringFromComponentPath)(u)),h.default.set(this.preview._data,l,n.value),h.default.set(this.webform._data,l,n.value)}else{h.default.assign(a.component,h.default.omit(k({},e),["key","label","placeholder","tooltip","hidden","autofocus","validate","disabled","defaultValue","customDefaultValue","calculateValue","conditional","customConditional","id"]));var s=a.parent,c=-1,p=-1;if(s.tabs.some(function(e,n){e.some(function(e,r){return e.id===a.id&&(c=n,p=r,!0)})}),-1!==c&&-1!==p&&n&&!h.default.isNil(n.value)){var m=s.tabs[c][p+1];s.removeComponent(a);var y=s.addComponent(a.component,a.data,m);h.default.pull(y.validators,"required"),s.tabs[c].splice(p,1,y),y.checkValidity=function(){return!0},y.build(a.element)}}}this.emit("updateComponent",e)}},{key:"findRepeatablePaths",value:function(){var e=[],n=new Map;return(0,d.eachComponent)(this.form.components,function(r,o){r.key&&(n.has(r.key)?n.get(r.key).includes(o)?e.push(o):n.set(r.key,[].concat(b(n.get(r.key)),[o])):n.set(r.key,[o]))},!0),e}},{key:"highlightInvalidComponents",value:function(){var e=this.findRepeatablePaths(),n=!1;this.webform.everyComponent(function(r){var o,i,a=r.path;e.includes(a)?(r.setCustomValidity("API Key is not unique: ".concat(r.key)),n=!0):null!==(o=r.error)&&void 0!==o&&null!==(i=o.message)&&void 0!==i&&i.startsWith("API Key is not unique")&&r.setCustomValidity("")}),this.emit("builderFormValidityChange",n)}},{key:"saveComponent",value:function(e,n,r,o){var i=this;this.editForm.detach();var a=n?n.formioContainer:this.container,l=n?n.formioComponent:this;this.dialog.close();var s=a?this.getComponentsPath(e,l.component):"";o||(o=n.formioContainer.find(function(n){return n.id===e.id}));var c=a?a.indexOf(o):0;if(-1!==c){var f=this.editForm.submission.data;f=f.componentJson||f,this.replaceDoubleQuotes(f,["label","tooltip"]),this.hook("beforeSaveComponentSettings",f);var d=null;l.getComponents().forEach(function(e){e.component.key===o.key&&(d=e)});var p=d.component,h=d.schema,m=this.isParentSaveChildMethod(n.formioComponent);return a&&!m?(a[c]=f,d&&(d.component=f)):m&&n.formioComponent.saveChildComponent(f),(l.rebuild()||u.default.resolve()).then(function(){var e=a?a[c]:d?d.schema:[];if(i.emitSaveComponentEvent(e,p,l.schema,s,c,r,h),i.emit("change",i.form),i.highlightInvalidComponents(),i.isComponentCreated){var o=n.formioComponent.components[0];i.moveComponent(o),i.isComponentCreated=!1}})}return this.highlightInvalidComponents(),u.default.resolve()}},{key:"emitSaveComponentEvent",value:function(e,n,r,o,i,a,l){this.emit("saveComponent",e,n,r,o,i,a,l)}},{key:"attachEditComponentControls",value:function(e,n,r,o,i){var a=this;this.componentEdit.querySelectorAll('[ref="cancelButton"]').forEach(function(n){a.editForm.addEventListener(n,"click",function(n){n.preventDefault(),a.editForm.detach(),a.emit("cancelComponent",e),a.dialog.close(),a.highlightInvalidComponents()})}),this.componentEdit.querySelectorAll('[ref="removeButton"]').forEach(function(r){a.editForm.addEventListener(r,"click",function(r){r.preventDefault(),a.saved=!0,a.editForm.detach(),a.removeComponent(e,n,o),a.dialog.close(),a.highlightInvalidComponents()})}),this.componentEdit.querySelectorAll('[ref="saveButton"]').forEach(function(i){a.editForm.addEventListener(i,"click",function(i){if(i.preventDefault(),!a.editForm.checkValidity(a.editForm.data,!0,a.editForm.data))return a.editForm.setPristine(!1),a.editForm.showErrors(),!1;a.saved=!0,a.saveComponent(e,n,r,o)})}),this.componentEdit.querySelectorAll('[ref="previewButton"]').forEach(function(l){a.editForm.addEventListener(l,"click",function(l){l.preventDefault(),a.showPreview=!a.showPreview,a.editForm.detach(),a.setContent(a.componentEdit,a.renderTemplate("builderEditForm",{componentInfo:i.builderInfo,editForm:a.editForm.render(),preview:!!a.preview&&a.preview.render(),showPreview:a.showPreview,helplinks:a.helplinks})),a.editForm.attach(a.componentEdit.querySelector('[ref="editForm"]')),a.attachEditComponentControls(e,n,r,o,i)})})}},{key:"editComponent",value:function(e,n,r,o,a){var l,u=this,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(e.key){this.saved=!1;var d=(0,f.fastCloneDeep)(e),m=s.default.components[d.type],y=void 0===m;o=o||y,m=y?s.default.components.unknown:m,this.dialog&&(this.dialog.close(),this.highlightInvalidComponents());var v=h.default.clone(h.default.get(this,"options.editForm",{}));this.editForm&&this.editForm.destroy();var b=h.default.get(this.options,"editForm.".concat(d.type),{});v.editForm=this.form,v.editComponent=e,v.flags=c,this.hook("editComponentParentInstance",v,n),this.editForm=new i.default(k(k({},h.default.omit(this.options,["hooks","builder","events","attachMode","skipInit"])),{},{language:this.options.language},v)),this.hook("editFormProperties",n),this.editForm.form=o&&!y?{components:[{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"componentJson",label:"Component JSON",tooltip:"Edit the JSON for this component."},{type:"checkbox",key:"showFullSchema",label:"Full Schema"}]}:m.editForm(h.default.cloneDeep(b));var g={inFormBuilder:!0};this.hook("instanceOptionsPreview",g);var w=new m(d,g),O=this.hook("builderComponentSchema",e,w);this.editForm.submission=o?{data:{componentJson:O,showFullSchema:this.options.showFullJsonSchema}}:{data:w.component},this.preview&&this.preview.destroy(),(!m.builderInfo.hasOwnProperty("preview")||m.builderInfo.preview)&&(this.preview=new i.default(h.default.omit(k(k({},this.options),{},{preview:!0}),["hooks","builder","events","attachMode","calculateValue"])),this.hook("previewFormSettitngs",O,o)),this.showPreview=null===(l=m.builderInfo.showPreview)||void 0===l||l,this.componentEdit=this.ce("div",{class:"component-edit-container"}),this.setContent(this.componentEdit,this.renderTemplate("builderEditForm",{componentInfo:m.builderInfo,editForm:this.editForm.render(),preview:!!this.preview&&this.preview.render(),showPreview:this.showPreview,helplinks:this.helplinks})),this.dialog=this.createModal(this.componentEdit,h.default.get(this.options,"dialogAttr",{})),this.editForm.attach(this.componentEdit.querySelector('[ref="editForm"]')),this.hook("editFormWrapper"),this.updateComponent(d),this.editForm.on("change",function(i){if(i.changed){if(i.changed.component&&"showFullSchema"===i.changed.component.key){var a=i.changed.value;u.editForm.submission={data:{componentJson:a?w.component:e,showFullSchema:a}};return}(i.changed.component&&"key"===i.changed.component.key||o)&&(d.keyModified=!0);var l=!1;if(i.changed.instance?l=["label","title"].includes(i.changed.instance.path):i.changed.component&&(l=["label","title"].includes(i.changed.component.key)),l&&r&&(i.data.keyModified||u.editForm.everyComponent(function(e){if("key"===e.key&&"tabs"===e.parent.component.key)return e.setValue(u.updateComponentKey(i.data)),!1}),u.form)){var s=u.findNamespaceRoot(n.formioComponent);s=s.filter(function(e){return v.editComponent.id!==e.id}),p.default.uniquify(s,i.data)}u.updateComponent(i.data.componentJson||i.data,i.changed)}}),this.attachEditComponentControls(e,n,r,a,m),this.addEventListener(this.dialog,"close",function o(){u.editForm.destroy(!0),u.preview&&(u.preview.destroy(!0),u.preview=null),r&&!u.saved&&(u.removeComponent(e,n,a),u.highlightInvalidComponents()),u.removeEventListener(u.dialog,"close",o),u.dialog=null}),this.emit("editComponent",e)}}},{key:"updateComponentKey",value:function(e){return h.default.camelCase(e.title||e.label||e.placeholder||e.type).replace(/^[0-9]*/,"")}},{key:"moveComponent",value:function(e){if(this.selectedComponent){var n;null===(n=this.selectedComponent.element)||void 0===n||n.classList.remove("builder-component-selected"),this.removeEventListener(document,"keydown")}e.element.focus(),e.element.classList.add("builder-component-selected"),this.selectedComponent=e,this.addEventListener(document,"keydown",this.moveHandler.bind(this))}},{key:"updateComponentPlacement",value:function(e){var n,r,o=this.selectedComponent;if(o){var i=o.element,a=e?i.previousElementSibling:i.nextElementSibling,l=i.parentNode,u=l.formioContainer.length;if(u&&u<=1)return;l.formioContainer&&-1!==(n=h.default.findIndex(l.formioContainer,{key:i.formioComponent.component.key}))&&(r=(r=l.formioContainer.splice(h.default.findIndex(l.formioContainer,{key:i.formioComponent.component.key}),1))[0],l.removeChild(i));var s=l.formioComponent.components.length;if(-1===(n=-1===n?0:n+(e?-1:1)))l.formioContainer.push(r),l.appendChild(i);else if(n===s){var c=l.formioContainer[0].key;n=h.default.findIndex(l.formioComponent.components,{key:c});var f=l.formioComponent.components[n].element;l.formioContainer.splice(0,0,r),l.insertBefore(i,f)}else -1!==n&&(l.formioContainer.splice(n,0,r),e?l.insertBefore(i,a):l.insertBefore(i,a.nextElementSibling));i.focus()}}},{key:"stopMoving",value:function(e){var n=e.element.parentNode;this.removeEventListener(document,"keydown"),n.formioComponent.rebuild(),this.selectedComponent=null}},{key:"addNewComponent",value:function(e){var n,r,o=this,i=document.querySelector(".formio-builder-form"),a=e.getAttribute("data-key"),l=e.getAttribute("data-group");a&&l&&(n=this.getComponentInfo(a,l)),this.options.noNewEdit||n.noNewEdit||(p.default.uniquify(this.findNamespaceRoot(i.formioComponent),n),this.editComponent(n,i,!0,null,null)),(null===(r=i.formioComponent.components[0])||void 0===r?void 0:r.element)?i.formioContainer.splice(0,0,n):i.formioContainer.push(n),i.formioComponent.rebuild().then(function(){o.isComponentCreated=!0})}},{key:"copyComponent",value:function(e){if(!window.sessionStorage)return console.warn("Session storage is not supported in this browser.");this.addClass(this.refs.form,"builder-paste-mode"),window.sessionStorage.setItem("formio.clipboard",JSON.stringify(e.schema))}},{key:"pasteComponent",value:function(e){if(!window.sessionStorage)return console.warn("Session storage is not supported in this browser.");if(this.removeClass(this.refs.form,"builder-paste-mode"),window.sessionStorage){var n=window.sessionStorage.getItem("formio.clipboard");if(n){var r=JSON.parse(n),o=this.getParentElement(e.element);if(o){p.default.uniquify(this.findNamespaceRoot(o.formioComponent),r);var i="",a=0,l=this.isParentSaveChildMethod(o.formioComponent);o.formioContainer&&!l?(a=o.formioContainer.indexOf(e.component),i=this.getComponentsPath(r,o.formioComponent.component),o.formioContainer.splice(a+1,0,r)):l&&o.formioComponent.saveChildComponent(r,!1),o.formioComponent.rebuild(),this.emitSaveComponentEvent(r,r,o.formioComponent.component,i,a+1,!0,r)}
1this.emit("change",this.form)}}}},{key:"isParentSaveChildMethod",value:function(e){return!!(e&&e.saveChildComponent)}},{key:"getParentElement",value:function(e){var n=e;do n=n.parentNode;while(n&&!n.formioComponent);return n}},{key:"addBuilderComponentInfo",value:function(e){if(e&&e.group&&this.groups[e.group]){e=h.default.clone(e);var n=this.groups[e.group];return n.components.hasOwnProperty(e.key)||(n.components[e.key]=e),e}}},{key:"init",value:function(){return this.webform&&this.webform.init(),O(P(y.prototype),"init",this).call(this)}},{key:"clear",value:function(){this.webform.initialized&&this.webform.clear()}},{key:"destroy",value:function(e){this.webform.initialized&&this.webform.destroy(e),O(P(y.prototype),"destroy",this).call(this,e)}},{key:"addBuilderGroup",value:function(e,n){this.groups[e]?this.updateBuilderGroup(e,n):(this.groups[e]=n,this.groupOrder.push(e),this.triggerRedraw())}},{key:"updateBuilderGroup",value:function(e,n){this.groups[e]&&(this.groups[e]=n,this.triggerRedraw())}},{key:"generateKey",value:function(e){return e.key||h.default.camelCase(e.title||e.label||e.placeholder||e.type)}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,E(o.key),o)}}(y.prototype,r),Object.defineProperty(y,"prototype",{writable:!1}),y}(a.default);n.default=C},55248:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(30534),r(98197),r(18036),r(11102),r(17943),r(15469),r(1542),r(12083),r(30902),r(5746),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(35968),r(17223),r(28121),r(83972),r(88455),r(32334),r(62089),r(34078),r(76381),r(24646),r(43001),r(9473),r(98595),r(28818),r(52315),r(27846),r(22818);var i=c(r(18947)),a=c(r(76635)),l=c(r(43392)),u=r(38388),s=r(9494);function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,n){if(e){if("string"==typeof e)return p(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,n)}}function p(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function h(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function m(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?h(Object(r),!0).forEach(function(n){y(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y(e,n,r){return(n=v(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function v(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function b(){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=w(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function g(e,n){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}
1function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&g(e,n)}(u,e);var n,r,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=w(u);return e=n?Reflect.construct(r,arguments,w(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function u(){var e,n,r;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,u),arguments[0]instanceof HTMLElement||arguments[1]?(n=arguments[0],r=arguments[1]||{}):r=arguments[0]||{},r.display="wizard",(e=l.call(this,n,r)).pages=[],e.prefixComps=[],e.suffixComps=[],e.components=[],e.originalComponents=[],e.page=0,e.currentPanel=null,e.currentPanels=null,e.currentNextPage=0,e._seenPages=[0],e.subWizards=[],e.allPages=[],e.lastPromise=i.default.resolve(),e.enabledIndex=0,e.editMode=!1,e.originalOptions=a.default.cloneDeep(e.options),e}return r=[{key:"isLastPage",value:function(){var e=this.getNextPage();return a.default.isNumber(e)?-1===e:a.default.isNull(e)}},{key:"getPages",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.all;return(this.hasExtraPages?this.components:this.pages).filter(void 0!==r&&r?a.default.identity:function(n,r){return e._seenPages.includes(r)})}},{key:"hasExtraPages",get:function(){return!a.default.isEmpty(this.subWizards)}},{key:"data",get:function(){return b(w(u.prototype),"data",this)},set:function(e){var n=this;this._data=e,a.default.each(this.getPages({all:!0}),function(e){e.data=n.componentContext(e)})}},{key:"localData",get:function(){var e,n;return(null===(e=this.pages[this.page])||void 0===e?void 0:null===(n=e.root)||void 0===n?void 0:n.submission.data)||this.submission.data}},{key:"checkConditions",value:function(e,n,r){var o=b(w(u.prototype),"checkConditions",this).call(this,e,n,r);return this.establishPages(e),o}},{key:"getComponents",value:function(){return this.submitting?this.getPages({all:this.isLastPage()}):b(w(u.prototype),"getComponents",this).call(this)}},{key:"resetValue",value:function(){this.getPages({all:!0}).forEach(function(e){return e.resetValue()}),this.setPristine(!0)}},{key:"init",value:function(){var e,n,r,o=this;this.options.buttonSettings=a.default.defaults(this.options.buttonSettings,{showPrevious:!0,showNext:!0,showSubmit:!0,showCancel:!this.options.readOnly}),this.isSecondInit||(this.isClickableDefined=null===(e=this.options)||void 0===e?void 0:null===(n=e.breadcrumbSettings)||void 0===n?void 0:n.hasOwnProperty("clickable"),this.isSecondInit=!0),this.options.breadcrumbSettings=a.default.defaults(this.options.breadcrumbSettings,{clickable:!0}),this.options.allowPrevious=this.options.allowPrevious||!1,this.page=0;var i=b(w(u.prototype),"init",this).call(this);return this.setComponentSchema(),null!==(r=this.pages)&&void 0!==r&&r[this.page]&&(this.component=this.pages[this.page].component),this.on("subWizardsUpdated",function(e){var n=o.subWizards.find(function(n){var r;return(null==e?void 0:e.id)&&(null===(r=n.subForm)||void 0===r?void 0:r.id)===(null==e?void 0:e.id)});o.subWizards.length&&n&&(n.subForm.setValue(e._submission,{},!0),o.establishPages(),o.redraw())}),i}},{key:"wizardKey",get:function(){return"wizard-".concat(this.id)}},{key:"wizard",get:function(){return this.form},set:function(e){this.setForm(e)}},{key:"buttons",get:function(){var e=this,n={};return[{name:"cancel",method:"cancel"},{name:"previous",method:"prevPage"},{name:"next",method:"nextPage"},{name:"submit",method:"submit"}
vendor: 5,744 bytes, line 1
1].forEach(function(r){e.hasButton(r.name)&&(n[r.name]=r)}),n}},{key:"buttonOrder",get:function(){var e,n,r;return null!==(e=null===(n=this.options.properties)||void 0===n?void 0:null===(r=n.wizardButtonOrder)||void 0===r?void 0:r.toLowerCase().split(", "))&&void 0!==e?e:["cancel","previous","next","submit"]}},{key:"renderContext",get:function(){var e,n;return{disableWizardSubmit:this.form.disableWizardSubmit,wizardKey:this.wizardKey,isBreadcrumbClickable:this.isBreadcrumbClickable(),isSubForm:!!this.parent&&(null!==(e=this.root)&&void 0!==e&&null!==(n=e.component)&&void 0!==n&&n.type,!1),panels:this.allPages.length?this.allPages.map(function(e){return e.component}):this.pages.map(function(e){return e.component}),buttons:this.buttons,currentPage:this.page,buttonOrder:this.buttonOrder}}},{key:"prepareNavigationSettings",value:function(e){var n=this.currentPanel;return n&&n.buttonSettings&&Object.keys(n.buttonSettings).forEach(function(){Object.keys(e.buttons).forEach(function(r){(void 0!==n.buttonSettings[r]&&!n.buttonSettings[r]||e.isSubForm)&&(e.buttons[r]=null)})}),this.renderTemplate("wizardNav",e)}},{key:"prepareHeaderSettings",value:function(e,n){return this.currentPanel&&"none"===this.currentPanel.breadcrumb||e.isSubForm?null:this.renderTemplate(n,e)}},{key:"render",value:function(){var e=this,n=this.renderContext;this.component.key&&n.panels.map(function(r){r.key===e.component.key&&(e.currentPanel=r,n.wizardPageTooltip=e.getFormattedTooltip(r.tooltip))});var r=this.prepareNavigationSettings(n),o="wizardHeader".concat(a.default.get(this.form,"settings.wizardHeaderType","")),i=a.default.get(this.form,"settings.wizardHeaderLocation","left"),l=this.prepareHeaderSettings(n,o);return this.renderTemplate("wizard",m(m({},n),{},{className:b(w(u.prototype),"getClassName",this).call(this),wizardHeader:l,wizardHeaderType:o,wizardHeaderLocation:i,wizardNav:r,components:this.renderComponents([].concat(f(this.prefixComps),f(this.currentPage.components),f(this.suffixComps)))}),this.builderMode?"builder":"form")}},{key:"redrawNavigation",value:function(){if(this.element){var e,n=this.element.querySelector("#".concat(this.wizardKey,"-nav"));n&&(this.detachNav(),n.outerHTML=this.renderTemplate("wizardNav",this.renderContext),n=this.element.querySelector("#".concat(this.wizardKey,"-nav")),this.loadRefs(n,(y(e={},"".concat(this.wizardKey,"-cancel"),"single"),y(e,"".concat(this.wizardKey,"-previous"),"single"),y(e,"".concat(this.wizardKey,"-next"),"single"),y(e,"".concat(this.wizardKey,"-submit"),"single"),e)),this.attachNav())}}},{key:"redrawHeader",value:function(){if(this.element){var e,n=this.element.querySelector("#".concat(this.wizardKey,"-header"));n&&(this.detachHeader(),n.outerHTML=this.renderTemplate("wizardHeader".concat(a.default.get(this.form,"settings.wizardHeaderType","")),this.renderContext),n=this.element.querySelector("#".concat(this.wizardKey,"-header")),this.loadRefs(n,(y(e={},"".concat(this.wizardKey,"-link"),"multiple"),y(e,"".concat(this.wizardKey,"-tooltip"),"multiple"),e)),this.attachHeader())}}},{key:"attach",value:function(e){var n,r,o=this;this.element=e,this.loadRefs(e,(y(r={},this.wizardKey,"single"),y(r,"".concat(this.wizardKey,"-header"),"single"),y(r,"".concat(this.wizardKey,"-cancel"),"single"),y(r,"".concat(this.wizardKey,"-previous"),"single"),y(r,"".concat(this.wizardKey,"-next"),"single"),y(r,"".concat(this.wizardKey,"-submit"),"single"),y(r,"".concat(this.wizardKey,"-link"),"multiple"),y(r,"".concat(this.wizardKey,"-tooltip"),"multiple"),r)),(this.options.readOnly||this.editMode)&&!this.enabledIndex&&(this.enabledIndex=(null===(n=this.pages)||void 0===n?void 0:n.length)-1),this.hook("attachWebform",e,this);var i=this.attachComponents(this.refs[this.wizardKey],[].concat(f(this.prefixComps),f(this.currentPage.components),f(this.suffixComps)));return this.attachNav(),this.attachHeader(),i.then(function(){o.emit("render",{component:o.currentPage,page:o.page}),o.component.scrollToTop&&o.scrollPageToTop()})}},{key:"scrollPageToTop",value:function(){var e,n=null!==(e=this.refs["".concat(this.wizardKey,"-header")])&&void 0!==e?e:this.refs[this.wizardKey];n&&("scrollIntoView"in n?n.scrollIntoView(!0):this.scrollIntoView(n))}},{key:"isBreadcrumbClickable",value:function(){var e=this,n=null;return this.pages.map(function(r){a.default.isEqual(e.currentPage.component,r.component)&&(n=r)}),this.isClickableDefined?this.options.breadcrumbSettings.clickable:a.default.get(n,"component.breadcrumbClickable",!0)}},{key:"isAllowPrevious",value:function(){var e=this,n=null;return this.pages.map(function(r){a.default.isEqual(e.currentPage.component,r.component)&&(n=r)}),a.default.get(n.component,"allowPrevious",this.options.allowPrevious)}},{key:"handleNaviageteOnEnter",value:function(e){if(13===e.keyCode){var n=new CustomEvent("click"),r=this.refs["".concat(this.wizardKey,"-").concat(this.buttons.next.name)];r&&r.dispatchEvent(n)}}},{key:"handleSaveOnEnter",value:function(e){if(13===e.keyCode){var n=new CustomEvent("click"),r=this.refs["".concat(this.wizardKey,"-").concat(this.buttons.submit.name)];r&&r.dispatchEvent(n)}}},{key:"attachNav",value:function(){var e=this;this.component.navigateOnEnter&&this.addEventListener(document,"keyup",this.handleNaviageteOnEnter.bind(this)),this.component.saveOnEnter&&this.addEventListener(document,"keyup",this.handleSaveOnEnter.bind(this)),a.default.each(this.buttons,function(n){var r=e.refs["".concat(e.wizardKey,"-").concat(n.name)];e.addEventListener(r,"click",function(o){o.preventDefault(),r.setAttribute("disabled","disabled"),e.setLoading(r,!0),e[n.method]().then(function(){r.removeAttribute("disabled"),e.setLoading(r,!1)}).catch(function(){r.removeAttribute("disabled"),e.setLoading(r,!1)})})})}}
1,{key:"emitWizardPageSelected",value:function(e){this.emit("wizardPageSelected",this.pages[e],e)}},{key:"attachHeader",value:function(){var e,n=this,r=this.isAllowPrevious();this.attachTooltips(this.refs["".concat(this.wizardKey,"-tooltip")],this.currentPanel.tooltip),(this.isBreadcrumbClickable()||r)&&(null===(e=this.refs["".concat(this.wizardKey,"-link")])||void 0===e||e.forEach(function(e,o){(!r||o<=n.enabledIndex)&&n.addEventListener(e,"click",function(e){return n.emit("wizardNavigationClicked",n.pages[o]),e.preventDefault(),n.setPage(o).then(function(){n.emitWizardPageSelected(o)})})}))}},{key:"detachNav",value:function(){var e=this;this.component.navigateOnEnter&&this.removeEventListener(document,"keyup",this.handleNaviageteOnEnter.bind(this)),this.component.saveOnEnter&&this.removeEventListener(document,"keyup",this.handleSaveOnEnter.bind(this)),a.default.each(this.buttons,function(n){e.removeEventListener(e.refs["".concat(e.wizardKey,"-").concat(n.name)],"click")})}},{key:"detachHeader",value:function(){var e=this;this.refs["".concat(this.wizardKey,"-link")]&&this.refs["".concat(this.wizardKey,"-link")].forEach(function(n){e.removeEventListener(n,"click")})}},{key:"transformPages",value:function(){var e=this,n=[],r=this.getSortedComponents(this),o=[];this.allPages=[];var i=function n(r,i){var l=!(arguments.length>2)||void 0===arguments[2]||arguments[2],u=[],c=["datagrid","editgrid","dynamicWizard"],d=null!=r&&r.subForm?e.getSortedComponents(r.subForm):(null==r?void 0:r.components)||[],p=d.filter(function(e){return e._visible}).filter(function(e){return!c.includes(e.component.type)&&("form"!==e.type||e.isNestedWizard)}),h=d.filter(function(e){var n;return(null===(n=e.subForm)||void 0===n?void 0:n._form.display)!=="wizard"}),m=!1;if((0,s.eachComponent)(p,function(r){if(r&&r.component&&("panel"===r.component.type&&null!=r&&r.parent.wizard&&!n(r,i,!1)&&(l&&(e.setRootPanelId(r),u.push(r)),m=!0),r.isNestedWizard&&r.subForm)){var o=n(r,u,l);m||(m=o)}},!0),"panel"===r.component.type&&(!m&&l&&(e.setRootPanelId(r),i.push(r)),m&&h.length)){var y=a.default.clone(r);y.components=h,e.setRootPanelId(y),o.push(y)}return l&&(i.push.apply(i,f(o).concat(u)),o=[]),m};r.forEach(function(e){e.visible&&i(e,n)},[]),this.localRoot&&this.id===this.localRoot.id&&n.forEach(function(e,n){e.eachComponent(function(e){e.page=n})}),this.allPages=n}},{key:"getSortedComponents",value:function(e){var n=e.components,r=e.originalComponents,o=[],i=[];return n&&n.length&&n.map(function(e){"panel"===e.component.type&&(i[e.component.key||e.component.title]=e)}),null==r||r.forEach(function(e){e.key||(e.key=e.title),i[e.key]&&o.push(i[e.key])}),o}},{key:"findRootPanel",value:function(e){var n;return null!==(n=e.parent)&&void 0!==n&&n.parent?this.findRootPanel(e.parent):e}},{key:"setRootPanelId",value:function(e){if(!e.rootPanelId||e.rootPanelId===e.id){var n,r=null!==(n=e.parent)&&void 0!==n&&n.parent?this.findRootPanel(e.parent):e;e.rootPanelId=r.id}}},{key:"establishPages",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.data;this.pages=[],this.prefixComps=[],this.suffixComps=[];var r=[],o={},i=m(m({},a.default.clone(this.options)),this.parent?{root:this}:{});return this.components&&this.components.length&&this.components.forEach(function(e){"panel"===e.component.type&&(o[e.component.key||e.component.title]=e)}),this.originalComponents&&this.originalComponents.forEach(function(a){if("panel"===a.type){a.key||(a.key=a.title);var l=o[a.key],u=e.shouldForceShow(a),c=e.shouldForceHide(a),f=l?l.visible:(0,s.checkCondition)(a,n,n,e.component,e)&&!a.hidden;u?f=!0:c&&(f=!1),f&&(r.push(a),l&&e.pages.push(l)),!l&&f&&((l=e.createComponent(a,i)).visible=f,e.pages.push(l),l.eachComponent(function(n){n.page=e.pages.length-1}))}else"button"!==a.type&&(e.pages.length?e.suffixComps.push(e.createComponent(a,i)):e.prefixComps.push(e.createComponent(a,i)))}),this.pages.length&&this.emit("pagesChanged"),this.transformPages(),this.allPages&&this.allPages.length&&this.updatePages(),r}},{key:"updatePages",value:function(){this.pages=this.allPages}},{key:"addComponents",value:function(){this.establishPages()}},{key:"setPage",value:function(e){var n=this;if(e===this.page)return i.default.resolve();if(e>=0&&e<this.pages.length){this.page=e,this.pageFieldLogic(e),this.getNextPage();var r=e;if(this.hasExtraPages){var o=this.pages[e],a=this.components[e];a&&(null==o?void 0:o.id)===a.id||(r=this.components.findIndex(function(e){var o,i;return e.id===(null===(o=n.pages)||void 0===o?void 0:null===(i=o[r])||void 0===i?void 0:i.rootPanelId)}))}return this._seenPages.includes(r)||(this._seenPages=this._seenPages.concat(r)),this.redraw().then(function(){n.checkData(n.submission.data)}),i.default.resolve()}return this.pages.length?i.default.reject("Page not found"):(this.redraw(),i.default.resolve())}},{key:"pageFieldLogic",value:function(e){var n;null!==(n=this.pages)&&void 0!==n&&n[e]&&(this.component=this.pages[e].component,this.originalComponent=(0,s.fastCloneDeep)(this.component),this.fieldLogic(this.data),this.disabled=this.shouldDisabled)}},{key:"currentPage",get:function(){return this.pages&&this.pages.length>=this.page?this.pages[this.page]:{components:[]}}},{key:"getNextPage",value:function(){var e;if(null!==(e=this.pages)&&void 0!==e&&e[this.page]){var n=this.submission.data,r=this.pages[this.page].component;if(r){var o=this.pages.length>this.page+1&&!this.showAllErrors?this.page+1:-1;if(r.nextPage){var i=this.evaluate(r.nextPage,{next:o,data:n,page:o,form:r},"next");if(null===i)return this.currentNextPage=null,null;var a=parseInt(i,10);return!isNaN(parseInt(a,10))&&isFinite(a)?(this.currentNextPage=a,a):(this.currentNextPage=this.getPageIndexByKey(i),this.currentNextPage)}return this.currentNextPage=o,o}this.currentNextPage=null}return null}},{key:"getPreviousPage",value:function(){return this.page-1}},{key:"beforeSubmit",value:function(){var e=this.getPages();return i.default.all(e.map(function(e){return e.options.beforeSubmit=!0,e.beforeSubmit()}))}},{key:"beforePage",value:function(e){var n=this;return new i.default(function(r,o){n.hook(e?"beforeNext":"beforePrev",n.currentPage,n.submission,function(i){i&&(n.showErrors(i,!0),o(i));var a=n.currentPage;a?a.beforePage(e).then(r).catch(o):r()})})}}
1,{key:"emitNextPage",value:function(){this.emit("nextPage",{page:this.page,submission:this.submission})}},{key:"nextPage",value:function(){var e=this;return this.options.readOnly?this.beforePage(!0).then(function(){return e.setPage(e.getNextPage()).then(function(){e.emitNextPage()})}):this.checkValidity(this.localData,!0,this.localData,!0)?(this.checkData(this.submission.data),this.beforePage(!0).then(function(){return e.setPage(e.getNextPage()).then(function(){!(e.options.readOnly||e.editMode)&&e.enabledIndex<e.page&&(e.enabledIndex=e.page,e.redraw()),e.emitNextPage()})})):(this.currentPage.components.forEach(function(e){return e.setPristine(!1)}),this.scrollIntoView(this.element),i.default.reject(this.showErrors([],!0)))}},{key:"emitPrevPage",value:function(){this.emit("prevPage",{page:this.page,submission:this.submission})}},{key:"prevPage",value:function(){var e=this;return this.beforePage().then(function(){return e.setPage(e.getPreviousPage()).then(function(){e.emitPrevPage()})})}},{key:"cancel",value:function(e){var n=this;return this.options.readOnly?i.default.resolve():b(w(u.prototype),"cancel",this).call(this,e)?(this.setPristine(!0),this.setPage(0).then(function(){return n.enabledIndex&&(n.enabledIndex=0),n.onChange(),n.redraw(),n.page})):i.default.resolve()}},{key:"getPageIndexByKey",value:function(e){var n=this.page;return this.pages.forEach(function(r,o){if(r.component.key===e)return n=o,!1}),n}},{key:"schema",get:function(){return this.wizard}},{key:"setComponentSchema",value:function(){var e=this,n={};if(this.originalComponents=[],this.component.components.map(function(r){"panel"===r.type&&(r.key=(0,s.uniqueKey)(n,r.key||"panel"),n[r.key]=!0,e.wizard.full?(e.options.show=e.options.show||{},e.options.show[r.key]=!0):e.wizard.hasOwnProperty("full")&&!a.default.isEqual(e.originalOptions.show,e.options.show)&&(e.options.show=m({},e.originalOptions.show||{}))),e.originalComponents.push(a.default.clone(r))}),!Object.keys(n).length){var r={type:"panel",title:"Page 1",label:"Page 1",key:"page1",components:this.component.components};this.component.components=[r],this.originalComponents.push(a.default.clone(r))}}},{key:"setForm",value:function(e,n){if(e)return b(w(u.prototype),"setForm",this).call(this,e,n)}},{key:"onSetForm",value:function(e,n){this.component.components=(this._parentPath?n.components:e.components)||[],this.setComponentSchema()}},{key:"setEditMode",value:function(e){this.editMode||!e._id||this.options.readOnly||(this.editMode=!0,this.redraw())}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;this._submission=e,(r&&r.fromSubmission&&(this.options.readOnly||this.editMode)&&!this.isHtmlRenderMode()||r&&r.fromSubmission&&(this.prefixComps.length||this.suffixComps.length)&&e._id||this.options.server&&(this.prefixComps.length||this.suffixComps.length))&&(this._data=e.data),o||this.establishPages(e.data);var i=this.getPages({all:!0}).reduce(function(o,i){return n.setNestedValue(i,e.data,r,o)||o},!1);return i&&this.pageFieldLogic(this.page),this.setEditMode(e),i}},{key:"isClickable",value:function(e,n){return this.page!==n&&(0,s.firstNonNil)([a.default.get(e,"breadcrumbClickable"),this.options.breadcrumbSettings.clickable])}},{key:"hasButton",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getNextPage(),r=a.default.get(this.currentPage,"component.buttonSettings",{}),o=r.previous,i=void 0===o?this.options.buttonSettings.showPrevious:o,l=r.cancel,u=void 0===l?this.options.buttonSettings.showCancel:l,s=r.submit,c=void 0===s?this.options.buttonSettings.showSubmit:s,f=r.next,d=void 0===f?this.options.buttonSettings.showNext:f;switch(e){case"previous":return i&&this.getPreviousPage()>-1;case"next":return d&&null!==n&&-1!==n;case"cancel":return u&&!this.options.readOnly;case"submit":return c&&!this.options.readOnly&&(null===n||this.page===this.pages.length-1);default:return!0}}},{key:"pageId",value:function(e){return e.key?"".concat(e.key,"-").concat(e.title):e.components&&e.components.length>0?this.pageId(e.components[0]):e.title}},{key:"onChange",value:function(e,n,r,o){var i,l,s,c,f=this;b(w(u.prototype),"onChange",this).call(this,e,n,r,o),this.alert&&!this.submitted&&(this.checkValidity(this.localData,!1,this.localData,!0),this.showErrors([],!0,!0));var d=this.currentNextPage;this.hasExtraPages?(i=this.pages.map(function(e){return e.component.key}),this.establishPages(),l=this.pages.map(function(e){return e.component.key})):(i=this.currentPanels||this.pages.map(function(e){return e.component.key}),l=this.establishPages().map(function(e){return e.key}),this.currentPanels=l,null!==(s=this.currentPanel)&&void 0!==s&&s.key&&null!==(c=this.currentPanels)&&void 0!==c&&c.length&&this.setPage(this.currentPanels.findIndex(function(e){return e===f.currentPanel.key}))),(!a.default.isEqual(l,i)||e&&e.fromSubmission)&&this.redrawHeader(),d!==this.getNextPage()&&this.redrawNavigation(),this.options.readOnly&&(this.prefixComps.length||this.suffixComps.length)&&this.redraw()}},{key:"redraw",value:function(){var e,n;return null!==(e=this.parent)&&void 0!==e&&null!==(n=e.component)&&void 0!==n&&n.modalEdit?this.parent.redraw():b(w(u.prototype),"redraw",this).call(this)}},{key:"checkValidity",value:function(e,n,r,o){return this.checkCondition(r,e)?(!o||this.isLastPage()?this.getComponents():this.currentPage.components).reduce(function(o,i){return i.checkValidity(e,n,r)&&o},!0):(this.setCustomValidity(""),!0)}},{key:"errors",get:function(){return this.isLastPage()?b(w(u.prototype),"errors",this):this.currentPage.errors}},{key:"focusOnComponent",value:function(e){var n,r=this,o=0,i=(function(e){if(Array.isArray(e))return e}(n=this.pages.filter(function(n,r){var i=!1;return n.getComponent(e,function(n){n.path===e&&(o=r,i=!0)}),i}))||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,u=[],s=!0,c=!1;try{for(a=(r=r.call(e)).next;
1!(s=(o=a.call(r)).done)&&(u.push(o.value),1!==u.length);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return u}}(n,1)||d(n,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return i&&i!==this.currentPage?this.setPage(o).then(function(){r.checkValidity(r.submission.data,!0,r.submission.data),r.showErrors(),b(w(u.prototype),"focusOnComponent",r).call(r,e)}):b(w(u.prototype),"focusOnComponent",this).call(this,e)}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,v(o.key),o)}}(u.prototype,r),Object.defineProperty(u,"prototype",{writable:!1}),u}(l.default);n.default=k,k.setBaseUrl=u.GlobalFormio.setBaseUrl,k.setApiUrl=u.GlobalFormio.setApiUrl,k.setAppUrl=u.GlobalFormio.setAppUrl},16958:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(76381),r(28121),r(83972),r(69446),r(98595),r(13423),r(35968),r(17223),r(24646),r(18036),r(88455),r(32334),r(9473),r(92782),r(62089),r(27846),r(22818);var i,a=f(r(51695)),l=f(r(43392)),u=f(r(65319)),s=f(r(76635)),c=r(9494);function f(e){return e&&e.__esModule?e:{default:e}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=h(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}"undefined"!=typeof window&&(i=r(21996));var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(f,e);var n,r,a=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=h(f);return e=n?Reflect.construct(r,arguments,h(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),arguments[0]instanceof HTMLElement||arguments[1]?(n=arguments[0],r=arguments[1]):r=arguments[0],r.skipInit=!1,r.display="wizard",(e=a.call(this,n,r))._form={components:[e.getPageConfig(1)]},e.page=0;var e,n,r,o=function(n){e.groups[n]&&e.groups[n].components&&(e.groups[n].componentOrder=Object.keys(e.groups[n].components).map(function(r){return e.groups[n].components[r]}).filter(function(e){return e&&!e.ignore}).sort(function(e,n){return e.weight-n.weight}).map(function(e){return e.key}))};for(var i in e.groups)o(i);var l=e.options.hooks.renderComponents;e.options.hooks.renderComponents=function(e,n){var r=n.components,o=n.self;return"form"!==o.type||o.root?l(e,{components:r,self:o}):e};var u=e.options.hooks.attachComponents;return e.options.hooks.attachComponents=function(e,n,r,o){return"form"!==o.type||o.root?u(e,n,r,o):e},e.on("saveComponent",function(n,r){var o=e.webform.components.map(function(e){return e.component});if(e._form.components.includes(r))e._form.components[e._form.components.indexOf(r)]=n,e.rebuild();else if(o.includes(r))e._form.components.push(n),e.rebuild();else{var i=e._form.components.findIndex(function(e){return r.key===e.key});-1!==i&&(e._form.components[i]=n,e.rebuild())}},!0),e}return r=[{key:"removeComponent",value:function(e,n,r){var o=d(h(f.prototype),"removeComponent",this).call(this,e,n,r);if(o&&"panel"===e.type){var i=this.pages.findIndex(function(n){return n.key===e.key}),a=this._form.components.findIndex(function(n){return n.key===e.key});-1!==i&&this.removePage(i,a)}return o}},{key:"allowDrop",value:function(e){return!this.webform||!this.webform.refs||this.webform.refs.webform!==e}},{key:"pages",get:function(){return s.default.filter(this._form.components,{t
1ype:"panel"})}},{key:"currentPage",get:function(){var e=this.pages;return e&&e.length>=this.page?e[this.page]:null}},{key:"form",get:function(){return this._form},set:function(e){if(this._form=e,this._form.components&&Array.isArray(this._form.components)||(this._form.components=[]),0===this.pages.length){var n=this._form.components.filter(function(e){return"button"!==e.type});this._form.components=[this.getPageConfig(1,n)]}this.rebuild()}},{key:"schema",get:function(){s.default.assign(this.currentPage,this.webform._form.components[0]);var e=new l.default(this.options);return e.setForm(this._form,{noEmit:!0}),e.schema}},{key:"render",value:function(){var e=this;return this.renderTemplate("builderWizard",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:"builder-sidebar-".concat(this.id),groups:this.groupOrder.map(function(n){return e.renderTemplate("builderSidebarGroup",{group:e.groups[n],groupKey:n,groupId:"builder-sidebar-".concat(e.id),subgroups:e.groups[n].subgroups.map(function(r){return e.renderTemplate("builderSidebarGroup",{group:r,groupKey:r.key,groupId:"group-container-".concat(n),subgroups:[]})})})})}),pages:this.pages,form:this.webform.render()})}},{key:"attach",value:function(e){var n=this;return this.loadRefs(e,{addPage:"multiple",gotoPage:"multiple"}),this.refs.gotoPage.forEach(function(e,n){e.parentNode.dragInfo={index:n}}),i&&(this.navigationDragula=i([this.element.querySelector(".wizard-pages")],{moves:function(e){return!e.classList.contains("wizard-add-page")},accepts:function(e,n,r,o){return!!o}}).on("drop",this.onReorder.bind(this))),this.refs.addPage.forEach(function(e){n.addEventListener(e,"click",function(e){e.preventDefault(),n.addPage()})}),this.refs.gotoPage.forEach(function(e,r){n.addEventListener(e,"click",function(e){e.preventDefault(),n.setPage(r)})}),d(h(f.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){this.navigationDragula&&this.navigationDragula.destroy(),this.navigationDragula=null,d(h(f.prototype),"detach",this).call(this)}},{key:"rebuild",value:function(){var e,n=this.currentPage;return this.webform.setForm({display:"form",type:"form",components:n?[n]:[],controller:(null===(e=this._form)||void 0===e?void 0:e.controller)||""},{keepAsReference:!0}),this.redraw()}},{key:"addPage",value:function(e){var n=e&&e.schema?(0,c.fastCloneDeep)(e.schema):this.getPageConfig(this.pages.length+1);return u.default.uniquify(this._form.components,n),this._form.components.push(n),this.emitSaveComponentEvent(n,n,this._form,"components",this._form.components.length-1,!0,n),this.emit("change",this._form),this.rebuild()}},{key:"removePage",value:function(e,n){return(this._form.components.splice(n,1),this.emit("change",this._form),e!==this.pages.length)?this.rebuild():0===e?(this._form.components.push(this.getPageConfig(1)),this.rebuild()):this.setPage(e-1)}},{key:"onReorder",value:function(e,n,r,o){var i=this,a=null==o?void 0:o.classList.contains("wizard-add-page");if(!e.dragInfo||o&&!o.dragInfo&&!a){console.warn("There is no Drag Info available for either dragged or sibling element");return}var l=e.dragInfo.index,u=o&&o.dragInfo?o.dragInfo.index:this.pages.length,s=u>l,f=(0,c.fastCloneDeep)(this._form.components),d=this._form.components[l];return f.splice(u,0,d),f.splice(s?l:l+1,1),this._form.components=(0,c.fastCloneDeep)(f),this.rebuild().then(function(){i.emit("change",i._form)})}},{key:"setPage",value:function(e){if(e!==this.page)return this.page=e,this.rebuild()}},{key:"getPageConfig",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{title:"Page ".concat(e),label:"Page ".concat(e),type:"panel",key:"page".concat(e),components:n}}},{key:"pasteComponent",value:function(e){if(!(e instanceof f)){if(!this._form.components.find(function(n){return s.default.isEqual(e.component,n)}))return d(h(f.prototype),"pasteComponent",this).call(this,e);this.addPage(e)}}}],function(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}(f.prototype,r),Object.defineProperty(f,"prototype",{writable:!1}),f}(a.default);n.default=m},41804:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(27846),r(9473),r(22818);var i=u(r(62670)),a=u(r(18947)),l=u(r(76635));
1function u(e){return e&&e.__esModule?e:{default:e}}function s(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function c(e,n){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&c(e,n)}(d,e);var n,r,i,u=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=f(d);return e=n?Reflect.construct(r,arguments,f(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(e,n){var r;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d),(r=u.call(this,e)).namespace="formio.plugin",r.component=n||{},r.settings=l.default.merge({},r.defaultSettings,e||{}),r}return i=[{key:"info",get:function(){return{supportedComponents:[],name:"formioAddon",components:[],label:"Formio Addon",defaultSettings:{}}}}],r=[{key:"defaultSettings",get:function(){return d.info.defaultSettings}},{key:"element",get:function(){return this._element}},{key:"attach",value:function(e){return this._element=e,a.default.resolve()}},{key:"destroy",value:function(){}}],s(d.prototype,r),i&&s(d,i),Object.defineProperty(d,"prototype",{writable:!1}),d}(i.default);n.default=d},89985:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=r(93174))&&o.__esModule?o:{default:o},a=[{label:"Strength Levels",reorder:!1,addAnotherPosition:"bottom",layoutFixed:!1,enableRowGroups:!1,initEmpty:!1,tableView:!1,defaultValue:[{}],key:"levels",type:"editgrid",input:!0,components:[{label:"Name",tableView:!0,validate:{required:!0},key:"name",type:"textfield",input:!0},{label:"Max Entropy",description:"Specifies the top boundary of the password's entropy(strength) which belongs to this level.\nCommon entropy values are:\n<ul>\n <li>< 28 bits = Very Weak;</li>\n <li>28 - 35 bits = Weak; should keep out most people;</li>\n <li>36 - 59 bits = Reasonable; fairly secure passwords for network and company passwords;</li>\n <li>60 - 127 bits = Strong; can be good for guarding financial information;</li>\n <li>> 128 bits = Very Strong; often overkill;</li>\n</ul>\n",mask:!1,spellcheck:!0,tableView:!1,delimiter:!1,requireDecimal:!1,inputFormat:"plain",validate:{required:!0,min:1,max:128},key:"maxEntropy",type:"number",input:!0},{label:"Style",tooltip:"Specifies the background color style using bootstrap classes",tableView:!0,data:{values:[{label:"Danger",value:"danger"},{label:"Warning",value:"warning"},{label:"Info",value:"info"},{label:"Success",value:"success"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"style",type:"select",indexeddb:{filter:{}},input:!0},{label:"Color",placeholder:"#0079c0",tooltip:"Specifies a color of the indicator element",tableView:!0,key:"color",type:"textfield",input:!0}]},{label:"Update On",tableView:!0,data:{values:[{label:"Strength Level Change",value:"levelChange"},{label:"Entropy Change",value:"entropyChange"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"updateOn",type:"select",indexeddb:{filter:{}}
vendor: 4,242 bytes, line 1
1,input:!0},{label:"Rules",reorder:!1,addAnotherPosition:"bottom",layoutFixed:!1,enableRowGroups:!1,initEmpty:!1,tableView:!1,defaultValue:[{}],key:"rulesSettings",type:"datagrid",input:!0,components:[{label:"Name",tableView:!0,data:{values:[{label:"Length",value:"length"},{label:"Lower Case",value:"lowerCase"},{label:"Upper Case",value:"upperCase"},{label:"Numeric",value:"numeric"},{label:"Symbols",value:"symbols"}]},selectThreshold:.3,validate:{required:!0,onlyAvailableItems:!1},key:"name",type:"select",indexeddb:{filter:{}},input:!0},{label:"Error Message",tableView:!0,key:"errorMessage",type:"textfield",input:!0},{label:"Required",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1}]},{label:"Custom Rules",tableView:!1,rowDrafts:!1,key:"customRules",type:"editgrid",input:!0,components:[{label:"Name",tableView:!0,validate:{required:!0},key:"name",type:"textfield",input:!0},i.default.javaScriptValue("Check","check","",1100,'<p><h4>Example:</h4><pre>valid = !value.includes(data.email) ? true : "Password should not be variation of the email";</pre></p>',"","",!0),{label:"Increase Characters Pool Size",description:"Set this to amount of characters that may be used in the password if there is a specific group of characters is used.\nE.g., if your validation checks if there is any numeric symbol in the password, then you should set it to 10 (there are 10 possible numbers).\n",mask:!1,spellcheck:!0,tableView:!1,delimiter:!1,requireDecimal:!1,inputFormat:"plain",key:"increaseCharactersPoolSize",type:"number",input:!0},{label:"Required",tooltip:"Check if this check is required to proceed",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1}]},i.default.javaScriptValue("Is Valid","isValid","",1100,"<p><h4>Example:</h4><pre>valid = entropy > maxEntropy / 2 ;</pre></p>","","<tr><th>entropy</th><td>Current entropy bits of the password.</td></tr><tr><th>level</th><td>Current strength level of the password.</td></tr>",!0),{label:"Required",description:"Check this if you don't want to allow submitting password which does not correspond to the minimal strength requirements.",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1},{label:"Black List",tooltip:"Add words to search in the password. If there are some words from that list were found, the entropy of the password will be recalculated.\n",tableView:!0,multiple:!0,key:"blackList",type:"textfield",input:!0},i.default.javaScriptValue("Custom Blacklisted Words","customBlackListedWords","",1100,"<p><h4>Example:</h4><pre>values = [ data.name, data.dataOfBirth, data.favoriteColor ];</pre></p>","","",!0),{label:"Disable Blacklisted Words",tooltip:"Check if you want to disable submitting passwords containing words form the clack list",tableView:!1,key:"disableBlacklistedWords",type:"checkbox",input:!0,defaultValue:!1},{label:"Location",hideLabel:!1,tableView:!1,key:"location",type:"container",input:!0,components:[{label:"Insert",tooltip:"Specifies where the indicator will be inserted: before or aftre an element",tableView:!0,data:{values:[{label:"Before",value:"before"},{label:"After",value:"after"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"insert",type:"select",indexeddb:{filter:{}},input:!0},{label:"Selector",placeholder:"[ref='element']",description:"Specifies the selector of the element which will be used as a reference to insert the indicator template",tableView:!0,key:"selector",type:"textfield",input:!0}]},{label:"Template",editor:"ace",tableView:!0,key:"template",type:"textarea",input:!0,as:"html"}];n.default=a},5936:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(18036),r(11102),r(17943),r(15469),r(1542),r(12083),r(30902),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(13423),r(5746),r(34078),r(66054),r(6588),r(9473),r(41126),r(12551),r(88455),r(17223),r(32334),r(43001),r(97172),r(27846),r(22818);var i=u(r(76635)),a=u(r(41804)),l=u(r(89985));
1function u(e){return e&&e.__esModule?e:{default:e}}function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return c(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function f(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=h(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(c,e);var n,r,a,u=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=h(c);return e=n?Reflect.construct(r,arguments,h(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(e,n){var r;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c),(r=u.call(this,e,n))._entropy=0,r.levels=s(r.settings.levels||r.defaultSettings.levels),r.levels.sort(function(e,n){return e.maxEntropy-n.maxEntropy}),r.level=r.levels[0],r.maxEntropy=r.levels[r.levels.length-1].maxEntropy,r}return r=[{key:"defaultSettings",get:function(){return c.info.defaultSettings}},{key:"rules",get:function(){var e=this;return{length:{check:function(n,r){var o=r.minLength||e.component.component.validate.minLength||6;return!(n.length<o)||"Value must be longer than ".concat(o," characters")}},upperCase:{check:function(e){return!!/[A-Z]/g.test(e)||"Value must contain uppercased alphabetical characters"},increaseCharactersPoolSize:26},numeric:{check:function(e){return!!/[0-9]/g.test(e)||"Value must contain numeric characters"},increaseCharactersPoolSize:10},lowerCase:{check:function(e){return!!/[a-z]/g.test(e)||"Value must contain lowercased alphabetical characters"},increaseCharactersPoolSize:26},symbols:{check:function(e){return!!/[ `!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?~]/.test(e)||"Value must contain symbols"},increaseCharactersPoolSize:32}}}},{key:"charactersPoolLength",get:function(){return this._charactersPoolLength},set:function(e){this._charactersPoolLength=e}},{key:"level",get:function(){return this._level||this.getLevel()},set:function(e){this._level=e}},{key:"entropy",get:function(){return this._entropy},set:function(e){var n=this.getLevel(),r="entropyChange"===this.settings.updateOn&&this._entropy!==e;this._entropy=e,this.level=this.getLevel(),("levelChange"===this.settings.updateOn&&n.name!==this.level.name||r)&&this.updateView()}},{key:"dictionarySize",get:function(){return this.settings.dictionarySize||171476}},{key:"template",get:function(){return this.settings.template}},{key:"tooltip",get:function(){var e,n;return(null===(e=this.level)||void 0===e?void 0:e.tooltip)||"".concat(null===(n=this.level)||void 0===n?void 0:n.name," strongness")}},{key:"rulesSettings",get:function(){return this.settings.rulesSettings||[]}},{key:"customRules",get:function(){return this.settings.customRules||[]}},{key:"log2",value:function(e){return"function"==typeof Math.log2?Math.log2(e):Math.log(e)*Math.LOG2E}},{key:"calculatePasswordEntropy",value:function(e,n){return e&&n?this.log2(Math.pow(n,e)):0}},{key:"calculatePasswordEntropyWords",value:function(e){return this.dictionarySize?this.log2(this.dictionarySize)*e:0}},{key:"render",value:function(){var e=this.component.interpolate(this.template,{entropy:this.entropy,maxEntropy:this.maxEntropy,level:this.level,levelName:this.level.name.replace(" ","-").toLowerCase(),levels:this.levels,readOnly:this.component.options.readOnly,pristine:this.component.pristine,t:this.t.bind(this),tooltip:this.tooltip});return this.component.sanitize(e)}},{key:"checkBlackList",value:function(e){var n=s(this.settings.blackList),r=this.settings.customBlacklistedWords;r&&"string"==typeof r&&(r=this.evaluate(r,this.component.evalContext({value:e}),"values"))&&r.length&&n.push.apply(n,s(r));for(var o=e,i=[],a=0;a<n.length;a++){var l=n[a],u=RegExp("".concat(l),"gi");if(u.test(e)&&(i.push(l),o=o.replace(u,"")),o.length<3)break}if(i.length){var c=(o.length?this.performChecks(o):0).charactersPoolSize,f
vendor: 5,539 bytes, line 1
1=this.calculatePasswordEntropy(o.length,c);return{entropy:this.calculatePasswordEntropyWords(i.length)+f,blacklistedWords:i}}return!0}},{key:"isValid",value:function(){var e=this.settings.isValid;return e&&"string"==typeof e?this.evaluate(e,this.component.evalContext({entropy:this.entropy,level:this.level}),"valid"):this.entropy>=Math.round(this.maxEntropy/2)}},{key:"handleRuleCheckResult",value:function(e,n,r,o){if(!0!==e)o.push({validation:n.name,message:r,level:n.required?"error":"warning"});else if(n.increaseCharactersPoolSize)return n.increaseCharactersPoolSize;return 0}},{key:"performChecks",value:function(e){var n=this,r=[],o=0;return this.rulesSettings.forEach(function(a){if(n.rules[a.name]){var l=i.default.merge({},n.rules[a.name],a),u=l.check(e,a.options||{}),s=a.message||u;o+=n.handleRuleCheckResult(u,l,s,r)}}),this.customRules.forEach(function(i){if(i.check&&"string"==typeof i.check){var a=n.evaluate(i.check,n.component.evalContext({value:e}),"valid"),l="string"==typeof a?a:"Password does not meet ".concat(i.name," validation");o+=n.handleRuleCheckResult(a,i,l,r)}}),{charactersPoolSize:o,errors:r}}},{key:"checkValidity",value:function(e){var n,r=e.length,o=this.performChecks(e),i=o.charactersPoolSize,a=o.errors;this.errors=a;var l=this.calculatePasswordEntropy(r,i),u=null!==(n=this.settings.blackList)&&void 0!==n&&n.length||this.settings.customBlacklistedWords?this.checkBlackList(e):null;return u&&!0!==u?(this.handleBlackListCheckResult(u),this.entropy=Math.min(l,u.entropy)):this.entropy=l,this.isValid()||this.errors.push({message:"Password is not strong enough",level:this.settings.required?"error":"warning"}),!this.errors.length}},{key:"handleBlackListCheckResult",value:function(e){var n=e.blacklistedWords,r=this.settings.disableBlacklistedWords,o="Password ".concat(r?"must":"should"," not include common words: ").concat(n.join(", "));this.handleRuleCheckResult(!1,{name:"blacklist",required:r},o,this.errors)}},{key:"attach",value:function(e){var n=this;d(h(c.prototype),"attach",this).call(this,e);var r=this.component.ce("div",{ref:"passwordStrengthIndicator"});this.insertContainer(e,r)||this.component.append(r),this._element=r,this.component.on("redraw",function(){return n.updateView()}),this.component.on("componentError",function(){return n.updateView()}),this.updateView()}},{key:"insertContainer",value:function(e,n){if(!e||!n)return!1;var r,o,i,a=null===(r=this.settings.location)||void 0===r?void 0:r.insert,l=null===(o=this.settings.location)||void 0===o?void 0:o.selector;if(l&&(i=e.querySelector(l)),!i)return console.warn("No elements found using selector: ".concat(l)),!1;var u=i.parentNode;switch(a){case"after":if(u)return u.insertBefore(n,i.nextSibling||null),!0;return!1;case"before":if(u)return u.insertBefore(n,i),!0;return!1;default:return console.warn("Unknown insert option: ".concat(a)),!1}}},{key:"destroy",value:function(){d(h(c.prototype),"destroy",this).call(this)}},{key:"getLevel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.entropy,n=this.levels[0],r=n.maxEntropy;if(e<=n.maxEntropy)return n;if(e>=this.maxEntropy)return this.levels[this.levels.length-1];for(var o=1;o<this.levels.length;o++){var i=this.levels[o];if(e>r&&e<=i.maxEntropy)return i;r=i.maxEntropy}return n}},{key:"updateView",value:function(){if(this.element){var e=this.render();this.element.innerHTML=e}}}],a=[{key:"info",get:function(){return{supportedComponents:["password"],name:"passwordStrength",components:l.default,label:"Password Strength",defaultSettings:{rulesSettings:[{name:"length",required:!1,message:"Value should be longer"},{name:"upperCase",required:!1,message:"Value should have uppercase letters"},{name:"numeric",required:!1,message:"Value should have numeric symbols"},{name:"lowerCase",required:!1,message:"Value should be have lowercase letters"},{name:"symbols",required:!1,message:"Value should have symbols"}],updateOn:"levelChange",required:!0,levels:[{name:"Low",maxEntropy:28,style:"danger"},{name:"Medium",maxEntropy:45,style:"warning"},{name:"High",maxEntropy:59,style:"info"},{name:"Very High",maxEntropy:85,style:"success"}],blackList:[],template:"\n <div class=\"formio-security-indicator\">\n {% if (!ctx.readOnly && !ctx.pristine) { %}\n <div\n title=\"{{ctx.t(ctx.tooltip)}}\"\n class=\"security-{{ctx.levelName}} {{ ctx.level.style ? 'bg-' + ctx.level.style : ''}}\"\n style=\"{{ctx.level.color ? 'background-color: ' + ctx.level.color + ';' : ''}}\"\n ></div>\n {% } %}\n </div>\n ",location:{insert:"after",selector:'[ref="element"]'}}}}}],r&&f(c.prototype,r),a&&f(c,a),Object.defineProperty(c,"prototype",{writable:!1}),c}(a.default);n.default=m},35290:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.editForms=n.default=void 0,r(76381),r(34078);var o,i=(o=r(5936))&&o.__esModule?o:{default:o},a=[i.default.info].map(function(e){var n=e.components,r=e.name;return{type:"form",key:"settings",display:"form",input:!0,components:n,defaultValue:{data:e.defaultSettings},customConditional:function(e){return e.row.name.value===r}}});n.editForms=a;var l={passwordStrength:i.default};n.default=l},21621:function(e,n,r){"use strict";r(26944),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var o,i,a=c(r(76635)),l=c(r(67663)),u=c(r(51695)),s=c(r(16958));
1function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){var n=function(e,n){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==f(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===f(n)?n:String(n)}var p=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"addBuilder",value:function(e,r){n.builders[e]=r}},{key:"addBuilders",value:function(e){n.builders=a.default.merge(n.builders,e)}},{key:"getBuilder",value:function(e){return n.builders[e]}},{key:"getBuilders",value:function(){return n.builders}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=p,o="builders",i={pdf:l.default,webform:u.default,wizard:s.default},(o=d(o))in p?Object.defineProperty(p,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):p[o]=i},76597:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=((o=r(21621))&&o.__esModule?o:{default:o}).default;n.default=i},6296:function(e,n,r){"use strict";r(26944),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18036),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var o=u(r(11275)),i=u(r(93174)),a=u(r(30308)),l=u(r(76635));function u(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,n,r){return(n=f(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function f(e){var n=function(e,n){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==s(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===s(n)?n:String(n)}var d=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"EditFormUtils",get:function(){return n._editFormUtils},set:function(e){n._editFormUtils=e}},{key:"baseEditForm",get:function(){return n._baseEditForm},set:function(e){n._baseEditForm=e}},{key:"recalculateComponents",value:function(){window&&window.Formio&&window.Formio.AllComponents&&n.setComponents(window.Formio.AllComponents)}},{key:"components",get:function(){return n._components||(n._components={}),n._components}},{key:"setComponents",value:function(e){e.base&&(e.base.tableView=function(e,r){return n.create(r.component,r.options||{},r.data||{},!0).getView(e)}),l.default.assign(n.components,e)}},{key:"addComponent",value:function(e,r){return n.setComponent(e,r)}},{key:"setComponent",value:function(e,r){n.components[e]=r}},{key:"create",value:function(e,r,i){return e.type&&n.components.hasOwnProperty(e.type)?new n.components[e.type](e,r,i):e.arrayTree?new n.components.datagrid(e,r,i):e.tree?new n.components.nesteddata(e,r,i):Array.isArray(e.components)?new n.components.nested(e,r,i):r&&r.server?new n.components.hidden(e,r,i):new o.default(e,r,i)}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=d,c(d,"_editFormUtils",i.default),c(d,"_baseEditForm",a.default)},30308:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var p=o.default.cloneDeep([{type:"tabs",key:"tabs",components:[{label:"Display",key:"display",weight:0,components:u.default},{label:"Data",key:"data",weight:10,components:a.default},{label:"Validation",key:"validation",weight:20,components:c.default},{label:"API",key:"api",weight:30,components:l.default},{label:"Conditional",key:"conditional",weight:40,components:i.default},{label:"Logic",key:"logic",weight:50,components:s.default},{label:"Layout",key:"layout",weight:60,components:f.default}]}]).concat(n.map(function(e){return{type:"tabs",key:"tabs",components:o.default.cloneDeep(e)}}));return{components:o.default.unionWith(p,d.default.unifyComponents).concat({type:"hidden",key:"type"})}},r(43001),r(76381);var o=p(r(76635)),i=p(r(47157)),a=p(r(97519)),l=p(r(22272)),u=p(r(89030)),s=p(r(29624)),c=p(r(56245)),f=p(r(124)),d=p(r(93174));
1function p(e){return e&&e.__esModule?e:{default:e}}},11275:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(1542),r(24646),r(30534),r(98197),r(92370),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(45343),r(34078),r(17216),r(9473),r(88455),r(17223),r(32334),r(69446),r(43001),r(28121),r(83972),r(18036),r(5746),r(6588),r(36686),r(97172),r(59012),r(12551),r(76381),r(92782),r(52315),r(28818),r(49670),r(35968),r(12083),r(15469),r(92100),r(30902),r(27846),r(22818),r(75162);var i=r(93808),a=w(r(18947)),l=w(r(62323)),u=w(r(76635)),s=w(r(98179)),c=r(38388),f=function(e,n){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=g(void 0);if(r&&r.has(e))return r.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var u=a?Object.getOwnPropertyDescriptor(e,l):null;u&&(u.get||u.set)?Object.defineProperty(i,l,u):i[l]=e[l]}return i.default=e,r&&r.set(e,i),i}(r(9494)),d=w(r(80726)),p=w(r(62670)),h=w(r(68452)),m=w(r(1357)),y=w(r(35290)),v=r(94523),b=w(r(4600));function g(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(g=function(e){return e?r:n})(e)}function w(e){return e&&e.__esModule?e:{default:e}}function k(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function O(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?k(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=x(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=P(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){u=!0,a=e},f:function(){try{l||null==r.return||r.return()}finally{if(u)throw a}}}}function j(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||P(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,n){if(e){if("string"==typeof e)return S(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,n)}}function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function E(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,x(o.key),o)}}function x(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function C(){return(C="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=M(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}
1function R(e,n){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function A(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=f.getBrowserInfo().ie,D=c.GlobalFormio.Templates;D||(D=r(538).default);var I=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&R(e,n)}(w,e);var n,r,p,g=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=M(w);return e=n?Reflect.construct(r,arguments,M(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return A(e)}(this,e)});function w(e,n,r){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,w),o=g.call(this,Object.assign({renderMode:"form",attachMode:"full",noDefaults:!1},n||{})),e&&e.id&&(o.id=e.id),o._hasCondition=null,o.refs={},e&&o.options.components&&o.options.components[e.type]&&u.default.merge(e,o.options.components[e.type]),o.validator=d.default,o.path="",o.component=o.mergeSchema(e||{}),o.component.id=o.id,o.afterComponentAssign(),o.originalComponent=(0,f.fastCloneDeep)(o.component),o.attached=!1,o.rendered=!1,o._data=r||{},o.error="",o.tooltip="",o.row=o.options.row,o._disabled=!!(0,f.boolValue)(o.component.disabled)&&o.component.disabled,o.root=o.options.root,o.localRoot=o.options.localRoot,o.pristine=!0,o.parent=o.options.parent,o.options.name=o.options.name||"data",o.validators=["required","minLength","maxLength","minWords","maxWords","custom","pattern","json","mask"],o._path="",o._parentPath=o.options.parentPath||"",o.resetCaches(),o._parentVisible=!o.options.hasOwnProperty("parentVisible")||o.options.parentVisible,o._visible=o._parentVisible&&o.conditionallyVisible(null,r),o._parentDisabled=!1;var o,i=[],a=null,l=[],s=u.default.debounce(function(){o.root&&(o.root.changing=!1),l=[];for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];!n[1]&&a&&(n[1]=a),u.default.isEmpty(n[0])&&a&&(n[0]=a.flags),a=null,n[3]=i;var s=o.onChange.apply(o,n);return i=[],s},100);return o.triggerChange=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n[1]&&(a=n[1],i.push(a)),o.root&&(o.root.changing=!0),n.length&&(l=n),s.apply(void 0,j(l))},o.triggerRedraw=u.default.debounce(o.redraw.bind(A(o)),100),o.tooltips=[],o.addons=[],o.invalid=!1,o.component&&(o.type=o.component.type,o.allowData&&o.key&&(o.options.name+="[".concat(o.key,"]"),(o.visible||!o.component.clearOnHide)&&(o.hasValue()?o.dataValue=o.dataValue:o.shouldAddDefaultValue&&(o.dataValue=o.defaultValue))),o.info=o.elementInfo()),o.hook("component"),o.options.skipInit||o.init(),o}return r=[{key:"data",get:function(){return this._data},set:function(e){this._data=e}},{key:"mergeSchema",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u.default.defaultsDeep(e,this.defaultSchema)}},{key:"ready",get:function(){return a.default.resolve(this)}},{key:"isPDFReadOnlyMode",get:function(){return this.parent&&this.parent.form&&"pdf"===this.parent.form.display&&this.options.readOnly}},{key:"labelInfo",get:function(){var e={};e.hidden=this.labelIsHidden(),e.className="",e.labelPosition=this.component.labelPosition,e.tooltipClass="".concat(this.iconClass("question-sign")," text-muted");var n=this.isPDFReadOnlyMode;return this.hasInput&&this.component.validate&&(0,f.boolValue)(this.component.validate.required)&&!n&&(e.className+=" field-required"),e.hidden&&(e.className+=" control-label--hidden"),this.info.attr.id&&(e.for=this.info.attr.id),e}},{key:"init",value:function(){var e,n=this;this.disabled=this.shouldDisabled,this._visible=this.conditionallyVisible(null,null),null!==(e=this.component.addons)&&void 0!==e&&e.length&&this.component.addons.forEach(function(e){return n.createAddon(e)})}},{key:"afterComponentAssign",value:function(){}},{key:"createAddon",value:function(e){var n,r=e.name;if(r){var o=(null===(n=e.settings)||void 0===n?void 0:n.data)||{},i=y.default[r.value],a=null;if(i){var l=i.info.supportedComponents;null!=l&&l.length&&-1===l.indexOf(this.component.type)?console.warn("Addon ".concat(r.label," does not support component of type ").concat(this.component.type,".")):(a=new i(o,this),this.addons.push(a))}return a}}},{key:"destroy",value:function(){C(M(w.prototype),"destroy",this).call(this),this.detach(),this.addons.forEach(function(e){return e.destroy()})}},{key:"shouldDisabled",get:function(){return this.options.readOnly||this.component.disabled||this.options.hasOwnProperty("disabled")&&this.options.disabled[this.key]}},{key:"isInputComponent",get:function(){return!this.component.hasOwnProperty("input")||this.component.input}},{key:"allowData",get:function(){return this.hasInput}},{key:"hasInput",get:function(){return this.isInputComponent||this.refs.input&&this.refs.input.length}},{key:"defaultSchema",get:function(){return w.schema()}},{key:"key",get:function(){return u.default.get(this.component,"key","")}},{key:"parentVisible",get:function(){return this._parentVisible},set:function(e){this._parentVisible=e}},{key:"parentDisabled",get:function(){return this._parentDisabled},set:function(e){this._parentDisabled=e}},{key:"shouldForceVisibility",value:function(e,n){return!!this.options[n]&&((e||(e=this.component),u.default.isArray(this.options[n]))?this.options[n].includes(e.ke
1y):this.options[n][e.key])}},{key:"shouldForceHide",value:function(e){return this.shouldForceVisibility(e,"hide")}},{key:"shouldForceShow",value:function(e){return this.shouldForceVisibility(e,"show")}},{key:"visible",get:function(){return!!this.builderMode||!!this.previewMode||!!this.options.showHiddenFields||!this.shouldForceHide()&&(!!this.shouldForceShow()||this._visible&&this._parentVisible)},set:function(e){this._visible===e||e&&this.shouldForceHide()||!e&&this.shouldForceShow()||(this._visible=e,this.clearOnHide(),this.redraw())}},{key:"currentForm",get:function(){return this._currentForm},set:function(e){this._currentForm=e}},{key:"fullMode",get:function(){return"full"===this.options.attachMode}},{key:"builderMode",get:function(){return"builder"===this.options.attachMode}},{key:"calculatedPath",get:function(){return console.error("component.calculatedPath was deprecated, use component.path instead."),this.path}},{key:"labelPosition",get:function(){return this.component.labelPosition}},{key:"labelWidth",get:function(){var e=this.component.labelWidth;return e>=0?e:30}},{key:"labelMargin",get:function(){var e=this.component.labelMargin;return e>=0?e:3}},{key:"isAdvancedLabel",get:function(){return["left-left","left-right","right-left","right-right"].includes(this.labelPosition)}},{key:"labelPositions",get:function(){return this.labelPosition.split("-")}},{key:"skipInEmail",get:function(){return!1}},{key:"rightDirection",value:function(e){return!this.options.condensedMode&&"right"===e}},{key:"getLabelInfo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.rightDirection(this.labelPositions[0]),r="left"===this.labelPositions[0]||e,o=this.rightDirection(this.labelPositions[1]),i="";if(this.component.hideLabel){var a=this.labelWidth+this.labelMargin;i=n?"margin-right: ".concat(a,"%"):"",i=r?"margin-left: ".concat(a,"%"):""}var l="\n flex: ".concat(this.labelWidth,";\n ").concat(n?"margin-left":"margin-right",": ").concat(this.labelMargin,"%;\n ");return{isRightPosition:n,isRightAlign:o,labelStyles:l,contentStyles:"\n flex: ".concat(100-this.labelWidth-this.labelMargin,";\n ").concat(i,";\n ").concat(this.component.hideLabel?"max-width: ".concat(100-this.labelWidth-this.labelMargin):"",";\n ")}}},{key:"getModifiedSchema",value:function(e,n,r){var o=this,i={};return n?(u.default.each(e,function(e,a){if(!u.default.isArray(e)&&u.default.isObject(e)&&n.hasOwnProperty(a)){var l=o.getModifiedSchema(e,n[a],!0);u.default.isEmpty(l)||(i[a]=l)}else u.default.isArray(e)?0===e.length||u.default.isEqual(e,n[a])||(i[a]=e):(r||"type"!==a)&&(r||"key"!==a)&&(r||"label"!==a)&&(r||"input"!==a)&&(r||"tableView"!==a)&&(""===e||n.hasOwnProperty(a))&&(""===e||e===n[a])&&(!n[a]||e===n[a])||(i[a]=e)}),i):e}},{key:"schema",get:function(){return(0,f.fastCloneDeep)(this.getModifiedSchema(u.default.omit(this.component,"id"),this.defaultSchema))}},{key:"isInDataGrid",get:function(){return this.inDataGrid}},{key:"t",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"";if(e in b.default&&r._userInput)return e;r.data=this.rootValue,r.row=this.data,r.component=this.component;for(var o=arguments.length,i=Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];return(n=C(M(w.prototype),"t",this)).call.apply(n,[this,e,r].concat(i))}},{key:"labelIsHidden",value:function(){return!this.component.label||(!this.isInDataGrid&&this.component.hideLabel||this.isInDataGrid&&!this.component.dataGridLabel||this.options.inputsOnly)&&!this.builderMode}},{key:"transform",value:function(e,n){var r=this.options.template?D.templates[this.options.template]:D.current;return r.hasOwnProperty("transform")?r.transform(e,n):function(e,n){return n}}}
vendor: 1,170 bytes, line 1
1,{key:"getTemplate",value:function(e,n){n=Array.isArray(n)?n:[n],e=Array.isArray(e)?e:[e],n.includes("form")||n.push("form");var r=null;if(this.options.templates&&(r=this.checkTemplate(this.options.templates,e,n)))return r;var o=this.options.template?D.templates[this.options.template]:D.current;if(r=this.checkTemplate(o,e,n))return r;var i=e[e.length-1],a=D.defaultTemplates[i];return a?this.checkTemplateMode(a,n)||a.form:"Unknown template: ".concat(i)}},{key:"checkTemplate",value:function(e,n,r){var o,i=_(n);try{for(i.s();!(o=i.n()).done;){var a=e[o.value];if(a){var l=this.checkTemplateMode(a,r);if(l)return l}}}catch(e){i.e(e)}finally{i.f()}return null}},{key:"checkTemplateMode",value:function(e,n){var r,o=_(n);try{for(o.s();!(r=o.n()).done;){var i=e[r.value];if(i)return i}}catch(e){o.e(e)}finally{o.f()}return null}},{key:"getFormattedAttribute",value:function(e){return e?this.t(e,{_userInput:!0}).replace(/"/g,"""):""}},{key:"getFormattedTooltip",value:function(e){var n=this.interpolate(e||"").replace(/(?:\r\n|\r|\n)/g,"<br />");return this.getFormattedAttribute(n)}},{key:"isHtmlRenderMode",value:function(){return"html"===this.options.renderMode}}
vendor: 11,345 bytes, line 1
1,{key:"renderTemplate",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,i=o||this.options.renderMode||"form";r.component=this.component,r.self=this,r.options=this.options,r.readOnly=this.options.readOnly,r.iconClass=this.iconClass.bind(this),r.size=this.size.bind(this),r.t=this.t.bind(this),r.transform=this.transform.bind(this),r.id=r.id||this.id,r.key=r.key||this.key,r.value=r.value||this.dataValue,r.disabled=this.disabled,r.builder=this.builderMode,r.render=function(){return console.warn("Form.io 'render' template function is deprecated.\n If you need to render template (template A) inside of another template (template B),\n pass pre-compiled template A (use this.renderTemplate('template_A_name') as template context variable for template B"),n.renderTemplate.apply(n,arguments)},r.label=r.labelInfo||this.labelInfo,r.tooltip=this.getFormattedTooltip(this.component.tooltip);var a=["".concat(e,"-").concat(this.component.type,"-").concat(this.key),"".concat(e,"-").concat(this.component.type),"".concat(e,"-").concat(this.key),"".concat(e)];return this.hook("render".concat(e.charAt(0).toUpperCase()+e.substring(1,e.length)),this.interpolate(this.getTemplate(a,i),r),r,i)}},{key:"sanitize",value:function(e,n,r){var o;return(this.shouldSanitizeValue||n)&&(!this.options.pdf||n)?f.sanitize(e,{sanitizeConfig:u.default.merge((null===(o=this.options)||void 0===o?void 0:o.sanitizeConfig)||{},r||{})}):e}},{key:"renderString",value:function(e,n){return e?this.interpolate(e,n):""}},{key:"performInputMapping",value:function(e){return e}},{key:"widget",get:function(){var e,n=this.component.widget;return n&&null!==(e=this.root)&&void 0!==e&&e.shadowRoot&&(n.shadowRoot=this.root.shadowRoot),n&&m.default[n.type]?new m.default[n.type](n,this.component,this):null}},{key:"getBrowserLanguage",value:function(){var e,n=window.navigator,r=["language","browserLanguage","systemLanguage","userLanguage"];if(Array.isArray(n.languages)){for(var o=0;o<n.languages.length;o++)if((e=n.languages[o])&&e.length)return e.split(";")[0]}for(var i=0;i<r.length;i++)if((e=n[r[i]])&&e.length)return e.split(";")[0];return null}},{key:"beforePage",value:function(){return a.default.resolve(!0)}},{key:"beforeNext",value:function(){return this.beforePage(!0)}},{key:"beforeSubmit",value:function(){return a.default.resolve(!0)}},{key:"submissionTimezone",get:function(){return this.options.submissionTimezone=this.options.submissionTimezone||u.default.get(this.root,"options.submissionTimezone"),this.options.submissionTimezone}},{key:"timezone",get:function(){return this.getTimezone(this.component)}},{key:"getTimezone",value:function(e){if(e.timezone)return e.timezone;if("utc"===e.displayInTimezone)return"UTC";var n=this.submissionTimezone;return n&&("submission"===e.displayInTimezone||(this.options.pdf||this.options.server)&&"viewer"===e.displayInTimezone)?n:(0,f.currentTimezone)()}},{key:"loadRefs",value:function(e,n){for(var r in n){var o=n[r],i="string"==typeof o,a=i&&o.includes("scope")?':scope > [ref="'.concat(r,'"]'):'[ref="'.concat(r,'"]');i&&o.startsWith("single")?this.refs[r]=e.querySelector(a):this.refs[r]=e.querySelectorAll(a)}}},{key:"setOpenModalElement",value:function(e){this.componentModal.setOpenModalElement(e||this.getModalPreviewTemplate())}},{key:"getModalPreviewTemplate",value:function(){var e,n,r="password"===this.component.type?this.dataValue.replace(/./g,"â¢"):this.dataValue,o=this.error?{level:"error",message:this.error.message}:"";return this.hasInput&&null!==(e=this.component.validate)&&void 0!==e&&e.required&&!this.isPDFReadOnlyMode&&(n={className:"field-required"}),this.renderTemplate("modalPreview",{previewText:this.getValueAsString(r,{modalPreview:!0})||this.t("Click to set value"),messages:o&&this.renderTemplate("message",o),labelInfo:n})}},{key:"build",value:function(e){return e=e||this.element,this.empty(e),this.setContent(e,this.render()),this.attach(e)}},{key:"hasModalSaveButton",get:function(){return!0}},{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unknown component: ".concat(this.component.type),n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.visible;return(this.rendered=!0,this.builderMode||this.previewMode||!this.component.modalEdit)?this.renderTemplate("component",{visible:r,id:this.id,classes:this.className,styles:this.customStyle,children:e},n):h.default.render(this,{visible:r,showSaveButton:this.hasModalSaveButton,id:this.id,classes:this.className,styles:this.customStyle,children:e},n)}},{key:"attachTooltips",value:function(e){var n=this;null==e||e.forEach(function(e,r){if(e){var o=e.getAttribute("data-tooltip"),i=e.getAttribute("data-title"),a=n.interpolate(i||o).replace(/(?:\r\n|\r|\n)/g,"<br />");n.tooltips[r]=(0,l.default)(e,{allowHTML:!0,trigger:"mouseenter click focus",placement:"right",zIndex:1e4,interactive:!0,content:n.t(a,{_userInput:!0})})}})}},{key:"createComponentModal",value:function(e,n,r){return new h.default(this,e,n,r)}},{key:"attach",value:function(e){if(!this.builderMode&&!this.previewMode&&this.component.modalEdit){var n=!!this.componentModal&&this.componentModal.isOpened,r=n?this.componentModal.currentValue:this.dataValue,o=this.componentModal&&n?this.componentModal.openModalTemplate:null;this.componentModal=this.createComponentModal(e,n,r),this.setOpenModalElement(o)}this.attached=!0,this.element=e,e.component=this,this.element.id&&(this.id=this.element.id,this.component.id=this.id),this.loadRefs(e,{messageContainer:"single",tooltip:"multiple"}),this.attachTooltips(this.refs.tooltip),this.attachLogic(),this.autofocus(),this.hook("attachComponent",e,this);var i=this.component.type;return i&&this.hook("attach".concat(i.charAt(0).toUpperCase()+i.substring(1,i.length)),e,this),this.restoreFocus(),this.addons.forEach(function(n){return n.attach(e)}),a.default.resolve()}},{key:"restoreFocus",value:function(){var e,n,r;(null===(e=this.root)||void 0===e?void 0:null===(n=e.focusedComponent)||void 0===n?void 0:n.path)===this.path&&(this.loadRefs(this.element,{input:"multiple"}),this.focus(null===(r=this.root.currentSelection)||void 0===r?void 0:r.index),this.restoreCaretPosition())}},{key:"addShortcut",value:function(e,n){e&&this.root&&this.root!==this&&(n||(n=this.component.shortcut),this.root.addShortcut(e,n))}},{key:"removeShortcut",value:function(e,n){e&&this.root!==this&&(n||(n=this.component.shortcut),this.root.removeShortcut(e,n))}},{key:"detach",value:function(){this.refs={},this.removeEventListeners(),this.detachLogic(),this.tooltip&&this.tooltip.destroy()}},{key:"checkRefresh",value:function(e,n,r){var o=u.default.get(n,"instance.path",!1);(!o||this.path!==o)&&("data"===e?this.refresh(this.data,n,r):o&&(0,f.getComponentPath)(n.instance)===e&&n&&n.instance&&this.inContext(n.instance)&&this.refresh(n.value,n,r))}},{key:"checkRefreshOn",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=e||[],!r.noRefresh){!e.length&&r.changed&&(e=[r.changed]);var o=r.fromBlur?this.component.refreshOnBlur:this.component.refreshOn||this.component.redrawOn;o&&(Array.isArray(o)?o.forEach(function(o){return e.forEach(function(e){return n.checkRefresh(o,e,r)})}):e.forEach(function(e){return n.checkRefresh(o,e,r)}))}}},{key:"refresh",value:function(e){this.hasOwnProperty("refreshOnValue")?this.refreshOnChanged=!u.default.isEqual(e,this.refreshOnValue):this.refreshOnChanged=!0,this.refreshOnValue=(0,f.fastCloneDeep)(e),this.refreshOnChanged&&(this.component.clearOnRefresh&&this.setValue(null),this.triggerRedraw())}},{key:"inContext",value:function(e){if(e.data===this.data)return!0;for(var n=this.parent;n;){if(n.data===e.data)return!0;n=n.parent}return!1}},{key:"viewOnly",get:function(){return this.options.readOnly&&this.options.viewAsHtml}},{key:"createViewOnlyElement",value:function(){return this.element=this.ce("dl",{id:this.id}),this.element&&(this.element.component=this),this.element}},{key:"defaultViewOnlyValue",get:function(){return"-"}},{key:"getWidgetValueAsString",value:function(e,n){var r=this,o=!this.refs.input||!this.refs.input[0]||!this.refs.input[0].widget;if(!e||o)return this.widget&&e?this.widget.getValueAsString(e):e;if(Array.isArray(e)){var i=[];return e.forEach(function(e,o){var a=r.refs.input[o]&&r.refs.input[o].widget;a&&i.push(a.getValueAsString(e,n))}),i}return this.refs.input[0].widget.getValueAsString(e,n)}},{key:"getValueAsString",value:function(e,n){if(!e)return"";if(Array.isArray(e=this.getWidgetValueAsString(e,n)))return e.join(", ");if(u.default.isPlainObject(e))return JSON.stringify(e);if(null==e)return"";var r=e.toString();return this.sanitize(r)}},{key:"getView",value:function(e,n){return this.component.protected?"--- PROTECTED ---":this.getValueAsString(e,n)}},{key:"updateItems",value:function(){this.restoreValue(),this.onChange.apply(this,arguments)}},{key:"itemValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(u.default.isObject(e)&&!u.default.isArray(e)){if(this.valueProperty)return u.default.get(e,this.valueProperty);if(n)return e.value}return e}},{key:"itemValueForHTMLMode",value:function(e){var n=this;return Array.isArray(e)?e.map(function(e){return Array.isArray(e)?n.itemValueForHTMLMode(e):n.itemValue(e)}).join(", "):this.itemValue(e)}},{key:"createModal",value:function(e,n,r){var o=this,i=this.ce("div",n||{});this.setContent(i,this.renderTemplate("dialog")),i.refs={},this.loadRefs.call(i,i,{dialogOverlay:"single",dialogContents:"single",dialogClose:"single"}),i.refs.dialogContents.appendChild(e),document.body.appendChild(i),document.body.classList.add("modal-open"),i.close=function(){document.body.classList.remove("modal-open"),i.dispatchEvent(new CustomEvent("close"))},this.addEventListener(i,"close",function(){return o.removeChildFrom(i,document.body)});var a=function(e){e.preventDefault(),i.close()},l=function(e){r?r().then(function(){return a(e)}).catch(function(){}):a(e)};return this.addEventListener(i.refs.dialogOverlay,"click",l),this.addEventListener(i.refs.dialogClose,"click",l),i}},{key:"optimizeRedraw",get:function(){return!!this.options.optimizeRedraw&&!!this.element&&!this.visible&&(this.addClass(this.element,"formio-removed"),!0)}},{key:"className",get:function(){var e=this.hasInput?"".concat(this.transform("class","form-group")," has-feedback "):"";return e+="formio-component formio-component-".concat(this.component.type," "),this.key&&"form"!==this.key&&(e+="formio-component-".concat(this.key," ")),this.component.multiple&&(e+="formio-component-multiple "),this.component.customClass&&(e+=this.component.customClass),this.hasInput&&this.component.validate&&(0,f.boolValue)(this.component.validate.required)&&(e+=" required"),this.labelIsHidden()&&(e+=" formio-component-label-hidden"),this.visible||(e+=" formio-hidden"),e}},{key:"customStyle",get:function(){var e="";return u.default.each(this.component.style,function(n,r){""!==n&&(e+="".concat(r,":").concat(n,";"))}),e}},{key:"isMobile",get:function(){return(0,s.default)()}},{key:"getElement",value:function(){return this.element}},{key:"evalContext",value:function(e){return C(M(w.prototype),"evalContext",this).call(this,Object.assign({component:this.component,row:this.data,rowIndex:this.rowIndex,data:this.root
vendor: 3,056 bytes, line 1
1Value,iconClass:this.iconClass.bind(this),t:this.t.bind(this),submission:this.root?this.root._submission:{data:this.rootValue},form:this.root?this.root._form:{},options:this.options},e))}},{key:"setPristine",value:function(e){this.pristine=e}},{key:"isPristine",get:function(){return this.pristine}},{key:"setDirty",value:function(e){this.dirty=e}},{key:"isDirty",get:function(){return this.dirty}},{key:"removeValue",value:function(e){this.splice(e),this.redraw(),this.restoreValue(),this.triggerRootChange()}},{key:"iconClass",value:function(e,n){var r=this.options.iconset||D.current.defaultIconset||"fa";return D.current.hasOwnProperty("iconClass")?D.current.iconClass(r,e,n):"fa"===this.options.iconset?D.defaultTemplates.iconClass(r,e,n):e}},{key:"size",value:function(e){return D.current.hasOwnProperty("size")?D.current.size(e):e}},{key:"name",get:function(){return this.t(this.component.label||this.component.placeholder||this.key,{_userInput:!0})}},{key:"errorLabel",get:function(){return this.t(this.component.errorLabel||this.component.label||this.component.placeholder||this.key)}},{key:"errorMessage",value:function(e){return this.component.errors&&this.component.errors[e]?this.component.errors[e]:e}},{key:"setContent",value:function(e,n,r,o){return e instanceof HTMLElement&&(e.innerHTML=this.sanitize(n,r,o),!0)}},{key:"restoreCaretPosition",value:function(){if(null!==(a=this.root)&&void 0!==a&&a.currentSelection&&null!==(l=this.refs.input)&&void 0!==l&&l.length){var e=this.root.currentSelection,n=e.selection,r=e.index,o=this.refs.input[r],i=/text|search|password|tel|url/i.test(o.type||"");if(o)i&&(u=o).setSelectionRange.apply(u,j(n));else{var a,l,u,s,c=(null===(s=(o=this.refs.input[this.refs.input.length]).value)||void 0===s?void 0:s.length)||0;i&&o.setSelectionRange(c,c)}}}},{key:"redraw",value:function(){if(!this.element||!this.element.parentNode||this.optimizeRedraw)return a.default.resolve();this.detach(),this.emit("redraw");var e=this.element.parentNode,n=Array.prototype.indexOf.call(e.children,this.element);return this.element.outerHTML=this.sanitize(this.render()),this.element=e.children[n],this.attach(this.element)}},{key:"rebuild",value:function(){return this.destroy(),this.init(),this.visible=this.conditionallyVisible(null,null),this.redraw()}},{key:"removeEventListeners",value:function(){C(M(w.prototype),"removeEventListeners",this).call(this),this.tooltips.forEach(function(e){return e.destroy()}),this.tooltips=[]}},{key:"hasClass",value:function(e,n){if(e)return C(M(w.prototype),"hasClass",this).call(this,e,this.transform("class",n))}},{key:"addClass",value:function(e,n){if(e)return C(M(w.prototype),"addClass",this).call(this,e,this.transform("class",n))}},{key:"removeClass",value:function(e,n){if(e)return C(M(w.prototype),"removeClass",this).call(this,e,this.transform("class",n))}},{key:"hasCondition",value:function(){return null!==this._hasCondition||(this._hasCondition=f.hasCondition(this.component)),this._hasCondition}},{key:"conditionallyVisible",value:function(e,n){return(e=e||this.root
vendor: 11,542 bytes, line 1
1Value,n=n||this.data,this.builderMode||this.previewMode||!this.hasCondition())?!this.component.hidden:(e=e||(this.root?this.root.data:{}),this.checkCondition(n,e))}},{key:"checkCondition",value:function(e,n){return f.checkCondition(this.component,e||this.data,n||this.rootValue,this.root?this.root._form:{},this)}},{key:"checkComponentConditions",value:function(e,n,r){e=e||this.rootValue,n=n||{},r=r||this.data,!this.builderMode&!this.previewMode&&this.fieldLogic(e,r)&&this.redraw();var o=this.conditionallyVisible(e,r);return this.visible!==o&&(this.visible=o),o}},{key:"checkConditions",value:function(e,n,r){return e=e||this.rootValue,n=n||{},r=r||this.data,this.checkComponentConditions(e,n,r)}},{key:"logic",get:function(){return this.component.logic||[]}},{key:"fieldLogic",value:function(e,n){var r=this;e=e||this.rootValue,n=n||this.data;var o=this.logic;if(0!==o.length){var i=(0,f.fastCloneDeep)(this.originalComponent),a=o.reduce(function(o,a){var l=f.checkTrigger(i,a.trigger,n,e,r.root?r.root._form:{},r);return!!l&&r.applyActions(i,a.actions,l,n,e)||o},!1);if(!u.default.isEqual(this.component,i)){this.component=i,a=!0;var l=this.shouldDisabled;this.disabled!==l&&(this.disabled=l)}return a}}},{key:"isIE",value:function(){if("undefined"==typeof window)return!1;var e=window.navigator.userAgent,n=e.indexOf("MSIE ");if(n>0)return parseInt(e.substring(n+5,e.indexOf(".",n)),10);if(e.indexOf("Trident/")>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var o=e.indexOf("Edge/");return o>0&&parseInt(e.substring(o+5,e.indexOf(".",o)),10)}},{key:"defineActionValue",value:function(e,n){return this.evaluate(e.value,n,"value")}},{key:"applyActions",value:function(e,n,r,o,i){var a=this;return i=i||this.rootValue,o=o||this.data,n.reduce(function(n,l){switch(l.type){case"property":f.setActionProperty(e,l,r,o,i,a);var s=l.property.value;u.default.isEqual(u.default.get(a.component,s),u.default.get(e,s))||(n=!0);break;case"value":var c=a.getValue(),d=a.defineActionValue(l,{value:u.default.clone(c),data:i,row:o,component:e,result:r});u.default.isEqual(c,d)||a.component.clearOnHide&&!a.visible||(a.setValue(d),a.viewOnly&&(a.dataValue=d),n=!0);break;case"mergeComponentSchema":var p=a.evaluate(l.schemaDefinition,{value:u.default.clone(a.getValue()),data:i,row:o,component:e,result:r},"schema");u.default.assign(e,p),u.default.isEqual(a.component,e)||(n=!0);break;case"customAction":var h=a.getValue(),m=a.evaluate(l.customAction,{value:u.default.clone(h),data:i,row:o,input:h,component:e,result:r},"value");u.default.isEqual(h,m)||a.component.clearOnHide&&!a.visible||(a.setValue(m),a.viewOnly&&(a.dataValue=m),n=!0)}return n},!1)}},{key:"addInputError",value:function(e,n,r){this.addMessages(e),this.setErrorClasses(r,n,!!e)}},{key:"removeInputError",value:function(e){this.setErrorClasses(e,!0,!1)}},{key:"addMessages",value:function(e){var n=this;e&&("string"==typeof e&&(e={messages:e,level:"error"}),Array.isArray(e)||(e=[e]),e=u.default.uniqBy(e,function(e){return e.message}),this.refs.messageContainer&&this.setContent(this.refs.messageContainer,e.map(function(e){return e.message&&"string"==typeof e.message&&(e.message=e.message.replaceAll("<","<").replaceAll(">",">")),n.renderTemplate("message",e)}).join("")))}},{key:"setErrorClasses",value:function(e,n,r,o){var i=this,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.element;this.clearErrorClasses(),e.forEach(function(e){i.setElementInvalid(i.performInputMapping(e),!1)}),this.setInputWidgetErrorClasses(e,r),r&&(e.forEach(function(e){i.setElementInvalid(i.performInputMapping(e),!0)}),n&&this.options.highlightErrors?this.addClass(a,this.options.componentErrorClass):this.addClass(a,"has-error")),o&&this.addClass(a,"has-message")}},{key:"setElementInvalid",value:function(e,n){e&&(n?this.addClass(e,"is-invalid"):this.removeClass(e,"is-invalid"),e.setAttribute("aria-invalid",n?"true":"false"))}},{key:"clearOnHide",value:function(){(!this.rootPristine||this.options.server||(0,f.isInsideScopingComponent)(this))&&!1!==this.component.clearOnHide&&!this.options.readOnly&&!this.options.showHiddenFields&&(this.visible?!this.hasValue()&&this.shouldAddDefaultValue&&this.setValue(this.defaultValue,{noUpdateEvent:!0}):this.deleteValue())}},{key:"triggerRootChange",value:function(){var e,n;this.options.onChange?(e=this.options).onChange.apply(e,arguments):this.root&&(n=this.root).triggerChange.apply(n,arguments)}},{key:"onChange",value:function(e,n){(e=e||{}).modified&&(e.noPristineChangeOnModified||(this.pristine=!1),this.addClass(this.getElement(),"formio-modified")),"blur"!==this.component.validateOn||this.errors.length||(e.noValidate=!0),this.component.onChange&&this.evaluate(this.component.onChange,{flags:e});var r={instance:this,component:this.component,value:this.dataValue,flags:e};this.emit("componentChange",r);var o=!1;return e.modified&&(o=!0,delete e.modified),n||this.triggerRootChange(e,r,o),r}},{key:"wysiwygDefault",get:function(){return{quill:{theme:"snow",placeholder:this.t(this.component.placeholder,{_userInput:!0}),modules:{toolbar:[[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{font:[]}],["bold","italic","underline","strike",{script:"sub"},{script:"super"},"clean"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["blockquote","code-block"],["link","image","video","formula","source"]]}},ace:{theme:"ace/theme/xcode",maxLines:12,minLines:12,tabSize:2,mode:"ace/mode/javascript",placeholder:this.t(this.component.placeholder,{_userInput:!0})},ckeditor:{image:{toolbar:["imageTextAlternative","|","imageStyle:full","imageStyle:alignLeft","imageStyle:alignCenter","imageStyle:alignRight"],styles:["full","alignLeft","alignCenter","alignRight"]},extraPlugins:[]},default:{}}}},{key:"addCKE",value:function(e,n,r){return(n=u.default.isEmpty(n)?{}:n).base64Upload=!this.component.isUploadEnabled,n.mediaEmbed={previewsInData:!0},n=u.default.merge(this.wysiwygDefault.ckeditor,u.default.get(this.options,"editors.ckeditor.settings",{}),n),this.component.isUploadEnabled&&n.extraPlugins.push((0,v.getFormioUploadAdapterPlugin)(this.fileService,this)),c.GlobalFormio.requireLibrary("ckeditor",T?"CKEDITOR":"ClassicEditor",u.default.get(this.options,"editors.ckeditor.src","".concat(c.GlobalFormio.cdn.ckeditor,"/ckeditor.js")),!0).then(function(){if(!e.parentNode)return a.default.reject();if(!T)return ClassicEditor.create(e,n).then(function(e){return e.model.document.on("change",function(){return r(e.data.get())}),e});var o=CKEDITOR.replace(e);return o.on("change",function(){return r(o.getData())}),a.default.resolve(o)})}},{key:"addQuill",value:function(e,n,r){var o=this;return n=u.default.isEmpty(n)?this.wysiwygDefault.quill:n,n=O(O({},n=u.default.merge(this.wysiwygDefault.quill,u.default.get(this.options,"editors.quill.settings",{}),n)),{},{modules:O({table:!0},n.modules)}),c.GlobalFormio.requireLibrary("quill-css-".concat(n.theme),"Quill",[{type:"styles",src:"".concat(c.GlobalFormio.cdn.quill,"/quill.").concat(n.theme,".css")}],!0),c.GlobalFormio.requireLibrary("quill","Quill",u.default.get(this.options,"editors.quill.src","".concat(c.GlobalFormio.cdn.quill,"/quill.min.js")),!0).then(function(){return c.GlobalFormio.requireLibrary("quill-table","Quill","".concat(c.GlobalFormio.cdn.baseUrl,"/quill/quill-table.js"),!0).then(function(){if(!e.parentNode)return a.default.reject();o.quill=new Quill(e,T?O(O({},n),{},{modules:{}}):n);var i=document.createElement("textarea");i.setAttribute("class","quill-source-code"),o.quill.addContainer("ql-custom").appendChild(i);var l=e.parentNode.querySelector(".ql-source");l&&o.addEventListener(l,"click",function(e){e.preventDefault(),"inherit"===i.style.display&&o.quill.setContents(o.quill.clipboard.convert({html:i.value})),i.style.display="none"===i.style.display?"inherit":"none"}),o.addEventListener(e,"click",function(){return o.quill.focus()});for(var u=document.querySelectorAll(".ql-formats > button"),s=0;s<u.length;s++)u[s].setAttribute("tabindex","-1");return o.quill.on("text-change",function(){i.value=o.quill.root.innerHTML,r(i)}),o.quill})})}},{key:"shouldSanitizeValue",get:function(){var e;return(null===(e=this.options)||void 0===e?void 0:e.sanitize)!==!1}},{key:"addAce",value:function(e,n,r){if(!n||"snow"===n.theme){var o=n?n.mode:"";n={},o&&(n.mode=o)}return n=u.default.merge(this.wysiwygDefault.ace,u.default.get(this.options,"editors.ace.settings",{}),n||{}),c.GlobalFormio.requireLibrary("ace","ace",u.default.get(this.options,"editors.ace.src","".concat(c.GlobalFormio.cdn.ace,"/ace.js")),!0).then(function(o){return(o=o.edit(e)).removeAllListeners("change"),o.setOptions(n),o.getSession().setMode(n.mode),o.on("change",function(){return r(o.getValue())}),n.isUseWorkerDisabled&&o.session.setUseWorker(!1),o})}},{key:"tree",get:function(){return this.component.tree||!1}},{key:"emptyValue",get:function(){return null}},{key:"hasValue",value:function(e){return!u.default.isUndefined(u.default.get(e||this.data,this.key))}},{key:"rootValue",get:function(){return this.root?this.root.data:this.data}},{key:"rootPristine",get:function(){return u.default.get(this,"root.pristine",!1)}},{key:"dataValue",get:function(){if(!this.key||!this.visible&&this.component.clearOnHide&&!this.rootPristine)return this.emptyValue;if(!this.hasValue()&&this.shouldAddDefaultValue){var e=this.component.multiple?[]:this.emptyValue;return this.rootPristine||(this.dataValue=e),e}return u.default.get(this._data,this.key)},set:function(e){if(this.allowData&&this.key&&(this.visible||!this.component.clearOnHide||this.rootPristine)){if(null!=e&&(e=this.hook("setDataValue",e,this.key,this._data)),null==e){this.unset();return}u.default.set(this._data,this.key,e)}}},{key:"splice",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.hasValue()){var r=this.dataValue||[];u.default.isArray(r)&&r.hasOwnProperty(e)&&(r.splice(e,1),this.dataValue=r,this.triggerChange(n))}}},{key:"unset",value:function(){u.default.unset(this._data,this.key)}},{key:"deleteValue",value:function(){this.setValue(null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}},{key:"getCustomDefaultValue",value:function(e){return this.component.customDefaultValue&&!this.options.preview&&(e=this.evaluate(this.component.customDefaultValue,{value:""},"value")),e}},{key:"shouldAddDefaultValue",get:function(){return!this.options.noDefaults||this.component.defaultValue&&!this.isEmpty(this.component.defaultValue)||this.component.customDefaultValue}},{key:"defaultValue",get:function(){var e=this,n=this.emptyValue;this.component.defaultValue&&(n=this.component.defaultValue),n=this.getCustomDefaultValue(n);var r=function(n){if("string"==typeof n){var r=e.placeholderChar;n=(0,i.conformToMask)(n,e.defaultMask,{placeholderChar:r}).conformedValue,f.matchInputMask(n,e.defaultMask)||(n="")}else n="";return n};return this.defaultMask&&(n=Array.isArray(n)?n.map(r):r(n)),u.default.cloneDeep(n)}},{key:"getValue",value:function(){if(!this.hasInput||this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var e=[];for(var n in this.refs.input)if(this.refs.input.hasOwnProperty(n)){if(!this.component.multiple)return this.getValueAt(n);e.push(this.getValueAt(n))}return 0!==e.length||this.component.multiple?e:""}},{key:"getValueAt",value:function(e){var n=this.performInputMapping(this.refs.input[e]);return n?n.value:void 0}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
vendor: 4,380 bytes, line 1
1,r=this.updateValue(e,n);if(e=this.dataValue,!this.hasInput)return r;var o=Array.isArray(e),i=this.refs.fileLink||this.refs.input;if(o&&Array.isArray(this.defaultValue)&&this.refs.hasOwnProperty("input")&&i&&i.length!==e.length&&this.visible&&this.redraw(),this.isHtmlRenderMode()&&n&&n.fromSubmission&&r)return this.redraw(),r;for(var a in this.refs.input)this.refs.input.hasOwnProperty(a)&&this.setValueAt(a,o?e[a]:e,n);return r}},{key:"setValueAt",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r.noDefault||null!=n||this.component.multiple||(n=this.defaultValue);var o=this.performInputMapping(this.refs.input[e]),i=this.refs.valueMaskInput;null!=i&&i.mask&&i.mask.textMaskInputElement.update(n),o.mask?o.mask.textMaskInputElement.update(n):o.widget&&o.widget.setValue?o.widget.setValue(n):o.value=n}},{key:"hasSetValue",get:function(){return this.hasValue()&&!this.isEmpty(this.dataValue)}},{key:"setDefaultValue",value:function(){if(this.defaultValue&&this.shouldAddDefaultValue){var e=this.component.multiple&&!this.dataValue.length?[]:this.defaultValue;this.setValue(e,{noUpdateEvent:!0})}}},{key:"restoreValue",value:function(){this.hasSetValue?this.setValue(this.dataValue,{noUpdateEvent:!0}):this.setDefaultValue()}},{key:"normalizeValue",value:function(e){return this.component.multiple&&!Array.isArray(e)&&(e=e?[e]:[]),e}},{key:"updateComponentValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.resetValue||null!=e?e:this.getValue();r=this.normalizeValue(r,n);var o=this.dataValue,i=void 0!==r&&this.hasChanged(r,o);return i&&(this.dataValue=r,i=this.dataValue!==o,this.updateOnChange(n,i)),this.componentModal&&n&&n.fromSubmission&&this.componentModal.setValue(e),i}},{key:"updateValue",value:function(){return this.updateComponentValue.apply(this,arguments)}},{key:"getIcon",value:function(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"icon";return this.renderTemplate("icon",{className:this.iconClass(e),ref:o,styles:r,content:n})}},{key:"resetValue",value:function(){this.unset(),this.setValue(this.emptyValue,{noUpdateEvent:!0,noValidate:!0,resetValue:!0})}},{key:"hasChanged",value:function(e,n){return!(null==e&&(null==n||this.isEmpty(n)))&&(null!=e&&!!this.allowData&&!this.hasValue()||!u.default.isEqual(e,n))}},{key:"updateOnChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!e.noUpdateEvent&&!!n&&(this.triggerChange(e),!0)}},{key:"convertNumberOrBoolToString",value:function(e){return"number"==typeof e||"boolean"==typeof e?e.toString():e}},{key:"doValueCalculation",value:function(e,n,r){var o;return this.evaluate(this.component.calculateValue,{value:e,data:n,row:r||this.data,submission:(null===(o=this.root)||void 0===o?void 0:o._submission)||{data:this.rootValue}},"value")}},{key:"calculateComponentValue",value:function(e,n,r){if(u.default.isUndefined(u.default.get(this,"root.data")))return!1;var o=this.component.clearOnHide,i=!this.visible&&o,a=u.default.get(this.component,"allowCalculateOverride",!1);if(this.options.readOnly&&!this.options.pdf&&!this.component.calculateValue||!(this.component.calculateValue||this.component.calculateValueVariable)||i||this.options.server&&!this.component.calculateServer||n.dataSourceInitialLoading&&a)return!1;var l=this.dataValue,s=this.doValueCalculation(l,e,r,n);if(this.options.readOnly&&l&&!s)return!1;u.default.isNil(s)&&(s=this.emptyValue);var c=!u.default.isEqual(l,s);if(a){var f=n.fromSubmission&&!0===this.component.persistent;if(this.isEmpty(l))this.calculationLocked=!1;else if(this.calculationLocked||f)return this.calculationLocked=!0,!1;var d=void 0===this.calculatedValue;d&&(this.calculatedValue=null);var p=this.normalizeValue(this.convertNumberOrBoolToString(s)),h=this.normalizeValue(this.convertNumberOrBoolToString(this.calculatedValue)),m=this.normalizeValue(this.convertNumberOrBoolToString(l)),y=!u.default.isEqual(h,p),v=!u.default.isEqual(m,h);if(y&&v&&!d||h&&v&&!y||n.isReordered||!y)return!1;if(f)return this.calculatedValue=s,!1;if(d&&!this.isEmpty(l)&&c&&y)return!0}return this.calculatedValue=s,!!c&&(n.noPristineChangeOnModified||(this.pristine=!1),n.triggeredComponentId=this.id,this.setValue(s,n))}},{key:"calculateValue",value:function(e,n,r){return e=e||this.root
1Value,n=n||{},r=r||this.data,this.calculateComponentValue(e,n,r)}},{key:"label",get:function(){return this.component.label},set:function(e){this.component.label=e,this.labelElement&&(this.labelElement.innerText=e)}},{key:"getRoot",value:function(){return this.root}},{key:"invalidMessage",value:function(e,n,r,o){return r||this.checkCondition(o,e)?this.invalid?this.invalid:this.hasInput&&(n||!this.pristine)?u.default.map(d.default.checkComponent(this,e),"message").join("\n\n"):"":""}},{key:"isValid",value:function(e,n){return!this.invalidMessage(e,n)}},{key:"setComponentValidity",value:function(e,n,r){var o=!!e.filter(function(e){return"error"===e.level&&!e.fromServer}).length;return e.length&&(!r||this.error)&&(!this.isEmpty(this.defaultValue)||n||!this.pristine)?this.setCustomValidity(e,n):r||this.setCustomValidity(""),!o}},{key:"checkComponentValidity",value:function(e,n,r){var o,i=this,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e=e||this.rootValue,r=r||this.data;var u=l.async,s=void 0!==u&&u,c=l.silentCheck,f=void 0!==c&&c;if(this.shouldSkipValidation(e,n,r))return this.setCustomValidity(""),!s||a.default.resolve(!0);var p=d.default.checkComponent(this,e,r,!0,s),h=p;return null!==(o=this.serverErrors)&&void 0!==o&&o.length&&(h=p.concat(this.serverErrors)),s?h.then(function(e){return i.setComponentValidity(e,n,f)}):this.setComponentValidity(h,n,f)}}
1,{key:"checkValidity",value:function(e,n,r,o){e=e||this.rootValue,r=r||this.data;var i=this.checkComponentValidity(e,n,r,{silentCheck:o});return this.checkModal(),i}},{key:"checkAsyncValidity",value:function(e,n,r,o){return a.default.resolve(this.checkComponentValidity(e,n,r,{async:!0,silentCheck:o}))}},{key:"checkData",value:function(e,n,r){if(e=e||this.rootValue,n=n||{},r=r||this.data,this.resetCaches(),n.fromBlur||this.checkRefreshOn(n.changes,n),n.noCheck)return!0;if(this.checkComponentConditions(e,n,r),this.id!==n.triggeredComponentId&&this.calculateComponentValue(e,n,r),n.noValidate&&!n.validateOnInit&&!n.fromIframe)return n.fromSubmission&&this.rootPristine&&this.pristine&&this.error&&n.changed&&this.checkComponentValidity(e,!!this.options.alwaysDirty,r,!0),!0;var o=!1;if((this.options.alwaysDirty||n.dirty)&&(o=!0),n.fromSubmission&&this.hasValue(e)&&(o=!0),this.setDirty(o),"blur"===this.component.validateOn&&n.fromSubmission)return!0;var i=this.checkComponentValidity(e,o,r,n);return this.checkModal(),i}},{key:"checkModal",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.component.modalEdit&&this.componentModal&&(n&&!e?this.setErrorClasses([this.refs.openModal],n,!e,!!this.errors.length,this.refs.openModalWrapper):this.clearErrorClasses(this.refs.openModalWrapper))}},{key:"validationValue",get:function(){return this.dataValue}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue,n=!!u.default.isArray(e)&&1===e.length&&u.default.isEqual(e[0],this.emptyValue);return null==e||0===e.length||u.default.isEqual(e,this.emptyValue)||n}},{key:"isEqual",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.dataValue;return this.isEmpty(e)&&this.isEmpty(n)||u.default.isEqual(e,n)}},{key:"validateMultiple",value:function(){return!0}},{key:"errors",get:function(){return this.error?[this.error]:[]}},{key:"clearErrorClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.element;this.removeClass(e,this.options.componentErrorClass),this.removeClass(e,"alert alert-danger"),this.removeClass(e,"has-error"),this.removeClass(e,"has-message")}},{key:"setInputWidgetErrorClasses",value:function(e,n){this.isInputComponent&&this.component.widget&&null!=e&&e.length&&e.forEach(function(e){null!=e&&e.widget&&e.widget.setErrorClasses&&e.widget.setErrorClasses(n)})}},{key:"addFocusBlurEvents",value:function(e){var n=this;this.addEventListener(e,"focus",function(){n.root.focusedComponent!==n?(n.root.pendingBlur&&n.root.pendingBlur(),n.root.focusedComponent=n,n.emit("focus",n)):n.root.focusedComponent===n&&n.root.pendingBlur&&(n.root.pendingBlur.cancel(),n.root.pendingBlur=null)}),this.addEventListener(e,"blur",function(){n.root.pendingBlur=f.delay(function(){n.emit("blur",n),"blur"===n.component.validateOn&&n.root.triggerChange({fromBlur:!0},{instance:n,component:n.component,value:n.dataValue,flags:{fromBlur:!0}}),n.root.focusedComponent=null,n.root.pendingBlur=null})})}},{key:"setCustomValidity",value:function(e,n,r){var o=this,i=this.isInputComponent?this.refs.input||[]:null;"string"==typeof e&&e&&(e={level:"error",message:e}),Array.isArray(e)||(e=e?[e]:[]);var a=!!e.filter(function(e){return"error"===e.level}).length,l=i;if(this.component.multiple){var u=Array.from(i);u.forEach(function(e){o.setElementInvalid(o.performInputMapping(e),!1)}),this.setInputWidgetErrorClasses(u,!1),l=u.filter(function(n){var r,o;return null===(r=(o=e).some)||void 0===r?void 0:r.call(o,function(e){var r;return(null==e?void 0:null===(r=e.context)||void 0===r?void 0:r.input)===n})})}e.length?(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.error={component:this.component,message:e[0].message,messages:e,external:!!r},this.emit("componentError",this.error),this.addMessages(e,n,l),l&&this.setErrorClasses(l,n,a,!!e.length)):(!this.error||this.error&&!!r===this.error.external)&&(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.refs.modalMessageContainer&&this.empty(this.refs.modalMessageContainer),this.error=null,l&&this.setErrorClasses(l,n,a,!!e.length),this.clearErrorClasses())}},{key:"isValueHidden",value:function(){return!!((!this.component.protected||!this.root.editing)&&this.root&&this.root.hasOwnProperty("editing"))&&!!this.root&&!!this.root.editing&&(this.component.protected||!this.component.persistent||"client-only"===this.component.persistent)}},{key:"shouldSkipValidation",value:function(e,n,r){var o=this;return[function(){return o.component.validate.custom&&!o.dataValue&&!o.component.validate.required},function(){return o.options.readOnly},function(){return!o.hasInput},function(){return o.isValueHidden()},function(){return!o.visible},function(){return!o.checkCondition(r,e)}].some(function(e){return e()})}},{key:"whenReady",value:function(){return console.warn("The whenReady() method has been deprecated. Please use the dataReady property instead."),this.dataReady}},{key:"dataReady",get:function(){return a.default.resolve()}},{key:"asString",value:function(e){return(Array.isArray(e=e||this.getValue())?e:[e]).map(u.default.toString).join(", ")}},{key:"disabled",get:function(){return this._disabled||this.parentDisabled},set:function(e){this._disabled=e}},{key:"setDisabled",value:function(e,n){e&&(e.disabled=n,n?e.setAttribute("disabled","disabled"):e.removeAttribute("disabled"))}}
vendor: 5,395 bytes, line 1
1,{key:"setLoading",value:function(e,n){e&&e.loading!==n&&(e.loading=n,!e.loader&&n&&(e.loader=this.ce("i",{class:"".concat(this.iconClass("refresh",!0)," button-icon-right")})),e.loader&&(n?this.appendTo(e.loader,e):this.removeChildFrom(e.loader,e)))}},{key:"selectOptions",value:function(e,n,r,o){var i=this;u.default.each(r,function(n){var r={value:n.value};void 0!==o&&n.value===o&&(r.selected="selected");var a=i.ce("option",r);a.appendChild(i.text(n.label)),e.appendChild(a)})}},{key:"setSelectValue",value:function(e,n){var r=e.querySelectorAll("option");u.default.each(r,function(e){e.value===n?e.setAttribute("selected","selected"):e.removeAttribute("selected")}),e.onchange&&e.onchange(),e.onselect&&e.onselect()}},{key:"getRelativePath",value:function(e){var n=".".concat(this.key),r=this.isInputComponent?this.path:this.path.slice(0).replace(n,"");return e.replace(r,"")}},{key:"clear",value:function(){this.detach(),this.empty(this.getElement())}},{key:"append",value:function(e){this.appendTo(e,this.element)}},{key:"prepend",value:function(e){this.prependTo(e,this.element)}},{key:"removeChild",value:function(e){this.removeChildFrom(e,this.element)}},{key:"detachLogic",value:function(){var e=this;this.logic.forEach(function(n){if("event"===n.trigger.type){var r=e.interpolate(n.trigger.event);e.off(r)}})}},{key:"attachLogic",value:function(){var e=this;this.builderMode||this.logic.forEach(function(n){if("event"===n.trigger.type){var r=e.interpolate(n.trigger.event);e.on(r,function(){for(var r=(0,f.fastCloneDeep)(e.originalComponent),o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];if(e.applyActions(r,n.actions,i)&&!u.default.isEqual(e.component,r)){e.component=r;var l=e.conditionallyVisible(null,null),s=e.shouldDisabled;e.visible!==l&&(e.visible=l),e.disabled!==s&&(e.disabled=s),e.redraw()}},!0)}})}},{key:"elementInfo",value:function(){var e={name:this.options.name,type:this.component.inputType||"text",class:"form-control",lang:this.options.language};return this.component.placeholder&&(e.placeholder=this.t(this.component.placeholder,{_userInput:!0})),this.component.tabindex&&(e.tabindex=this.component.tabindex),this.disabled&&(e.disabled="disabled"),u.default.defaults(e,this.component.attributes),{type:"input",component:this.component,changeEvent:"change",attr:e}}},{key:"autofocus",value:function(){var e=this;!this.component.autofocus||this.builderMode||this.options.preview||this.on("render",function(){return e.focus()},!0)}},{key:"scrollIntoView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.element;if(e){var n=e.getBoundingClientRect(),r=n.left,o=n.top;window.scrollTo(r+window.scrollX,o+window.scrollY)}}},{key:"focus",value:function(e){var n;if("beforeFocus"in this.parent&&this.parent.beforeFocus(this),null!==(n=this.refs.input)&&void 0!==n&&n.length){var r,o="number"==typeof e&&this.refs.input[e]?this.refs.input[e]:this.refs.input[this.refs.input.length-1];if((null===(r=this.component.widget)||void 0===r?void 0:r.type)==="calendar"){var i=o.nextSibling;i&&i.focus()}else o.focus()}this.refs.openModal&&this.refs.openModal.focus(),this.parent.refs.openModal&&this.parent.refs.openModal.focus()}},{key:"fileService",get:function(){if(this.options.fileService)return this.options.fileService;if(this.options.formio)return this.options.formio;if(this.root&&this.root.formio)return this.root.formio;var e=new c.GlobalFormio;return this.root&&this.root._form&&this.root._form._id&&(e.formUrl="".concat(e.projectUrl,"/form/").concat(this.root._form._id)),e}},{key:"resetCaches",value:function(){}},{key:"previewMode",get:function(){return!1}}],p=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return u.default.merge.apply(u.default,[{input:!0,key:"",placeholder:"",prefix:"",customClass:"",suffix:"",multiple:!1,defaultValue:null,protected:!1,unique:!1,persistent:!0,hidden:!1,clearOnHide:!0,refreshOn:"",redrawOn:"",tableView:!1,modalEdit:!1,label:"",dataGridLabel:!1,labelPosition:"top",description:"",errorLabel:"",tooltip:"",hideLabel:!1,tabindex:"",disabled:!1,autofocus:!1,dbIndex:!1,customDefaultValue:"",calculateValue:"",calculateServer:!1,widget:null,attributes:{},validateOn:"change",validate:{required:!1,custom:"",customPrivate:!1,strictDateValidation:!1,multiple:!1,unique:!1},conditional:{show:null,when:null,eq:""},overlay:{style:"",left:"",top:"",width:"",height:""},allowCalculateOverride:!1,encrypted:!1,showCharCount:!1,showWordCount:!1,properties:{},allowMultipleMasks:!1,addons:[]}].concat(n))}},{key:"Validator",get:function(){return d.default}},{key:"tableView",value:function(e,n){}},{key:"serverConditionSettings",get:function(){return{operators:["isEqual","isNotEqual","isEmpty","isNotEmpty"],valueComponent:function(){return{type:"textfield"}}}}}],r&&E(w.prototype,r),p&&E(w,p),Object.defineProperty(w,"prototype",{writable:!1}),w}(p.default);n.default=I,I.externalLibraries={},I.requireLibrary=function(e,n,r,o){if(!I.externalLibraries.hasOwnProperty(e)){I.externalLibraries[e]={},I.externalLibraries[e].ready=new a.default(function(n,r){I.externalLibraries[e].resolve=n,I.externalLibraries[e].reject=r});var i="".concat(e,"Callback");o||window[i]||(window[i]=(function(){this.resolve()}).bind(I.externalLibraries[e]));var l=u.default.get(window,n);l?I.externalLibraries[e].resolve(l):((r=Array.isArray(r)?r:[r]).forEac
vendor: 8,686 bytes, line 1
1h(function(e){var n={},r="";switch("string"==typeof e&&(e={type:"script",src:e}),e.type){case"script":r="script",n={src:e.src,type:"text/javascript",defer:!0,async:!0};break;case"styles":r="link",n={href:e.src,rel:"stylesheet"}}var o=document.createElement(r);for(var i in n)o.setAttribute(i,n[i]);document.getElementsByTagName("head")[0].appendChild(o)}),o&&setTimeout(function r(){var o=u.default.get(window,n);o?I.externalLibraries[e].resolve(o):setTimeout(r,200)},200))}return I.externalLibraries[e].ready},I.libraryReady=function(e){return I.externalLibraries.hasOwnProperty(e)&&I.externalLibraries[e].ready?I.externalLibraries[e].ready:a.default.reject("".concat(e," library was not required."))}},22272:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{weight:0,type:"textfield",input:!0,key:"key",label:"Property Name",tooltip:"The name of this field in the API endpoint.",validate:{pattern:"(\\w|\\w[\\w-.]*\\w)",patternMessage:"The property name must only contain alphanumeric characters, underscores, dots and dashes and should not be ended by dash or dot.",required:!0}},{weight:100,type:"tags",input:!0,label:"Field Tags",storeas:"array",tooltip:"Tag the field for use in custom logic.",key:"tags"},{weight:200,type:"datamap",label:"Custom Properties",tooltip:"This allows you to configure any custom properties for this component.",key:"properties",valueComponent:{type:"textfield",key:"value",label:"Value",placeholder:"Value",input:!0}}]},47157:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=r(93174))&&o.__esModule?o:{default:o},a=r(9494),l=[{type:"panel",title:"Simple",key:"simple-conditional",theme:"default",weight:105,components:[{type:"select",input:!0,label:"This component should Display:",key:"conditional.show",dataSrc:"values",data:{values:[{label:"True",value:"true"},{label:"False",value:"false"}]}},{type:"select",input:!0,label:"When the form component:",key:"conditional.when",dataSrc:"custom",valueProperty:"value",data:{custom:function(e){return(0,a.getContextComponents)(e)}}},{type:"textfield",input:!0,label:"Has the value:",key:"conditional.eq"}]},i.default.javaScriptValue("Advanced Conditions","customConditional","conditional.json",110,"<p>You must assign the <strong>show</strong> variable a boolean result.</p><p><strong>Note: Advanced Conditional logic will override the results of the Simple Conditional logic.</strong></p><h5>Example</h5><pre>show = !!data.showMe;</pre>",'<p><a href="http://formio.github.io/formio.js/app/examples/conditions.html" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>')];n.default=l},97519:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=r(93174))&&o.__esModule?o:{default:o},a=[{weight:0,type:"checkbox",label:"Multiple Values",tooltip:"Allows multiple values to be entered for this field.",key:"multiple",input:!0},{type:"textfield",label:"Default Value",key:"defaultValue",weight:5,placeholder:"Default Value",tooltip:"The Default Value will be the value for this field, before user interaction. Having a default value will override the placeholder text.",input:!0},{weight:30,type:"radio",label:"Persistent",tooltip:"A persistent field will be stored in database when the form is submitted.",key:"persistent",input:!0,inline:!0,defaultValue:!0,values:[{label:"None",value:!1},{label:"Server",value:!0},{label:"Client",value:"client-only"}]},{weight:150,type:"checkbox",label:"Protected",tooltip:"A protected field will not be returned when queried via API.",key:"protected",input:!0},{type:"checkbox",input:!0,weight:200,key:"dbIndex",label:"Database Index",tooltip:"Set this field as an index within the database. Increases performance for submission queries."},{weight:400,type:"checkbox",label:"Encrypted",tooltip:"Encrypt this field on the server. This is two way encryption which is not suitable for passwords.",key:"encrypted",input:!0,logic:[{name:"disabled",trigger:{type:"javascript",javascript:"result = !instance.root.options.sac;"},actions:[{name:"disabled",type:"property",property:{label:"Disabled",value:"disabled",type:"boolean"},state:!0}]},{name:"disabledToolTip",trigger:{type:"javascript",javascript:"result = !instance.root.options.sac;"},actions:[{name:"addDisabledTooltip",type:"property",property:{label:"Tooltip",value:"tooltip",type:"string"},text:"Only available with Security Module. Contact [email protected] for more information."}]}]},{type:"select",input:!0,key:"redrawOn",label:"Redraw On",weight:600,tooltip:"Redraw this component if another component changes. This is useful if interpolating parts of the component like the label.",dataSrc:"custom",valueProperty:"value",data:{custom:function(e){var n=[];return n.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,function(r,o){r.key!==e.data.key&&n.push({label:r.label||r.key,value:o})}),n}},conditional:{json:{"!":[{var:"data.dataSrc"}]}}},{weight:700,type:"checkbox",label:"Clear Value When Hidden",key:"clearOnHide",defaultValue:!0,tooltip:"When a field is hidden, clear the value.",input:!0},i.default.javaScriptValue("Custom Default Value","customDefaultValue","customDefaultValue",1e3,'<p><h4>Example:</h4><pre>value = data.firstName + " " + data.lastName;</pre></p>','<p><h4>Example:</h4><pre>{"cat": [{"var": "data.firstName"}, " ", {"var": "data.lastName"}]}</pre>'),i.default.javaScriptValue("Calculated Value","calculateValue","calculateValue",1100,"<p><h4>Example:</h4><pre>value = data.a + data.b + data.c;</pre></p>",'<p><h4>Example:</h4><pre>{"+": [{"var": "data.a"}, {"var": "data.b"}, {"var": "data.c"}]}</pre><p><a href="http://formio.github.io/formio.js/app/examples/calculated.html" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>',"<tr><th>token</th><td>The decoded JWT token for the authenticated user.</td></tr>"),{type:"checkbox",input:!0,weight:1100,key:"calculateServer",label:"Calculate Value on server",tooltip:"Checking this will run the calculation on the server. This is useful if you wish to override the values submitted with the calculations performed on the server."},{type:"checkbox",input:!0,weight:1200,key:"allowCalculateOverride",label:"Allow Manual Override of Calculated Value",tooltip:"When checked, this will allow the user to manually override the calculated value."}];n.default=a},89030:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(17216),n.default=[{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field that will appear next to it.",validate:{required:!0},autofocus:!0},{type:"select",input:!0,key:"labelPosition",label:"Label Position",tooltip:"Position for the label for this field.",weight:20,defaultValue:"top",dataSrc:"values",data:{values:[{label:"Top",value:"top"},{label:"Left (Left-aligned)",value:"left-left"},{label:"Left (Right-aligned)",value:"left-right"},{label:"Right (Left-aligned)",value:"right-left"},{label:"Right (Right-aligned)",value:"right-right"},{label:"Bottom",value:"bottom"}]}},{type:"number",input:!0,key:"labelWidth",label:"Label Width",tooltip:"The width of label on line in percentages.",clearOnHide:!1,weight:30,placeholder:"30",suffix:"%",validate:{min:0,max:100},conditional:{json:{and:[{"!==":[{var:"data.labelPosition"},"top"]},{"!==":[{var:"data.labelPosition"},"bottom"]}]}}},{type:"number",input:!0,key:"labelMargin",label:"Label Margin",tooltip:"The width of label margin on line in percentages.",clearOnHide:!1,weight:30,placeholder:"3",suffix:"%",validate:{min:0,max:100},conditional:{json:{and:[{"!==":[{var:"data.labelPosition"},"top"]},{"!==":[{var:"data.labelPosition"},"bottom"]}]}}},{weight:100,type:"textfield",input:!0,key:"placeholder",label:"Placeholder",placeholder:"Placeholder",tooltip:"The placeholder text that will appear when this field is empty."},{weight:200,type:"textarea",input:!0,key:"description",label:"Description",placeholder:"Description for this field.",tooltip:"The description is text that will appear below the input field.",editor:"ace",as:"html",wysiwyg:{minLines:3,isUseWorkerDisabled:!0}},{weight:300,type:"textarea",input:!0,key:"tooltip",label:"Tooltip",placeholder:"To add a tooltip to this field, enter text here.",tooltip:"Adds a tooltip to the side of this field.",editor:"ace",as:"html",wysiwyg:{minLines:3,isUseWorkerDisabled:!0}},{weight:500,type:"textfield",input:!0,key:"customClass",label:"Custom CSS Class",placeholder:"Custom CSS Class",tooltip:"
1Custom CSS class to add to this component."},{weight:600,type:"textfield",input:!0,key:"tabindex",label:"Tab Index",placeholder:"0",tooltip:"Sets the tabindex attribute of this component to override the tab order of the form. See the <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex'>MDN documentation</a> on tabindex for more information."},{weight:1100,type:"checkbox",label:"Hidden",tooltip:"A hidden field is still a part of the form, but is hidden from view.",key:"hidden",input:!0},{weight:1200,type:"checkbox",label:"Hide Label",tooltip:"Hide the label (title, if no label) of this component. This allows you to show the label in the form builder, but not when it is rendered.",key:"hideLabel",input:!0},{weight:1350,type:"checkbox",label:"Initial Focus",tooltip:"Make this field the initially focused element on this form.",key:"autofocus",input:!0},{weight:1370,type:"checkbox",label:"Show Label in DataGrid",tooltip:"Show the label inside each row when in a Datagrid.",key:"dataGridLabel",input:!0,customConditional:function(e){var n,r;return null===(n=e.instance.options)||void 0===n?void 0:null===(r=n.flags)||void 0===r?void 0:r.inDataGrid}},{weight:1400,type:"checkbox",label:"Disabled",tooltip:"Disable the form input.",key:"disabled",input:!0},{weight:1500,type:"checkbox",label:"Table View",tooltip:"Shows this value within the table view of the submissions.",key:"tableView",input:!0},{weight:1600,type:"checkbox",label:"Modal Edit",tooltip:"Opens up a modal to edit the value of this component.",key:"modalEdit",input:!0}]},124:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{label:"HTML Attributes",type:"datamap",input:!0,key:"attributes",keyLabel:"Attribute Name",valueComponent:{type:"textfield",key:"value",label:"Attribute Value",input:!0},tooltip:"Provide a map of HTML attributes for component's input element (attributes provided by other component settings or other attributes generated by form.io take precedence over attributes in this grid)",addAnother:"Add Attribute"},{type:"panel",legend:"PDF Overlay",title:"PDF Overlay",key:"overlay",tooltip:"The settings inside apply only to the PDF forms.",weight:2e3,collapsible:!0,collapsed:!0,components:[{type:"textfield",input:!0,key:"overlay.style",label:"Style",placeholder:"",tooltip:"Custom styles that should be applied to this component when rendered in PDF."},{type:"textfield",input:!0,key:"overlay.page",label:"Page",placeholder:"",tooltip:"The PDF page to place this component."},{type:"textfield",input:!0,key:"overlay.left",label:"Left",placeholder:"",tooltip:"The left margin within a page to place this component."},{type:"textfield",input:!0,key:"overlay.top",label:"Top",placeholder:"",tooltip:"The top margin within a page to place this component."},{type:"textfield",input:!0,key:"overlay.width",label:"Width",placeholder:"",tooltip:"The width of the component (in pixels)."},{type:"textfield",input:!0,key:"overlay.height",label:"Height",placeholder:"",tooltip:"The height of the component (in pixels)."}]}]},29624:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(45343);var o,i=(o=r(93174))&&o.__esModule?o:{default:o},a=r(9494),l=[{weight:0,input:!0,label:"Advanced Logic",key:"logic",templates:{header:'<div class="row"> \n <div class="col-sm-6">\n <strong>{{ value.length }} {{ ctx.t("Advanced Logic Configured") }}</strong>\n </div>\n</div>',row:'<div class="row"> \n <div class="col-sm-6">\n <div>{{ row.name }} </div>\n </div>\n <div class="col-sm-2"> \n <div class="btn-group pull-right"> \n <button class="btn btn-default editRow">{{ ctx.t("Edit") }}</button> \n <button class="btn btn-danger removeRow">{{ ctx.t("Delete") }}</button> \n </div> \n </div> \n</div>',footer:""},type:"editgrid",addAnother:"Add Logic",saveRow:"Save Logic",components:[{weight:0,input:!0,inputType:"text",label:"Logic Name",key:"name",validate:{required:!0},type:"textfield"},{weight:10,key:"triggerPanel",input:!1,title:"Trigger",tableView:!1,components:[{weight:0,input:!0,tableView:!1,components:[{weight:0,input:!0,label:"Type",key:"type",tableView:!1,data:{values:[{value:"simple",label:"Simple"},{value:"javascript",label:"Javascript"},{value:"json",label:"JSON Logic"},{value:"event",label:"Event"}]},dataSrc:"values",template:"<span>{{ item.label }}</span>",type:"select"},{weight:10,label:"",key:"simple",type:"container",tableView:!1,customConditional:function(e){return"simple"===e.row.type},components:[{input:!0,key:"show",label:"Show",type:"hidden",tableView:!1,calculateValue:function(){return!0}},{type:"select",input:!0,label:"When the form component:",key:"when",dataSrc:"custom",valueProperty:"value",tableView:!1,data:{custom:function(e){return(0,a.getContextComponents)(e)}}}
vendor: 9,911 bytes, line 1
1,{type:"textfield",input:!0,label:"Has the value:",key:"eq",tableView:!1}]},{weight:10,type:"textarea",key:"javascript",rows:5,editor:"ace",as:"javascript",input:!0,tableView:!1,placeholder:"result = (data['mykey'] > 1);",description:'"row", "data", and "component" variables are available. Return "result".',customConditional:function(e){return"javascript"===e.row.type}},{weight:10,type:"textarea",key:"json",rows:5,editor:"ace",label:"JSON Logic",as:"json",input:!0,tableView:!1,placeholder:"{ ... }",description:'"row", "data", "component" and "_" variables are available. Return the result to be passed to the action if truthy.',customConditional:function(e){return"json"===e.row.type}},{weight:10,type:"textfield",key:"event",label:"Event Name",placeholder:"event",description:"The event that will trigger this logic. You can trigger events externally or via a button.",tableView:!1,customConditional:function(e){return"event"===e.row.type}}],key:"trigger",type:"container"}],type:"panel"},{weight:20,input:!0,label:"Actions",key:"actions",tableView:!1,templates:{header:'<div class="row"> \n <div class="col-sm-6"><strong>{{ value.length }} {{ ctx.t("actions") }}</strong></div>\n</div>',row:'<div class="row"> \n <div class="col-sm-6">\n <div>{{ row.name }} </div>\n </div>\n <div class="col-sm-2"> \n <div class="btn-group pull-right"> \n <button class="btn btn-default editRow">{{ ctx.t("Edit") }}</button> \n <button class="btn btn-danger removeRow">{{ ctx.t("Delete") }}</button> \n </div> \n </div> \n</div>',footer:""},type:"editgrid",addAnother:"Add Action",saveRow:"Save Action",components:[{weight:0,title:"Action",input:!1,key:"actionPanel",type:"panel",components:[{weight:0,input:!0,inputType:"text",label:"Action Name",key:"name",validate:{required:!0},type:"textfield"},{weight:10,input:!0,label:"Type",key:"type",data:{values:[{value:"property",label:"Property"},{value:"value",label:"Value"},{label:"Merge Component Schema",value:"mergeComponentSchema"},{label:"Custom Action",value:"customAction"}]},dataSrc:"values",template:"<span>{{ item.label }}</span>",type:"select"},{weight:20,type:"select",template:"<span>{{ item.label }}</span>",dataSrc:"json",tableView:!1,data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Prefix",value:"prefix",type:"string"},{label:"Suffix",value:"suffix",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"Input Mask",value:"inputMask",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"}]},key:"property",label:"Component Property",input:!0,customConditional:function(e){return"property"===e.row.type}},{weight:30,input:!0,label:"Set State",key:"state",tableView:!1,data:{values:[{label:"True",value:"true"},{label:"False",value:"false"}]},dataSrc:"values",template:"<span>{{ item.label }}</span>",type:"select",customConditional:function(e){var n=e.row;return"property"===n.type&&n.hasOwnProperty("property")&&"boolean"===n.property.type}},{weight:30,type:"textfield",key:"text",label:"Text",inputType:"text",input:!0,tableView:!1,description:'Can use templating with {{ data.myfield }}. "data", "row", "component" and "result" variables are available.',customConditional:function(e){var n=e.row;return"property"===n.type&&n.hasOwnProperty("property")&&"string"===n.property.type&&!n.property.component}},{weight:20,input:!0,label:"Value (Javascript)",key:"value",editor:"ace",as:"javascript",rows:5,placeholder:"value = data.myfield;",type:"textarea",tableView:!1,description:'"row", "data", "component", and "result" variables are available. Return the value.',customConditional:function(e){return"value"===e.row.type}},{weight:20,input:!0,label:"Schema Defenition",key:"schemaDefinition",editor:"ace",as:"javascript",rows:5,placeholder:"schema = { label: 'Updated' };",type:"textarea",tableView:!1,description:'"row", "data", "component", and "result" variables are available. Return the schema.',customConditional:function(e){return"mergeComponentSchema"===e.row.type}},Object.assign(i.default.logicVariablesTable("<tr><th>input</th><td>The value that was input into this component</td></tr>"),{customConditional:function(e){return"customAction"===e.row.type}}),{weight:20,input:!0,label:"Custom Action (Javascript)",key:"customAction",editor:"ace",rows:5,placeholder:"value = data.myfield;",type:"textarea",tableView:!1,customConditional:function(e){return"customAction"===e.row.type}}]}]}]}];n.default=l},56245:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(93174)),i=a(r(80993));function a(e){return e&&e.__esModule?e:{default:e}}var l=[{weight:10,type:"checkbox",label:"Required",tooltip:"A required field must be filled in before the form can be submitted.",key:"validate.required",input:!0},{weight:100,type:"checkbox",label:"Unique",tooltip:"Makes sure the data submitted for this field is unique, and has not been submitted before.",key:"unique",input:!0},{weight:0,type:"select",key:"validateOn",defaultValue:"change",input:!0,label:"Validate On",tooltip:"Determines when this component should trigger front-end validation.",dataSrc:"values",data:{values:[{label:"Change",value:"change"},{label:"Blur",value:"blur"}]}},{weight:190,type:"textfield",input:!0,key:"errorLabel",label:"Error Label",placeholder:"Error Label",tooltip:"The label for this field when an error occurs."},{weight:200,key:"validate.customMessage",label:"Custom Error Message",placeholder:"Custom Error Message",type:"textfield",tooltip:"Error message displayed if any error occurred.",input:!0},{type:"panel",title:"Custom Validation",collapsible:!0,collapsed:!0,style:{"margin-bottom":"10px"},key:"custom-validation-js",weight:300,customConditional:function(){return!i.default.noeval||i.default.protectedEval},components:[o.default.logicVariablesTable("<tr><th>input</th><td>The value that was input into this component</td></tr>"),{type:"textarea",key:"validate.custom",rows:5,editor:"ace",hideLabel:!0,as:"javascript",input:!0},{type:"htmlelement",tag:"div",content:"\n <small>\n <p>Enter custom validation code.</p>\n <p>You must assign the <strong>valid</strong> variable as either <strong>true</strong> or an error message if validation fails.</p>\n <h5>Example:</h5>\n <pre>valid = (input === 'Joe') ? true : 'Your name must be \"Joe\"';</pre>\n </small>"},{type:"well",components:[{weight:100,type:"checkbox",label:"Secret Validation",tooltip:"Check this if you wish to perform the validation ONLY on the server side. This keeps your validation logic private and secret.",description:"Check this if you wish to perform the validation ONLY on the server side. This keeps your validation logic private and secret.",key:"validate.customPrivate",input:!0}]}]},{type:"panel",title:"JSONLogic Validation",collapsible:!0,collapsed:!0,key:"json-validation-json",weight:400,components:[{type:"htmlelement",tag:"div",content:'<p>Execute custom logic using <a href="http://jsonlogic.com/" target="_blank" rel="noopener noreferrer">JSONLogic</a>.</p><h5>Example:</h5><pre>'+JSON.stringify({if:[{"===":[{var:"input"},"Bob"]},!0,"Your name must be 'Bob'!"]},null,2)+"</pre>"},{type:"textarea",key:"validate.json",hideLabel:!0,rows:5,editor:"ace",as:"json",input:!0}]},{type:"panel",title:"Custom Errors",collapsible:!0,collapsed:!0,key:"errors",weight:400,components:[{type:"textarea",key:"errors",hideLabel:!0,rows:5,editor:"ace",as:"json",input:!0},{type:"htmlelement",tag:"div",content:'\n <p>This allows you to set different custom error messages for different errors\n (in contrast to âCustom Error Messageâ, which only allows you to set one\n error message for all errors). E.g.</p>\n\n<pre>{\n "required": "{<span/>{ field }} is required. Try again.",\n "maxLength": "{<span/>{ field }} is too long. Try again."\n}</pre>\n\n <p>You can set the following keys (among others):</p>\n <ul>\n <li>r<span/>equired</li>\n <li>m<span/>in</li>\n <li>m<span/>ax</li>\n <li>m<span/>inLength</li>\n <li>m<span/>axLength</li>\n <li>m<span/>inWords</li>\n <li>m<span/>axWords</li>\n <li>i<span/>nvalid_email</li>\n <li>i<span/>nvalid_date</li>\n <li>i<span/>nvalid_day</li>\n <li>i<span/>nvalid_regex</li>\n <li>m<span/>ask</li>\n <li>p<span/>attern</li>\n <li>c<span/>ustom</li>\n </ul>\n\n <p>Depending on the error message some of the following template variables can be used in the script:</p>\n <ul>\n <li><code>{<span/>{ f<span/>ield }}</code> is replaced with the label of the field.</li>\n <li><code>{<span/>{ m<span/>in }}</code></li>\n <li><code>{<span/>{ m<span/>ax }}</code></li>\n <li><code>{<span/>{ l<span/>ength }}</code></li>\n <li><code>{<span/>{ p<span/>attern }}</code></li>\n <li><code>{<span/>{ m<span/>inDate }}</code></li>\n <li><code>{<span/>{ m<span/>axDate }}</code></li>\n <li><code>{<span/>{ m<span/>inYear }}</code></li>\n <li><code>{<span/>{ m<span/>axYear }}</code></li>\n <li><code>{<span/>{ r<span/>egex }}</code></li>\n </ul>\n '}]}];n.default=l},93174:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(35968),r(17223),r(92782);var o=a(r(76635)),i=a(r(80993));
1function a(e){return e&&e.__esModule?e:{default:e}}var l={sortAndFilterComponents:function(e){return o.default.filter(o.default.sortBy(e,"weight"),function(e){return!e.ignore})},unifyComponents:function(e,n){return e.key&&n.key?!e.skipMerge&&!n.skipMerge&&e.key===n.key&&(o.default.each(e,function(r,o){(e.overrideEditForm||!n.hasOwnProperty(o))&&(n[o]=r)}),o.default.each(n,function(r,o){(n.overrideEditForm||!e.hasOwnProperty(o))&&(e[o]=r)}),e.components&&(n.components=l.sortAndFilterComponents(o.default.unionWith(e.components,n.components,l.unifyComponents))),!0):o.default.isEqual(e,n)},logicVariablesTable:function(e){return{type:"htmlelement",tag:"div",content:'<p>The following variables are available in all scripts.</p><table class="table table-bordered table-condensed table-striped">'+(e=e||"")+'<tr><th>form</th><td>The complete form JSON object</td></tr><tr><th>submission</th><td>The complete submission object.</td></tr><tr><th>data</th><td>The complete submission data object.</td></tr><tr><th>row</th><td>Contextual "row" data, used within DataGrid, EditGrid, and Container components</td></tr><tr><th>component</th><td>The current component JSON</td></tr><tr><th>instance</th><td>The current component instance.</td></tr><tr><th>value</th><td>The current value of the component.</td></tr><tr><th>moment</th><td>The moment.js library for date manipulation.</td></tr><tr><th>_</th><td>An instance of <a href="https://lodash.com/docs/" target="_blank" rel="noopener noreferrer">Lodash</a>.</td></tr><tr><th>utils</th><td>An instance of the <a href="http://formio.github.io/formio.js/docs/identifiers.html#utils" target="_blank" rel="noopener noreferrer">FormioUtils</a> object.</td></tr><tr><th>util</th><td>An alias for "utils".</td></tr></table><br/>'}},javaScriptValue:function(e,n,r,o,a,l){var u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",s=arguments.length>7?arguments[7]:void 0,c=[this.logicVariablesTable(u),{type:"panel",title:"JavaScript",collapsible:!0,collapsed:!1,style:{"margin-bottom":"10px"},key:"".concat(n,"-js"),customConditional:function(){return!i.default.noeval||i.default.protectedEval},components:[{type:"textarea",key:n,rows:5,editor:"ace",hideLabel:!0,as:"javascript",input:!0},{type:"htmlelement",tag:"div",content:"<p>Enter custom javascript code.</p>".concat(a)}]},{type:"panel",title:"JSONLogic",collapsible:!0,collapsed:!0,key:"".concat(n,"-json"),components:[{type:"htmlelement",tag:"div",content:'<p>Execute custom logic using <a href="http://jsonlogic.com/" target="_blank" rel="noopener noreferrer">JSONLogic</a>.</p><p>Full <a href="https://lodash.com/docs" target="_blank" rel="noopener noreferrer">Lodash</a> support is provided using an "_" before each operation, such as <code>{"_sum": {var: "data.a"}}</code></p>'+l},{type:"textarea",key:r,rows:5,editor:"ace",hideLabel:!0,as:"json",input:!0}]}];return s&&c.splice(2,1),{type:"panel",title:e,theme:"default",collapsible:!0,collapsed:!0,key:"".concat(n,"Panel"),weight:o,components:c}}};n.default=l},68452:function(e,n,r){"use strict";r(26944),r(24646),r(35968),r(77762),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(9473),r(43001),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var o,i=(o=r(76635))&&o.__esModule?o:{default:o},a=r(9494);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function s(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?u(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=f(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEac
vendor: 7,184 bytes, line 1
1h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var n=function(e,n){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==l(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===l(n)?n:String(n)}var d=function(){var e,n;function r(e,n,o,i){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,r),this.isOpened=o,this.component=e,this.element=n,this.currentValue=(0,a.fastCloneDeep)(null!=i?i:this.component.getValue()),this.dataLoaded=!1,this.init()}return e=[{key:"refs",get:function(){return this.component.refs}},{key:"init",value:function(){var e=this;this.openModalListener=this.openModalHandler.bind(this),this.showDialogListener=function(n){e.isValueChanged()&&!e.component.disabled?e.showDialog():e.closeModalHandler(n)},this.closeModalListener=this.closeModalHandler.bind(this),this.saveModalListener=this.saveModalValueHandler.bind(this),this.closeDialogListener=this.closeDialog.bind(this),this.saveDialogListener=this.saveDialog.bind(this),this.loadRefs()}},{key:"setValue",value:function(e){this.dataLoaded&&this.currentValue===e||(this.currentValue=(0,a.fastCloneDeep)(e),this.dataLoaded=!0,this.updateView())}},{key:"setOpenModalElement",value:function(e){var n;null!==(n=this.component)&&void 0!==n&&n.visible&&(this.openModalTemplate=e,this.component.setContent(this.refs.openModalWrapper,e),this.loadRefs(),this.setEventListeners(),this.isOpened&&(this.refs.modalWrapper.classList.add("formio-dialog-disabled-animation"),this.openModal()))}},{key:"templateRefs",get:function(){return{modalOverlay:"single",modalContents:"single",modalClose:"single",openModalWrapper:"single",openModal:"single",modalSave:"single",modalWrapper:"single"}}},{key:"loadRefs",value:function(){this.component.loadRefs(this.element,this.templateRefs)}},{key:"removeEventListeners",value:function(){this.component.removeEventListener(this.refs.openModal,"click",this.openModalListener),this.component.removeEventListener(this.refs.modalOverlay,"click",this.refs.modalSave?this.showDialogListener:this.saveModalListener),this.component.removeEventListener(this.refs.modalClose,"click",this.showDialogListener),this.component.removeEventListener(this.refs.modalSave,"click",this.saveModalListener)}},{key:"setEventListeners",value:function(){this.removeEventListeners(),this.component.addEventListener(this.refs.openModal,"click",this.openModalListener),this.component.addEventListener(this.refs.modalOverlay,"click",this.refs.modalSave?this.showDialogListener:this.saveModalListener),this.component.addEventListener(this.refs.modalClose,"click",this.showDialogListener),this.component.addEventListener(this.refs.modalSave,"click",this.saveModalListener)}},{key:"isValueChanged",value:function(){var e=this.component.getValue(),n=this.currentValue;return e&&e.data&&e.metadata&&(e=this.component.getValue().data,n=this.currentValue.data),!i.default.isEqual((0,a.fastCloneDeep)(e),n)}},{key:"setOpenEventListener",value:function(){var e;this.component.removeEventListener(this.refs.openModal,"click",this.openModalListener),this.component.loadRefs(null!==(e=this.refs.openModalWrapper)&&void 0!==e?e:this.element,{openModal:"single"}),this.component.addEventListener(this.refs.openModal,"click",this.openModalListener)}},{key:"openModalHandler",value:function(e){e.preventDefault(),this.openModal()}},{key:"positionOverElement",value:function(){var e=this.element.getBoundingClientRect().top-this.refs.modalContents.getBoundingClientRect().height-10;e=e>0?e:10,this.refs.modalWrapper.style.paddingTop="".concat(e,"px")}},{key:"openModal",value:function(){this.isOpened=!0,this.refs.modalWrapper.classList.remove("component-rendering-hidden"),"signature"===this.component.component.type&&this.positionOverElement()}},{key:"updateView",value:function(){var e=i.default.isEqual(this.currentValue,this.component.defaultValue)?this.openModalTemplate:this.component.getModalPreviewTemplate();this.component.setContent(this.refs.openModalWrapper,e),this.setOpenEventListener()}},{key:"closeModal",value:function(){this.refs.modalWrapper.classList.remove("formio-dialog-disabled-animation"),this.refs.modalWrapper.classList.add("component-rendering-hidden"),this.isOpened=!1,this.updateView()}},{key:"closeModalHandler",value:function(e){e.preventDefault(),this.component.disabled||this.component.setValue(i.default.cloneDeep(this.currentValue),{resetValue:!0}),this.closeModal()}},{key:"showDialog",value:function(){this.dialogElement=this.component.ce("div");var e='\n <h3 ref="dialogHeader">'.concat(this.component.t("Do you want to clear changes?"),'</h3>\n <div style="display:flex; justify-content: flex-end;">\n <button ref="dialogCancelButton" class="btn btn-secondary">').concat(this.component.t("Cancel"),'</button>\n <button ref="dialogYesButton" class="btn btn-danger">').concat(this.component.t("Yes, delete it"),"</button>\n </div>\n ");this.dialogElement.innerHTML=e,this.dialogElement.refs={},this.component.loadRefs.call(this.dialogElement,this.dialogElement,{dialogHeader:"single",dialogCancelButton:"single",dialogYesButton:"single"}),this.dialog=this.component.createModal(this.dialogElement),this.component.addEventListener(this.dialogElement.refs.dialogYesButton,"click",this.saveDialogListener),this.component.addEventListener(this.dialogElement.refs.dialogCancelButton,"click",this.closeDialogListener)}},{key:"closeDialog",value:function(e){e.preventDefault(),this.dialog.close(),this.component.removeEventListener(this.dialogElement.refs.dialogYesButton,"click",this.saveDialogListener),this.component.removeEventListener(this.dialogElement.refs.dialogCancelButton,"click",this.closeDialogListener)}},{key:"saveDialog",value:function(e){this.closeDialog(e),this.closeModalHandler(e)}},{key:"saveModalValueHandler",value:function(e){var n;e.preventDefault(),this.currentValue=(0,a.fastCloneDeep)(null!==(n=this.component.dataValue)&&void 0!==n?n:this.component.getValue()),this.closeModal()}}],n=[{key:"render",value:function(e,n,r){var o=e.renderTemplate("component",n,r);return e.renderTemplate("componentModal",s(s({},n),{},{children:o}))}}],e&&c(r.prototype,e),n&&c(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}();n.default=d},70362:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function a(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
1n%2?i(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=l(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function u(){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=c(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(24646),r(35968),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(27846),r(9473),r(22818);var f,d=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(f,e);var n,r,i=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(f);return e=n?Reflect.construct(r,arguments,c(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),i.apply(this,arguments)}return r=[{key:"render",value:function(e){return this.noField?u(c(f.prototype),"render",this).call(this,e):this.isAdvancedLabel||this.options.condensedMode?u(c(f.prototype),"render",this).call(this,this.renderTemplate("field",a(a({},this.getLabelInfo(this.options.condensedMode)),{},{labelMarkup:this.renderTemplate("label"),element:e}),"align")):u(c(f.prototype),"render",this).call(this,this.renderTemplate("field",{labelMarkup:this.renderTemplate("label"),element:e}))}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,l(o.key),o)}}(f.prototype,r),Object.defineProperty(f,"prototype",{writable:!1}),f}(((f=r(11275))&&f.__esModule?f:{default:f}).default);n.default=d},49974:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(9473),r(34078),r(76381),r(62089),r(17223),r(5746),r(57184),r(50703),r(6588),r(43001),r(27846),r(22818);var i=c(r(15241)),a=r(9494),l=c(r(1357)),u=c(r(18947)),s=c(r(76635));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=m(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}
1function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(v,e);var n,r,c,y=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=m(v);return e=n?Reflect.construct(r,arguments,m(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return h(e)}(this,e)});function v(e,n,r){var o;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,v),(o=y.call(this,e,n,r)).triggerUpdateValueAt=s.default.debounce(o.updateValueAt.bind(h(o)),100),o}return r=[{key:"inputInfo",get:function(){var e={name:this.options.name,type:this.component.inputType||"text",class:"form-control",lang:this.options.language};return("builder"===this.options.attachMode||this.options.building||s.default.get(this.root,"form.settings.disableAutocomplete"))&&(e.autocomplete=this.autocompleteDisableAttrName),this.component.inputMode&&(e.inputmode=this.component.inputMode),this.component.placeholder&&(e.placeholder=this.getFormattedAttribute(this.component.placeholder)),this.component.tabindex&&(e.tabindex=this.component.tabindex),this.disabled&&(e.disabled="disabled"),this.component.autocomplete&&(e.autocomplete=this.component.autocomplete),s.default.defaults(e,this.component.attributes),{id:this.key,type:"input",changeEvent:"input",content:"",attr:e}}},{key:"autocompleteDisableAttrName",get:function(){return"off"}},{key:"maskOptions",get:function(){return s.default.map(this.component.inputMasks,function(e){return{label:e.label,value:e.label}})}},{key:"isMultipleMasksField",get:function(){return this.component.allowMultipleMasks&&!!this.component.inputMasks&&!!this.component.inputMasks.length}},{key:"getMaskByName",value:function(e){var n=s.default.find(this.component.inputMasks,function(n){return n.label===e});return n?n.mask:void 0}},{key:"setInputMask",value:function(e,n){var r=n||this.component.displayMask||this.component.inputMask;return d(m(v.prototype),"setInputMask",this).call(this,e,r,!this.component.placeholder)}},{key:"getMaskOptions",value:function(){return this.component.inputMasks.map(function(e){return{label:e.label,value:e.label}})}},{key:"getWordCount",value:function(e){return e?e.trim().split(/\s+/).length:0}},{key:"remainingWords",get:function(){return s.default.parseInt(s.default.get(this.component,"validate.maxWords"),10)-this.getWordCount(this.dataValue)}},{key:"prefix",get:function(){return this.component.prefix}},{key:"suffix",get:function(){if(this.component.widget&&"calendar"===this.component.widget.type){var e=this.renderTemplate("icon",{ref:"icon",className:this.iconClass(this.component.enableDate||this.component.widget.enableDate?"calendar":"clock-o"),styles:"",content:""}).trim();if(this.component.prefix!==e)return(0,a.convertStringToHTMLElement)(e,'[ref="icon"]')}return this.component.suffix}},{key:"renderElement",value:function(e,n){e&&"string"==typeof e&&(e=e.replace(/"/g,"""));var r=this.inputInfo;r.attr=r.attr||{},r.attr.value=this.getValueAsString(this.formatValue(this.parseValue(e))).replace(/"/g,""");var o=this.component.inputMask,i=this.component.displayMask;return this.isMultipleMasksField&&(r.attr.class+=" formio-multiple-mask-input"),this.isMultipleMasksField?this.renderTemplate("multipleMasksInput",{input
vendor: 4,244 bytes, line 1
1:r,value:e,index:n,selectOptions:this.getMaskOptions()||[]},this.isHtmlRenderMode()?"html":null):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:r,value:this.formatValue(this.parseValue(e)),hasValueMaskInput:o&&i&&o!==i,index:n},this.isHtmlRenderMode()?"html":null)}},{key:"setCounter",value:function(e,n,r,o){if(o){var i=o-r;i>0?this.removeClass(n,"text-danger"):this.addClass(n,"text-danger"),this.setContent(n,this.t("{{ remaining }} ".concat(e," remaining."),{remaining:i}))}else this.setContent(n,this.t("{{ count }} ".concat(e),{count:r}))}},{key:"updateValueAt",value:function(e,n,r){if(n=n||{},s.default.get(this.component,"showWordCount",!1)&&this.refs.wordcount&&this.refs.wordcount[r]){var o=s.default.parseInt(s.default.get(this.component,"validate.maxWords",0),10);this.setCounter(this.t("words"),this.refs.wordcount[r],this.getWordCount(e),o)}if(s.default.get(this.component,"showCharCount",!1)&&this.refs.charcount&&this.refs.charcount[r]){var i=s.default.parseInt(s.default.get(this.component,"validate.maxLength",0),10);this.setCounter(this.t("characters"),this.refs.charcount[r],e.length,i)}}},{key:"getValueAt",value:function(e){var n=this.performInputMapping(this.refs.input[e]);return n&&n.widget?n.widget.getValue():n?n.value:void 0}},{key:"updateValue",value:function(e,n,r){n=n||{};var o=d(m(v.prototype),"updateValue",this).call(this,e,n);return this.triggerUpdateValueAt(this.dataValue,n,r),o}},{key:"parseValue",value:function(e){return e}},{key:"formatValue",value:function(e){return e}},{key:"attach",value:function(e){return this.loadRefs(e,{charcount:"multiple",wordcount:"multiple",prefix:"multiple",suffix:"multiple"}),d(m(v.prototype),"attach",this).call(this,e)}},{key:"getWidget",value:function(e){return(e=e||0,this.refs.input&&this.refs.input[e])?this.refs.input[e].widget:null}},{key:"attachElement",value:function(e,n){var r=this;d(m(v.prototype),"attachElement",this).call(this,e,n),e.widget&&e.widget.destroy();var o=u.default.resolve();return e.widget=this.createWidget(n),e.widget&&(o=e.widget.attach(e),this.refs.prefix&&this.refs.prefix[n]&&e.widget.addPrefix(this.refs.prefix[n]),this.refs.suffix&&this.refs.suffix[n]&&e.widget.addSuffix(this.refs.suffix[n])),this.addFocusBlurEvents(e),this.options.submitOnEnter&&this.addEventListener(e,"keypress",function(e){13===(e.keyCode||e.which)&&(e.preventDefault(),e.stopPropagation(),r.emit("submitButton"))}),o}},{key:"createWidget",value:function(e){var n,r,o=this;if(!this.component.widget)return null;var i="string"==typeof this.component.widget?{type:this.component.widget}:this.component.widget;if(null!==(r=this.root)&&void 0!==r&&r.shadowRoot&&(i.shadowRoot=null===(n=this.root)||void 0===n?void 0:n.shadowRoot),!l.default.hasOwnProperty(i.type))return null;var a=new l.default[i.type](i,this.component,this,e);return a.on("update",function(){return o.updateValue(o.getValue(),{modified:!0},e)},!0),a.on("redraw",function(){return o.redraw()},!0),a}},{key:"detach",value:function(){if(d(m(v.prototype),"detach",this).call(this),this.refs&&this.refs.input)for(var e=0;e<=this.refs.input.length;e++){var n=this.getWidget(e);n&&n.destroy()}this.refs.input=[]}}],c=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.schema.apply(i.default,[{widget:{type:"input"}}].concat(n))}}],r&&f(v.prototype,r),c&&f(v,c),Object.defineProperty(v,"prototype",{writable:!1}),v}(i.default);n.default=y},5417:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"data",components:i.default}]].concat(n))},r(43001);var o=a(r(6296)),i=a(r(58293));function a(e){return e&&e.__esModule?e:{default:e}}},35779:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(15469),Object.defineProperty(n,"__esModule",{value:!0}
1),n.default=void 0,r(52315),r(17223),r(73985),r(5746),r(45009),r(88455),r(32334),r(59012),r(12551),r(6588),r(17943),r(1542),r(36686),r(35968),r(43001),r(27846),r(9473),r(22818);var i=s(r(70362)),a=r(38388),l=s(r(76635)),u=s(r(18947));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function f(e,n){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&f(e,n)}(h,e);var n,r,s,p=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=d(h);return e=n?Reflect.construct(r,arguments,d(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function h(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,h),p.apply(this,arguments)}return r=[{key:"isSelectURL",get:function(){return"url"===this.component.dataSrc}},{key:"selectData",get:function(){var e=l.default.get(this.root,"submission.metadata.selectData",{});return l.default.get(e,this.path)}},{key:"shouldLoad",get:function(){if(this.loadingError)return!1;if(!this.options.readOnly)return!0;if(this.templateKeys&&this.templateKeys.length){var e=this.dataValue,n=this.selectData;return this.templateKeys.reduce(function(r,o){var i=l.default.has(e,o)||(l.default.isArray(n)?n.every(function(e){return l.default.has(e,o)}):l.default.has(n,o));return r||!i},!1)}return!0}},{key:"getTemplateKeys",value:function(){var e=this;if(this.templateKeys=[],this.options.readOnly&&this.component.template){var n=this.component.template.match(/({{\s*(.*?)\s*}})/g);n&&n.forEach(function(n){var r=n.match(/{{\s*item\.(.*?)\s*}}/);r&&r.length>1&&e.templateKeys.push(r[1])})}}},{key:"requestHeaders",get:function(){var e=this,n=new a.GlobalFormio.Headers;if(this.component.data&&this.component.data.headers)try{l.default.each(this.component.data.headers,function(r){r.key&&n.set(r.key,e.interpolate(r.value))})}catch(e){console.warn(e.message)}return n}},{key:"setItems",value:function(){}},{key:"updateCustomItems",value:function(){}},{key:"loadItems",value:function(){}},{key:"getOptionTemplate",value:function(e,n,r){if(!this.component.template)return e.label;var o={noeval:!0,data:{}},i=this.sanitize(this.component.template?this.interpolate(this.component.template,{item:e},o):e.label,this.shouldSanitizeValue),a=this.component.reference&&null!=n&&n._id?n._id.toString():n;return a&&!l.default.isObject(a)&&o.data.item&&(this.templateData[a]=o.data.item),l.default.isNumber(r)&&(this.templateData[r]=o.data.item),i}},{key:"itemTemplate",value:function(e,n,r){if(l.default.isEmpty(e))return"";var o=this.sanitize(this.getOptionTemplate(e,n,r),this.shouldSanitizeValue);if(!o)return this.sanitize(JSON.stringify(e),this.shouldSanitizeValue);var i,a=o.replace(/<\/?[^>]+(>|$)/g,""),u=null===(i=this.i18next)||void 0===i?void 0:i.translator;if(a&&(!u||this.t(a,{_userInput:!0})))return u?o.replace(a,this.t(a,{_userInput:!0})):a}},{key:"handleLoadingError",value:function(e){this.loading=!1,e.networkError&&(this.networkError=!0),this.itemsLoadedResolve(),this.emit
1("componentError",{component:this.component,message:e.toString()}),console.warn("Unable to load resources for ".concat(this.key))}},{key:"updateItems",value:function(e,n){var r=this;if(!this.component.data){console.warn("Select component ".concat(this.key," does not have data configuration.")),this.itemsLoadedResolve();return}if(!this.visible){this.itemsLoadedResolve();return}switch(this.component.dataSrc){case"values":this.setItems(this.component.data.values);break;case"json":this.setItems(this.component.data.json);break;case"custom":this.updateCustomItems(n);break;case"resource":if(!this.component.data.resource||!n&&!this.active){this.itemsLoadedResolve();return}var o=this.options.formio?this.options.formio.formsUrl:"".concat(a.GlobalFormio.getProjectUrl(),"/form");if(o+="/".concat(this.component.data.resource,"/submission"),n||this.additionalResourcesAvailable||!this.serverCount)try{this.loadItems(o,e,this.requestHeaders)}catch(e){console.warn("Unable to load resources for ".concat(this.key))}else this.setItems(this.downloadedResources);break;case"url":if(!n&&!this.active&&!this.calculatedValue&&"select"===this.component.type){this.itemsLoadedResolve();return}var i,s,c=this.component.data.url;c.startsWith("/")&&(c=(c.startsWith("/project")?a.GlobalFormio.getBaseUrl():a.GlobalFormio.getProjectUrl()||a.GlobalFormio.getBaseUrl())+c),this.component.data.method?s="POST"===(i=this.component.data.method).toUpperCase()?this.component.data.body:null:i="GET";var f=this.component.authenticate?{}:{noToken:!0};this.loadItems(c,e,this.requestHeaders,f,i,s);break;case"indexeddb":if("undefined"==typeof window)return;if(window.indexedDB||window.alert("Your browser doesn't support current version of indexedDB"),this.component.indexeddb&&this.component.indexeddb.database&&this.component.indexeddb.table){var d=window.indexedDB.open(this.component.indexeddb.database);d.onupgradeneeded=function(e){if(r.component.customOptions){var n=e.target.result;n.createObjectStore(r.component.indexeddb.table,{keyPath:"myKey",autoIncrement:!0}).transaction.oncomplete=function(){var e=n.transaction(r.component.indexeddb.table,"readwrite");r.component.customOptions.forEach(function(n){e.objectStore(r.component.indexeddb.table).put(n)})}}},d.onerror=function(){window.alert(d.errorCode)},d.onsuccess=function(e){var n=e.target.result.transaction(r.component.indexeddb.table,"readwrite").objectStore(r.component.indexeddb.table);new u.default(function(e){var r=[];n.getAll().onsuccess=function(n){n.target.result.forEach(function(e){r.push(e)}),e(r)}}).then(function(e){l.default.isEmpty(r.component.indexeddb.filter)||(e=l.default.filter(e,r.component.indexeddb.filter)),r.setItems(e)})}}}}}],s=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.schema.apply(i.default,[{dataSrc:"values",authenticate:!1,ignoreCache:!1,template:"<span>{{ item.label }}</span>",validate:{onlyAvailableItems:!1}}].concat(n))}}],r&&c(h.prototype,r),s&&c(h,s),Object.defineProperty(h,"prototype",{writable:!1}),h}(i.default);n.default=p},58293:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"select",input:!0,weight:0,tooltip:"The source to use for the select data. Values lets you provide your own values and labels. JSON lets you provide raw JSON data. URL lets you provide a URL to retrieve the JSON data from.",key:"dataSrc",defaultValue:"values",label:"Data Source Type",dataSrc:"values"},{type:"textfield",input:!0,key:"data.url",weight:10,label:"Data Source URL",placeholder:"Data Source URL",tooltip:"A URL that returns a JSON array to use as the data source.",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"datagrid",input:!0,label:"Request Headers",key:"data.headers",tooltip:"Set any headers that should be sent along with the request to the url. This is useful for authentication.",weight:11,components:[{label:"Key",key:"key",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}],conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"textfield",input:!0,label:"Value Property",key:"valueProperty",skipMerge:!0,
1clearOnHide:!1,weight:13,description:"The selected item's property to save.",tooltip:"The property of each item in the data source to use as the select value. If not specified, the item itself will be used.",conditional:{json:{in:[{var:"data.dataSrc"},["json","url","custom"]]}}},{type:"textarea",input:!0,key:"template",label:"Item Template",editor:"ace",as:"html",rows:3,weight:18,tooltip:"The HTML template for the result data items.",allowCalculateOverride:!0,calculateValue:function(e){return!e.data.template&&e.instance&&e.instance._currentForm.options.editComponent?e.instance._currentForm.options.editComponent.template:e.data.template}},{type:"checkbox",input:!0,weight:26,key:"authenticate",label:"Formio Authenticate",tooltip:"Check this if you would like to use Formio Authentication with the request.",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"checkbox",input:!0,weight:29,key:"ignoreCache",label:"Disables Storing Request Result in the Cache",tooltip:"Check it if you don't want the requests and its results to be stored in the cache. By default, it is stored and if the Select tries to make the request to the same URL with the same paremetrs, the cached data will be returned. It allows to increase performance, but if the remote source's data is changing quite often and you always need to keep it up-to-date, uncheck this option.",conditional:{json:{or:[{"===":[{var:"data.dataSrc"},"url"]},{"===":[{var:"data.dataSrc"},"resource"]}]}}}]},15241:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(26981),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18036),r(97172),r(76381),r(9473),r(88455),r(17223),r(32334),r(75162),r(62089),r(43001),r(27846),r(22818);var i=u(r(70362)),a=u(r(18947)),l=u(r(76635));function u(e){return e&&e.__esModule?e:{default:e}}function s(e,n,r,o){return(s="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a,l=d(e,n);if(l){if((a=Object.getOwnPropertyDescriptor(l,n)).set)return a.set.call(o,r),!0;if(!a.writable)return!1}if(a=Object.getOwnPropertyDescriptor(o,n)){if(!a.writable)return!1;a.value=r,Object.defineProperty(o,n,a)}else(i=c(i=n))in o?Object.defineProperty(o,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[i]=r;return!0})(e,n,r,o)}function c(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=d(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function d(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=h(e)););return e}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(u,e);var n,r,i=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=h(u);return e=n?Reflect.construct(r,arguments,h(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function u(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,u),i.apply(this,arguments)}return r=[{key:"dataValue",get:function(){var e=f(h(u.prototype),"dataValue",this);return!e&&this.component.multiple?[]:e}
1,set:function(e){!function(e,n,r,o,i){if(!s(e,n,r,o||e)&&i)throw Error("failed to set property")}(h(u.prototype),"dataValue",e,this,!0)}},{key:"defaultValue",get:function(){var e=f(h(u.prototype),"defaultValue",this);return this.component.multiple&&(e=l.default.isArray(e)?e.length?e:[f(h(u.prototype),"emptyValue",this)]:[e]),e}},{key:"addAnother",get:function(){return this.t(this.component.addAnother||"Add Another")}},{key:"useWrapper",value:function(){return this.component.hasOwnProperty("multiple")&&this.component.multiple}},{key:"render",value:function(){if(!this.useWrapper())return f(h(u.prototype),"render",this).call(this,'<div ref="element">\n '.concat(this.renderElement("hidden"!==this.component.type?this.dataValue:""),"\n </div>"));var e=this.dataValue;return Array.isArray(e)||(e=e?[e]:[]),f(h(u.prototype),"render",this).call(this,this.renderTemplate("multiValueTable",{rows:e.map(this.renderRow.bind(this)).join(""),disabled:this.disabled,addAnother:this.addAnother}))}},{key:"renderElement",value:function(){return""}},{key:"renderRow",value:function(e,n){return this.renderTemplate("multiValueRow",{index:n,disabled:this.disabled,element:"".concat(this.renderElement(e,n))})}},{key:"attach",value:function(e){var n=this,r=f(h(u.prototype),"attach",this).call(this,e);this.loadRefs(e,{addButton:"multiple",input:"multiple",removeRow:"multiple",mask:"multiple",select:"multiple"});var o=[];return(this.refs.input.forEach(function(e,r){o.push(n.attachElement.call(n,e,r))}),this.component.multiple)?(this.refs.removeRow.forEach(function(e,r){n.addEventListener(e,"click",function(e){e.preventDefault(),n.removeValue(r)})}),this.refs.addButton.forEach(function(e){n.addEventListener(e,"click",function(e){e.preventDefault(),n.addValue()})}),r.then(function(){return a.default.all(o)})):a.default.all(o)}},{key:"detach",value:function(){this.refs.input&&this.refs.input.length&&this.refs.input.forEach(function(e){e.mask&&e.mask.destroy(),e.widget&&e.widget.destroy()}),this.refs.mask&&this.refs.mask.length&&this.refs.mask.forEach(function(e){e.mask&&e.mask.destroy()}),f(h(u.prototype),"detach",this).call(this)}},{key:"attachElement",value:function(e,n){var r=this;if(this.addEventListener(e,this.inputInfo.changeEvent,function(){var o=l.default.get(r.component,"case","mixed");if("mixed"!==o){var i=e.selectionStart,a=e.selectionEnd;"uppercase"===o&&e.value&&(e.value=e.value.toUpperCase()),"lowercase"===o&&e.value&&(e.value=e.value.toLowerCase()),e.selectionStart&&e.selectionEnd&&(e.selectionStart=i,e.selectionEnd=a)}try{r.saveCaretPosition(e,n)}catch(e){console.warn("An error occurred while trying to save caret position",e)}if(!e.mask)return r.updateValue(null,{modified:"hidden"!==r.component.type},n);setTimeout(function(){return r.updateValue(null,{modified:"hidden"!==r.component.type},n)},1)}),!this.attachMultiMask(n)){var o=function(){r.setInputMask(e);var n=r.component.inputMask,o=r.component.displayMask;n&&o&&o!==n&&r.refs.valueMaskInput&&r.setInputMask(r.refs.valueMaskInput,n)};"blur"===this.inputInfo.changeEvent?this.addEventListener(e,this.inputInfo.changeEvent,function(){var e;o(),r.dataValue=r.refs.input[0].value,null===(e=document.querySelector('[name="data[submit]"]'))||void 0===e||e.disabled,r.checkComponentValidity()&&r.updateComponentValue(r.refs.input[0].value)}):o()}}},{key:"saveCaretPosition",value:function(e,n){var r,o;(null===(r=this.root)||void 0===r?void 0:null===(o=r.focusedComponent)||void 0===o?void 0:o.path)===this.path&&(this.root.currentSelection={selection:[e.selectionStart,e.selectionEnd],index:n})}},{key:"onSelectMaskHandler",value:function(e){this.updateMask(e.target.maskInput,this.getMaskPattern(e.target.value))}},{key:"getMaskPattern",value:function(e){if(this.multiMasks||(this.multiMasks={}),this.multiMasks[e])return this.multiMasks[e];var n=this.component.inputMasks.find(function(n){return n.label===e});return this.multiMasks[e]=n?n.mask:this.component.inputMasks[0].mask,this.multiMasks[e]}},{key:"attachMultiMask",value:function(e){if(!(this.isMultipleMasksField&&this.component.inputMasks.length&&this.refs.input.length))return!1;var n=this.refs.select[e];return n.onchange=this.onSelectMaskHandler.bind(this),n.maskInput=this.refs.mask[e],this.setInputMask(n.maskInput,this.component.inputMasks[0].mask),!0}}
1,{key:"updateMask",value:function(e,n){n&&(this.setInputMask(e,n,!this.component.placeholder),this.updateValue())}},{key:"addNewValue",value:function(e){void 0===e&&Array.isArray(e=this.component.defaultValue?this.component.defaultValue:this.emptyValue)&&0===e.length&&(e=this.emptyValue);var n=this.dataValue||[];Array.isArray(n)||(n=[n]),Array.isArray(e)?n=n.concat(e):n.push(e),this.dataValue=n}},{key:"addValue",value:function(){this.addNewValue(),this.redraw(),this.checkConditions(),this.isEmpty(this.dataValue)||this.restoreValue(),this.root&&this.root.onChange()}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,c(o.key),o)}}(u.prototype,r),Object.defineProperty(u,"prototype",{writable:!1}),u}(i.default);n.default=m},28600:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.baseEditForm.apply(i.default,[[{key:"data",ignore:!0},{key:"validation",ignore:!0}]].concat(n))},r(43001);var o,i=(o=r(6296))&&o.__esModule?o:{default:o}},21645:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(26981),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(76381),r(88455),r(17223),r(32334),r(28121),r(83972),r(21500),r(92884),r(43001),r(98595),r(92782),r(30902),r(52315),r(73985),r(35968),r(27846),r(9473),r(22818);var i=c(r(76635)),a=c(r(70362)),l=c(r(6296)),u=c(r(18947)),s=r(9494);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,m(o.key),o)}}function d(e,n,r,o){return(d="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=v(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else h(o,n,r);return!0})(e,n,r,o)}function p(e,n,r,o,i){if(!d(e,n,r,o||e)&&i)throw Error("failed to set property");return r}function h(e,n,r){return(n=m(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function m(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function y(){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=v(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function v(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=g(e)););return e}function b(e,n){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&b(e,n)}(m,e);var n,r,c,d=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=g(m);return e=n?Reflect.construct(r,arguments,g(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function m(e,n,r){var o;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,m),(o=d.call(this,e,n,r)).type="components",o._collapsed=!!o.component.collapsed,o}return r=[{key:"defaultSchema",get:function(){return m.schema()}},{key:"schema",get:function(){var e=y(g(m.prototype),"schema",this),n=i.default.uniqBy(this.getComponents(),"component.key");return e.components=i.default.map(n,"schema"),e}},{key:"collapsed",get:function(){return this._collapsed},set:function(e){this._collapsed=e,this.collapse(e)}},{key:"collapse",value:function(e){var n=this.redraw();return e||this.checkValidity(this.data,!this.pristine,null,this.pristine),n}},{key:"visible",get:function(){return y(g(m.prototype),"visible",this)},set:function(e){var n=this._visible!==e;this._visible=e;var r=this.visible,o=this.shouldForceShow(),i=this.shouldForceHide();
1this.components.forEach(function(e){e.parentVisible=r;var n=e.conditionallyVisible();o||n?e.visible=!0:!i&&r&&n||(e.visible=!1),e.visible||(e.error="")}),n&&(this.clearOnHide(),this.redraw())}},{key:"parentVisible",get:function(){return y(g(m.prototype),"parentVisible",this)},set:function(e){var n=this;p(g(m.prototype),"parentVisible",e,this,!0),this.components.forEach(function(e){return e.parentVisible=n.visible})}},{key:"disabled",get:function(){return y(g(m.prototype),"disabled",this)},set:function(e){p(g(m.prototype),"disabled",e,this,!0),this.components.forEach(function(n){return n.parentDisabled=e})}},{key:"parentDisabled",get:function(){return y(g(m.prototype),"parentDisabled",this)},set:function(e){var n=this;p(g(m.prototype),"parentDisabled",e,this,!0),this.components.forEach(function(e){e.parentDisabled=n.disabled})}},{key:"ready",get:function(){return u.default.all(this.getComponents().map(function(e){return e.ready}))}},{key:"currentForm",get:function(){return y(g(m.prototype),"currentForm",this)},set:function(e){p(g(m.prototype),"currentForm",e,this,!0),this.getComponents().forEach(function(n){n.currentForm=e})}},{key:"rowIndex",get:function(){return this._rowIndex},set:function(e){this._rowIndex=e,this.eachComponent(function(n){n.rowIndex=e})}},{key:"componentContext",value:function(){return this._data}},{key:"data",get:function(){return this._data},set:function(e){var n=this;this._data=e,this.eachComponent(function(e){e.data=n.componentContext(e)})}},{key:"getComponents",value:function(){return this.components||[]}},{key:"everyComponent",value:function(e,n){var r=this.getComponents();i.default.each(r,function(o,i){if(!1===e(o,r,i)||"function"==typeof o.everyComponent&&!1===o.everyComponent(e,n))return!1})}},{key:"hasComponent",value:function(e){var n=!1;return this.everyComponent(function(r){if(r===e)return n=!0,!1}),n}},{key:"flattenComponents",value:function(){var e={};return this.everyComponent(function(n){e[n.component.flattenAs||n.key]=n}),e}},{key:"eachComponent",value:function(e){i.default.each(this.getComponents(),function(n,r){if(!1===e(n,r))return!1})}},{key:"getComponent",value:function(e,n,r){r=r||(0,s.getStringFromComponentPath)(e),e=(0,s.getArrayFromComponentPath)(e);var o=r,a=i.default.clone(e),l=a.shift(),u=null,c=null;return i.default.isNumber(l)&&(l=a.shift()),i.default.isString(l)&&(this.everyComponent(function(e,i){var s=!e.hasInput||!e.path||o.includes(e.path);if(e.component.key===l&&(c=e,s))return u=e,a.length>0&&"getComponent"in e?u=e.getComponent(a,n,r):n&&n(e,i),!1}),u||(u=c)),u}},{key:"getComponentById",value:function(e,n){var r=null;return this.everyComponent(function(o,i){if(o.id===e)return r=o,n&&n(o,i),!1}),r}},{key:"calculateComponentPath",value:function(e){if(e.component.key){for(var n=this;n&&!n.allowData&&n.parent;)n=n.parent;var r=e.row?"[".concat(Number.parseInt(e.row),"]"):"";return(n.path?"".concat(n.path).concat(r,"."):"")+(e._parentPath&&e.component.shouldIncludeSubFormPath?e._parentPath:"")+e.component.key}}},{key:"createComponent",value:function(e,n,r,o,a){if(e){n=n||this.options,r=r||this.data,n.parent=this,n.parentVisible=this.visible,n.root=(null===(u=n)||void 0===u?void 0:u.root)||this.root||this,n.localRoot=this.localRoot,n.skipInit=!0,"pdf"===n.display&&this.builderMode||(e.id=(0,s.getRandomComponentId)()),!this.isInputComponent&&this.component.shouldIncludeSubFormPath&&(e.shouldIncludeSubFormPath=!0);var u,c=l.default.create(e,n,r,!0),f=this.calculateComponentPath(c);if(f&&(c.path=f),c.init(),e.internal)return c;if(o){var d=i.default.findIndex(this.components,{id:o.id});-1!==d?this.components.splice(d,0,c):this.components.push(c)}else if(a){var p=i.default.findIndex(this.components,{id:a.id});-1!==p?this.components[p]=c:this.components.push(c)}else this.components.push(c);return c}}},{key:"getContainer",value:function(){return this.element}},{key:"componentComponents",get:function(){return this.component.components||[]}},{key:"nestedKey",get:function(){return"nested-".concat(this.key)}},{key:"templateName",get:function(){return"container"}},{key:"init",value:function(){return this.components=this.components||[],this.addComponents(),y(g(m.prototype),"init",this).call(this)}},{key:"addComponents",value:function(e,n){var r=this;e=e||this.data,(n=n||this.options).components?this.components=n.components:(this.hook("addComponents",this.componentComponents,this)||[]).forEac
1h(function(n){return r.addComponent(n,e)})}},{key:"addComponent",value:function(e,n,r,o){return n=n||this.data,this.options.parentPath&&(e.shouldIncludeSubFormPath=!0),e=this.hook("addComponent",e,n,r,o),this.createComponent(e,this.options,n,r||null)}},{key:"beforeFocus",value:function(){this.parent&&"beforeFocus"in this.parent&&this.parent.beforeFocus(this)}},{key:"render",value:function(e){return y(g(m.prototype),"render",this).call(this,e||this.renderTemplate(this.templateName,{children:this.visible?this.renderComponents():"",nestedKey:this.nestedKey,collapsed:!this.options.pdf&&this.collapsed}))}},{key:"renderComponents",value:function(e){var n=(e=e||this.getComponents()).map(function(e){return e.render()});return this.renderTemplate("components",{children:n,components:e})}},{key:"attach",value:function(e){var n=this,r=y(g(m.prototype),"attach",this).call(this,e);this.loadRefs(e,h({header:"single",collapsed:this.collapsed},this.nestedKey,"single"));var o=u.default.resolve();return this.refs[this.nestedKey]&&(o=this.attachComponents(this.refs[this.nestedKey])),this.visible||this.attachComponentsLogic(),this.component.collapsible&&this.refs.header&&(this.addEventListener(this.refs.header,"click",function(){n.collapsed=!n.collapsed}),this.addEventListener(this.refs.header,"keydown",function(e){(13===e.keyCode||32===e.keyCode)&&(e.preventDefault(),n.collapsed=!n.collapsed)})),u.default.all([r,o])}},{key:"attachComponentsLogic",value:function(e){e=e||this.components,i.default.each(e,function(e){e.attachLogic(),i.default.isFunction(e.attachComponentsLogic)&&e.attachComponentsLogic()})}},{key:"attachComponents",value:function(e,n,r){if(n=n||this.components,r=r||this.component.components,!(e=this.hook("attachComponents",e,n,r,this)))return new u.default(function(){});var o=0,i=[];return Array.prototype.slice.call(e.children).forEach(function(e){!e.getAttribute("data-noattach")&&n[o]&&(i.push(n[o].attach(e)),o++)}),u.default.all(i)}}
1,{key:"removeComponent",value:function(e,n){n=n||this.components,e.destroy(),i.default.remove(n,{id:e.id})}},{key:"removeComponentByKey",value:function(e,n){var r=this;if(!this.getComponent(e,function(e,o){r.removeComponent(e,o),n&&n(e,o)}))return n&&n(null),null}},{key:"removeComponentById",value:function(e,n){var r=this;if(!this.getComponentById(e,function(e,o){r.removeComponent(e,o),n&&n(e,o)}))return n&&n(null),null}},{key:"updateValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.components.reduce(function(e,r){return r.updateValue(null,n)||e},y(g(m.prototype),"updateValue",this).call(this,e,n))}},{key:"shouldSkipValidation",value:function(e,n,r){return!this.component.input||y(g(m.prototype),"shouldSkipValidation",this).call(this,e,n,r)}},{key:"checkData",value:function(e,n,r,o){if(this.builderMode)return!0;e=e||this.rootValue,n=n||{},r=r||this.data;var a=(o=o&&i.default.isArray(o)?o:this.getComponents()).reduce(function(o,i){return i.checkData(e,n,r)&&o},y(g(m.prototype),"checkData",this).call(this,e,n,r));return this.checkModal(a,this.isDirty),a}},{key:"checkConditions",value:function(e,n,r){var o=y(g(m.prototype),"checkConditions",this).call(this,e,n,r);return this.getComponents().forEach(function(r){return r.checkConditions(e,n,r.data)}),o}},{key:"clearOnHide",value:function(e){y(g(m.prototype),"clearOnHide",this).call(this,e),this.component.clearOnHide&&(this.allowData&&!this.hasValue()&&(this.dataValue=this.defaultValue),this.hasValue()&&this.restoreComponentsContext()),this.getComponents().forEach(function(n){return n.clearOnHide(e)})}},{key:"restoreComponentsContext",value:function(){var e=this;this.getComponents().forEach(function(n){return n.data=e.dataValue})}},{key:"beforePage",value:function(e){return u.default.all(this.getComponents().map(function(n){return n.beforePage(e)}))}},{key:"beforeSubmit",value:function(){return u.default.all(this.getComponents().map(function(e){return e.beforeSubmit()}))}},{key:"calculateValue",value:function(e,n,r){return!!this.conditionallyVisible()&&this.getComponents().reduce(function(o,i){return i.calculateValue(e,n,r)||o},y(g(m.prototype),"calculateValue",this).call(this,e,n,r))}},{key:"isLastPage",value:function(){return this.pages.length-1===this.page}},{key:"isValid",value:function(e,n){return this.getComponents().reduce(function(r,o){return o.isValid(e,n)&&r},y(g(m.prototype),"isValid",this).call(this,e,n))}},{key:"checkChildComponentsValidity",value:function(e,n,r,o,i){return this.getComponents().reduce(function(i,a){return a.checkValidity(e,n,r,o)&&i},i)}},{key:"checkValidity",value:function(e,n,r,o){if(!this.checkCondition(r,e))return this.setCustomValidity(""),!0;var i=this.checkChildComponentsValidity(e,n,r,o,y(g(m.prototype),"checkValidity",this).call(this,e,n,r,o));return this.checkModal(i,n),i}},{key:"checkAsyncValidity",value:function(e,n,r,o){var i=this;return this.ready.then(function(){var a=[y(g(m.prototype),"checkAsyncValidity",i).call(i,e,n,r,o)];return i.eachComponent(function(i){return a.push(i.checkAsyncValidity(e,n,r,o))}),u.default.all(a).then(function(e){return e.reduce(function(e,n){return e&&n},!0)})})}},{key:"setPristine",value:function(e){y(g(m.prototype),"setPristine",this).call(this,e),this.getComponents().forEach(function(n){return n.setPristine(e)})}},{key:"isPristine",get:function(){return this.pristine&&this.getComponents().every(function(e){return e.isPristine})}},{key:"isDirty",get:function(){return this.dirty&&this.getComponents().every(function(e){return e.isDirty})}},{key:"detach",value:function(){this.components.forEach(function(e){e.detach()}),y(g(m.prototype),"detach",this).call(this)}},{key:"clear",value:function(){this.components.forEach(function(e){e.clear()}),y(g(m.prototype),"clear",this).call(this)}},{key:"destroy",value:function(){this.destroyComponents(),y(g(m.prototype),"destroy",this).call(this)}},{key:"destroyComponents",value:function(){var e=this;this.getComponents().slice().forEach(function(n){return e.removeComponent(n,e.components)}),this.components=[]}},{key:"errors",get:function(){var e=this.error?[this.error]:[];return this.getComponents().reduce(function(e,n){return e.concat(n.errors||[])},e).filter(function(e){return"hidden"!==e.level})}},{key:"getValue",value:function(){return this.data}},{key:"resetValue",value:function(){y(g(m.prototype),"resetValue",this).call(this),this.getComponents().forEac
1h(function(e){return e.resetValue()}),this.setPristine(!0)}},{key:"dataReady",get:function(){return u.default.all(this.getComponents().map(function(e){return e.dataReady}))}},{key:"setNestedValue",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e._data=this.componentContext(e),"button"!==e.type&&("components"===e.type?e.tree&&e.hasValue(n)?e.setValue(i.default.get(n,e.key),r):e.setValue(n,r):n&&e.hasValue(n)?e.setValue(i.default.get(n,e.key),r):(!this.rootPristine||e.visible)&&e.shouldAddDefaultValue?(r.noValidate=!r.dirty,r.resetValue=!0,e.setValue(e.defaultValue,r)):void 0)}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!e&&(e.submitAsDraft&&!e.submit&&(r.noValidate=!0),this.getComponents().reduce(function(o,i){return n.setNestedValue(i,e,r,o)||o},!1))}},{key:"lazyLoad",get:function(){var e;return null!==(e=this.component.lazyLoad)&&void 0!==e&&e}}],c=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{tree:!1,lazyLoad:!1}].concat(n))}}],r&&f(m.prototype,r),c&&f(m,c),Object.defineProperty(m,"prototype",{writable:!1}),m}(a.default);n.default=w},45641:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(52315),r(17223),r(18036),r(43001),r(88455),r(32334),r(27846),r(9473),r(22818);var i=u(r(76635)),a=u(r(11275)),l=u(r(98087));function u(e){return e&&e.__esModule?e:{default:e}}function s(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=d(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function f(e,n){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&f(e,n)}(h,e);var n,r,u,p=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=d(h);return e=n?Reflect.construct(r,arguments,d(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function h(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,h),p.apply(this,arguments)}return r=[{key:"componentContext",value:function(e){return this.iteratableRows[e.rowIndex].data}},{key:"iteratableRows",get:function(){throw Error("Getter #iteratableRows() is not implemented")}},{key:"rowIndex",get:function(){return c(d(h.prototype),"rowIndex",this)},set:function(e){this._rowIndex=e}},{key:"init",value:function(){c(d(h.prototype),"init",this).call(this),this.prevHasAddButton=this.hasAddButton()}},{key:"checkAddButtonChanged",value:function(){var e=this.hasAddButton();e!==this.prevHasAddButton&&(this.prevHasAddButton=e,this.redraw())}}
1,{key:"checkData",value:function(e,n,r){return e=e||this.rootValue,n=n||{},r=r||this.data,this.checkAddButtonChanged(),this.checkRows("checkData",e,n,a.default.prototype.checkData.call(this,e,n,r))}},{key:"checkRows",value:function(e,n,r,o,i){var a=this;return this.iteratableRows.reduce(function(o,l,u){return null!=r&&r.rowIndex&&(null==r?void 0:r.rowIndex)!==u?o:a.checkRow(e,n,r,l.data,l.components,i)&&o},o)}},{key:"checkRow",value:function(e,n,r,o,a,l){null!=r&&r.isolateRow&&(l=!0,r.noRefresh=!0);var u=i.default.reduce(a,function(i,a){return a[e](n,r,o,l)&&i},!0);return null!=r&&r.noRefresh&&delete r.noRefresh,u}},{key:"hasAddButton",value:function(){var e=i.default.get(this.component,"validate.maxLength"),n=i.default.get(this.component,"conditionalAddButton");return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&!this.options.preview&&(!e||this.iteratableRows.length<e)&&(!n||this.evaluate(n,{value:this.dataValue},"show"))}},{key:"getComponent",value:function(e,n,r){var o=(e=Array.isArray(e)?e:[e]).shift(),a=e,l=[],u=null,s=null,c=null;return i.default.isNumber(o)&&(c=o,o=a.shift()),i.default.isString(o)&&(this.everyComponent(function(e,i){e.component.key===o&&(u=e,a.length>0&&"getComponent"in e?s=e.getComponent(a,n,r):n&&n(e,i),l=null!==c?s:l.concat(s||u))},c),(!l||0===l.length)&&u&&(l=null!==c?u:[u])),l}},{key:"everyComponent",value:function(e,n,r){if(i.default.isObject(n)&&(r=n,n=null),null===(o=r)||void 0===o||!o.email){var o,a=this.getComponents(n);i.default.each(a,function(n,o){if(!1===e(n,a,o)||"function"==typeof n.everyComponent&&!1===n.everyComponent(e,r))return!1})}}},{key:"getValueAsString",value:function(e,n){if(null!=n&&n.email){var r,o='\n <table border="1" style="width:100%">\n <thead>\n <tr>\n ';return null===(r=this.component.components)||void 0===r||r.forEach(function(e){var n=e.label||e.key;o+='<th style="padding: 5px 10px;">'.concat(n,"</th>")}),o+="\n </tr>\n </thead>\n <tbody>\n ",this.iteratableRows.forEach(function(e){var r=e.components;o+="<tr>",i.default.each(r,function(e){o+='<td style="padding:5px 10px;">',e.isInputComponent&&e.visible&&!e.skipInEmail&&(o+=e.getView(e.dataValue,n)),o+="</td>"}),o+="</tr>"}),o+="\n </tbody>\n </table>\n "}return e&&e.length?c(d(h.prototype),"getValueAsString",this).call(this,e,n):""}},{key:"getComponents",value:function(e){return void 0!==e?this.iteratableRows[e]?this.iteratableRows[e].components:[]:c(d(h.prototype),"getComponents",this).call(this)}}],u=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return l.default.schema.apply(l.default,[{disableAddingRemovingRows:!1}].concat(n))}}],r&&s(h.prototype,r),u&&s(h,u),Object.defineProperty(h,"prototype",{writable:!1}),h}(l.default);n.default=p},98087:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(24646),r(35968),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(41126),r(5746),r(12551),r(88455),r(17223),r(32334),r(6588),r(27846),r(9473),r(22818);var i=u(r(11275)),a=u(r(21645)),l=u(r(76635));function u(e){return e&&e.__esModule?e:{default:e}}function s(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function c(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?s(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=f(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEac
1h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=h(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(u,e);var n,r,a=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=h(u);return e=n?Reflect.construct(r,arguments,h(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function u(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,u),a.apply(this,arguments)}return r=[{key:"hasChanged",value:function(e,n){return!(null==e||this.hasValue())||!l.default.isEqual(e,n)}},{key:"allowData",get:function(){return!0}},{key:"emptyValue",get:function(){return{}}},{key:"componentContext",value:function(){return this.dataValue}},{key:"getValueAsString",value:function(e,n){if(null!=n&&n.email){var r='\n <table border="1" style="width:100%">\n <tbody>\n ';return this.everyComponent(function(e){e.isInputComponent&&e.visible&&!e.skipInEmail&&(r+='\n <tr>\n <th style="padding: 5px 10px;">'.concat(e.label,'</th>\n <td style="width:100%;padding:5px 10px;">').concat(e.getView(e.dataValue,n),"</td>\n </tr>\n "))},c(c({},n),{},{fromRoot:!0})),r+="\n </tbody>\n </table>\n "}return l.default.isEmpty(e)?"":null!=n&&n.modalPreview?(delete n.modalPreview,this.getDataValueAsTable(e,n)):"[Complex Data]"}},{key:"getDataValueAsTable",value:function(e,n){var r='\n <table border="1" style="width:100%">\n <tbody>\n ',o=RegExp("<(.*?)>");return this.components.forEach(function(e){if(e.isInputComponent&&e.visible&&!e.skipInEmail){var i=e.getView(e.dataValue,n);r+='\n <tr>\n <th style="padding: 5px 10px;">'.concat(e.label,'</th>\n <td style="width:100%;padding:5px 10px;">').concat(e.component&&"html"===e.component.inputFormat&&o.test(i)?i:'<input type="text" value="'.concat(i.replace(/"/g,"""),'" readonly/>'),"</td>\n </tr>\n ")}},c(c({},n),{},{fromRoot:!0})),r+="\n </tbody>\n </table>\n "}},{key:"everyComponent",value:function(e,n){if(null!=n&&n.email){if(!n.fromRoot)return;delete n.fromRoot}return d(h(u.prototype),"everyComponent",this).call(this,e,n)}},{key:"getValue",value:function(){return this.dataValue}},{key:"updateValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.default.prototype.updateValue.call(this,e,n)}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!1,o=this.hasValue();return o&&l.default.isEmpty(this.dataValue)&&(n.noValidate=!0),e&&l.default.isObject(e)&&o||(r=!0,this.dataValue=this.defaultValue),r=d(h(u.prototype),"setValue",this).call(this,e,n)||r,this.updateOnChange(n,r),r}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}(u.prototype,r),Object.defineProperty(u,"prototype",{writable:!1}),u}(a.default);n.default=m},80928:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];
1return o.default.baseEditForm.apply(o.default,[[{key:"data",components:i.default},{key:"display",components:a.default},{label:"Provider",key:"provider",weight:15,components:l.default}]].concat(n))},r(43001);var o=u(r(6296)),i=u(r(59649)),a=u(r(94077)),l=u(r(74934));function u(e){return e&&e.__esModule?e:{default:e}}},2344:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(24646),r(30534),r(98197),r(18036),r(11102),r(17943),r(15469),r(1542),r(12083),r(30902),Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.AddressComponentMode=void 0,r(76381),r(34078),r(88455),r(17223),r(32334),r(97172),r(9473),r(43001),r(5746),r(41666),r(35968),r(27846),r(22818);var i=d(r(49889)),a=d(r(76635)),l=r(38388),u=r(50940),s=d(r(70362)),c=d(r(21645)),f=d(r(15179));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;s=!1}else for(;!(s=(o=a.call(r)).done)&&(u.push(o.value),u.length!==n);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return u}}(e,n)||h(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,n){if(e){if("string"==typeof e)return m(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,n)}}function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function y(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function v(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?y(Object(r),!0).forEach(function(n){b(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b(e,n,r){return(n=w(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function g(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,w(o.key),o)}}function w(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function k(){return(k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=_(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function O(e,n){return(O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j={Autocomplete:"autocomplete",Manual:"manual"};n.AddressComponentMode=j;var P="address-autocomplete-remove-value-icon--hidden",S="show = _.get(instance, 'parent.manualMode', false);",E=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&O(e,n)}(w,e);var n,r,d,y=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=_(w);return e=n?Reflect.construct(r,arguments,_(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function w(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,w),y.apply(this,arguments)}return r=[{key:"mergeSchema",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.defaultSchema;return e.components&&(n=a.default.omit(n,"components")),a.default.defaultsDeep(e,n)}},{key:"init",value:function(){if(this.components=this.components||[],(this.builderMode||this.manualModeEnabled)&&c.default.prototype.addComponents.call(this,this.manualMode?this.address:{}),s.default.prototype.init.call(this),!this.builderMode){if(this.component.provider){var e=this.component,n=e.provider,r=e.providerOptions;this.provider=this.initializeProvider(n,r)}else if(this.component.map){this.component.provider=u.GoogleAddressProvider.name,this.component.providerOptions=this.component.providerOptions||{};var o=this.component,i=o.map,l=o.provider,f=o.providerOptions,d=i.key,p=i.region;d&&a.default.set(f,"params.key",d),p&&a.default.set(f,"params.region",p),this.provider=this.initializeProvider(l,f)}}}},{key:"initializeProvider",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.interpolate(n.url);return new(l.GlobalFormio.Providers.getProvider("address",e))(v(v({},n),{},{url:r}))}},{key:"emptyValue",get:function(){return this.manualModeEnabled?{mode:j.Autocomplete,address:{}}:{}}},{key:"mode",get:function(){var e,n;return this.manualModeEnabled&&null!==(e=null===(n=this.dataValue)||void 0===n?void 0:n.mode)&&void 0!==e?e:j.Autocomplete},set:function(e){this.manualModeEnabled&&(this.dataValue.mode=e)}},{key:"autocompleteMode",get:function(){return this.mode===j.Autocomplete}},{key:"manualMode",get:function(){return this.mode===j.Manual}},{key:"manualModeEnabled",get:function(){return!this.isMultiple&&!!this.component.enableManualMode}},{key:"restoreComponentsContext",value:function(){var e=this;
vendor: 10,643 bytes, line 1
1this.getComponents().forEach(function(n){n.data=e.address,n.setValue(n.dataValue,{noUpdateEvent:!0})})}},{key:"isMultiple",get:function(){return!!this.component.multiple}},{key:"address",get:function(){return this.isMultiple?a.default.isArray(this.dataValue)?this.dataValue:[this.dataValue]:this.manualModeEnabled&&this.dataValue?this.dataValue.address:this.dataValue},set:function(e){this.manualModeEnabled&&!this.isMultiple?this.dataValue.address=e:this.dataValue=e}},{key:"defaultValue",get:function(){var e=k(_(w.prototype),"defaultValue",this);return this.isMultiple&&(e=a.default.isArray(e)?e:[e]),e}},{key:"defaultSchema",get:function(){return w.schema()}},{key:"isValueInLegacyFormat",value:function(e){return e&&!e.mode}},{key:"normalizeValue",value:function(e){return this.manualModeEnabled&&this.isValueInLegacyFormat(e)?{mode:j.Autocomplete,address:e}:e}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=s.default.prototype.setValue.call(this,e,n);return this.manualMode&&this.restoreComponentsContext(),(r||!a.default.isEmpty(e)&&n.fromSubmission)&&this.redraw(),r}},{key:"modeSwitcher",get:function(){return this.refs&&this.refs[w.modeSwitcherRef]||null}},{key:"removeValueIcon",get:function(){return this.refs&&this.refs[w.removeValueIconRef]||null}},{key:"searchInput",get:function(){return this.refs&&this.refs[w.searchInputRef]||null}},{key:"addRowButton",get:function(){return this.refs&&this.refs[w.addRowButtonRef]||null}},{key:"removeRowButton",get:function(){return this.refs&&this.refs[w.removeRowButtonRef]||null}},{key:"searchInputAttributes",get:function(){var e={name:this.options.name,type:"text",class:"form-control",lang:this.options.language,tabindex:this.component.tabindex||0};return this.component.placeholder&&(e.placeholder=this.t(this.component.placeholder)),this.disabled&&(e.disabled="disabled"),a.default.defaults(e,this.component.attributes),e}},{key:"templateName",get:function(){return"address"}},{key:"gridTemplateName",get:function(){return"multiValueTable"}},{key:"rowTemplateName",get:function(){return"multiValueRow"}},{key:"hasChildren",get:function(){return!this.isMultiple&&(this.builderMode||this.manualModeEnabled)}},{key:"addAnother",get:function(){return this.t(this.component.addAnother||"Add Another")}},{key:"renderElement",value:function(e){return this.renderTemplate(this.templateName,{children:this.hasChildren?this.renderComponents():"",nestedKey:this.nestedKey,inputAttributes:this.searchInputAttributes,ref:{modeSwitcher:w.modeSwitcherRef,removeValueIcon:w.removeValueIconRef,searchInput:w.searchInputRef},displayValue:this.getDisplayValue(e),mode:{autocomplete:this.autocompleteMode,manual:this.manualMode}})}},{key:"renderRow",value:function(e,n){return this.renderTemplate(this.rowTemplateName,{index:n,disabled:this.disabled,element:"".concat(this.renderElement(e,n))})}},{key:"renderGrid",value:function(){return this.renderTemplate(this.gridTemplateName,{rows:this.address.map(this.renderRow.bind(this)).join(""),disabled:this.disabled,addAnother:this.addAnother})}},{key:"render",value:function(){return this.isMultiple?k(_(w.prototype),"render",this).call(this,this.renderGrid()):k(_(w.prototype),"render",this).call(this,this.renderElement())}},{key:"onSelectAddress",value:function(e,n,r){if(this.isMultiple){var o;this.address[r]=e,this.address=function(e){if(Array.isArray(e))return m(e)}(o=this.address)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||h(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}else this.address=e;this.triggerChange({modified:!0}),n&&(n.value=this.getDisplayValue(this.isMultiple?this.address[r]:this.address)),this.updateRemoveIcon(r)}},{key:"addRow",value:function(){this.address=this.address.concat(this.emptyValue),k(_(w.prototype),"redraw",this).call(this)}},{key:"attach",value:function(e){var n,r=this,o=(this.builderMode||this.manualMode?k(_(w.prototype),"attach",this):s.default.prototype.attach).call(this,e);if(!this.builderMode&&!this.provider&&this.component.provider){var l=this.component,u=l.provider,c=l.providerOptions;this.provider=this.initializeProvider(u,c)}return this.loadRefs(e,(b(n={},w.addRowButtonRef,"single"),b(n,w.modeSwitcherRef,"single"),b(n,w.removeRowButtonRef,"multiple"),b(n,w.removeValueIconRef,"multiple"),b(n,w.searchInputRef,"multiple"),n)),this.searchInput.forEach(function(e,n){!r.builderMode&&e&&r.provider&&("google"===r.component.provider?r.provider.attachAutocomplete(e,n,r.onSelectAddress.bind(r)):(0,i.default)({input:e,debounceWaitMs:300,fetch:function(e,n){r.provider.search(e).then(n)},render:function(e){var n=r.ce("div");return n.textContent=r.getDisplayValue(e),n},onSelect:function(o){r.onSelectAddress(o,e,n)}}),r.addEventListener(e,"blur",function(){e&&e.value&&(e.value=r.getDisplayValue(r.isMultiple?r.address[n]:r.address))}),r.addEventListener(e,"keyup",function(){e&&(e.value||r.clearAddress(e,n))}))}),this.addRowButton&&this.addEventListener(this.addRowButton,"click",function(e){e.preventDefault(),r.addRow()}),this.removeRowButton.forEach(function(e,n){r.addEventListener(e,"click",function(e){e.preventDefault(),r.removeValue(n)})}),this.modeSwitcher&&this.addEventListener(this.modeSwitcher,"change",function(){r.modeSwitcher&&(r.dataValue=r.emptyValue,r.mode=r.modeSwitcher.checked?j.Manual:j.Autocomplete,r.builderMode||(r.manualMode&&r.restoreComponentsContext(),r.triggerChange({modified:!0})),r.redraw())}),this.builderMode||(this.removeValueIcon.forEach(function(e,n){r.updateRemoveIcon(n);var o=function(){var e,o=null===(e=r.searchInput)||void 0===e?void 0:e[n];r.clearAddress(o,n),o&&o.focus()};r.addEventListener(e,"click",o),r.addEventListener(e,"keydown",function(e){"Enter"===e.key&&o()})}),a.default.each(this.refs.searchInput||[],function(e){return r.addFocusBlurEvents(e)})),o}},{key:"addChildComponent",value:function(e){e.customConditional=S}},{key:"redraw",value:function(){var e=this,n=this.modeSwitcher&&document.activeElement===this.modeSwitcher;return k(_(w.prototype),"redraw",this).call(this).then(function(r){return n&&e.modeSwitcher&&e.modeSwitcher.focus(),r})}},{key:"clearAddress",value:function(e,n){var r;this.isEmpty()||this.triggerChange(),null!==(r=this.address)&&void 0!==r&&r[n]?this.address[n]=this.emptyValue:this.address=this.emptyValue,e&&(e.value=""),this.updateRemoveIcon(n)}},{key:"getDisplayValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.address;return this.provider&&!this.manualMode?this.provider.getDisplayValue(e):""}},{key:"validateMultiple",value:function(){return this.isMultiple}},{key:"updateRemoveIcon",value:function(e){var n,r=null===(n=this.removeValueIcon)||void 0===n?void 0:n[e];if(r){var o=this.isMultiple?this.address[e]:this.address;this.isEmpty(o)||this.disabled?this.addClass(r,P):this.removeClass(r,P)}}},{key:"getValueAsString",value:function(e,n){if(!e)return"";var r=this.normalizeValue(e),o=this.manualModeEnabled?r:{address:r,mode:j.Autocomplete},i=o.address,l=o.mode===j.Manual;return this.provider&&!l?this.getDisplayValue(i):l?this.component.manualModeViewString?this.interpolate(this.component.manualModeViewString,{address:i,data:this.data,component:this.component}):this.getComponents().filter(function(e){return e.hasValue(i)}).map(function(e){return[e,a.default.get(i,e.key)]}).filter(function(e){var n=p(e,2),r=n[0],o=n[1];return!r.isEmpty(o)}).map(function(e){var r=p(e,2),o=r[0],i=r[1];return o.getValueAsString(i,n)}).join(", "):k(_(w.prototype),"getValueAsString",this).call(this,i,n)}},{key:"focus",value:function(){this.searchInput&&this.searchInput[0]&&this.searchInput[0].focus()}}],d=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return f.default.schema.apply(f.default,[{type:"address",label:"Address",key:"address",switchToManualModeLabel:"Can't find address? Switch to manual mode.",provider:"",providerOptions:{},manualModeViewString:"",hideLabel:!1,disableClearIcon:!1,enableManualMode:!1,components:[{label:"Address 1",tableView:!1,key:"address1",type:"textfield",input:!0,customConditional:S},{label:"Address 2",tableView:!1,key:"address2",type:"textfield",input:!0,customConditional:S},{label:"City",tableView:!1,key:"city",type:"textfield",input:!0,customConditional:S},{label:"State",tableView:!1,key:"state",type:"textfield",input:!0,customConditional:S},{label:"Country",tableView:!1,key:"country",type:"textfield",input:!0,customConditional:S},{label:"Zip Code",tableView:!1,key:"zip",type:"textfield",input:!0,customConditional:S}]}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Address",group:"advanced",icon:"home",documentation:"/userguide/form-building/advanced-components#address",weight:35,schema:w.schema()}}},{key:"modeSwitcherRef",get:function(){return"modeSwitcher"}},{key:"removeValueIconRef",get:function(){return"removeValueIcon"}},{key:"searchInputRef",get:function(){return"searchInput"}},{key:"addRowButtonRef",get:function(){return"addButton"}},{key:"removeRowButtonRef",get:function(){return"removeRow"}}],r&&g(w.prototype,r),d&&g(w,d),Object.defineProperty(w,"prototype",{writable:!1}),w}(f.default);n.default=E},59649:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",customConditional:function(e){return!e.data.enableManualMode}},{type:"address",label:"Default Value",key:"defaultValue",weight:5,placeholder:"Default Value",tooltip:"The Default Value will be the value for this field, before user interaction. Having a default value will override the placeholder text.",input:!0,customDefaultValue:function(e){return e.instance.manualModeEnabled?{mode:"autocomplete",address:{}}:{}}}]},94077:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{weight:20,type:"checkbox",input:!0,key:"enableManualMode",label:"Enable Manual Mode",tooltip:"Should Manual Mode be enabled for that component or not.",customConditional:function(e){return!e.data.multiple}},{weight:30,type:"textfield",input:!0,key:"switchToManualModeLabel",label:"Switch To Manual Mode Label",placeholder:"Switch To Manual Mode Label",tooltip:"The label for the checkbox used to switch to manual mode.",validate:{required:!0},customConditional:function(e){return!!e.data.enableManualMode}},{weight:40,type:"checkbox",input:!0,key:"disableClearIcon",label:"Disable Clear Icon",tooltip:"
1Clear Icon allows easily clear component's value."},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:function(e){return e.data.multiple}}]},74934:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(76381),r(13423),r(17943),r(17223),r(1542),r(34078);var o,i=(o=r(76635))&&o.__esModule?o:{default:o},a=r(38388);n.default=[{type:"select",input:!0,key:"provider",label:"Provider",placeholder:"Select your address search provider",weight:0,tooltip:"Which address search service should be used.",valueProperty:"value",dataSrc:"custom",data:{custom:function(){return i.default.values(a.GlobalFormio.Providers.getProviders("address")).sort().map(function(e){return{label:e.displayName,value:e.name}})}},validate:{required:!0}},{type:"textfield",input:!0,key:"providerOptions.params['subscription-key']",label:"Subscription Key",placeholder:"Enter Subscription Key",weight:10,tooltip:"Use your Azure Maps subscription key here.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"azure"]}}},{type:"textfield",input:!0,key:"providerOptions.url",label:"Url",placeholder:"Enter Url",weight:10,tooltip:"Url to the service which should be used to search addresses for autocomplete.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.queryProperty",label:"Query Property",defaultValue:"query",placeholder:"Enter Query Property",weight:20,tooltip:"Which query param should be used to pass as a search string. Default is `query`.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.responseProperty",label:"Response Property",placeholder:"Enter Response Property",weight:30,tooltip:"The property within the response data, where iterable addresses reside. For example: results.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.displayValueProperty",label:"Display Value Property",placeholder:"Display Value Property",weight:40,tooltip:"The property of each address in the response to use as the display value.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textarea",input:!0,key:"providerOptions.params",label:"Params",placeholder:"{ ... }",weight:50,rows:5,editor:"ace",as:"json",tooltip:"Additional query params can be specified here in a way of JSON object.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.params.key",label:"API Key",placeholder:"Enter API Key",weight:10,tooltip:"Use your Google API key here.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"google"]}}},{type:"textarea",input:!0,key:"providerOptions.params.autocompleteOptions",label:"Provider options",placeholder:"Enter provider options as JSON object",defaultValue:{},weight:60,rows:5,as:"json",editor:"ace",tooltip:"Specify Google Maps Autocomplete options used for address searching as JSON object. Follow the <a href ='https://developers.google.com/maps/documentation/javascript/places-autocomplete' target='_blank'>link</a> for available options",conditional:{json:{"===":[{var:"data.provider"},"google"]}}},{type:"textarea",input:!0,key:"manualModeViewString",label:"Manual Mode View String",placeholder:"Enter Manual Mode View String",description:'"address" variable references component value, "data" - submission data and "component" - address component schema.',weight:60,rows:5,editor:"ace",tooltip:"Specify template which should be when quering view string for the component value entered in manual mode. This string is used in table view, CSV export and email rendering. When left blank combined value of all components joined with comma will be used."}]},83646:function(e,n,r){"use strict";r(26944),r(24646),r(35968),r(77762),r(30534),r(98197),r(18036),r(11102),r(17943),r(15469),r(1542),r(12083),r(30902),r(34078),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(9473),r(88455),r(17223),r(32334),r(43001),r(41099),r(5746),r(6588),r(18997),r(24956),r(6765),r(12443),r(92884);var o,i=(o=r(76635))&&o.__esModule?o:{default:o},a=r(9494);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,n){if(e){if("string"==typeof e)return c(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,n)}}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function f(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
1n%2?f(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=p(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p(e){var n=function(e,n){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==l(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===l(n)?n:String(n)}var h=function(){var e;function n(e,r){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n),this.container=e,this.alert=null,this.parentComponent=r,this.refs={},this.loadRefs=this.parentComponent.loadRefs.bind(this)}return e=[{key:"refsNames",get:function(){return{messageRef:"multiple"}}},{key:"alertTypes",get:function(){return{error:"danger",success:"success",info:"info",warning:"warning"}}},{key:"showErrors",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e=i.default.isArray(e)?e:[e];var o=this.createMessagesList("error",e);return this.showAlert("error",o,r),n&&this.parentComponent.emit("error",e),e}},{key:"showMessage",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e;o instanceof HTMLElement?o.setAttribute("ref","messageRef"):o=this.parentComponent.ce("p",{ref:"messageRef"}),this.showAlert(n,o,r)}},{key:"createMessagesList",value:function(e){if("error"===e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];
1return this.createErrorList.apply(this,r)}}},{key:"createErrorList",value:function(e){var n=this,r=this.parentComponent.ce("p");this.parentComponent.setContent(r,this.parentComponent.t("error"));var o=this.parentComponent.ce("ul"),i=document.createDocumentFragment();return e.forEach(function(e){return n.appendErrorToList(e,o)}),r.appendChild(o),i.appendChild(r),i}},{key:"showAlert",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.customClasses,i=r.customEvents;this.setAlert(e,n,{customClasses:o}),this.alert&&(this.attach({customEvents:i}),this.parentComponent.prependTo(this.alert,this.container))}},{key:"setAlert",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.alertTypes[e];if(this.alert&&this.clear(),n){var i=r.id,a=void 0===i?"".concat(e,"-list-").concat(this.parentComponent.id):i,l=r.customClasses;this.alert=this.parentComponent.ce("div",{id:a,class:void 0===l?"alert alert-".concat(o):l}),n instanceof HTMLElement?this.parentComponent.appendTo(n,this.alert):this.parentComponent.setContent(this.alert,n)}}},{key:"attach",value:function(e){var n,r,o,i=this,a=e.customEvents,l=void 0===a?{}:a;this.eventListenersKeys=[],this.loadRefs(this.alert,this.refsNames);var c=(null===(n=l.click)||void 0===n?void 0:n.listeners)||[],f=(null===(r=l.keypress)||void 0===r?void 0:r.listeners)||[];l=d(d({},l),{},{click:[].concat(u(c),[function(e){var n=e.currentTarget.dataset.componentKey;i.focusOnComponent(n)}]),keypress:[].concat(u(f),[function(e){var n=e.currentTarget.dataset.componentKey;i.focusOnComponent(n)}])}),null!==(o=this.refs.messageRef)&&void 0!==o&&o.length&&this.refs.messageRef.forEach(function(e){Object.entries(l).forEach(function(n){var r=function(e){if(Array.isArray(e))return e}(n)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,u=[],s=!0,c=!1;try{for(a=(r=r.call(e)).next;!(s=(o=a.call(r)).done)&&(u.push(o.value),2!==u.length);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return u}}(n,2)||s(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=r[0];r[1].forEach(function(n){return i.parentComponent.addEventListener(e,o,n)}),i.eventListenersKeys.push(o)})})}},{key:"clear",value:function(){var e,n=this;try{null!==(e=this.refs.messageRef)&&void 0!==e&&e.length&&this.refs.messageRef.forEach(function(e){n.eventListenersKeys.forEach(function(r){return n.parentComponent.removeEventListener(e,r)})}),this.refs={},this.parentComponent.removeChildFrom(this.alert,this.container),this.alert=null}catch(e){}}},{key:"focusOnComponent",value:function(e){if(e){var n,r=this.parentComponent._parentPath?e.replace(this.parentComponent._parentPath,""):e,o=null===(n=this.parentComponent.root)||void 0===n?void 0:n.getComponent(r,null,e);o&&i.default.isFunction(o.focus)&&o.focus()}}},{key:"createMessage",value:function(e,n,r,o,i){if("error"===e)return this.createErrorMessage(n,r,o,i)}},{key:"createErrorMessage",value:function(e,n,r,o){var l,u,s=this.parentComponent.ce("li",{style:"cursor: pointer",ref:"messageRef",tabIndex:0,"aria-label":"".concat(n,". Click to navigate to the field with following error.")});this.parentComponent.setContent(s,n);var c=!i.default.isUndefined(r)&&(null==o?void 0:null===(l=o.messages)||void 0===l?void 0:l[r]),f=(null==c?void 0:c.path)||(null==o?void 0:null===(u=o.component)||void 0===u?void 0:u.key);if(f){var d=(0,a.getStringFromComponentPath)(f);s.dataset.componentKey=d}this.parentComponent.appendTo(s,e)}},{key:"appendErrorToList",value:function(e,n){var r,o=this;if(null!=e&&null!==(r=e.messages)&&void 0!==r&&r.length)e.messages.forEach(function(r,i){var a=r.message;o.createMessage("error",n,a,i,e)});else if(e){var a=i.default.isObject(e)?e.message||"":e;this.createMessage("error",n,a)}}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,p(o.key),o)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=h},24192:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=G(r(9203)),i=G(r(80928)),a=G(r(22924)),l=G(r(66575)),u=G(r(66795)),s=G(r(30308)),c=G(r(22729)),f=G(r(11302)),d=G(r(12773)),p=G(r(64
1135)),h=G(r(24659)),m=G(r(92574)),y=G(r(95805)),v=G(r(47860)),b=G(r(31787)),g=G(r(70370)),w=G(r(91261)),k=G(r(88436)),O=G(r(5417)),_=G(r(14598)),j=G(r(26812)),P=G(r(28600)),S=G(r(825)),E=G(r(76804)),x=G(r(47661)),C=G(r(11417)),R=G(r(7358)),A=G(r(83538)),M=G(r(59486)),T=G(r(10630)),D=G(r(39070)),I=G(r(14358)),L=G(r(57223)),V=G(r(63577)),N=G(r(43261)),F=G(r(74226)),U=G(r(76180)),B=G(r(80736)),z=G(r(51007)),q=G(r(82463)),H=G(r(70474)),W=G(r(3980)),K=G(r(74729));function G(e){return e&&e.__esModule?e:{default:e}}o.default.address.editForm=i.default,o.default.button.editForm=a.default,o.default.checkbox.editForm=l.default,o.default.columns.editForm=u.default,o.default.component.editForm=s.default,o.default.container.editForm=c.default,o.default.content.editForm=f.default,o.default.currency.editForm=d.default,o.default.datagrid.editForm=p.default,o.default.datamap.editForm=h.default,o.default.datetime.editForm=m.default,o.default.day.editForm=y.default,o.default.editgrid.editForm=v.default,o.default.email.editForm=b.default,o.default.fieldset.editForm=g.default,o.default.file.editForm=w.default,o.default.form.editForm=k.default,o.default.list.editForm=O.default,o.default.hidden.editForm=_.default,o.default.htmlelement.editForm=j.default,o.default.nested.editForm=P.default,o.default.number.editForm=S.default,o.default.panel.editForm=E.default,o.default.password.editForm=x.default,o.default.phoneNumber.editForm=C.default,o.default.radio.editForm=R.default,o.default.recaptcha.editForm=A.default,o.default.resource.editForm=M.default,o.default.select.editForm=D.default,o.default.selectboxes.editForm=T.default,o.default.signature.editForm=I.default,o.default.survey.editForm=L.default,o.default.table.editForm=V.default,o.default.tabs.editForm=N.default,o.default.tags.editForm=F.default,o.default.textarea.editForm=U.default,o.default.textfield.editForm=B.default,o.default.time.editForm=z.default,o.default.tree.editForm=q.default,o.default.unknown.editForm=H.default,o.default.url.editForm=W.default,o.default.well.editForm=K.default;var Y=o.default;n.default=Y},22924:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:i.default},{key:"data",ignore:!0},{key:"validation",ignore:!0}]].concat(n))},r(43001);var o=a(r(6296)),i=a(r(75960));function a(e){return e&&e.__esModule?e:{default:e}}},93325:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(28121),r(69446),r(92782),r(9473),r(5746),r(6588),r(41126),r(12551),r(41666),r(43001),r(97172),r(76381),r(24646),r(75162),r(52315),r(17223),r(34078),r(35968),r(27846),r(22818);var i=c(r(76635)),a=c(r(18947)),l=c(r(70362)),u=c(r(49974)),s=r(9494);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=h(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}
1function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(m,e);var n,r,l,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=h(m);return e=n?Reflect.construct(r,arguments,h(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function m(e,n,r){var o;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,m),(o=c.call(this,e,n,r)).filesUploading=[],o}return r=[{key:"defaultSchema",get:function(){return m.schema()}},{key:"inputInfo",get:function(){var e=d(h(m.prototype),"elementInfo",this).call(this);return e.type="button",e.attr.type=["submit","saveState"].includes(this.component.action)?"submit":"button",this.component.theme=this.component.theme||"default",e.attr.class="btn btn-".concat(this.component.theme),this.component.size&&(e.attr.class+=" btn-".concat(this.component.size)),this.component.block&&(e.attr.class+=" btn-block"),this.component.customClass&&(e.attr.class+=" ".concat(this.component.customClass)),e.content=this.t(this.component.label,{_userInput:!0}),e}},{key:"labelInfo",get:function(){return{hidden:!0}}},{key:"loading",set:function(e){this.setLoading(this.refs.button,e)}},{key:"skipInEmail",get:function(){return!0}},{key:"createLabel",value:function(){}},{key:"createInput",value:function(e){return this.refs.button=d(h(m.prototype),"createInput",this).call(this,e),this.refs.button}},{key:"emptyValue",get:function(){return!1}},{key:"getValue",value:function(){return this.dataValue}},{key:"clicked",get:function(){return this.dataValue}},{key:"defaultValue",get:function(){return!1}},{key:"className",get:function(){return d(h(m.prototype),"className",this)+" ".concat(this.transform("class","form-group"))}},{key:"oauthConfig",get:function(){return i.default.has(this,"root.form.config.oauth")&&this.component.oauthProvider?this.root.form.config.oauth[this.component.oauthProvider]:!!this.component.oauth&&this.component.oauth}},{key:"render",value:function(){return(this.viewOnly||this.options.hideButtons)&&(this._visible=!1),d(h(m.prototype),"render",this).call(this,this.renderTemplate("button",{component:this.component,input:this.inputInfo}))}},{key:"attachButton",value:function(){var e=this;this.addShortcut(this.refs.button);var n=null,r=null;if("submit"===this.component.action&&(this.on("submitButton",function(){e.disabled=!0},!0),this.on("cancelSubmit",function(){e.disabled=!1},!0),this.on("submitDone",function(n){var r=i.default.isString(n)?n:e.t("complete");e.loading=!1,e.disabled=!1,e.addClass(e.refs.button,"btn-success submit-success"),e.removeClass(e.refs.button,"btn-danger submit-fail"),e.addClass(e.refs.buttonMessageContainer,"has-success"),e.removeClass(e.refs.buttonMessageContainer,"has-error"),e.setContent(e.refs.buttonMessage,r)},!0),this.on("submitError",function(n){var r=i.default.isString(n)?e.t(n):e.t(e.errorMessage("submitError"));e.loading=!1,e.disabled=!1,e.hasError=!0,e.removeClass(e.refs.button,"btn-success submit-success"),e.addClass(e.refs.button,"btn-danger submit-fail"),e.removeClass(e.refs.buttonMessageContainer,"has-success"),e.addClass(e.refs.buttonMessageContainer,"has-error"),e.setContent(e.refs.buttonMessage,r)},!0),this.on("fileUploadingStart",function(n){e.filesUploading.push(n),e.disabled=!0,e.setDisabled(e.refs.button,e.disabled)},!0),this.on("fileUploadingEnd",function(n){var r=e.filesUploading.indexOf(n);-1!==r&&e.filesUploading.splice(r,1),e.disabled=!!e.shouldDisabled,e.setDisabled(e.refs.button,e.disabled)},!0),n=function(n,r){e.removeClass(e.refs.button,"btn-success submit-success"),r&&(e.removeClass(e.refs.button,"btn-danger submit-fail"),e.hasError&&(e.hasError=!1,e.setContent(e.refs.buttonMessage,""),e.removeClass(e.refs.buttonMessageContainer,"has-success"),e.removeClass(e.refs.buttonMessageContainer,"has-error")))},r=function(){e.hasError=!0,e.removeClass(e.refs.button,"btn-success submit-success"),e.addClass(e.refs.button,"btn-danger submit-fail"),e.removeClass(e.refs.buttonMessageContainer,"has-success"),e.addClass(e.refs.buttonMessageContainer,"has-error"),e.setContent(e.refs.buttonMessage,e.t(e.errorMessage("submitError")))}),"url"===this.component.action&&(this.on("requestButton",function(){e.disabled=!0},!0),this.on("requestDone",function(){e.loading=!1,e.disabled=!1},!0)),this.on("change",function(r,o){var i=r.isValid,a=o&&o.silent;o&&o.noValidate&&(e.component.disableOnInvalid||e.hasError)&&(i=o.rootValidity||!e.root||e.root.checkValidity(e.root.data,null,
1null,!0),o.rootValidity=i),e.isDisabledOnInvalid=e.component.disableOnInvalid&&(a||!i),e.disabled=e.shouldDisabled,e.setDisabled(e.refs.button,e.disabled),n&&n(r,i)},!0),this.on("error",function(){e.loading=!1,e.disabled=!1,r&&r()},!0),this.component.saveOnEnter&&this.root.addEventListener(this.root.element,"keyup",function(n){13===n.keyCode&&e.onClick.call(e,n)}),this.addEventListener(this.refs.button,"click",this.onClick.bind(this)),this.addEventListener(this.refs.buttonMessageContainer,"click",function(){e.refs.buttonMessageContainer.classList.contains("has-error")&&e.root&&e.root.alert&&e.scrollIntoView(e.root.alert)}),this.disabled=this.shouldDisabled,this.setDisabled(this.refs.button,this.disabled),"oauth"===this.component.action&&this.oauthConfig&&!this.oauthConfig.error){var o,a,l=(o=(o="iss").replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),(a=new RegExp("[\\?&]".concat(o,"=([^&#]*)")).exec(location.search))?decodeURIComponent(a[1].replace(/\+/g," ")):a);l&&0===this.oauthConfig.authURI.indexOf(l)&&this.openOauth(this.oauthConfig)}}},{key:"shouldDisabled",get:function(){var e;return d(h(m.prototype),"shouldDisabled",this)||!!(null!==(e=this.filesUploading)&&void 0!==e&&e.length)||this.isDisabledOnInvalid}},{key:"attach",value:function(e){this.loadRefs(e,{button:"single",buttonMessageContainer:"single",buttonMessage:"single"});var n=d(h(m.prototype),"attach",this).call(this,e);return this.attachButton(),n}},{key:"detach",value:function(e){e&&this.refs.button&&this.removeShortcut(this.refs.button),d(h(m.prototype),"detach",this).call(this)}},{key:"onClick",value:function(e){if(this.triggerReCaptcha(),!this.disabled&&"builder"!==this.options.attachMode)switch(this.dataValue=!0,"submit"!==this.component.action&&this.component.showValidations&&this.emit("checkValidity",this.data),this.component.action){case"saveState":case"submit":e.preventDefault(),e.stopPropagation(),this.loading=!0,this.emit("submitButton",{state:this.component.state||"submitted",component:this.component,instance:this});break;
1case"event":this.emit(this.interpolate(this.component.event),this.data),this.events.emit(this.interpolate(this.component.event),this.data),this.emit("customEvent",{type:this.interpolate(this.component.event),component:this.component,data:this.data,event:e});break;case"custom":var n=this.getRoot(),r={},o={};(0,s.eachComponent)(n.components,function(e,n){var i=e.component||e;r[n]=i,o[i.key]=i},!0),this.evaluate(this.component.custom,{form:n,flattened:r,components:o}),this.triggerChange();break;case"url":this.loading=!0,this.emit("requestButton",{component:this.component,instance:this}),this.emit("requestUrl",{url:this.interpolate(this.component.url),headers:this.component.headers});break;case"reset":this.emit("resetForm");break;case"delete":this.emit("deleteSubmission");break;case"oauth":if(this.root===this){console.warn("You must add the OAuth button to a form for it to function properly");return}if(!this.oauthConfig){this.root.setAlert("danger","OAuth not configured. You must configure oauth for your project before it will work.");break}if(this.oauthConfig.error){this.root.setAlert("danger","The Following Error Has Occured ".concat(this.oauthConfig.error));break}this.openOauth(this.oauthConfig)}}},{key:"openOauth",value:function(e){var n=this;if(!this.root.formio){console.warn("You must attach a Form API url to your form in order to use OAuth buttons.");return}var r={response_type:"code",client_id:e.clientId,redirect_uri:e.redirectURI||window.location.origin||"".concat(window.location.protocol,"//").concat(window.location.host),state:e.state,scope:e.scope},o=r.redirect_uri;e.display&&(r.display=e.display),r=Object.keys(r).map(function(e){return"".concat(e,"=").concat(encodeURIComponent(r[e]))}).join("&");var l=-1!==e.authURI.indexOf("?")?"&":"?",u="".concat(e.authURI).concat(l).concat(r),s=window.open(u,e.provider,"width=1020,height=618"),c=setInterval(function(){try{var r=s.location.host,l=window.location.host;if(s&&!s.closed&&r===l){s.close();var u=s.location.search.substr(1).split("&").reduce(function(e,n){var r=n.split("=");return e[r[0]]=r[1],e},{});if(u.error){alert(u.error_description||u.error),n.root.setAlert("danger",u.error_description||u.error);return}if(e.state!==u.state){n.root.setAlert("danger","OAuth state does not match. Please try logging in again.");return}var f=a.default.resolve();if(i.default.has(n,"root.form.config.oauth")&&n.root.form.config.oauth[n.component.oauthProvider])u.provider=e.provider,u.redirectURI=o,u.triggeredBy=n.oauthComponentPath,f=n.root.formio.makeRequest("oauth","".concat(n.root.formio.projectUrl,"/oauth2"),"POST",u);else{var d={data:{},oauth:{}};d.oauth[e.provider]=u,d.oauth[e.provider].redirectURI=o,e.logoutURI&&n.root.formio.oauthLogoutURI(e.logoutURI),d.oauth[e.provider].triggeredBy=n.oauthComponentPath,f=n.root.formio.saveSubmission(d)}f.then(function(e){n.root.onSubmit(e,!0)}).catch(function(e){n.root.onSubmissionError(e)})}}catch(e){"SecurityError"!==e.name&&("Error"!==e.name||"Permission denied"!==e.message)&&n.root.setAlert("danger",e.message||e)}(!s||s.closed||void 0===s.closed)&&clearInterval(c)},100)}},{key:"oauthComponentPath",get:function(){var e=(0,s.getArrayFromComponentPath)(this.path);return i.default.chain(e).filter(function(e){return!i.default.isNumber(e)}).join(".").value()}},{key:"focus",value:function(){this.refs.button&&this.refs.button.focus()}},{key:"triggerReCaptcha",value:function(){var e,n=this;this.root&&(this.root.everyComponent(function(r){"recaptcha"===r.component.type&&"buttonClick"===r.component.eventType&&r.component.buttonKey===n.component.key&&(e=r)}),e&&e.verify("".concat(this.component.key,"Click")))}}],l=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return u.default.schema.apply(u.default,[{type:"button",label:"Submit",key:"submit",size:"md",leftIcon:"",rightIcon:"",block:!1,action:"submit",persistent:!1,disableOnInvalid:!1,theme:"primary",dataGridLabel:!0}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Button",group:"basic",icon:"stop",documentation:"/userguide/form-building/form-components#button",weight:110,schema:m.schema()}}}],r&&f(m.prototype,r),l&&f(m,l),Object.defineProperty(m,"prototype",{writable:!1}),m}(l.default);n.default=m},75960:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(17216);
1var o=a(r(65319)),i=a(r(76635));function a(e){return e&&e.__esModule?e:{default:e}}var l=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"hideLabel",customConditional:function(e){var n,r;return null===(n=e.instance.options)||void 0===n?void 0:null===(r=n.flags)||void 0===r?void 0:r.inDataGrid}},{key:"dataGridLabel",ignore:!0},{type:"select",key:"action",label:"Action",input:!0,dataSrc:"values",weight:110,tooltip:"This is the action to be performed by this button.",data:{values:[{label:"Submit",value:"submit"},{label:"Save in state",value:"saveState"},{label:"Event",value:"event"},{label:"Custom",value:"custom"},{label:"Reset",value:"reset"},{label:"OAuth",value:"oauth"},{label:"POST to URL",value:"url"}]}},{type:"select",key:"oauthProvider",label:"OAuth Provider",input:!0,dataSrc:"values",weight:111,tooltip:"The oauth provider to use to log in (8.x server only).",data:{values:[{label:"OpenID",value:"openid"},{label:"Github",value:"github"},{label:"Google",value:"google"}]},conditional:{json:{"===":[{var:"data.action"},"oauth"]}}}
vendor: 4,356 bytes, line 1
1,{type:"textfield",label:"Save in state",key:"state",weight:112,tooltip:'The state you wish to save the submission under when this button is pressed. Example "draft" would save the submission in Draft Mode.',placeholder:"submitted",input:!0,conditional:{json:{"===":[{var:"data.action"},"saveState"]}}},{type:"checkbox",input:!0,inputType:"checkbox",key:"saveOnEnter",label:"Save On Enter",weight:113,tooltip:"Use the Enter key to submit form.",conditional:{json:{"===":[{var:"data.action"},"submit"]}}},{type:"checkbox",input:!0,inputType:"checkbox",key:"showValidations",label:"Show Validations",weight:115,tooltip:"When the button is pressed, show any validation errors on the form.",conditional:{json:{"!==":[{var:"data.action"},"submit"]}}},{type:"textfield",label:"Button Event",key:"event",input:!0,weight:120,tooltip:"The event to fire when the button is clicked.",conditional:{json:{"===":[{var:"data.action"},"event"]}}},{type:"textfield",inputType:"url",key:"url",input:!0,weight:120,label:"Button URL",tooltip:"The URL where the submission will be sent.",placeholder:"https://example.form.io",conditional:{json:{"===":[{var:"data.action"},"url"]}}},{type:"datagrid",key:"headers",input:!0,weight:130,label:"Headers",addAnother:"Add Header",tooltip:"Headers Properties and Values for your request",components:[{key:"header",label:"Header",input:!0,type:"textfield"},{key:"value",label:"Value",input:!0,type:"textfield"}],conditional:{json:{"===":[{var:"data.action"},"url"]}}},{type:"textarea",key:"custom",label:"Button Custom Logic",tooltip:"The custom logic to evaluate when the button is clicked.",rows:5,editor:"ace",input:!0,weight:120,placeholder:"data['mykey'] = data['anotherKey'];",conditional:{json:{"===":[{var:"data.action"},"custom"]}}},{type:"select",key:"theme",label:"Theme",input:!0,tooltip:"The color theme of this button.",dataSrc:"values",weight:140,data:{values:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Danger",value:"danger"},{label:"Warning",value:"warning"}]}},{type:"select",key:"size",label:"Size",input:!0,tooltip:"The size of this button.",dataSrc:"values",weight:150,data:{values:[{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"}]}},{type:"textfield",key:"leftIcon",label:"Left Icon",input:!0,placeholder:"Enter icon classes",tooltip:"This is the full icon class string to show the icon. Example: 'fa fa-plus'",weight:160},{type:"textfield",key:"rightIcon",label:"Right Icon",input:!0,placeholder:"Enter icon classes",tooltip:"This is the full icon class string to show the icon. Example: 'fa fa-plus'",weight:170},{type:"select",input:!0,weight:180,label:"Shortcut",key:"shortcut",tooltip:"Shortcut for this component.",dataSrc:"custom",valueProperty:"value",customDefaultValue:function(){return""},template:"{{ item.label }}",data:{custom:function(e){return o.default.getAvailableShortcuts(i.default.get(e,"instance.options.editForm",{}),i.default.get(e,"instance.options.editComponent",{}))}}},{type:"checkbox",key:"block",label:"Block Button",input:!0,weight:155,tooltip:"This control should span the full width of the bounding container."},{type:"checkbox",key:"disableOnInvalid",label:"Disable on Form Invalid",tooltip:"This will disable this field if the form is invalid.",input:!0,weight:620}];n.default=l},66575:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"data",components:i.default},{key:"display",components:a.default},{key:"validation",components:l.default}]].concat(n))},r(43001);var o=u(r(6296)),i=u(r(24936)),a=u(r(82089)),l=u(r(36139));function u(e){return e&&e.__esModule?e:{default:e}}},87886:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(24646),r(35968),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}
1),n.default=void 0,r(34078),r(59012),r(17223),r(12551),r(5746),r(6588),r(43001),r(27846),r(9473),r(22818);var i=l(r(76635)),a=l(r(70362));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function s(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?u(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=f(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=h(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(f,e);var n,r,l,u=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=h(f);return e=n?Reflect.construct(r,arguments,h(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),u.apply(this,arguments)}return r=[{key:"defaultSchema",get:function(){return f.schema()}},{key:"defaultValue",get:function(){var e=this.component.name,n=d(h(f.prototype),"defaultValue",this);return e?this.component[e]||this.emptyValue:"true"===(n||this.component.defaultValue||!1).toString()}},{key:"labelClass",get:function(){var e="";return this.isInputComponent&&!this.options.inputsOnly&&this.component.validate&&this.component.validate.required&&(e+=" field-required"),"".concat(e)}},{key:"hasSetValue",get:function(){return this.hasValue()}},{key:"inputInfo",get:function(){var e=d(h(f.prototype),"elementInfo",this).call(this);return e.type="input",e.changeEvent="click",e.attr.type=this.component.inputType||"checkbox",e.attr.class="form-check-input",this.component.name&&(e.attr.name="data[".concat(this.component.name,"]")),e.attr.value=this.component.value?this.component.value:0,e.label=this.t(this.component.label,{_userInput:!0}),e.labelClass=this.labelClass,e}},{key:"labelInfo",get:function(){return{hidden:!0}}},{key:"render",value:function(){return d(h(f.prototype),"render",this).call(this,this.renderTemplate("checkbox",{input:this.inputInfo,checked:this.checked,tooltip:this.interpolate(this.t(this.component.tooltip)||"",{_userInput:!0}).replace(/(?:\r\n|\r|\n)/g,"<br />")}))}},{key:"attach",value:function(e){var n=this;
vendor: 4,696 bytes, line 1
1return this.loadRefs(e,{input:"multiple"}),this.input=this.refs.input[0],this.refs.input&&(this.addEventListener(this.input,this.inputInfo.changeEvent,function(){return n.updateValue(null,{modified:!0})}),this.addShortcut(this.input)),d(h(f.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(e){e&&this.input&&this.removeShortcut(this.input),d(h(f.prototype),"detach",this).call(this)}},{key:"emptyValue",get:function(){return"radio"===this.component.inputType&&null}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return d(h(f.prototype),"isEmpty",this).call(this,e)||!1===e}},{key:"key",get:function(){return this.component.name?this.component.name:d(h(f.prototype),"key",this)}},{key:"getValueAt",value:function(e){return this.component.name?this.refs.input[e].checked?this.component.value:"":!!this.refs.input[e].checked}},{key:"getValue",value:function(){var e=d(h(f.prototype),"getValue",this).call(this);return this.component.name?e?this.setCheckedState(e):this.setCheckedState(this.dataValue):""===e?this.dataValue:!!e}},{key:"checked",get:function(){return this.component.name?this.dataValue===this.component.value:!!this.dataValue}},{key:"setCheckedState",value:function(e){if(this.input)return this.component.name?(this.input.value=e===this.component.value?this.component.value:0,this.input.checked=e===this.component.value?1:0):"on"===e?(this.input.value=1,this.input.checked=1):"off"===e?(this.input.value=0,this.input.checked=0):e?(this.input.value=1,this.input.checked=1):(this.input.value=0,this.input.checked=0),this.input.checked?this.input.setAttribute("checked",!0):this.input.removeAttribute("checked"),e}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0!==this.setCheckedState(e)||!this.input&&void 0!==e&&(this.visible||this.conditionallyVisible()||!this.component.clearOnHide)){var r=this.updateValue(e,n);return this.isHtmlRenderMode()&&n&&n.fromSubmission&&r&&this.redraw(),r}return!1}},{key:"getValueAsString",value:function(e){var n=this.component,r=n.name,o=n.value,a=r?i.default.isEqual(e,o):e;return i.default.isUndefined(e)&&this.inDataTable?"":this.t(a?"Yes":"No")}},{key:"updateValue",value:function(e,n){this.component.name&&n.modified&&this.dataValue===this.component.value&&(this.input.checked=0,this.input.value=0,this.dataValue="",this.updateOnChange(n,!0));var r=d(h(f.prototype),"updateValue",this).call(this,e,n);return r&&this.input&&(this.input.checked?this.input.setAttribute("checked","true"):this.input.removeAttribute("checked")),r}}],l=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"checkbox",inputType:"checkbox",label:"Checkbox",key:"checkbox",dataGridLabel:!0,labelPosition:"right",value:"",name:""}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Checkbox",group:"basic",icon:"check-square",documentation:"/userguide/form-building/form-components#check-box",weight:50,schema:f.schema()}}},{key:"serverConditionSettings",get:function(){return s(s({},d(h(f),"serverConditionSettings",this)),{},{operators:["isEqual"],valueComponent:function(){return{valueType:"boolean",data:{values:[{label:"Checked",value:"true"},{label:"Not Checked",value:"false"}]},type:"select"}}})}}],r&&c(f.prototype,r),l&&c(f,l),Object.defineProperty(f,"prototype",{writable:!1}),f}(a.default);n.default=m},24936:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0}]},82089:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(65319)),i=a(r(76635));function a(e){return e&&e.__esModule?e:{default:e}}var l=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{type:"select",input:!0,weight:350,label:"Shortcut",key:"shortcut",tooltip:"Shortcut for this component.",dataSrc:"custom",valueProperty:"value",customDefaultValue:function(){return""},template:"{{ item.label }}",data:{custom:function(e){return o.default.getAvailableShortcuts(i.default.get(e,"instance.options.editForm",{}),i.default.get(e,"instance.options.editComponent",{}))}}},{type:"select",input:!0,key:"inputType",label:"Input Type",tooltip:"This is the input type used for this checkbox.",dataSrc:"values",weight:410,data:{values:[{label:"Checkbox",value:"checkbox"},{label:"Radio",value:"radio"}]}},{type:"textfield",input:!0,key:"name",label:"Radio Key",tooltip:"The key used to trigger the radio button toggle.",weight:420,conditional:{json:{"===":[{var:"data.inputType"},"radio"]}}}
1,{type:"textfield",input:!0,label:"Radio Value",key:"value",tooltip:"The value used with this radio button.",weight:430,conditional:{json:{"===":[{var:"data.inputType"},"radio"]}}}];n.default=l},36139:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"validateOn",ignore:!0},{key:"unique",ignore:!0}]},66795:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default}]].concat(n))},r(43001);var o=a(r(28600)),i=a(r(64908));function a(e){return e&&e.__esModule?e:{default:e}}},12777:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),r(12083),r(30902),r(34078),r(5746),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(76381),r(18036),r(73985),r(17223),r(52315),r(88455),r(32334),r(43001),r(27846),r(9473),r(22818);var i=l(r(76635)),a=l(r(21645));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return s(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function c(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=h(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(m,e);var n,r,l,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=h(m);return e=n?Reflect.construct(r,arguments,h(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function m(e,n,r){var o;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,m),(o=s.call(this,e,n,r)).rows=[],o}return r=[{key:"schema",get:function(){var e,n=this,r=i.default.omit(d(h(m.prototype),"schema",this),["components"]);return null===(e=r.columns)||void 0===e||e.map(function(e,o){e.components.map(function(e,a){var l=i.default.clone(e);l.internal=!0;var u=n.createComponent(l);delete u.component.internal,r.columns[o].components[a]=u.schema})}),r}},{key:"defaultSchema",get:function(){return m.schema()}},{key:"className",get:function(){return"row ".concat(d(h(m.prototype),"className",this))}}
1,{key:"columnKey",get:function(){return"column-".concat(this.id)}},{key:"init",value:function(){var e=this;d(h(m.prototype),"init",this).call(this),this.columns=[],i.default.each(this.component.columns,function(n,r){e.columns[r]=[],n.size||(n.size="md"),n.currentWidth=n.width||0,Array.isArray(n.components)||(n.components=[]),i.default.each(n.components,function(n){var o=e.createComponent(n);o.column=r,e.columns[r].push(o)})}),this.component.autoAdjust&&"pdf"!==this.options.display&&this.justify(),this.rows=this.groupByRow()}},{key:"labelIsHidden",value:function(){return!0}},{key:"render",value:function(){var e=this;return d(h(m.prototype),"render",this).call(this,this.renderTemplate("columns",{columnKey:this.columnKey,columnComponents:this.columns.map(function(n){return e.renderComponents(n)})}))}},{key:"justifyColumn",value:function(e,n){var r=i.default.every(e,function(e){return!e.visible}),o=this.component.columns[n],a=r&&e.length?0:o.width,l=!i.default.isEqual(a,o.currentWidth);return o.currentWidth=a,l}},{key:"justify",value:function(){var e=this;return this.columns.reduce(function(n,r,o){return e.justifyColumn(r,o)||n},!1)}},{key:"attach",value:function(e){var n,r,o,i=this;this.loadRefs(e,(n={},r=this.columnKey,o="multiple",(r=f(r))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));var a=d(h(m.prototype),"attach",this).call(this,e);return this.refs[this.columnKey]&&this.refs[this.columnKey].forEach(function(e,n){return i.attachComponents(e,i.columns[n],i.component.columns[n].components)}),a}},{key:"gridSize",get:function(){return 12}},{key:"groupByRow",value:function(){var e=this,n=function(e){return e.component.width},r=i.default.reduce(this.components,function(r,o){var a=[].concat(u(r.stack),[o]);return i.default.sumBy(a,n)<=e.gridSize?r.stack=a:(r.rows=[].concat(u(r.rows),[r.stack]),r.stack=[o]),r},{stack:[],rows:[]});return i.default.concat(r.rows,[r.stack])}},{key:"checkData",value:function(e,n,r,o){var i=d(h(m.prototype),"checkData",this).call(this,e,n,r,o);return this.component.autoAdjust&&"pdf"!==this.options.display&&this.justify()&&this.redraw(),i}},{key:"detach",value:function(e){d(h(m.prototype),"detach",this).call(this,e)}},{key:"destroy",value:function(){d(h(m.prototype),"destroy",this).call(this),this.columns=[]}}],l=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{label:"Columns",key:"columns",type:"columns",columns:[{components:[],width:6,offset:0,push:0,pull:0,size:"md"},{components:[],width:6,offset:0,push:0,pull:0,size:"md"}],clearOnHide:!1,input:!1,tableView:!1,persistent:!1,autoAdjust:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Columns",icon:"columns",group:"layout",documentation:"/userguide/form-building/layout-components#columns",showPreview:!1,weight:10,schema:m.schema()}}}],r&&c(m.prototype,r),l&&c(m,l),Object.defineProperty(m,"prototype",{writable:!1}),m}(a.default);n.default=m},64908:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{weight:150,type:"datagrid",input:!0,key:"columns",label:"Column Properties",addAnother:"Add Column",tooltip:"The width, offset, push, and pull settings for each column.",reorder:!0,components:[{type:"hidden",key:"components",defaultValue:[]},{type:"select",key:"size",defaultValue:"md",label:"Size",data:{values:[{label:"xs",value:"xs"},{label:"sm",value:"sm"},{label:"md",value:"md"},{label:"lg",value:"lg"},{label:"xl",value:"xl"}]}},{type:"number",key:"width",defaultValue:6,label:"Width"},{type:"number",key:"offset",defaultValue:0,label:"Offset"},{type:"number",key:"push",defaultValue:0,label:"Push"},{type:"number",key:"pull",defaultValue:0,label:"Pull"}]},{weight:160,type:"checkbox",label:"Auto adjust columns",tooltip:"Will automatically adjust columns based on if nested components are hidden.",key:"autoAdjust",input:!0}]},22729:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];
1return o.default.baseEditForm.apply(o.default,[[{key:"display",components:i.default},{key:"data",components:a.default}]].concat(n))},r(43001);var o=l(r(6296)),i=l(r(16611)),a=l(r(22647));function l(e){return e&&e.__esModule?e:{default:e}}},15179:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(52315),r(17223),r(88455),r(32334),r(27846),r(9473),r(22818);var i=c(r(76635)),a=r(9494),l=c(r(11275)),u=c(r(70362)),s=c(r(98087));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=h(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(y,e);var n,r,c,m=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=h(y);return e=n?Reflect.construct(r,arguments,h(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function y(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,y);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=m.call.apply(m,[this].concat(r))).type="container",e}return r=[{key:"addComponents",value:function(e,n){return d(h(y.prototype),"addComponents",this).call(this,this.dataValue,n)}},{key:"defaultSchema",get:function(){return y.schema()}},{key:"emptyValue",get:function(){return{}}},{key:"templateName",get:function(){return"container"}},{key:"componentContext",value:function(){return this.dataValue}},{key:"checkData",value:function(e,n,r,o){var a=this;
1return e=e||this.rootValue,n=n||{},r=r||this.data,(o=o&&i.default.isArray(o)?o:this.getComponents()).reduce(function(r,o){return o.checkData(e,n,a.dataValue)&&r},l.default.prototype.checkData.call(this,e,n,r))}},{key:"checkChildComponentsValidity",value:function(e,n,r,o,i){return d(h(y.prototype),"checkChildComponentsValidity",this).call(this,e,n,this.dataValue,o,i)}},{key:"focus",value:function(){var e=(0,a.getFocusableElements)(this.element);e&&e[0]&&e[0].focus()}},{key:"checkConditions",value:function(e,n,r){var o=this,i=u.default.prototype.checkConditions.call(this,e,n,r);return this.getComponents().forEach(function(r){return r.checkConditions(e,n,o.dataValue)}),i}}],c=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return s.default.schema.apply(s.default,[{label:"Container",type:"container",key:"container",clearOnHide:!0,input:!0,tree:!0,hideLabel:!0,components:[]}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Container",icon:"folder-open",group:"data",documentation:"/userguide/form-building/data-components#container",showPreview:!1,weight:10,schema:y.schema()}}}],r&&f(y.prototype,r),c&&f(y,c),Object.defineProperty(y,"prototype",{writable:!1}),y}(s.default);n.default=m},22647:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0},{key:"allowCalculateOverride",ignore:!0},{key:"defaultValue",ignore:!0}]},16611:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0}]},11302:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var l=o.default.baseEditForm.apply(o.default,[[{key:"display",components:i.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:a.default}]].concat(n));return l.components=[{weight:0,type:"textarea",editor:"ckeditor",label:"Content",hideLabel:!0,input:!0,key:"html",as:"html",rows:3,tooltip:"The HTML template for the result data items."}].concat(l.components),l},r(43001);var o=l(r(6296)),i=l(r(73903)),a=l(r(66733));function l(e){return e&&e.__esModule?e:{default:e}}},56333:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(27846),r(9473),r(22818);var i=u(r(11275)),a=u(r(76635)),l=u(r(18947));function u(e){return e&&e.__esModule?e:{default:e}}function s(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=d(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function f(e,n){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&f(e,n)}(h,e);var n,r,u,p=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=d(h);return e=n?Reflect.construct(r,arguments,d(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function h(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,h),p.apply(this,arguments)}return r=[{key:"defaultSchema",get:function(){return h.schema()}},{key:"content",get:function(){if(this.builderMode)return this.component.html||"Content";var e=a.default.get(this.root,"submission",{});return this.component.html?this.interpolate(this.component.html,{metadata:e.metadata||{}
vendor: 4,242 bytes, line 1
1,submission:e,data:this.rootValue,row:this.data}):""}},{key:"render",value:function(){return c(d(h.prototype),"render",this).call(this,this.renderTemplate("html",{tag:"div",attrs:[],content:this.content}))}},{key:"dataReady",get:function(){var e;return(null===(e=this.root)||void 0===e?void 0:e.submissionReady)||l.default.resolve()}},{key:"attach",value:function(e){var n=this;return this.loadRefs(e,{html:"single"}),this.dataReady.then(function(){n.refs.html&&n.setContent(n.refs.html,n.content)}),this.component.refreshOnChange&&this.on("change",function(){n.refs.html&&n.setContent(n.refs.html,n.content)},!0),c(d(h.prototype),"attach",this).call(this,e)}},{key:"emptyValue",get:function(){return""}}],u=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.schema.apply(i.default,[{label:"Content",type:"content",key:"content",input:!1,html:""}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Content",group:"layout",icon:"html5",preview:!1,documentation:"/userguide/form-building/layout-components#content",weight:5,schema:h.schema()}}}],r&&s(h.prototype,r),u&&s(h,u),Object.defineProperty(h,"prototype",{writable:!1}),h}(i.default);n.default=p},73903:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"disabled",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0},{weight:700,type:"checkbox",label:"Refresh On Change",tooltip:"Rerender the field whenever a value on the form changes.",key:"refreshOnChange",input:!0}]},66733:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"logic",components:[{key:"actions",components:[{key:"actionPanel",components:[{data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"},{label:"Content",value:"html",type:"string",component:"content"}]},key:"property"},{type:"textarea",editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'<div class="well">Content</div>',key:"content",weight:30,input:!0,customConditional:function(e){return"property"===e.row.type&&e.row.hasOwnProperty("property")&&"string"===e.row.property.type&&"content"===e.row.property.component}}]}]}]}]},12773:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default},{key:"data",components:a.default},{key:"validation",components:[{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{key:"validate.pattern",ignore:!0}]}]].concat(n))},r(43001);var o=l(r(80736)),i=l(r(80086)),a=l(r(52335));function l(e){return e&&e.__esModule?e:{default:e}}},130:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(11102),r(17943),r(15469),r(1542),r(30902),r(34078),r(12083),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(75162),r(28121),r(83972),r(5746),r(6588),r(57184),r(43001),r(97172),r(18036),r(76381),r(16433),r(92884),r(27846),r(9473),r(22818);var i=r(15560),a=r(93808),l=c(r(76635)),u=r(9494),s=c(r(2580));
1function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){if(e){if("string"==typeof e)return d(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,n)}}function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function p(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function h(){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=y(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function m(e,n){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&m(e,n)}(b,e);var n,r,c,v=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=y(b);return e=n?Reflect.construct(r,arguments,y(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function b(e,n,r){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,b),e&&!e.hasOwnProperty("delimiter")&&(e.delimiter=!0),v.call(this,e,n,r)}return r=[{key:"createNumberMask",value:function(){var e=l.default.get(this.component,"decimalLimit",2),n=(0,u.getCurrencyAffixes)({currency:this.component.currency,decimalLimit:e,decimalSeparator:this.decimalSeparator,lang:this.options.language});return this.currencyPrefix=this.options.prefix||n.prefix,this.currencySuffix=this.options.suffix||n.suffix,(0,i.createNumberMask)({prefix:this.currencyPrefix,suffix:this.currencySuffix,thousandsSeparatorSymbol:l.default.get(this.component,"thousandsSeparator",this.delimiter),decimalSymbol
1:l.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:e,allowNegative:l.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}},{key:"isDecimalAllowed",value:function(){return l.default.get(this.component,"allowDecimal",!0)}},{key:"setInputMask",value:function(e){var n=(0,u.getCurrencyAffixes)({currency:this.component.currency,decimalSeparator:this.decimalSeparator,lang:this.options.language}),r="".concat(n.prefix,"[0-9");r+=(this.decimalSeparator||"")+(this.delimiter||"")+"]*",e.setAttribute("pattern",r),e.mask=(0,a.maskInput)({inputElement:e,mask:this.numberMask||"",pipe:function(n){return"$0._"===n&&setTimeout(function(){var n=e.value.length-1;e.setSelectionRange(n,n)}),n},shadowRoot:this.root?this.root.shadowRoot:null})}},{key:"defaultSchema",get:function(){return b.schema()}},{key:"parseNumber",value:function(e){return h(y(b.prototype),"parseNumber",this).call(this,this.stripPrefixSuffix(e))}},{key:"parseValue",value:function(e){return h(y(b.prototype),"parseValue",this).call(this,this.stripPrefixSuffix(e))}},{key:"addZerosAndFormatValue",value:function(e){if(e||0===e){var n,r=l.default.get(this.component,"decimalLimit",2),o="",i=[],a=!!this.currencyPrefix&&e.includes(this.currencyPrefix),u=!!this.currencySuffix&&e.includes(this.currencySuffix),s=e.includes("-")||!1;
1if((e=this.stripPrefixSuffix(s?e.replace("-",""):e)).includes(this.decimalSeparator)){var c,p,m=function(e){if(Array.isArray(e))return e}(c=e.split(this.decimalSeparator))||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,u=[],s=!0,c=!1;try{for(a=(r=r.call(e)).next;!(s=(o=a.call(r)).done)&&(u.push(o.value),2!==u.length);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return u}}(c,2)||f(c,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();n=m[0],i=function(e){if(Array.isArray(e))return d(e)}(p=(o=m[1]).split(""))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(p)||f(p)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}else n=e;if(o.length<r)for(;i.length<r;)i.push("0");var v="".concat(s?"-":"").concat(a?this.currencyPrefix:"").concat(n).concat(this.decimalSeparator).concat(i.join("")).concat(u?this.currencySuffix:"");return h(y(b.prototype),"formatValue",this).call(this,v)}}},{key:"getValueAsString",value:function(e,n){var r=this,o=h(y(b.prototype),"getValueAsString",this).call(this,e,n);return e||"0"==e?Array.isArray(e)?e.map(function(e){return r.addZerosAn
vendor: 4,716 bytes, line 1
1dFormatValue(h(y(b.prototype),"getValueAsString",r).call(r,e,n))}).join(", "):this.addZerosAndFormatValue(o):o}},{key:"formatValue",value:function(e){return e||"0"===e?this.addZerosAndFormatValue(e):h(y(b.prototype),"formatValue",this).call(this,e)}},{key:"stripPrefixSuffix",value:function(e){if("string"==typeof e)try{var n=!!this.currencyPrefix&&e.includes(this.currencyPrefix),r=!!this.currencySuffix&&e.includes(this.currencySuffix),o=e.includes(this.delimiter),i=e.includes(this.decimalSeparator);this.currencyPrefix&&(e=e.replace(this.currencyPrefix,"")),this.currencySuffix&&(e=e.replace(this.currencySuffix,"")),(n||r)&&!o&&!i&&(Number.isNaN(+e)||!e)&&(e="0")}catch(e){}return e}},{key:"addFocusBlurEvents",value:function(e){var n=this;h(y(b.prototype),"addFocusBlurEvents",this).call(this,e),this.addEventListener(e,"focus",function(){e.defaultValue===e.value&&e.setSelectionRange(0,e.defaultValue.length)}),this.addEventListener(e,"blur",function(){e.value=n.getValueAsString(n.addZerosAndFormatValue(n.parseValue(e.value)))})}}],c=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return s.default.schema.apply(s.default,[{type:"currency",label:"Currency",key:"currency"}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Currency",group:"advanced",icon:"usd",documentation:"/userguide/form-building/advanced-components#currency",weight:70,schema:b.schema()}}}],r&&p(b.prototype,r),c&&p(b,c),Object.defineProperty(b,"prototype",{writable:!1}),b}(s.default);n.default=v},52335:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"select",input:!0,weight:50,key:"currency",label:"Currency",tooltip:"The currency to use in currency formatting. Possible values are (ISO-4217) currency codes.",defaultValue:"USD",dataSrc:"values",data:{values:[{label:"US Dollar (USD)",value:"USD"},{label:"Euro (EUR)",value:"EUR"},{label:"Pound Sterling (GBP)",value:"GBP"},{label:"Australian Dollar (AUD)",value:"AUD"},{label:"Afghani (AFN)",value:"AFN"},{label:"Lek (ALL)",value:"ALL"},{label:"Algerian Dinar (DZD)",value:"DZD"},{label:"Kwanza (AOA)",value:"AOA"},{label:"East Caribbean Dollar (XCD)",value:"XCD"},{label:"Argentine Peso (ARS)",value:"ARS"},{label:"Armenian Dram (AMD)",value:"AMD"},{label:"Aruban Florin (AWG)",value:"AWG"},{label:"Azerbaijan Manat (AZN)",value:"AZN"},{label:"Bahamian Dollar (BSD)",value:"BSD"},{label:"Bahraini Dinar (BHD)",value:"BHD"},{label:"Taka (BDT)",value:"BDT"},{label:"Barbados Dollar (BBD)",value:"BBD"},{label:"Belarusian Ruble (BYN)",value:"BYN"},{label:"Belize Dollar (BZD)",value:"BZD"},{label:"CFA Franc BCEAO (XOF)",value:"XOF"},{label:"Bermudian Dollar (BMD)",value:"BMD"},{label:"Indian Rupee (INR)",value:"INR"},{label:"Ngultrum (BTN)",value:"BTN"},{label:"Boliviano (BOB)",value:"BOB"},{label:"Mvdol (BOV)",value:"BOV"},{label:"Convertible Mark (BAM)",value:"BAM"},{label:"Pula (BWP)",value:"BWP"},{label:"Norwegian Krone (NOK)",value:"NOK"},{label:"Brazilian Real (BRL)",value:"BRL"},{label:"Brunei Dollar (BND)",value:"BND"},{label:"Bulgarian Lev (BGN)",value:"BGN"},{label:"Burundi Franc (BIF)",value:"BIF"},{label:"Cabo Verde Escudo (CVE)",value:"CVE"},{label:"Riel (KHR)",value:"KHR"},{label:"CFA Franc BEAC (XAF)",value:"XAF"},{label:"Canadian Dollar (CAD)",value:"CAD"},{label:"Cayman Islands Dollar (KYD)",value:"KYD"},{label:"Chilean Peso (CLP)",value:"CLP"},{label:"Unidad de Fomento (CLF)",value:"CLF"},{label:"Yuan Renminbi (CNY)",value:"CNY"},{label:"Colombian Peso (COP)",value:"COP"},{label:"Unidad de Valor Real (COU)",value:"COU"},{label:"Comorian Franc (KMF)",value:"KMF"},{label:"Congolese Franc (CDF)",value:"CDF"},{label:"New Zealand Dollar (NZD)",value:"NZD"},{label:"Costa Rican Colon (CRC)",value:"CRC"},{label:"Kuna (HRK)",value:"HRK"},{label:"Cuban Peso (CUP)",value:"CUP"},{label:"Peso Convertible (CUC)",value:"CUC"},{label:"Netherlands Antillean Guilder (ANG)",value:"ANG"},{label:"Czech Koruna (CZK)",value:"CZK"},{label:"Danish Krone (DKK)",value:"DKK"},{label:"Djibouti Franc (DJF)",value:"DJF"},{label:"Dominican Peso (DOP)",value:"DOP"},{label:"Egyptian Pound (EGP)",value:"EGP"},{label:"El Salvador Colon (SVC)",value:"SVC"},{label:"Nakfa (ERN)",value:"ERN"},{label:"Ethiopian Birr (ETB)",value:"ETB"},{label:"Falkland Islands Pound (FKP)",value:"FKP"},{label:"Fiji Dollar (FJD)",value:"FJD"},{label:"CFP Franc (XPF)",value:"XPF"},{label:"Dalasi (GMD)",value:"GMD"},{label:"Lari (GEL)",value:"GEL"},{label:"Ghana Cedi (GHS)",value:"GHS"},{label:"Gibraltar Pound (GIP)",value:"GIP"},{label:"Quetzal (GTQ)",value:"GTQ"},{label:"Guinean Franc (GNF)",value:"GNF"},{label:"Guyana Dollar (GYD)",value:"GYD"}
1,{label:"Gourde (HTG)",value:"HTG"},{label:"Lempira (HNL)",value:"HNL"},{label:"Hong Kong Dollar (HKD)",value:"HKD"},{label:"Forint (HUF)",value:"HUF"},{label:"Iceland Krona (ISK)",value:"ISK"},{label:"Indian Rupee (INR)",value:"INR"},{label:"Rupiah (IDR)",value:"IDR"},{label:"SDR (Special Drawing Right) (XDR)",value:"XDR"},{label:"Iranian Rial (IRR)",value:"IRR"},{label:"Iraqi Dinar (IQD)",value:"IQD"},{label:"New Israeli Sheqel (ILS)",value:"ILS"},{label:"Jamaican Dollar (JMD)",value:"JMD"},{label:"Yen (JPY)",value:"JPY"},{label:"Jordanian Dinar (JOD)",value:"JOD"},{label:"Tenge (KZT)",value:"KZT"},{label:"Kenyan Shilling (KES)",value:"KES"},{label:"North Korean Won (KPW)",value:"KPW"},{label:"Won (KRW)",value:"KRW"},{label:"Kuwaiti Dinar (KWD)",value:"KWD"},{label:"Som (KGS)",value:"KGS"},{label:"Lao Kip (LAK)",value:"LAK"},{label:"Lebanese Pound (LBP)",value:"LBP"},{label:"Loti (LSL)",value:"LSL"},{label:"Rand (ZAR)",value:"ZAR"},{label:"Liberian Dollar (LRD)",value:"LRD"},{label:"Libyan Dinar (LYD)",value:"LYD"},{label:"Swiss Franc (CHF)",value:"CHF"},{label:"Pataca (MOP)",value:"MOP"},{label:"Denar (MKD)",value:"MKD"},{label:"Malagasy Ariary (MGA)",value:"MGA"},{label:"Malawi Kwacha (MWK)",value:"MWK"},{label:"Malaysian Ringgit (MYR)",value:"MYR"},{label:"Rufiyaa (MVR)",value:"MVR"},{label:"Ouguiya (MRU)",value:"MRU"},{label:"Mauritius Rupee (MUR)",value:"MUR"},{label:"ADB Unit of Account (XUA)",value:"XUA"},{label:"Mexican Peso (MXN)",value:"MXN"},{label:"Mexican Unidad de Inversion (UDI) (MXV)",value:"MXV"},{label:"Moldovan Leu (MDL)",value:"MDL"},{label:"Tugrik (MNT)",value:"MNT"},{label:"Moroccan Dirham (MAD)",value:"MAD"},{label:"Mozambique Metical (MZN)",value:"MZN"},{label:"Kyat (MMK)",value:"MMK"},{label:"Namibia Dollar (NAD)",value:"NAD"},{label:"Nepalese Rupee (NPR)",value:"NPR"},{label:"Cordoba Oro (NIO)",value:"NIO"},{label:"Naira (NGN)",value:"NGN"},{label:"Rial Omani (OMR)",value:"OMR"},{label:"Pakistan Rupee (PKR)",value:"PKR"},{label:"Balboa (PAB)",value:"PAB"},{label:"Kina (PGK)",value:"PGK"},{label:"Guarani (PYG)",value:"PYG"},{label:"Sol (PEN)",value:"PEN"},{label:"Philippine Peso (PHP)",value:"PHP"},{label:"Zloty (PLN)",value:"PLN"},{label:"Qatari Rial (QAR)",value:"QAR"},{label:"Romanian Leu (RON)",value:"RON"},{label:"Russian Ruble (RUB)",value:"RUB"},{label:"Rwanda Franc (RWF)",value:"RWF"}
vendor: 4,218 bytes, line 1
1,{label:"Saint Helena Pound (SHP)",value:"SHP"},{label:"Tala (WST)",value:"WST"},{label:"Dobra (STN)",value:"STN"},{label:"Saudi Riyal (SAR)",value:"SAR"},{label:"Serbian Dinar (RSD)",value:"RSD"},{label:"Seychelles Rupee (SCR)",value:"SCR"},{label:"Leone (SLL)",value:"SLL"},{label:"Singapore Dollar (SGD)",value:"SGD"},{label:"Sucre (XSU)",value:"XSU"},{label:"Solomon Islands Dollar (SBD)",value:"SBD"},{label:"Somali Shilling (SOS)",value:"SOS"},{label:"South Sudanese Pound (SSP)",value:"SSP"},{label:"Sri Lanka Rupee (LKR)",value:"LKR"},{label:"Sudanese Pound (SDG)",value:"SDG"},{label:"Surinam Dollar (SRD)",value:"SRD"},{label:"Lilangeni (SZL)",value:"SZL"},{label:"Swedish Krona (SEK)",value:"SEK"},{label:"WIR Euro (CHE)",value:"CHE"},{label:"WIR Franc (CHW)",value:"CHW"},{label:"Syrian Pound (SYP)",value:"SYP"},{label:"New Taiwan Dollar (TWD)",value:"TWD"},{label:"Somoni (TJS)",value:"TJS"},{label:"Tanzanian Shilling (TZS)",value:"TZS"},{label:"Baht (THB)",value:"THB"},{label:"Paâanga (TOP)",value:"TOP"},{label:"Trinidad and Tobago Dollar (TTD)",value:"TTD"},{label:"Tunisian Dinar (TND)",value:"TND"},{label:"Turkish Lira (TRY)",value:"TRY"},{label:"Turkmenistan New Manat (TMT)",value:"TMT"},{label:"Uganda Shilling (UGX)",value:"UGX"},{label:"Hryvnia (UAH)",value:"UAH"},{label:"UAE Dirham (AED)",value:"AED"},{label:"US Dollar (Next day) (USN)",value:"USN"},{label:"Peso Uruguayo (UYU)",value:"UYU"},{label:"Uruguay Peso en Unidades Indexadas (UYI)",value:"UYI"},{label:"Unidad Previsional (UYW)",value:"UYW"},{label:"Uzbekistan Sum (UZS)",value:"UZS"},{label:"Vatu (VUV)",value:"VUV"},{label:"Bol\xedvar Soberano (VES)",value:"VES"},{label:"Dong (VND)",value:"VND"},{label:"Yemeni Rial (YER)",value:"YER"},{label:"Zambian Kwacha (ZMW)",value:"ZMW"},{label:"Zimbabwe Dollar (ZWL),",value:"ZWL"}]}}]},80086:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0},{type:"textfield",input:!0,weight:310,key:"prefix",label:"prefix",tooltip:"Specify the prefix symbol after the component (e.g.: USD, EUR)"},{type:"textfield",input:!0,weight:320,key:"suffix",label:"suffix",tooltip:"Specify the suffix symbol after the component (e.g.: USD, EUR)."}]},64135:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:a.default},{key:"data",components:i.default},{key:"validation",components:l.default}]].concat(n))},r(43001);var o=u(r(6296)),i=u(r(7867)),a=u(r(34546)),l=u(r(14184));function u(e){return e&&e.__esModule?e:{default:e}}},43056:function(e,n,r){"use strict";r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(26981),r(11102),r(17943),r(15469),r(1542),r(12083),r(30534),r(98197),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(18036),r(76381),r(52315),r(17223),r(30902),r(28121),r(59012),r(12551),r(35968),r(88455),r(32334),r(9473),r(89945),r(92782),r(62089),r(24646),r(34078),r(5746),r(6588),r(28818),r(98595),r(41099),r(27846),r(22818);var o,i=u(r(76635)),a=u(r(45641)),l=r(9494);function u(e){return e&&e.__esModule?e:{default:e}}function s(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function c(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?s(Object(r),!0).forEach(function(n){O(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f(e,n){return p(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;s=!1}else for(;
1!(s=(o=a.call(r)).done)&&(u.push(o.value),u.length!==n);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return u}}(e,n)||y(e,n)||d()}function d(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(e){if(Array.isArray(e))return e}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e){return function(e){if(Array.isArray(e))return b(e)}(e)||v(e)||y(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,n){if(e){if("string"==typeof e)return b(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,n)}}function v(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function b(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function g(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_(o.key),o)}}function w(e,n,r,o){return(w="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=P(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else O(o,n,r);return!0})(e,n,r,o)}function k(e,n,r,o,i){if(!w(e,n,r,o||e)&&i)throw Error("failed to set property");return r}function O(e,n,r){return(n=_(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function _(e){var n=function(e,n){if("object"!==h(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==h(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===h(n)?n:String(n)}function j(){return(j="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=P(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function P(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=E(e)););return e}function S(e,n){return(S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}"undefined"!=typeof window&&(o=r(21996));var x=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&S(e,n)}(b,e);var n,r,u,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=E(b);return e=n?Reflect.construct(r,arguments,E(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===h(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function b(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,b);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=s.call.apply(s,[this].concat(r))).type="datagrid",e.tabIndex=0,e}return r=[{key:"init",value:function(){this.components=this.components||[],this.rows=[],this.columns=m(this.component.components),(this.initRows||!i.default.isEqual(this.dataValue,this.emptyValue))&&this.createRows(!0),this.visibleColumns={},this.prevHasAddButton=this.hasAddButton(),this.checkColumns()}},{key:"dataValue",get:function(){var e=j(E(b.prototype),"dataValue",this);return e&&Array.isArray(e)?e:this.emptyValue},set:function(e){k(E(b.prototype),"dataValue",e,this,!0)}},{key:"defaultSchema",get:function(){return b.schema()}},{key:"initEmpty",get:function(){return this.component.initEmpty||this.component.noFirstRow}},{key:"initRows",get:function(){return this.builderMode||"defaultValue"===this.path||!this.initEmpty}},{key:"emptyValue",get:function(){return this.initEmpty?[]:[{}]}},{key:"addAnotherPosition",get:function(){return i.default.get(this.component,"addAnotherPosition","bottom")}},{key:"minLength",get:function(){return this.hasRowGroups()?i.default.sum(this.getGroupSizes()):i.default.get(this.component,"validate.minLength",0)}},{key:"defaultValue",get:function(){var e,n=this.builderMode,r=this.initEmpty;if(n||r&&!this.dataValue.length)return r&&!n?[]:[{}];var o=j(E(b.prototype),"defaultValue",this);e=Array.isArray(o)?o:o&&"object"===h(o)?[o]:this.emptyValue;for(var i=e.length;i<this.minLength;i++)e.push({});return e}},{key:"disabled",get:function(){return j(E(b.prototype),"disabled",this)},set:function(e){k(E(b.prototype),"disabled",e,this,!0),i.default.each(this.refs["".concat(this.datagridKey,"-addRow")],function(n){n.disabled=e}),i.default.each(this.refs["".concat(this.datagridKey,"-removeRow")],function(n){n.disabled=e})}},{key:"datagridKey",get:function(){return"datagrid-".concat(this.key)}},{key:"allowReorder",get:function(){return!this.options.readOnly&&i.default.get(this.component,"reorder",!1)}},{key:"iteratableRows",get:function(){var e=this;return this.rows.map(function(n,r){return{components:n,data:e.dataValue[r]}})}},{key:"getRowChunks",value:function(e,n){var r=e.reduce(function(e,n){var r=f(e,2),o=r[0],i=r[1],a=o+n;return[a,[].concat(m(i),[[o,a]])]},[0,[]]);return f(r,2)[1].map(function(e){return i.default.slice.apply(i.default,[n].c
vendor: 4,111 bytes, line 1
1oncat(m(e)))})}},{key:"getGroups",value:function(){var e=i.default.get(this.component,"rowGroups",[]),n=i.default.map(e,"numberOfRows").slice(0,-1).reduce(function(e,n){var r=e[e.length-1];return e.concat(r+n)},[0]);return e.reduce(function(e,r,o){return c(c({},e),{},O({},n[o],r))},{})}},{key:"getGroupSizes",value:function(){return i.default.map(i.default.get(this.component,"rowGroups",[]),"numberOfRows")}},{key:"hasRowGroups",value:function(){return i.default.get(this,"component.enableRowGroups",!1)&&!this.builderMode}},{key:"totalRowsNumber",value:function(e){return i.default.sum(i.default.map(e,"numberOfRows"))}},{key:"setStaticValue",value:function(e){this.dataValue=i.default.range(e).map(function(){return{}})}},{key:"hasExtraColumn",value:function(){return this.hasRemoveButtons()||this.canAddColumn}},{key:"hasRemoveButtons",value:function(){return!this.builderMode&&!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&this.dataValue.length>i.default.get(this.component,"validate.minLength",0)}},{key:"hasTopSubmit",value:function(){return this.hasAddButton()&&["top","both"].includes(this.addAnotherPosition)}},{key:"hasBottomSubmit",value:function(){return this.hasAddButton()&&["bottom","both"].includes(this.addAnotherPosition)}},{key:"canAddColumn",get:function(){return this.builderMode}},{key:"render",value:function(){var e=this.getColumns(),n=0,r=this.hasRemoveButtons();this.component.reorder&&n++,r&&n++,this.canAddColumn&&n++;var o=Math.floor(12/(e.length+n));return j(E(b.prototype),"render",this).call(this,this.renderTemplate("datagrid",{rows:this.getRows(),columns:e,groups:this.hasRowGroups()?this.getGroups():[],visibleColumns:this.visibleColumns,hasToggle:i.default.get(this,"component.groupToggle",!1),hasHeader:this.hasHeader(),hasExtraColumn:this.hasExtraColumn(),hasAddButton:this.hasAddButton(),hasRemoveButtons:r,hasTopSubmit:this.hasTopSubmit(),hasBottomSubmit:this.hasBottomSubmit(),hasGroups:this.hasRowGroups(),numColumns:e.length+(this.hasExtraColumn()?1:0),datagridKey:this.datagridKey,allowReorder:this.allowReorder,builder:this.builderMode,canAddColumn:this.canAddColumn,tabIndex:this.tabIndex,placeholder:this.renderTemplate("builderPlaceholder",{position:this.componentComponents.length}),colWidth:o.toString()}))}},{key:"getRows",value:function(){return this.rows.map(function(e){var n={};return i.default.each(e,function(e,r){n[r]=e.render()}),n})}},{key:"getColumns",value:function(){var e=this;return this.columns.filter(function(n){return!e.visibleColumns.hasOwnProperty(n.key)||e.visibleColumns[n.key]})}},{key:"hasHeader",value:function(){return this.component.components.reduce(function(e,n){return e||(n.label||n.title)&&!n.hideLabel},!1)}},{key:"loadRefs",value:function(e,n){if(j(E(b.prototype),"loadRefs",this).call(this,e,n),"single"===n.messageContainer){var r=i.default.last(e.querySelectorAll("[ref=messageContainer]"));this.refs.messageContainer=r||this.refs.messageContainer}}},{key:"attach",value:function(e){var n,r=this;this.loadRefs(e,(O(n={},"".concat(this.datagridKey,"-row"),"multiple"),O(n,"".concat(this.datagridKey,"-tbody"),"single"),O(n,"".concat(this.datagridKey,"-addRow"),"multiple"),O(n,"".concat(this.datagridKey,"-removeRow"),"multiple"),O(n,"".concat(this.datagridKey,"-group-header"),"multiple"),O(n,this.datagridKey,"multiple"),O(n,"messageContainer","single"),n)),this.allowReorder&&(this.refs["".concat(this.datagridKey,"-row")].forEach(function(e,n){e.dragInfo={index:n}}),o&&(this.dragula=o([this.refs["".concat(this.datagridKey,"-tbody")]],{moves:function(e,n,r){var o=r.getAttribute("data-key");if(n.getAttribute("data-key")===o)return r.classList.contains("formio-drag-button")}}).on("drop",this.onReorder.bind(this)),this.dragula.on("cloned",function(e,n){e&&e.children&&n&&n.children&&i.default.each(n.children,function(n,r){var o=getComputedStyle(n,null);if(""!==o.cssText)e.children[r].style.cssText=o.cssText;else{var i=Object.values(o).reduce(function(e,n){return"".concat(e).concat(n,":").concat(o.getPropertyValue(n),";")},"");e.children[r].style.cssText=i}})}
1))),this.refs["".concat(this.datagridKey,"-addRow")].forEach(function(e){r.addEventListener(e,"click",r.addRow.bind(r))}),this.refs["".concat(this.datagridKey,"-removeRow")].forEach(function(e,n){r.addEventListener(e,"click",r.removeRow.bind(r,n))}),this.hasRowGroups()&&(this.refs.chunks=this.getRowChunks(this.getGroupSizes(),this.refs["".concat(this.datagridKey,"-row")]),this.refs["".concat(this.datagridKey,"-group-header")].forEach(function(e,n){r.addEventListener(e,"click",function(){return r.toggleGroup(e,n)})}));var a=this.getColumns(),l=a.length;return this.rows.forEach(function(e,n){var o=0;a.forEach(function(e){r.attachComponents(r.refs[r.datagridKey][n*l+o],[r.rows[n][e.key]],r.getComponentsContainer()),o++})}),j(E(b.prototype),"attach",this).call(this,e)}},{key:"getComponentsContainer",value:function(){return this.component.components}},{key:"onReorder",value:function(e,n,r,o){if(!e.dragInfo||o&&!o.dragInfo){console.warn("There is no Drag Info available for either dragged or sibling element");return}var i=e.dragInfo.index,a=o?o.dragInfo.index:this.dataValue.length,u=a>i,s=(0,l.fastCloneDeep)(this.dataValue),c=s[i];s.splice(a,0,c),s.splice(u?i:i+1,1),this.setValue(s,{isReordered:!0}),this.rebuild()}},{key:"focusOnNewRowElement",value:function(e){Object.keys(e).find(function(n){var r=e[n].element;if(r){var o=(0,l.getFocusableElements)(r);if(o&&o[0])return o[0].focus(),!0}return!1})}},{key:"addRow",value:function(){var e,n=this,r=this.rows.length;this.dataValue.length===r&&this.dataValue.push({});var o=this.dataValue,i=this.defaultValue;this.initEmpty&&i[r]?(e=i[r],o[r]=e):e=o[r],this.rows[r]=this.createRowComponents(e,r),this.emit("dataGridAddRow",{component:this.component,row:e}),this.checkConditions(),this.triggerChange(),this.redraw().then(function(){n.focusOnNewRowElement(n.rows[r])})}},{key:"updateComponentsRowIndex",value:function(e,n){var r=this;e.forEach(function(e,o){var i;if(null!==(i=e.options)&&void 0!==i&&i.name){var a="[".concat(r.key,"][").concat(n,"]");e.options.name=e.options.name.replace("[".concat(r.key,"][").concat(e.rowIndex,"]"),a)}e.rowIndex=n,e.row="".concat(n,"-").concat(o),e.path=r.calculateComponentPath(e)})}},{key:"updateRowsComponents",value:function(e){var n=this;this.rows.slice(e).forEach(function(r,o){n.updateComponentsRowIndex(Object.values(r),e+o)})}},{key:"removeRow",value:function(e){this.splice(e,{isReordered:!0}),this.emit("dataGridDeleteRow",{index:e});var n=f(this.rows.splice(e,1),1)[0];this.removeRowComponents(n),this.updateRowsComponents(e),this.setValue(this.dataValue,{isReordered:!0}),this.redraw()}},{key:"removeRowComponents",value:function(e){var n=this;i.default.each(e,function(e){return n.removeComponent(e)})}},{key:"getRowValues",value:function(){return this.dataValue}},{key:"setRowComponentsData",value:function(e,n){i.default.each(this.rows[e],function(e){e.data=n})}},{key:"createRows",value:function(e,n){var r=this,o=!1,i=this.getRowValues();i.forEach(function(e,i){!n&&r.rows[i]?r.setRowComponentsData(i,e):(r.rows[i]&&r.removeRowComponents(r.rows[i]),r.rows[i]=r.createRowComponents(e,i),o=!0)});var a=this.rows.splice(i.length),l=!!a.length;return l&&a.forEach(function(e){return r.removeRowComponents(e)}),!e&&(o||l)&&this.redraw(),o}},{key:"createRowComponents",value:function(e,n){var r=this,o={};return this.tabIndex=0,this.component.components.map(function(a,l){var u,s=i.default.clone(r.options);s.name+="[".concat(n,"]"),s.row="".concat(n,"-").concat(l),r.builderMode?(a.id=a.id+n,u=a):u=c(c({},a),{},{id:a.id+n});var f=r.createComponent(u,s,e);f.parentDisabled=!!r.disabled,f.rowIndex=n,f.inDataGrid=!0,u.tabindex&&parseInt(u.tabindex)>r.tabIndex&&(r.tabIndex=parseInt(u.tabindex)),o[a.key]=f}),o}}
vendor: 5,106 bytes, line 1
1,{key:"checkValidity",value:function(e,n,r,o){if(e=e||this.rootValue,r=r||this.data,!this.checkCondition(r,e))return this.setCustomValidity(""),!0;if(!this.checkComponentValidity(e,n,r,{silentCheck:o}))return!1;var i=this.checkRows("checkValidity",e,n,!0,o);return this.checkModal(i,n),i}},{key:"checkColumns",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=e||this.rootValue;var o=!1;if(!this.rows||!this.rows.length)return{rebuild:!1,show:!1};if(this.builderMode)return{rebuild:!1,show:!0};var a={},l=!1,u=this.dataValue;this.rows.forEach(function(o,s){i.default.each(o,function(o,c){if(o&&"function"==typeof o.checkConditions){var f=void 0===a[c];if(a[c]=!!a[c]||o.checkConditions(e,r,u[s])&&"hidden"!==o.type,o.component.logic&&f){var d=i.default.findIndex(n.columns,["key",c]);i.default.isEqual(n.columns[d],o.component)||(l=!0,n.columns[d]=o.component)}}})});var s=!i.default.isEqual(a,this.visibleColumns)||l;return i.default.each(a,function(e){o|=e}),this.visibleColumns=a,{rebuild:s,show:o}}},{key:"checkComponentConditions",value:function(e,n,r){var o=this.visible;if(!j(E(b.prototype),"checkComponentConditions",this).call(this,e,n,r))return!1;var i=this.checkColumns(e,n),a=i.rebuild,l=i.show;return(a||!o)&&this.createRows(!1,a),l}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return this.dataValue=this.defaultValue,this.createRows(),!1;Array.isArray(e)||("object"===h(e)?e=[e]:(this.createRows(),e=[{}])),!e||e.length||this.initEmpty||e.push({});var o=r.fromSubmission&&!i.default.isEqual(e,this.emptyValue),a=this.hasChanged(e,this.dataValue);return this.dataValue=e,(this.initRows||o)&&!this.createRows()&&a&&this.redraw(),this.componentModal&&o&&this.componentModal.setValue(e),this.rows.forEach(function(o,a){e.length<=a||i.default.each(o,function(o){o.rowIndex=a,n.setNestedValue(o,e[a],r)})}),this.updateOnChange(r,a),a}},{key:"restoreComponentsContext",value:function(){var e=this;this.rows.forEach(function(n,r){return i.default.forIn(n,function(n){return n.data=e.dataValue[r]})})}},{key:"getComponent",value:function(e,n){var r,o=p(r=e=Array.isArray(e)?e:[e])||v(r)||y(r)||d(),a=o[0],l=o.slice(1),u=[];if(i.default.isNumber(a)&&l.length){var s=l.pop();return((u=this.rows[a][s])||Object.entries(this.rows[a]).forEach(function(e){var r=f(e,2)[1];if("getComponent"in r){var o=r.getComponent([s],n);o&&(u=o)}}),u&&i.default.isFunction(n)&&n(u,this.getComponents()),l.length&&"getComponent"in u)?u.getComponent(l,n):u}return i.default.isString(a)?(this.everyComponent(function(e,r){if(e.component.key===a){var o=e;l.length>0&&"getComponent"in e?o=e.getComponent(l,n):n&&n(e,r),u=u.concat(o)}}),u.length>0?u:null):u}},{key:"toggleGroup",value:function(e,n){e.classList.toggle("collapsed"),i.default.each(this.refs.chunks[n],function(e){e.classList.toggle("hidden")})}}],u=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{label:"Data Grid",key:"dataGrid",type:"datagrid",clearOnHide:!0,input:!0,tree:!0,components:[]}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Data Grid",icon:"th",group:"data",documentation:"/userguide/form-building/data-components#data-grid",showPreview:!1,weight:30,schema:b.schema()}}}],r&&g(b.prototype,r),u&&g(b,u),Object.defineProperty(b,"prototype",{writable:!1}),b}(a.default);n.default=x},7867:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0}]},34546:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"placeholder",ignore:!0},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:405,input:!0,clearOnHide:!1,customConditional:function(e){return!e.data.enableRowGroups},calculateValue:function(e){return!!e.data.enableRowGroups||e.data.disableAddingRemovingRows}},{weight:406,type:"textarea",input:!0,key:"conditionalAddButton",label:"Conditional Add Button",placeholder:"show = ...",tooltip:"Specify condition when Add Button should be displayed.",editor:"ace",as:"javascript",wysiwyg:{minLines:3}},{type:"checkbox",label:"Allow Reorder",key:"reorder",weight:407,input:!0},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:function(e){return!e.data.disableAddingRemovingRows}},{type:"select",label:"Add Another Position",key:"addAnotherPosition",dataSrc:"values",tooltip:"Position for Add Another button with respect to Data Grid Array.",defaultValue:"bottom",input:!0,data:{values:[{label:"Top",value:"top"},{label:"Bottom",value:"bottom"},{label:"Both",value:"both"}]},weight:411,customConditional:function(e){return!e.data.disableAddingRemovingRows}},{type:"checkbox",label:"Equal column width",key:"layoutFixed",weight:430,input
1:!0},{key:"enableRowGroups",type:"checkbox",label:"Enable Row Groups",weight:440,input:!0},{label:"Groups",disableAddingRemovingRows:!1,defaultOpen:!1,addAnother:"",addAnotherPosition:"bottom",mask:!1,tableView:!0,alwaysEnabled:!1,type:"datagrid",input:!0,key:"rowGroups",reorder:!0,components:[{label:"Label",allowMultipleMasks:!1,showWordCount:!1,showCharCount:!1,tableView:!0,alwaysEnabled:!1,type:"textfield",input:!0,key:"label",widget:{type:""},row:"0-0"},{label:"Number of Rows",mask:!1,tableView:!0,alwaysEnabled:!1,type:"number",input:!0,key:"numberOfRows",row:"0-1"}],weight:441,conditional:{json:{var:"data.enableRowGroups"}}},{label:"Hide Group on Header Click",type:"checkbox",input:!0,key:"groupToggle",weight:442,conditional:{json:{var:"data.enableRowGroups"}}},{label:"Initialize Empty",type:"checkbox",input:!0,key:"initEmpty",tooltip:"The DataGrid will have no visible rows when initialized.",weight:450}]},14184:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{ignore:!0,key:"unique"},{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"textfield",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"textfield",tooltip:"The maximum length requirement this field must meet.",input:!0}]},24659:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:a.default},{key:"data",components:i.default}]].concat(n))},r(43001);var o=l(r(6296)),i=l(r(57828)),a=l(r(72124));function l(e){return e&&e.__esModule?e:{default:e}}},79789:function(e,n,r){"use strict";r(19169),r(77762),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(26981),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18036),r(76381),r(24646),r(62089),r(17223),r(45343),r(52315),r(43001),r(88455),r(32334),r(34078),r(92782),r(27846),r(9473),r(22818);var o=s(r(11275)),i=s(r(43056)),a=s(r(76635)),l=s(r(10161)),u=r(9494);function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function d(e,n,r,o){return(d="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=v(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else p(o,n,r);return!0})(e,n,r,o)}function p(e,n,r){return(n=h(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function h(e){var n=function(e,n){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==c(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===c(n)?n:String(n)}function m(e,n){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function y(){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=v(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function v(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=b(e)););return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&m(e,n)}(h,e);var n,r,i,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=b(h);return e=n?Reflect.construct(r,arguments,b(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===c(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function h(e,n,r){var o;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}
1(this,h),(o=s.call(this,e,n,r)).type="datamap",o}return r=[{key:"schema",get:function(){var e=y(b(h.prototype),"schema",this);return this.components&&this.components.length>0&&(e.valueComponent=this.components[this.components.length-1].schema),a.default.omit(e,"components")}},{key:"init",value:function(){this.components=[],this.rows=[],this.createRows(),this.visibleColumns=p({key:!0},this.valueKey,!0),this.component.valueComponent.hideLabel=!0}},{key:"defaultSchema",get:function(){return h.schema()}},{key:"emptyValue",get:function(){return{}}},{key:"dataValue",get:function(){return this.key&&(this.visible||!this.component.clearOnHide)?(!this.hasValue()&&this.shouldAddDefaultValue&&(this.dataValue=this.emptyValue),a.default.get(this.data,this.key)):this.emptyValue},set:function(e){!function(e,n,r,o,i){if(!d(e,n,r,o||e)&&i)throw Error("failed to set property")}(b(h.prototype),"dataValue",e,this,!0)}},{key:"defaultValue",get:function(){var e=y(b(h.prototype),"defaultValue",this);return Array.isArray(e)?e[0]:this.emptyValue}},{key:"keySchema",get:function(){return{type:"textfield",input:!0,hideLabel:!0,label:this.component.keyLabel||"Key",key:"__key",disableBuilderActions:!0}}},{key:"valueKey",get:function(){return this.component.valueComponent.key}},{key:"getRowValues",value:function(){var e=this.dataValue;return this.builderMode?[e]:a.default.isEmpty(e)?[]:Object.keys(e).map(function(){return e})}},{key:"getComponentsContainer",value:function(){return this.builderMode?this.getComponents().map(function(e){return e.component}):y(b(h.prototype),"getComponentsContainer",this).call(this)}},{key:"iteratableRows",get:function(){return this.rows.map(function(e){return Object.keys(e).map(function(n){return{components:e[n],data:e[n].dataValue}})})}},{key:"componentContext",value:function(e){return this.iteratableRows[e.row].find(function(n){return n.components.key===e.key}).data}},{key:"hasHeader",value:function(){return!0}},{key:"hasRemoveButtons",value:function(){return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode}},{key:"getColumns",value:function(){var e=Object.assign({},this.keySchema),n=Object.assign({},this.component.valueComponent);return e.hideLabel=!1,n.hideLabel=!1,this.component.keyBeforeValue?[e,n]:[n,e]}},{key:"getRowKey",value:function(e){var n=Object.keys(this.dataValue);return n[e]||(n[e]=(0,u.uniqueKey)(this.dataValue,this.defaultRowKey)),n[e]}},{key:"defaultRowKey",get:function(){return"key"}},{key:"setRowComponentsData",value:function(e,n){a.default.each(this.rows[e],function(r){"__key"===r.key?r.data={__key:Object.keys(n)[e]}:r.data=n})}},{key:"getValueAsString",value:function(e,n){var r=this;return null!=n&&n.email&&this.visible&&!this.skipInEmail&&a.default.isObject(e)?Object.keys(e).reduce(function(o,i){return o+'\n <tr>\n <th style="padding: 5px 10px;">'.concat(i,'</th>\n <td style="width:100%;padding:5px 10px;">').concat(r.getView(e[i],n),"</td>\n </tr>\n ")},'\n <table border="1" style="width:100%">\n <tbody>\n ')+"\n </tbody>\n </table>\n ":a.default.isEmpty(e)?"":null!=n&&n.modalPreview?(delete n.modalPreview,this.getDataValueAsTable(e,n)):"object"===c(e)?"[Complex Data]":e}},{key:"getDataValueAsTable",value:function(e,n){var r=this,o='\n <table border="1" style="width:100%">\n <tbody>\n ';return this.visible&&a.default.isObject(e)&&Object.keys(e).forEach(function(i){o+='\n <tr>\n <th style="padding: 5px 10px;">'.concat(i,'</th>\n <td style="width:100%;padding:5px 10px;">').concat(r.getView(e[i],n),"</td>\n </tr>\n ")}),o+="\n </tbody>\n </table>\n "}},{key:"createRowComponents",value:function(e,n){var r=this,o=this.builderMode?this.valueKey:this.getRowKey(n),i=a.default.clone(this.options);i.events=new l.default,i.name+="[".concat(n,"]"),i.row="".concat(n);var s={};s.__key=this.createComponent(this.keySchema,i,{__key:this.builderMode?this.defaultRowKey:o}),s.__key.on("componentChange",function(e){var n=r.dataValue,i=(0,u.uniqueKey)(n,e.value);n[i]=n[o],delete n[o];var a=s[r.valueKey];a.component.key=i,a.path=r.calculateComponentPath(a),o=i});var c=a.default.clone(this.component.valueComponent);c.key=o;var f=this.options;return f.row=i.row,s[this.valueKey]=this.createComponent(c,f,this.dataValue),s}},{key:"canAddColumn",get:function(){return!1}},{key:"addChildComponent",value:function(e){this.component.valueComponent=e}},{key:"saveChildComponent",value:function(e){e.key!==this.keySchema.key&&
vendor: 4,197 bytes, line 1
1(this.component.valueComponent=e)}},{key:"removeChildComponent",value:function(){var e=h.schema();this.component.valueComponent=e.valueComponent}},{key:"addRow",value:function(){var e=this.rows.length;this.rows[e]=this.createRowComponents(this.dataValue,e),this.redraw(),this.triggerChange()}},{key:"removeRow",value:function(e){var n=Object.keys(this.dataValue);n[e]&&delete this.dataValue[n[e]],this.rows.splice(e,1),this.redraw(),this.triggerChange()}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.hasChanged(e,this.dataValue);return this.dataValue=e,this.createRows(),this.updateOnChange(n,r),r}},{key:"checkColumns",value:function(){return{rebuild:!1,show:!0}}}],i=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.schema.apply(o.default,[{label:"Data Map",key:"dataMap",type:"datamap",clearOnHide:!0,addAnother:"Add Another",disableAddingRemovingRows:!1,keyBeforeValue:!0,valueComponent:{type:"textfield",key:"value",label:"Value",input:!0},input:!0,validate:{maxLength:0,minLength:0}}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Data Map",icon:"th-list",group:"data",documentation:"/userguide/form-building/data-components#data-map",showPreview:!1,weight:20,schema:h.schema()}}}],r&&f(h.prototype,r),i&&f(h,i),Object.defineProperty(h,"prototype",{writable:!1}),h}(i.default);n.default=g},57828:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0}]},72124:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"placeholder",ignore:!0},{key:"tabindex",ignore:!0},{type:"textfield",label:"Label for Key column",key:"keyLabel",tooltip:"Provide a label text for Key column (otherwise 'Key' will be used)",weight:404,input:!0},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:405,input:!0},{type:"checkbox",label:"Show key column before value",key:"keyBeforeValue",tooltip:"Check if you would like to show the Key before the Value column.",weight:406,input:!0},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:function(e){return!e.data.disableAddingRemovingRows}}]},92574:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:l.default},{label:"Date",key:"date",weight:1,components:a.default},{label:"Time",key:"time",weight:2,components:u.default},{key:"data",components:i.default},{key:"validation",components:s.default}]].concat(n))},r(43001);var o=c(r(6296)),i=c(r(21987)),a=c(r(56605)),l=c(r(60136)),u=c(r(42072)),s=c(r(87034));function c(e){return e&&e.__esModule?e:{default:e}}},72880:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(19169),r(77762),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(24646),r(35968),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(5746),r(6588),r(96255),r(59012),r(17223),r(12551),r(88455),r(32334),r(45009),r(50703),r(43001),r(27846),r(9473),r(22818);var i=s(r(76635)),a=s(r(89868)),l=s(r(28948)),u=s(r(49974));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function f(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
1n%2?c(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=p(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,p(o.key),o)}}function p(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function h(e,n){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function m(){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=y(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&h(e,n)}(p,e);var n,r,s,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=y(p);return e=n?Reflect.construct(r,arguments,y(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(e,n,r){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p);var o,a=(o=c.call(this,e,n,r)).component.timezone||o.options.timezone,l=!i.default.get(o.component,"timePicker.showMeridian",!0);o.component.enableDate?o.component.enableDate&&!/[yMd]/.test(o.component.format)&&o.builderMode&&(o.component.format="yyyy-MM-dd ".concat(o.component.format)):o.component.format=o.component.format.replace(/yyyy-MM-dd /g,""),o.component.enableTime?o.component.enableTime&&!/[mhH]/.test(o.component.format)&&o.builderMode?o.component.format="".concat(o.component.format," hh:mm a"):l?o.component.format=o.component.format.replace(/hh:mm a$/g,"HH:mm"):o.component.format=o.component.format.replace(/HH:mm$/g,"hh:mm a"):o.component.format=o.component.format.replace(/ hh:mm a$/g,"");var u=o.component.customOptions||{};if("string"==typeof u)try{u=JSON.parse(u)}catch(e){console.warn(e.message),u={}}return o.component.widget=f({type:"calendar",timezone:a,displayInTimezone:i.default.get(o.component,"displayInTimezone","viewer"),locale:o.options.language,useLocaleSettings:i.default.get(o.component,"useLocaleSettings",!1),allowInput:i.default.get(o.component,"allowInput",!0),mode:"single",enableTime:i.default.get(o.component,"enableTime",!0),noCalendar:!i.default.get(o.component,"enableDate",!0),format:o.component.format,hourIncrement:i.default.get(o.component,"timePicker.hourStep",1),minuteIncrement:i.default.get(o.component,"timePicker.minuteStep",5),time_24hr:l,readOnly:o.options.readOnly,minDate:i.default.get(o.component,"datePicker.minDate"),disabledDates:i.default.get(o.component,"datePicker.disable"),disableWeekends:i.default.get(o.component,"datePicker.disableWeekends"),disableWeekdays:i.default.get(o.component,"datePicker.disableWeekdays"),disableFunction:i.default.get(o.component,"datePicker.disableFunction"),maxDate:i.default.get(o.component,"datePicker.maxDate")},u),o.validators.push("date"),o}return r=[{key:"defaultSchema",get:function(){return p.schema()}},{key:"defaultValue",get:function(){var e=m(y(p.prototype),"defaultValue",this);return!e&&this.component.defaultDate&&(e=(e=l.default.getDateSetting(this.component.defaultDate))?e.toISOString():""),e}},{key:"emptyValue",get:function(){return""}},{key:"momentFormat",get:function(){return l.default.convertFormatToMoment(this.component.format)}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return!!e&&"Invalid Date"===e.toString()||m(y(p.prototype),"isEmpty",this).call(this,e)}},{key:"formatValue",value:function(e){var n=a.default.utc(e).toISOString();return"Invalid date"===n?e:n}},{key:"isEqual",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.dataValue;return this.isEmpty(e)&&this.isEmpty(n)||a.default.utc(e).format(this.momentFormat)===a.default.utc(n).format(this.momentFormat)}},{key:"createWrapper",value:function(){return!1}},{key:"checkValidity",value:function(e,n,r){return this.refs.input&&this.refs.input.forEach(function(e){e.widget&&e.widget.enteredDate&&(n=!0)}),m(y(p.prototype),"checkValidity",this).call(this,e,n,r)}},{key:"getValueAsString",value:function(e){var n=l.default.convertFormatToMoment(this.component.format);n+=n.match(/z$/)?"":" z";var r=this.timezone;return e&&!this.attached&&r?i.default.trim(l.default.momentDate(e,n,r).format(n)):(e?i.default.trim((0,a.default)(e).format(n)):e)||""}}],s=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return u.default.schema.apply(u.default,[{type:"datetime",label:"Date / Time",ke
vendor: 4,328 bytes, line 1
1y:"dateTime",format:"yyyy-MM-dd hh:mm a",useLocaleSettings:!1,allowInput:!0,enableDate:!0,enableTime:!0,defaultValue:"",defaultDate:"",displayInTimezone:"viewer",timezone:"",datepickerMode:"day",datePicker:{showWeeks:!0,startingDay:0,initDate:"",minMode:"day",maxMode:"year",yearRows:4,yearColumns:5,minDate:null,maxDate:null},timePicker:{hourStep:1,minuteStep:1,showMeridian:!0,readonlyInput:!1,mousewheel:!0,arrowkeys:!0},customOptions:{}}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Date / Time",group:"advanced",icon:"calendar",documentation:"/userguide/form-building/advanced-components#date-and-time",weight:40,schema:p.schema()}}},{key:"serverConditionSettings",get:function(){return f(f({},m(y(p),"serverConditionSettings",this)),{},{operators:["isDateEqual","isNotDateEqual","isEmpty","isNotEmpty","dateLessThan","dateGreaterThan","dateLessThanOrEqual","dateGreaterThanOrEqual"],valueComponent:function(e){return f(f({},e),{},{type:"datetime"})}})}}],r&&d(p.prototype,r),s&&d(p,s),Object.defineProperty(p,"prototype",{writable:!1}),p}(u.default);n.default=v},21987:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"textfield",input:!0,key:"defaultDate",label:"Default Date",placeholder:"moment()",tooltip:"You can use Moment.js functions to set the default value to a specific date. For example: \n \n moment().subtract(10, 'days')",weight:6},{type:"textarea",as:"json",editor:"ace",weight:28,input:!0,key:"customOptions",label:"Flatpickr options",tooltip:"A raw JSON object to use as options for the Date / Time component (Flatpickr).",defaultValue:{}}]},56605:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(r(80993));function i(e){return e&&e.__esModule?e:{default:e}}var a=[{type:"checkbox",input:!0,key:"enableDate",label:"Enable Date Input",weight:0,tooltip:"Enables date input for this field."},{type:"tags",input:!0,key:"datePicker.disable",label:"Disable specific dates or dates by range",placeholder:"(yyyy-MM-dd) or (yyyy-MM-dd - yyyy-MM-dd)",tooltip:"Add dates that you want to blacklist. For example: \n \n 2025-02-21",validate:{custom:"if (_.isEmpty(input)) {\n return true;\n}\nconst dates = _.isArray(input) ?\ninput : input.split(component.delimeter);\nconst isValid = _.every(dates, (data) => \n !!data.match(/\\d{4}-\\d{2}-\\d{2}/g));\nvalid = isValid || 'Invalid date';"},weight:21},{type:"panel",title:"Custom Disabled Dates",collapsible:!0,collapsed:!0,style:{"margin-bottom":"10px"},key:"panel-disable-function",customConditional:function(){return!o.default.noeval||o.default.protectedEval},components:[i(r(93174)).default.logicVariablesTable("<tr><th>date</th><td>The date object.</td></tr>"),{type:"textarea",input:!0,editor:"ace",key:"datePicker.disableFunction",label:"Disabling dates by a function",description:'For more information check out the <a href="https://flatpickr.js.org/examples/#disabling-dates" target="_blank" rel="noopener noreferrer">Docs</a>',weight:22},{type:"htmlelement",tag:"div",content:"<h4>Example</h4><pre>// Disable all weekends<br>date.getDay() === 0 || date.getDay() === 6</pre>\n "}]},{type:"checkbox",input:!0,key:"datePicker.disableWeekends",label:"Disable weekends",tooltip:"Check to disable weekends",weight:23},{type:"checkbox",input:!0,key:"datePicker.disableWeekdays",label:"Disable weekdays",tooltip:"Check to disable weekdays",weight:23}];n.default=a},60136:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"select",input:!0,key:"displayInTimezone",label:"Display in Timezone",tooltip:"This will display the captured date time in the select timezone.",weight:30,defaultValue:"viewer",dataSrc:"values",data:{values:[{label:"of Viewer",value:"viewer"},{label:"of Submission",value:"submission"},{label:"of Location",value:"location"},{label:"UTC",value:"utc"}]}},{type:"select",input:!0,key:"timezone",label:"Select Timezone",tooltip:"Select the timezone you wish to display this Date",weight:31,lazyLoad:!0,defaultValue:"",valueProperty:"name",dataSrc:"url",data:{url:"{{options.cdnUrl}}/timezones.json"},template:"<span>{{ item.label }}</span>",conditional:{json:{"===":[{var:"data.displayInTimezone"},"location"]}}}
1,{type:"checkbox",input:!0,key:"useLocaleSettings",label:"Use Locale Settings",tooltip:"Use locale settings to display date and time.",weight:51},{type:"checkbox",input:!0,key:"allowInput",label:"Allow Manual Input",tooltip:"Check this if you would like to allow the user to manually enter in the date.",weight:51},{type:"textfield",input:!0,key:"format",label:"Format",placeholder:"Format",description:'Use formats provided by <a href="https://github.com/angular-ui/bootstrap/tree/master/src/dateparser/docs#uibdateparsers-format-codes" target="_blank" rel="noopener noreferrer">DateParser Codes</a>',tooltip:"The date format for displaying the datetime value.",weight:52},{type:"editgrid",input:!0,key:"shortcutButtons",label:"Shortcut Buttons",description:"You can specify few buttons which will be shown above the calendar. Use Label to specify the name of the button and onClick to specify which date/time will be set when user clicks the button. E.g, date = new Date()",templates:{header:'<div class="row">\n <div class="col-sm-3">Label</div>\n <div class="col-sm-6">onClick</div>\n</div>',row:'<div class="row">\n <div class="col-sm-3">\n {{ flattenedComponents.label.getView(row.label) }}\n </div>\n <div class="col-sm-6">\n {{ flattenedComponents.onClick.getView(row.onClick) }}\n </div>\n {% if (!instance.disabled) { %}\n <div class="col-sm-3">\n <div class="btn-group pull-right">\n <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass("edit") }}"></i></button>\n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n <button class="btn btn-danger btn-sm removeRow"><i class="{{ iconClass("trash") }}"></i></button>\n {% } %}\n </div>\n </div>\n {% } %}\n </div>'},components:[{label:"Label",key:"label",type:"textfield",input:!0,validate:{required:!0}},{label:"onClick",key:"onClick",type:"textarea",editor:"ace",input:!0,validate:{required:!0}}],defaultValue:[]}]},42072:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"checkbox",input:!0,key:"enableTime",label:"Enable Time Input",tooltip:"Enables time input for this field.",weight:0},{type:"number",input:!0,key:"timePicker.hourStep",label:"Hour Step Size",tooltip:"The number of hours to increment/decrement in the time picker.",weight:10},{type:"number",input:!0,key:"timePicker.minuteStep",label:"Minute Step Size",tooltip:"The number of minutes to increment/decrement in the time picker.",weight:20},{type:"checkbox",input:!0,key:"timePicker.showMeridian",label:"12 Hour Time (AM/PM)",tooltip:"Display time in 12 hour time with AM/PM.",weight:30}]},87034:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(69446),n.default=[{type:"checkbox",input:!0,key:"enableMinDateInput",label:"Use Input to add moment.js for minDate",persistent:!1,weight:10,tooltip:"Enables to use input for moment functions instead of calendar."},{type:"datetime",input:!0,key:"datePicker.minDate",label:"Use calendar to set minDate",skipMerge:!0,weight:10,tooltip:"Enables to use calendar to set date.",customConditional:function(e){var n=e.data,r=e.component;return(!r.datePicker||!r.datePicker.minDate||-1===r.datePicker.minDate.indexOf("moment"))&&!n.enableMinDateInput}},{type:"textfield",input:!0,enableTime:!1,key:"datePicker.minDate",skipMerge:!0,label:"Minimum Date",weight:10,tooltip:"The minimum date that can be picked. You can also use Moment.js functions. For example: \n \n moment().subtract(10, 'days')",customConditional:function(e){var n=e.data,r=e.component;return!!r.datePicker&&!!r.datePicker.minDate&&-1!==r.datePicker.minDate.indexOf("moment")||n.enableMinDateInput}},{type:"checkbox",input:!0,key:"enableMaxDateInput",label:"Use Input to add moment.js for maxDate",persistent:!1,weight:20,tooltip:"Enables to use input for moment functions instead of calendar."},{type:"datetime",input:!0,key:"datePicker.maxDate",skipMerge:!0,label:"Use calendar to set maxDate",weight:20,tooltip:"Enables to use calendar to set date.",customConditional:function(e){var n=e.data,r=e.component;return(!r.datePicker||!r.datePicker.maxDate||-1===r.datePicker.maxDate.indexOf("moment"))&&!n.enableMaxDateInput}},{type:"textfield",input:!0,enableTime:!1,key:"datePicker.maxDate",skipMerge:!0,label:"Maximum Date",tooltip:"The maximum date that can be picked. You can also use Moment.js functions. For example: \n \n moment().add(10, 'days')",weight:20,customConditional:function(e){var n=e.data,r=e.component;return!!r.datePicker&&!!r.datePicker.maxDate&&-1!==r.datePicker.maxDate.indexOf("moment")||n.enableMaxDateInput}}]},95805:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];
1return o.default.baseEditForm.apply(o.default,[[{key:"display",components:a.default},{key:"data",components:i.default},{key:"validation",components:l.default},{key:"day",label:"Day",weight:3,components:u.default},{key:"month",label:"Month",weight:3,components:s.default},{key:"year",label:"Year",weight:3,components:c.default}]].concat(n))},r(43001);var o=f(r(6296)),i=f(r(16051)),a=f(r(93489)),l=f(r(29475)),u=f(r(321)),s=f(r(50839)),c=f(r(20484));function f(e){return e&&e.__esModule?e:{default:e}}},79453:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(26981),r(18036),r(11102),r(17943),r(15469),r(1542),r(30902),r(34078),r(12083),r(24646),r(35968),r(30534),r(98197),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(96255),r(43001),r(59012),r(17223),r(12551),r(52315),r(88455),r(32334),r(28818),r(5746),r(97172),r(76381),r(17217),r(27846),r(9473),r(22818);var i=s(r(76635)),a=s(r(89868)),l=s(r(70362)),u=r(9494);function s(e){return e&&e.__esModule?e:{default:e}}function c(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function f(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?c(Object(r),!0).forEach(function(n){y(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;s=!1}else for(;!(s=(o=a.call(r)).done)&&(u.push(o.value),u.length!==n);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return u}}(e,n)||function(e,n){if(e){if("string"==typeof e)return p(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function h(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,v(o.key),o)}}function m(e,n,r,o){return(m="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=g(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else y(o,n,r);return!0})(e,n,r,o)}function y(e,n,r){return(n=v(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function v(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function b(){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=g(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function g(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=k(e)););return e}
vendor: 5,780 bytes, line 1
1function w(e,n){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&w(e,n)}(p,e);var n,r,s,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=k(p);return e=n?Reflect.construct(r,arguments,k(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(e,n,r){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p),e.maxDate&&(e.maxDate=(0,a.default)(e.maxDate,"YYYY-MM-DD").toISOString()),e.minDate&&(e.minDate=(0,a.default)(e.minDate,"YYYY-MM-DD").toISOString()),c.call(this,e,n,r)}return r=[{key:"emptyValue",get:function(){return"00/00/0000"}},{key:"valueMask",get:function(){return/^\d{2}\/\d{2}\/\d{4}$/}},{key:"dayRequired",get:function(){return this.showDay&&i.default.get(this.component,"fields.day.required",!1)}},{key:"showDay",get:function(){return!i.default.get(this.component,"fields.day.hide",!1)}},{key:"monthRequired",get:function(){return this.showMonth&&i.default.get(this.component,"fields.month.required",!1)}},{key:"showMonth",get:function(){return!i.default.get(this.component,"fields.month.hide",!1)}},{key:"yearRequired",get:function(){return this.showYear&&i.default.get(this.component,"fields.year.required",!1)}},{key:"showYear",get:function(){return!i.default.get(this.component,"fields.year.hide",!1)}},{key:"defaultSchema",get:function(){return p.schema()}},{key:"shouldDisabled",get:function(){return b(k(p.prototype),"shouldDisabled",this)||this.parentDisabled}},{key:"inputInfo",get:function(){var e=b(k(p.prototype),"elementInfo",this).call(this);return e.type="input",e.attr.type="hidden",e.changeEvent="input",e}},{key:"inputDefinition",value:function(e){var n,r;return"day"===e&&(n=1,r=31),"month"===e&&(n=1,r=12),"year"===e&&(n=i.default.get(this.component,"fields.year.minYear",1900)||1900,r=i.default.get(this.component,"fields.year.maxYear",2030)||1900),{type:"input",ref:e,attr:{id:"".concat(this.component.key,"-").concat(e),class:"form-control ".concat(this.transform("class","formio-day-component-".concat(e))),type:"select"===this.component.fields[e].type?"select":"number",placeholder:this.component.fields[e].placeholder,step:1,min:n,max:r}}}},{key:"selectDefinition",value:function(e){return{multiple:!1,ref:e,widget:"html5",attr:{id:"".concat(this.component.key,"-").concat(e),class:"form-control",name:e,lang:this.options.language}}}},{key:"days",get:function(){if(this._days)return this._days;this._days=[{value:"",label:i.default.get(this.component,"fields.day.placeholder","")}];for(var e=1;e<=31;e++)this._days.push({value:e,label:e.toString()});return this._days}},{key:"months",get:function(){return this._months||(this._months=[{value:"",label:i.default.get(this.component,"fields.month.placeholder")||(this.hideInputLabels?this.t("Month"):"")},{value:1,label:"January"},{value:2,label:"February"},{value:3,label:"March"},{value:4,label:"April"},{value:5,label:"May"},{value:6,label:"June"},{value:7,label:"July"},{value:8,label:"August"},{value:9,label:"September"},{value:10,label:"October"},{value:11,label:"November"},{value:12,label:"December"}]),this._months}},{key:"years",get:function(){if(this._years)return this._years;this._years=[{value:"",label:i.default.get(this.component,"fields.year.placeholder","")}];for(var e=i.default.get(this.component,"fields.year.minYear",1900)||1900,n=i.default.get(this.component,"fields.year.maxYear",2030)||2030,r=e;r<=n;r++)this._years.push({value:r,label:r.toString()});return this._years}},{key:"setErrorClasses",value:function(e,n,r){b(k(p.prototype),"setErrorClasses",this).call(this,e,n,r),b(k(p.prototype),"setErrorClasses",this).call(this,[this.refs.day,this.refs.month,this.refs.year],n,r)}},{key:"removeInputError",value:function(e){b(k(p.prototype),"removeInputError",this).call(this,[this.refs.day,this.refs.month,this.refs.year]),b(k(p.prototype),"removeInputError",this).call(this,e)}},{key:"init",value:function(){b(k(p.prototype),"init",this).call(this),this.validators=this.validators.concat(["day","maxDate","minDate","minYear","maxYear"]);var e=this.component.fields.year.minYear,n=this.component.fields.year.maxYear;this.component.maxYear=n,this.component.minYear=e;var r=(0,u.getLocaleDateFormatInfo)(this.options.language);this.dayFirst=this.component.useLocaleSettings?r.dayFirst:this.component.dayFirst}},{key:"render",value:function(){return this.isHtmlRenderMode()?b(k(p.prototype),"render",this).call(this,this.renderTemplate("input")):b(k(p.prototype),"render",this).call(this,this.renderTemplate("day",{dayFirst:this.dayFirst,showDay:this.showDay,showMonth:this.showMonth,showYear:this.showYear,day:this.renderField("day"),month:this.renderField("month"),year:this.renderField("year")}))}},{key:"renderField",value:function(e){var n=this;return"select"===this.component.fields[e].type?this.renderTemplate("select",{input
1:this.selectDefinition(e),selectOptions:this["".concat(e,"s")].reduce(function(e,r){return e+n.renderTemplate("selectOption",{option:r,selected:!1,attrs:{}})},"")}):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:this.inputDefinition(e)})}},{key:"attach",value:function(e){var n=this;this.loadRefs(e,{day:"single",month:"single",year:"single",input:"multiple"});var r=b(k(p.prototype),"attach",this).call(this,e);return this.shouldDisabled?(this.setDisabled(this.refs.day,!0),this.setDisabled(this.refs.month,!0),this.setDisabled(this.refs.year,!0),this.refs.input&&this.refs.input.forEach(function(e){return n.setDisabled(e,!0)})):(this.addEventListener(this.refs.day,"input",function(){return n.updateValue(null,{modified:!0})}),this.addEventListener(this.refs.month,"input",function(){var e=n.refs.year?parseInt(new Date(n.refs.year.value,n.refs.month.value,0).getDate(),10):"",r=n.getFieldValue("day");!n.component.fields.day.hide&&e&&(n.refs.day.max=e),e&&r>e&&(n.refs.day.value=n.refs.day.max),n.updateValue(null,{modified:!0})}),this.addEventListener(this.refs.year,"input",function(){return n.updateValue(null,{modified:!0})}),this.addEventListener(this.refs.input,this.info.changeEvent,function(){return n.updateValue(null,{modified:!0})})),this.setValue(this.dataValue),this.disabled=this.shouldDisabled,r}},{key:"validateRequired",value:function(e,n){var r=this.parts,o=r.day,i=r.month,a=r.year;return(!this.dayRequired||!!o)&&(!this.monthRequired||!!i)&&(!this.yearRequired||!!a)&&(!(0,u.boolValue)(e)||!this.isEmpty(n))}},{key:"disabled",set:function(e){(function(e,n,r,o,i){if(!m(e,n,r,o||e)&&i)throw Error("failed to set property")})(k(p.prototype),"disabled",e,this,!0),this.refs.year&&this.refs.month&&this.refs.day&&(e?(this.refs.year.setAttribute("disabled","disabled"),this.refs.month.setAttribute("disabled","disabled"),this.refs.day.setAttribute("disabled","disabled")):(this.refs.year.removeAttribute("disabled"),this.refs.month.removeAttribute("disabled"),this.refs.day.removeAttribute("disabled")))}},{key:"normalizeValue",value:function(e){if(!e||this.valueMask.test(e))return e;var n=[],r=e.split("/"),o=d(this.component.dayFirst?[0,1,2]:[1,0,2],3),i=o[0],a=o[1],l=o[2],u=this.component.defaultValue?this.component.defaultValue.split("/"):"",s=function(e,o){return n.push(e?r.shift():o)};return this.dayFirst&&s(this.showDay,u?u[i]:"00"),s(this.showMonth,u?u[a]:"00"),this.dayFirst||s(this.showDay,u?u[i]:"00"),s(this.showYear,u?u[l]:"0000"),n.join("/")}},{key:"setValueAt",value:function(e,n){if(!n||"Invalid date"===n)return null;var r,o=n.split("/");this.component.dayFirst&&(r=o.shift());var i=o.shift();this.component.dayFirst||(r=o.shift());var a=o.shift();this.refs.day&&this.showDay&&(this.refs.day.value="00"===r?"":parseInt(r,10)),this.refs.month&&this.showMonth&&(this.refs.month.value="00"===i?"":parseInt(i,10)),this.refs.year&&this.showYear&&(this.refs.year.value="0000"===a?"":parseInt(a,10))}},{key:"getFieldValue",value:function(e){var n=this.dataValue?this.dataValue.split("/"):[],r=0;switch(e){case"month":r=n[this.dayFirst?1:0];break;case"day":r=n[this.dayFirst?0:1];break;case"year":r=n[2]}return r=parseInt(r,10),!i.default.isNaN(r)&&i.default.isNumber(r)?r:0}},{key:"parts",get:function(){return{day:this.getFieldValue("day"),month:this.getFieldValue("month"),year:this.getFieldValue("year")}}},{key:"format",get:function(){var e="";return(this.component.dayFirst&&this.showDay&&(e+="D/"),this.showMonth&&(e+="M/"),!this.component.dayFirst&&this.showDay&&(e+="D/"),this.showYear)?e+="YYYY":e.length?e.substring(0,e.length-1):e}},{key:"getDate",value:function(e){var n,r,o,a=[],l=d(this.component.dayFirst?[0,1,2]:[1,0,2],3),u=l[0],s=l[1],c=l[2],f=e||this.component.defaultValue;return(f&&(a=f.split("/").map(function(e){return parseInt(e,10)})),this.showDay&&this.refs.day&&(n=parseInt(this.refs.day.value,10)),(void 0===n||i.default.isNaN(n))&&(n=a[u]&&!i.default.isNaN(a[u])?a[u]:0),this.showMonth&&this.refs.month&&(r=parseInt(this.refs.month.value,10)),(void 0===r||i.default.isNaN(r))&&(r=a[s]&&!i.default.isNaN(a[s])?a[s]:0),this.showYear&&this.refs.year&&(o=parseInt(this.refs.year.value)),(void 0===o||i.default.isNaN(o))&&(o=a[c]&&
vendor: 5,158 bytes, line 1
1!i.default.isNaN(a[c])?a[c]:0),n||r||o)?(n=this.showDay?n.toString().padStart(2,0):"",r=this.showMonth?r.toString().padStart(2,0):"",o=this.showYear?o.toString().padStart(4,0):"",this.component.dayFirst?"".concat(n).concat(this.showDay&&this.showMonth||this.showDay&&this.showYear?"/":"").concat(r).concat(this.showMonth&&this.showYear?"/":"").concat(o):"".concat(r).concat(this.showDay&&this.showMonth||this.showMonth&&this.showYear?"/":"").concat(n).concat(this.showDay&&this.showYear?"/":"").concat(o)):null}},{key:"date",get:function(){return this.getDate()}},{key:"validationValue",get:function(){return this.dataValue}},{key:"getValue",value:function(){return b(k(p.prototype),"getValue",this).call(this)||this.dataValue}},{key:"getValueAt",value:function(e){var n=this.date||this.emptyValue;return n?(this.refs.input[e].value=n,this.refs.input[e].value):(this.refs.input[e].value="",null)}},{key:"getValueAsString",value:function(e){return this.getDate(e)||""}},{key:"focus",value:function(){var e,n,r;this.dayFirst&&this.showDay||!this.dayFirst&&!this.showMonth&&this.showDay?null===(e=this.refs.day)||void 0===e||e.focus():this.dayFirst&&!this.showDay&&this.showMonth||!this.dayFirst&&this.showMonth?null===(n=this.refs.month)||void 0===n||n.focus():this.showDay||this.showDay||!this.showYear||null===(r=this.refs.year)||void 0===r||r.focus()}},{key:"isPartialDay",value:function(e){if(!e)return!1;var n=d(this.component.dayFirst?[0,1,2]:[1,0,2],3),r=n[0],o=n[1],i=n[2],a=e.split("/");return"00"===a[r]||"00"===a[o]||"0000"===a[i]}},{key:"getValidationFormat",value:function(){return this.dayFirst?"DD-MM-YYYY":"MM-DD-YYYY"}}],s=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return l.default.schema.apply(l.default,[{type:"day",label:"Day",key:"day",fields:{day:{type:"number",placeholder:"",required:!1},month:{type:"select",placeholder:"",required:!1},year:{type:"number",placeholder:"",required:!1}},dayFirst:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Day",group:"advanced",icon:"calendar",documentation:"/userguide/form-building/advanced-components#day",weight:50,schema:p.schema()}}},{key:"serverConditionSettings",get:function(){return f(f({},b(k(p),"serverConditionSettings",this)),{},{operators:["isDateEqual","isNotDateEqual","isEmpty","isNotEmpty","dateLessThan","dateGreaterThan","dateLessThanOrEqual","dateGreaterThanOrEqual"]})}}],r&&h(p.prototype,r),s&&h(p,s),Object.defineProperty(p,"prototype",{writable:!1}),p}(l.default);n.default=O},16051:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0}]},321:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.day.type",label:"Type",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:210,type:"textfield",input:!0,key:"fields.day.placeholder",label:"Placeholder",placeholder:"Day Placeholder",tooltip:"The placeholder text that will appear when Day field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Day part of the component.",key:"fields.day.hide",input:!0},{weight:214,type:"checkbox",label:"Day First",tooltip:"Display the Day field before the Month field.",key:"dayFirst",input:!0}]},93489:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"labelPosition",ignore:!0},{weight:15,type:"checkbox",label:"Hide Input Labels",tooltip:"Hide the labels of component inputs. This allows you to show the labels in the form builder, but not when it is rendered.",key:"hideInputLabels",input:!0},{type:"select",input:!0,key:"inputsLabelPosition",label:"Inputs Label Position",tooltip:"Position for the labels for inputs for this field.",weight:40,defaultValue:"top",dataSrc:"values",data:{values:[{label:"Top",value:"top"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Bottom",value:"bottom"}]}},{key:"placeholder",ignore:!0},{weight:213,type:"checkbox",label:"Use Locale Settings",tooltip:"Use locale settings to display day.",key:"useLocaleSettings",input:!0}]},50839:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.month.type",label:"Type of input",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:210,type:"textfield",input:!0,key:"fields.month.placeholder",label:"Placeholder",placeholder:"Month Placeholder",tooltip:"The placeholder text that will appear when Month field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Month part of the component.",key:"fields.month.hide",input:!0}]},29475:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"validate.required",ignore:!0},{key:"validate.unique",ignore:!0},{weight:0,type:"checkbox",label:"Require Day",tooltip:"A required field must be filled
1in before the form can be submitted.",key:"fields.day.required",input:!0},{weight:10,type:"checkbox",label:"Require Month",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.month.required",input:!0},{weight:20,type:"checkbox",label:"Require Year",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.year.required",input:!0},{weight:40,type:"textfield",label:"Minimum Day",placeholder:"yyyy-MM-dd",tooltip:"A minimum date that can be set. You can also use Moment.js functions. For example: \n \n moment().subtract(10, 'days')",key:"minDate",input:!0},{weight:30,type:"textfield",label:"Maximum Day",placeholder:"yyyy-MM-dd",tooltip:"A maximum day that can be set. You can also use Moment.js functions. For example: \n \n moment().add(10, 'days')",key:"maxDate",input:!0}]},20484:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.year.type",label:"Type of input",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:203,type:"number",input:!0,key:"fields.year.minYear",label:"Minimum Year",placeholder:"1900",tooltip:"The minimum year that can be entered."},{weight:204,type:"number",input:!0,key:"fields.year.maxYear",label:"Maximum Year",placeholder:"2030",tooltip:"The maximum year that can be entered."},{weight:210,type:"textfield",input:!0,key:"fields.year.placeholder",label:"Placeholder",placeholder:"Year Placeholder",tooltip:"The placeholder text that will appear when Year field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Year part of the component.",key:"fields.year.hide",input:!0}]},47860:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{label:"Templates",key:"templates",weight:5,components:l.default},{key:"display",components:a.default},{key:"data",components:i.default},{key:"validation",components:u.default}]].concat(n))},r(43001);var o=s(r(6296)),i=s(r(3603)),a=s(r(63298)),l=s(r(86390)),u=s(r(52474));function s(e){return e&&e.__esModule?e:{default:e}}},74545:function(e,n,r){"use strict";r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(26944),r(26981),r(15264),r(14785),r(11102),r(17943),r(1542),r(30534),r(98197),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(88455),r(17223),r(32334),r(18036),r(76381),r(92100),r(28121),r(83972),r(35968),r(9473),r(12083),r(15469),r(24646),r(45343),r(41126),r(5746),r(12551),r(6588),r(52315),r(30902),r(92782),r(34078),r(59012),r(27846),r(22818);var o=f(r(76635)),i=f(r(18947)),a=f(r(45641)),l=f(r(11275)),u=f(r(83646)),s=r(9494),c=f(r(79862));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function h(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?p(Object(r),!0).forEach(function(n){w(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return y(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function v(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,k(o.key),o)}}function b(e,n){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function g(e,n,r,o){return(g="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=_(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else w(o,n,r);return!0})(e,n,r,o)}function w(e,n,r){return(n=k(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function k(e){var n=function(e,n){if("object"!==d(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==d(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===d(n)?n:String(n)}function O(){return(O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=_(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function _(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=j(e)););return e}
1function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var P={New:"new",Editing:"editing",Saved:"saved",Viewing:"viewing",Removed:"removed",Draft:"draft"},S=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&b(e,n)}(p,e);var n,r,l,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=j(p);return e=n?Reflect.construct(r,arguments,j(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===d(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=f.call.apply(f,[this].concat(r))).type="editgrid",e}return r=[{key:"defaultDialogTemplate",get:function(){return'\n <h3 ref="dialogHeader">'.concat(this.t("Do you want to clear data?"),'</h3>\n <div style="display:flex; justify-content: flex-end;">\n <button ref="dialogCancelButton" class="btn btn-secondary" aria-label="').concat(this.t("Cancel"),'">').concat(this.t("Cancel"),'</button>\n <button ref="dialogYesButton" class="btn btn-danger" aria-label="').concat(this.t("Yes, delete it"),'">').concat(this.t("Yes, delete it"),"</button>\n </div>\n ")}},{key:"defaultRowTemplate",get:function(){return this.displayAsTable?p.defaultTableRowTemplate:p.defaultRowTemplate}},{key:"defaultHeaderTemplate",get:function(){return this.displayAsTable?p.defaultTableHeaderTemplate:p.defaultHeaderTemplate}},{key:"rowTemplate",get:function(){return s.Evaluator.noeval?this.displayAsTable?c.default.tableRow:c.default.row:this.displayAsTable?o.default.get(this.component,"templates.tableRow",this.defaultRowTemplate):o.default.get(this.component,"templates.row",this.defaultRowTemplate)}},{key:"headerTemplate",get:function(){return s.Evaluator.noeval?this.displayAsTable?c.default.tableHeader:c.default.header:this.displayAsTable?o.default.get(this.component,"templates.tableHeader",this.defaultHeaderTemplate):o.default.get(this.component,"templates.header",this.defaultHeaderTemplate)}},{key:"hasScopedChildren",get:function(){return!this.inlineEditMode}},{key:"defaultSchema",get:function(){return p.schema()}},{key:"emptyValue",get:function(){return[]}},{key:"editgridKey",get:function(){return"editgrid-".concat(this.key)}},{key:"rowRef",get:function(){return"".concat(this.editgridKey,"-row")}},{key:"rowElements",get:function(){return this.refs[this.rowRef]}},{key:"rowRefs",get:function(){return this.refs["editgrid-".concat(this.component.key,"-row")]}},{key:"addRowRef",get:function(){return"".concat(this.editgridKey,"-addRow")}},{key:"addRowElements",get:function(){return this.refs[this.addRowRef]}},{key:"saveRowRef",get:function(){return"".concat(this.editgridKey,"-saveRow")}},{key:"saveRowElements",get:function(){return this.refs[this.saveRowRef]}},{key:"cancelRowRef",get:function(){return"".concat(this.editgridKey,"-cancelRow")}},{key:"cancelRowElements",get:function(){return this.refs[this.cancelRowRef]}},{key:"inlineEditMode",get:function(){return this.component.inlineEdit}},{key:"saveEditMode",get:function(){return!this.inlineEditMode}},{key:"minLength",get:function(){return this.builderMode?0:o.default.get(this.component,"validate.minLength",0)}},{key:"data",get:function(){return this._data},set:function(e){this._data=e;var n=this.dataValue;
1(this.editRows||[]).forEach(function(e,r){n[r]||e.state===P.New||(n[r]={});var o=n[r]||{};e.data=o,e.components.forEach(function(e){e.data=o})})}},{key:"dataValue",get:function(){return O(j(p.prototype),"dataValue",this)||[]},set:function(e){!function(e,n,r,o,i){if(!g(e,n,r,o||e)&&i)throw Error("failed to set property")}(j(p.prototype),"dataValue",e,this,!0)}},{key:"displayAsTable",get:function(){return this.component.displayAsTable}},{key:"iteratableRows",get:function(){return this.editRows}},{key:"defaultValue",get:function(){var e=O(j(p.prototype),"defaultValue",this),n=Array.isArray(e)?e:[];return o.default.times(this.minLength-n.length,function(){return n.push({})}),n}},{key:"hasRemoveButtons",value:function(){return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&this.dataValue.length>o.default.get(this.component,"validate.minLength",0)}},{key:"init",value:function(){var e=this;if(this.builderMode)return this.editRows=[],O(j(p.prototype),"init",this).call(this);this.components=this.components||[];var n=this.dataValue;!n.length&&this.component.openWhenEmpty?(this.editRows=[],this.createRow({},0)):this.editRows=n.map(function(n,r){return{components:e.lazyLoad?[]:e.createRowComponents(n,r),data:n,state:P.Saved,backup:null,error:null,rowIndex:r}}),this.prevHasAddButton=this.hasAddButton(),this.checkData(),this.setVariableTypeComponents(),this.variableTypeComponentsIndexes.length&&o.default.each(this.editRows||[],function(n,r){return e.checkRowVariableTypeComponents(n,r)})}},{key:"checkRowVariableTypeComponents",value:function(e,n){var r=e.components;o.default.some(this.variableTypeComponentsIndexes,function(e){var n=r[e];return n.type!==n.component.type})&&(e.components=this.createRowComponents(e.data,n,!0))}},{key:"setVariableTypeComponents",value:function(){var e=this;this.variableTypeComponentsIndexes=[],o.default.each(this.component.components,function(n,r){n.typeChangeEnabled&&e.variableTypeComponentsIndexes.push(r)})}},{key:"isOpen",value:function(e){return[P.New,P.Editing,P.Viewing].includes(e.state)}},{key:"isComponentVisibleInSomeRow",value:function(e){var n=this,r=this.editRows,i=[P.Saved,P.Editing,P.Draft],a=r.filter(function(e){return o.default.includes(i,e.state)});this.visibleInHeader=this.visibleInHeader||[];var l=function(e,r){r||o.default.remove(n.visibleInHeader,function(n){return n===e.key}),r&&!o.default.includes(n.visibleInHeader,e.key)&&n.visibleInHeader.push(e.key)};if(o.default.isEmpty(r)){var u,c=this.createRowComponents({},0);(0,s.eachComponent)(c,function(n){n.component.key===e.key&&(u=n),n.checkConditions()});var f=!u||u.visible;return m(this.components).forEach(function(e){return n.removeComponent(e,n.components)}),l(e,f),f}var d=o.default.get(this.component,"openWhenEmpty")&&1===r.length&&r[0].state===P.New;return!o.default.isEmpty(r)&&o.default.isEmpty(a)&&!d?o.default.includes(this.visibleInHeader,e.key):o.default.some(d?r:a,function(r,i){var a;if(r.state===P.Editing)a=o.default.includes(n.visibleInHeader,e.key);else{var u=n.flattenComponents(i)[e.key];l(e,a=!u||u.visible)}return a})}},{key:"render",value:function(e){var n=this;if(this.builderMode)return O(j(p.prototype),"render",this).call(this);var r=this.dataValue,i=this.headerTemplate,a=this.t.bind(this),l=this.displayAsTable?"editgridTable":"editgrid";return O(j(p.prototype),"render",this).call(this,e||this.renderTemplate(l,{ref:{row:this.rowRef,addRow:this.addRowRef,saveRow:this.saveRowRef,cancelRow:this.cancelRowRef},header:this.renderString(i,{displayValue:function(e){return n.displayComponentValue(e,!0)},components:this.component.components,value:r,t:a}),footer:this.renderString(o.default.get(this.component,"templates.footer"),{components:this.component.components,value:r,t:a}),rows:this.editRows.map(this.renderRow.bind(this)),openRows:this.editRows.map(function(e){return n.isOpen(e)}),errors:this.editRows.map(function(e){return e.error}),hasAddButton:this.hasAddButton(),hasRemoveButtons:this.hasRemoveButtons()}))}},{key:"renderComponents",value:function(e){var n=(e=e||this.getComponents()).map(function(e){return e.render()}),r=this.displayAsTable&&this.prevHasAddButton?"tableComponents":"components";return this.renderTemplate(r,{children:n,components:e})}},{key:"attach",value:function(e){var n,r=this;if(this.builderMode)return O(j(p.prototype),"attach",this).call(this,e);this.loadRefs(e,(w(n={},this.addRowRef,"multiple"),w(n,this.saveRowRef,"multiple"),w(n,this.cancelRowRef,"multiple"),w(n,this.rowRef,"multiple"),n)),this.addRowElements.forEac
1h(function(e){r.addEventListener(e,"click",function(){return r.addRow()})});var i=0;this.rowElements.forEach(function(e,n){var a=r.editRows[n];null!=a&&a.isRowSelected&&e.classList.add("selected"),r.isOpen(a)?(r.attachComponents(e,a.components),r.addEventListener(r.saveRowElements[i],"click",function(){return r.saveRow(n,!0)}),r.addEventListener(r.cancelRowElements[i],"click",function(){return r.cancelRow(n)}),i++):[{className:"removeRow",event:"click",action:function(){return r.removeRow(n,!0)}},{className:"editRow",event:"click",action:function(){r.editRow(n).then(function(){if(r.component.rowDrafts){r.validateRow(a,!1);var e,n=a.errors&&!!a.errors.length;r.component.modal&&n&&(null===(e=r.root)||void 0===e?void 0:e.submitted)&&(r.alert.showErrors(a.errors,!1),a.alerts=!0)}})}},{className:"row",event:"click",action:function(){e.classList.toggle("selected");var o="editGridSelectRow";Array.from(e.classList).includes("selected")?a.isRowSelected=!0:(delete a.isRowSelected,o="editGridUnSelectRow"),r.emit(o,{component:r.component,data:r.dataValue[n]})}}].forEach(function(n){var i=n.className,a=n.event,l=n.action,u=e.getElementsByClassName(i);Array.prototype.forEach.call(u,function(e){r.options.readOnly&&o.default.intersection(e.classList,["editRow","removeRow"]).length?e.style.display="none":r.addEventListener(e,a,l)})})}),i?this.addClass(this.refs.component,"formio-component-".concat(this.component.type,"-row-open")):this.removeClass(this.refs.component,"formio-component-".concat(this.component.type,"-row-open"));var a=O(j(p.prototype),"attach",this).call(this,e);return this.loadRefs(e,{messageContainer:"single-scope"}),a}},{key:"flattenRowDataValue",value:function(e){var n=this,r={};return Object.keys(e).forEach(function(i){o.default.isObject(e[i])&&!o.default.isNil(e[i])?Object.assign(r,n.flattenRowDataValue(e[i])):r[i]=e[i]}),r}},{key:"isComponentVisibleInRow",value:function(e,n){var r=n[e.key];return!r||r.visible}},{key:"displayComponentValue",value:function(e,n){return!!((!e.hasOwnProperty("tableView")||e.tableView)&&n?this.isComponentVisibleInSomeRow(e):o.default.includes(this.visibleInHeader,e.key))}},{key:"renderRow",value:function(e,n){var r=this,o=this.dataValue;if(this.isOpen(e))return this.renderComponents(e.components);var i=this.flattenComponents(n),a=this.rowTemplate;return this.renderString(a,{row:o[n]||{},data:this.data,rowIndex:n,components:this.component.components,flattenedComponents:i,displayValue:function(e){return r.displayComponentValue(e)},isVisibleInRow:function(e){return r.isComponentVisibleInRow(e,i)},getView:function(e,n){var r,o,a=i[e.key],l=a?a.getView(n||a.dataValue):"",u=RegExp("<(.*?)>");return"string"==typeof l&&l.length&&!(null!==(r=a.component)&&void 0!==r&&r.template)&&u.test(l)&&(null===(o=a.component)||void 0===o?void 0:o.inputFormat)!=="html"?'<input type="text" value="'.concat(l.replace(/"/g,"""),'" readonly/>'):l},state:this.editRows[n].state,t:this.t.bind(this)})}},{key:"eachComponent",value:function(e,n){o.default.each(this.getComponents(n),function(n,r){if(!1===e(n,r))return!1})}},{key:"restoreComponentsContext",value:function(){var e=this;this.getComponents().forEach(function(n){var r,o=e.dataValue[n.rowIndex],i=null===(r=e.editRows[n.rowIndex])||void 0===r?void 0:r.data;n.data=o||i})}},{key:"flattenComponents",value:function(e){var n={};return this.everyComponent(function(e){n[e.component.flattenAs||e.key]=e},e),n}},{key:"getComponents",value:function(e){return this.editRows=this.editRows||[],this.builderMode?O(j(p.prototype),"getComponents",this).call(this):o.default.isNumber(e)?this.editRows[e].components||[]:this.editRows.reduce(function(e,n){return e.concat(n.components||[])},[])}},{key:"destroyComponents",value:function(e){var n=this;if(this.builderMode)return O(j(p.prototype),"destroyComponents",this).call(this);this.getComponents(e).slice().forEach(function(e){return n.removeComponent(e,n.components)})}},{key:"createRow",value:function(e,n){var r={components:this.createRowComponents(e,n),data:e,state:P.New,backup:null,error:null,rowIndex:n};return this.editRows.push(r),this.inlineEditMode&&this.dataValue.push(e),r}},{key:"addRow",value:function(){if(!this.options.readOnly){var e=this.editRows.length,n=this.createRow({},e);
1return this.inlineEditMode&&this.triggerChange(),this.emit("editGridAddRow",{component:this.component,row:n}),this.checkRow("checkData",null,{},n.data,n.components),this.component.modal?this.addRowModal(e):this.redraw(),n}}},{key:"addRowModal",value:function(e){var n=this,r=this.ce("div"),o=this.editRows[e];o.willBeSaved=!1;var i=o.components;r.innerHTML=this.renderComponents(i);var a=this.component.modal?this.createModal(r,{},function(){return n.showDialog(e)}):void 0;return a.classList.add("editgrid-row-modal-".concat(this.id)),o.dialog=a,this.alert&&(this.alert.clear(),this.alert=null),this.alert=new u.default(a.refs.dialogContents,this),this.addEventListener(a,"close",function(){o.willBeSaved||(n.editRows[e]&&n.editRows[e].state!==P.New&&n.editRows[e].components.forEach(function(e){e.setPristine(!0)}),n.cancelRow(e)),n.alert&&(n.alert.clear(),n.alert=null),delete o.confirmationDialog,delete o.dialog}),a.refs.dialogContents.appendChild(this.ce("button",{class:"btn btn-primary",onClick:function(){n.component.rowDrafts||o.components.forEach(function(e){return e.setPristine(!1)}),n.validateRow(o,!0)||n.component.rowDrafts?(o.willBeSaved=!0,a.close(),n.saveRow(e,!0)):(n.alert.showErrors(o.errors,!1),o.alerts=!0)}},this.component.saveRow||"Save")),this.attachComponents(r,i)}},{key:"showDialog",value:function(e){var n,r=this.editRows[e];if(o.default.isEqual(r.backup,r.data))return i.default.resolve();var a=this.ce("div",{ref:"confirmationDialog"}),l=this.component.dialogTemplate||this.defaultDialogTemplate;a.innerHTML=l,a.refs={},this.loadRefs.call(a,a,{dialogHeader:"single",dialogCancelButton:"single",dialogYesButton:"single"});var u=this.createModal(a);u.classList.add("editgrid-row-modal-confirmation-".concat(this.id));var s=function(e){e.preventDefault(),u.close()},c=new i.default(function(e,r){n={resolve:e,reject:r}});return this.addEventListener(a.refs.dialogYesButton,"click",function(e){s(e),n.resolve()}),this.addEventListener(a.refs.dialogCancelButton,"click",function(e){s(e),n.reject()}),r.confirmationDialog=u,c}},{key:"editRow",value:function(e){var n=this.editRows[e],r=n.state===P.Editing||n.state===P.New;if(!n||r)return i.default.resolve();n.prevState=n.state,n.state=this.options.readOnly?P.Viewing:P.Editing,this.lazyLoad&&0===n.components.length&&(n.components=this.createRowComponents(n.data,e));var o=(0,s.fastCloneDeep)(n.data);return(this.inlineEditMode?n.backup=o:(n.backup=(0,s.fastCloneDeep)(n.data),n.data=o,this.restoreRowContext(n)),this.component.modal)?this.addRowModal(e):this.redraw()}},{key:"clearErrors",value:function(e){var n=this.editRows[e];n&&Array.isArray(n.components)&&n.components.forEach(function(e){e.setPristine(!0),e.setCustomValidity("")})}},{key:"cancelRow",value:function(e){if(!this.options.readOnly){var n=this.editRows[e];switch(n.state){case P.New:n.state=P.Removed,this.clearErrors(e),this.destroyComponents(e),this.inlineEditMode&&this.splice(e),this.editRows.splice(e,1),this.openWhenEmpty();break;case P.Editing:n.state=n.prevState,this.inlineEditMode&&(this.dataValue[e]=n.backup),n.data=n.backup,n.backup=null,this.restoreRowContext(n),this.clearErrors(e)}
vendor: 4,285 bytes, line 1
1this.emit("editGridCancelRow",{instance:this,component:this.component,editRow:n}),this.checkValidity(null,!0),this.redraw(),this.component.rowDrafts&&this.checkValidity(this.data,!1)}}},{key:"saveRow",value:function(e,n){var r=this,o=this.editRows[e];if(!this.options.readOnly){this.component.rowDrafts||o.components.forEach(function(e){return e.setPristine(!1)});var i=this.validateRow(o,!0);if(!this.component.rowDrafts&&!i)return!1;if(this.saveEditMode){var a,l,u=this.dataValue;switch(null!==(a=this.root)&&void 0!==a&&null!==(l=a.focusedComponent)&&void 0!==l&&l.component.typeChangeEnabled&&(this.root.focusedComponent=null),o.state){case P.New:var s=u.length;u.push(o.data),o.components.forEach(function(e){return e.rowIndex=s}),e!==s&&(this.editRows.splice(e,1),this.editRows.splice(s,0,o));break;case P.Editing:u[e]=o.data}}return o.state=this.component.rowDrafts&&!i?P.Draft:P.Saved,o.backup=null,this.updateValue(),this.emit("editGridSaveRow",{component:this.component,row:o.data,instance:this}),this.triggerChange({modified:n,noPristineChangeOnModified:n&&this.component.rowDrafts,isolateRow:!0}),this.component.rowDrafts&&o.components.forEach(function(e){return e.setPristine(r.pristine)}),this.checkValidity(null,!0),this.redraw(),o.alerts&&(o.alerts=!1),!0}}},{key:"beforeFocus",value:function(e){"beforeFocus"in this.parent&&this.parent.beforeFocus(this);var n=this.getRelativePath(e.path),r=(0,s.getArrayFromComponentPath)(n),i=r[0],a=r[0];this.editRows.forEach(function(e,n){e.rowIndex===i&&(a=n)}),o.default.isNumber(a)&&this.editRow(a)}},{key:"updateComponentsRowIndex",value:function(e,n){e.forEach(function(e,r){e.rowIndex=n,e.row="".concat(n,"-").concat(r)})}},{key:"updateRowsComponents",value:function(e){var n=this;this.editRows.slice(e).forEach(function(r,o){n.updateComponentsRowIndex(r.components,e+o)})}},{key:"baseRemoveRow",value:function(e){var n=this.editRows[e];return n.state=P.Removed,this.destroyComponents(e),n}},{key:"removeRow",value:function(e,n){this.options.readOnly||(this.clearErrors(e),this.baseRemoveRow(e),this.splice(e),this.emit("editGridDeleteRow",{index:e}),this.editRows.splice(e,1),this.openWhenEmpty(),this.updateRowsComponents(e),this.updateValue(),this.triggerChange({modified:n,noPristineChangeOnModified:n&&this.component.rowDrafts,isolateRow:!0}),this.checkValidity(null,!0),this.checkData(),this.redraw())}},{key:"createRowComponents",value:function(e,n,r){var i=this,a=o.default.get(this.editRows,"[".concat(n,"].components"),null);return this.component.components.map(function(l,u){if(r&&a&&i.variableTypeComponentsIndexes.length){var s,c=a[u];if(!(o.default.includes(i.variableTypeComponentsIndexes,u)&&(null==c?void 0:c.type)!==(null==c?void 0:null===(s=c.component)||void 0===s?void 0:s.type)))return c;l=c.component}var f=o.default.clone(l),d=o.default.clone(i.options);d.name+="[".concat(n,"]"),d.row="".concat(n,"-").concat(u),d.onChange=function(){var e,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0;if(null!==(e=a.instance.root)&&void 0!==e&&e.id&&(null===(r=i.root)||void 0===r?void 0:r.id)!==a.instance.root.id?a.instance.root.triggerChange(o,a,l):i.component.modal||i.triggerRootChange(o,a,l),!i.inlineEditMode){var u=i.editRows[n];if(null!=u&&u.alerts)i.checkData(null,h(h({},o),{},{changed:a,rowIndex:n}),i.data);else if(u){var s=i.component.rowDrafts&&!i.shouldValidateDraft(u);i.checkRow("checkData",null,h(h({},o),{},{changed:a,silentCheck:s}),u.data,u.components,s)}i.variableTypeComponentsIndexes.length&&(i.checkRowVariableTypeComponents(u,n),i.redraw())}};var p=i.createComponent(o.default.assign({},f,{row:d.row}),d,e,null,r&&a?a[u]:null);return p.rowIndex=n,p.inEditGrid=!0,p})}},{key:"hasOpenRows",value:function(){var e=this;return this.editRows.some(function(n){return e.isOpen(n)})}},{key:"shouldValidateDraft",value:function(e){var n,r;return e.state===P.Draft&&!this.pristine&&!(null!==(n=this.root)&&void 0!==n&&n.pristine)&&!this.hasOpenRows()||(null===(r=this.root)||void 0===r?void 0:r.submitted)}},{key:"shouldValidateRow",value:function(e,n){return this.shouldValidateDraft(e)||e.state===P.Editing||e.alerts||n}},{key:"validateRow",value:function(e,n,r){var o,i=this,a=!0,l=m(this.errors);
1return this.shouldValidateRow(e,n)&&e.components.forEach(function(o){var l=i.component.rowDrafts&&!i.shouldValidateDraft(e)||r;a&=o.checkValidity(null,n,null,l)}),this.component.validate&&this.component.validate.row&&("true"!==(a=this.evaluate(this.component.validate.row,{valid:a,row:e.data},"valid",!0)).toString()?(e.error=a,a=!1):e.error=null,null===a&&(a="Invalid row validation for ".concat(this.key))),e.errors=a?null:this.errors.filter(function(e){return!l.includes(e)}),(!this.component.rowDrafts||null!==(o=this.root)&&void 0!==o&&o.submitted)&&this.showRowErrorAlerts(e,!!a),!!a}},{key:"showRowErrorAlerts",value:function(e,n){if(e.alerts&&this.alert){var r;null!==(r=e.errors)&&void 0!==r&&r.length&&!n?(this.alert.showErrors(e.errors,!1),e.alerts=!0):this.alert.clear()}}},{key:"checkValidity",value:function(e,n,r,o){return(e=e||this.rootValue,r=r||this.data,this.checkCondition(r,e))?this.checkComponentValidity(e,n,r,{silentCheck:o}):(this.setCustomValidity(""),!0)}},{key:"checkComponentValidity",value:function(e,n,r){var o,i,a,l=this,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=u.silentCheck,c=this.errors.length,f=O(j(p.prototype),"checkComponentValidity",this).call(this,e,n,r,u);if(!f&&!this.alert&&!this.hasOpenRows())return!1;if(this.shouldSkipValidation(e,n,r))return!0;var d=!0,h=!1;if(this.editRows.forEach(function(e,r){var o=l.validateRow(e,n,s);if(d&=o,l.rowRefs){var i=l.rowRefs[r];if(i){var a=i.querySelector(".editgrid-row-error");!o&&a&&(!l.component.rowDrafts||l.shouldValidateDraft(e))?(l.addClass(a,"help-block"),a.textContent=l.t(l.errorMessage("invalidRowError"))):a&&(a.textContent="")}}h|=n&&l.isOpen(e)}),!d)return s||this.component.rowDrafts&&(null===(o=this.root)||void 0===o||!o.submitted)||(this.setCustomValidity(this.t(this.errorMessage("invalidRowsError")),n),this.removeClass(this.element,"has-error")),!1;if(h&&this.saveEditMode)return this.setCustomValidity(this.t(this.errorMessage("unsavedRowsError")),n),!1;var m=this.invalid||this.invalidMessage(e,n);return(null===(i=this.errors)||void 0===i?void 0:i.length)!==c&&null!==(a=this.root)&&void 0!==a&&a.submitted&&!m?(this.setCustomValidity(m,n),this.root.showErrors()):this.setCustomValidity(m,n),f}},{key:"changeState",value:function(e,n){e||n.resetValue&&this.component.modalEdit?this.rebuild():this.redraw()}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e||(e=this.defaultValue),!Array.isArray(e)){if("object"!==d(e))return!1;e=[e]}var o=this.hasChanged(e,this.dataValue);r.noValidate=!o,this.parent&&this.parent.checkComponentConditions(),this.dataValue=e,this.dataValue.forEach(function(e,o){var i=n.editRows[o];i?(i.data=e,n.restoreRowContext(i,r),i.state=P.Saved,i.backup=null,i.error=null):n.editRows[o]={components:n.lazyLoad?[]:n.createRowComponents(e,o),data:e,state:P.Saved,backup:null,error:null}});var i=this.dataValue.length;return this.editRows[i]&&this.editRows[i].state===P.New&&(i+=1),this.editRows.slice(i).forEach(function(e,r){return n.baseRemoveRow(i+r)}),this.editRows=this.editRows.slice(0,i),this.openWhenEmpty(),this.updateOnChange(r,o),this.checkData(),this.changeState(o,r),o}},{key:"openWhenEmpty",value:function(){var e=!this.dataValue.length&&this.component.openWhenEmpty;this.editRows.length||!e||this.builderMode||this.createRow({},0)}},{key:"restoreRowContext",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.components.forEach(function(o){o.data=e.data,n.setNestedValue(o,e.data,r)})}},{key:"emptyRows",value:function(){var e=this;this.editRows.forEach(function(n,r){return e.destroyComponents(r)}),this.editRows=[]}},{key:"resetValue",value:function(){O(j(p.prototype),"resetValue",this).call(this),this.emptyRows()}}],l=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"editgrid",label:"Edit Grid",key:"editGrid",clearOnHide:!0,input:!0,tree:!0,removeRow:"Cancel",defaultOpen:!1,openWhenEmpty:!1,modal:!1,components:[],inlineEdit:!1,templates:{header:p.defaultHeaderTemplate,row:p.defaultRowTemplate,tableHeader:p.defaultTableHeaderTemplate,tableRow:p.defaultTableRowTemplate,footer
vendor: 9,094 bytes, line 1
1:""}}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Edit Grid",icon:"tasks",group:"data",documentation:"/userguide/form-building/data-components#edit-grid",showPreview:!1,weight:30,schema:p.schema()}}},{key:"defaultHeaderTemplate",get:function(){return'<div class="row">\n {% util.eachComponent(components, function(component) { %}\n {% if (displayValue(component)) { %}\n <div class="col-sm-2">{{ t(component.label) }}</div>\n {% } %}\n {% }) %}\n </div>'}},{key:"defaultTableHeaderTemplate",get:function(){return'\n <tr>\n {% util.eachComponent(components, function(component) { %}\n {% if (!component.hasOwnProperty(\'tableView\') || component.tableView) { %}\n <td class="editgrid-table-column">{{ component.label }}</td>\n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n <td class="editgrid-table-column">Actions</td>\n {% } %}\n </tr>\n '}},{key:"defaultRowTemplate",get:function(){return'<div class="row">\n {% util.eachComponent(components, function(component) { %}\n {% if (displayValue(component)) { %}\n <div class="col-sm-2">\n {{ isVisibleInRow(component) ? getView(component, row[component.key]) : \'\'}}\n </div>\n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n <div class="col-sm-2">\n <div class="btn-group pull-right">\n <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass(\'edit\') }}"></i></button>\n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n <button class="btn btn-danger btn-sm removeRow"><i class="{{ iconClass(\'trash\') }}"></i></button>\n {% } %}\n </div>\n </div>\n {% } %}\n </div>'}},{key:"defaultTableRowTemplate",get:function(){return'\n {% util.eachComponent(components, function(component) { %}\n {% if (!component.hasOwnProperty(\'tableView\') || component.tableView) { %}\n <td class="editgrid-table-column">\n {{ getView(component, row[component.key]) }}\n </td>\n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n <td class="editgrid-table-column">\n <div class="btn-group">\n <button class="btn btn-default btn-light btn-sm editRow" aria-label="{{ t(\'Edit row\') }}"><i class="{{ iconClass(\'edit\') }}"></i></button>\n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n <button class="btn btn-danger btn-sm removeRow" aria-label="{{ t(\'Remove row\') }}"><i class="{{ iconClass(\'trash\') }}"></i></button>\n {% } %}\n </div>\n </td>\n {% } %}\n '}}],r&&v(p.prototype,r),l&&v(p,l),Object.defineProperty(p,"prototype",{writable:!1}),p}(a.default);n.default=S,S.prototype.hasChanged=l.default.prototype.hasChanged},3603:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"checkbox",input:!0,weight:105,key:"inlineEdit",label:"Inline Editing",tooltip:"Check this if you would like your changes within 'edit' mode to be committed directly to the submission object as that row is being changed"},{key:"defaultValue",ignore:!0},{key:"multiple",ignore:!0}]},63298:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=r(80993))&&o.__esModule?o:{default:o};n.default=[{key:"placeholder",ignore:!0},{type:"checkbox",label:"Open First Row when Empty",key:"openWhenEmpty",tooltip:"Check this if you would like to open up the first row when the EditGrid is empty",weight:1e3,input:!0,conditional:{json:{"!==":[{var:"data.modal"},!0]}}},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:1001,input:!0,clearOnHide:!1,calculateValue:"value = data.disableAddingRemovingRows;"},{type:"checkbox",label:"Display EditGrid as Table",key:"displayAsTable",tooltip:"use Table Template",weight:1002,input:!1,customConditional:function(){return!i.default.noeval}},{weight:1010,type:"textarea",input:!0,key:"conditionalAddButton",label:"Conditional Add Button",placeholder:"show = ...",tooltip:"Specify condition when Add Button should be displayed.",editor:"ace",as:"javascript",wysiwyg:{minLines:3}}]},86390:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=r(80993))&&o.__esModule?o:{default:o};n.default=[{type:"textarea",label:"Header Template",key:"templates.header",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render the header of the Edit grid.",customConditional:function(e){var n=e.data;return(!i.default.noeval||i.default.protectedEval)&&!n.displayAsTable}},{type:"textarea",label:"Table Header Template",key:"templates.tableHeader",rows:6,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render the header of the Edit grid.",customConditional:function(e){var n=e.data;return(!i.default.noeval||i.default.protectedEval)&&n.displayAsTable}},{type:"textarea",label:"Row Template",key:"templates.row",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Three available variables. "row" is an object of one row\'s data, "components" is the array of components in the grid and "state" is current row\'s state (can be "draft" or "saved"). To add click events, add the classes "editRow" and "removeRow" to elements.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render each row of the Edit grid.",customConditional:function(e){var n=e.data;return(!i.default.noeval||i.default.protectedEval)&&!n.displayAsTable}},{type:"textarea",label:"Table Row Template",key:"templates.tableRow",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Three available variables. "row" is an object of one row\'s data, "components" is the array of components in the grid and "state" is current row\'s state (can be "draft" or "saved"). To add click events, add the classes "editRow" and "removeRow" to elements.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render each row of the Edit grid.",customConditional:function(e){var n=e.data;return(!i.default.noeval||i.default.protectedEval)&&n.displayAsTable}},{type:"textarea",label:"Footer Template",key:"templates.footer",rows:5,editor:"ace",as:"handlebars",input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render the footer of the Edit grid.",customConditional:function(){return!i.default.noeval||i.default.protectedEval}},{type:"textfield",input:!0,key:"rowClass",label:"Row CSS Class",placeholder:"Row CSS Class",tooltip:"CSS class to add to the edit row wrapper."},{type:"textfield",input:!0,key:"addAnother",label:"Add Another Text",placeholder:"Add Another",tooltip:"Set the text of the Add Another button."},{weight:70,type:"checkbox",label:"Display as Modal",tooltip:"Display a modal to add or edit entries in the table",key:"modal",input:!0},{type:"textfield",input:!0,key:"saveRow",label:"Save Row Text",placeholder:"Save",tooltip:"Set the text of the Save Row button."},{type:"textfield",input:!0,key:"removeRow",label:"Remove Row Text",placeholder:"Remove",tooltip:"Set the text of the remove Row button."}]},52474:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{ignore:!0,key:"unique"},{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"number",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"number",tooltip:"The maximum length requirement this field must meet.",input:!0},{type:"checkbox",input:!0,weight:105,key:"rowDrafts",label:"Enable Row Drafts",tooltip:"Allow save rows even if their data is invali
1d. Errors will occur when try to submit with invalid rows."}]},10551:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="row">\n ',e.util.eachComponent(e.components,function(o){r+="\n ",(!o.hasOwnProperty("tableView")||o.tableView)&&(r+='\n <div class="col-sm-2">'+(null==(n=e.t(o.label))?"":n)+"</div>\n "),r+="\n "}),r+="\n</div>\n"}},79862:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(81850)),i=a(r(10551));function a(e){return e&&e.__esModule?e:{default:e}}var l={row:o.default,header:i.default};n.default=l},81850:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="row">\n ',e.util.eachComponent(e.components,function(o){r+="\n ",(!o.hasOwnProperty("tableView")||o.tableView)&&(r+='\n <div class="col-sm-2">\n '+(null==(n=e.getView(o,e.row[o.key]))?"":n)+"\n </div>\n "),r+="\n "}),r+="\n ",e.self.options.readOnly||(r+='\n <div class="col-sm-2">\n <div class="btn-group pull-right">\n <button class="btn btn-default btn-light btn-sm editRow"><i class="'+(null==(n=e.iconClass("edit"))?"":n)+'"></i></button>\n <button class="btn btn-danger btn-sm removeRow"><i class="'+(null==(n=e.iconClass("trash"))?"":n)+'"></i></button>\n </div>\n </div>\n '),r+="\n</div>\n"}},31787:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default},{key:"validation",components:a.default}]].concat(n))},r(43001);var o=l(r(80736)),i=l(r(51058)),a=l(r(65536));function l(e){return e&&e.__esModule?e:{default:e}}},97411:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18036),r(76381),r(43001),r(27846),r(9473),r(22818);var i,a=(i=r(93290))&&i.__esModule?i:{default:i};function l(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function u(){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=c(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(d,e);var n,r,i,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(d);return e=n?Reflect.construct(r,arguments,c(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d),f.apply(this,arguments)}return r=[{key:"init",value:function(){u(c(d.prototype),"init",this).call(this),this.validators.push("email")}},{key:"defaultSchema",get:function(){return d.schema()}},{key:"inputInfo",get:function(){var e=u(c(d.prototype),"inputInfo",this);return e.attr.type=this.component.mask?"password":"email",e}},{key:"normalizeValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=u(c(d.prototype),"normalizeValue",this).call(this,e,n),this.options.server&&e&&(e=Array.isArray(e)?e.map(function(e){return e.toLowerCase()}):e.toLowerCase()),e}}],i=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"email",label:"Email",key:"email",inputType:"email",kickbox:{enabled:!1}}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Email",group:"advanced",icon:"at",documentation:"/userguide/form-building/advanced-components#email",weight:10,schema:d.schema()}}}],r&&l(d.prototype,r),i&&l(d,i),Object.defineProperty(d,"prototype",{writable:!1}),d}(a.default);n.default=f},51058:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},65536:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{type:"panel",label:"Kickbox",title:"Kickbox",weight:102,key:"kickbox",components:[{type:"checkbox",label:"Enable",tooltip:"Enable Kickbox validation for this email field.",description:"Validate this email using the Kickbox email validation service.",key:"kickbox.enabled"}]}]},70370:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default}]].concat(n))},r(43001);var o=a(r(28600)),i=a(r(86175));
1function a(e){return e&&e.__esModule?e:{default:e}}},97738:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(19169),r(77762),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(27846),r(9473),r(22818);var i,a=(i=r(21645))&&i.__esModule?i:{default:i};function l(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function u(e,n){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function s(){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=c(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&u(e,n)}(d,e);var n,r,i,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(d);return e=n?Reflect.construct(r,arguments,c(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=f.call.apply(f,[this].concat(r))).noField=!0,e}return r=[{key:"defaultSchema",get:function(){return d.schema()}},{key:"className",get:function(){return"".concat(this.transform("class","form-group")," ").concat(s(c(d.prototype),"className",this))}},{key:"templateName",get:function(){return"fieldset"}}],i=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{label:"Field Set",key:"fieldSet",type:"fieldset",legend:"",components:[],input:!1,persistent:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Field Set",icon:"th-large",group:"layout",documentation:"/userguide/form-building/layout-components#field-set",showPreview:!1,weight:20,schema:d.schema()}}}],r&&l(d.prototype,r),i&&l(d,i),Object.defineProperty(d,"prototype",{writable:!1}),d}(a.default);n.default=f},86175:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0},{key:"label",hidden:!0,calculateValue:function(e){return e.data.legend}},{weight:1,type:"textfield",input:!0,key:"legend",label:"Legend",placeholder:"Legend",tooltip:"The legend for this Fieldset."}]},91261:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];
vendor: 8,785 bytes, line 1
1return o.default.baseEditForm.apply(o.default,[[{key:"display",components:a.default},{key:"data",components:i.default},{label:"File",key:"file",weight:5,components:l.default},{key:"validation",components:u.default}]].concat(n))},r(43001);var o=s(r(6296)),i=s(r(10331)),a=s(r(81832)),l=s(r(64075)),u=s(r(55655));function s(e){return e&&e.__esModule?e:{default:e}}},44728:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(27846),r(9473),r(22818),r(15264),r(14785),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(24646),r(35968),r(30534),r(98197),r(11102),r(15469),r(1542),r(65546),r(93963),r(60639),r(37714),r(99304),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(26944),r(75162),r(17943),r(16362),r(17223),r(70020),r(84113),r(58455),r(28091),r(9263),r(5149),r(43103),r(47063),r(26081),r(2009),r(36741),r(68252),r(13275),r(94580),r(43721),r(70302),r(25040),r(49705),r(95864),r(38784),r(45612),r(2024),r(9872),r(72028),r(97172),r(76381),r(18036),r(88455),r(32334),r(28818),r(34078),r(10025),r(59012),r(50703),r(28121),r(83972),r(92782),r(62089),r(43001),r(89610),r(5746),r(6588),r(36686),r(41126),r(12551),r(41666),r(87425),r(52315),r(30902),r(49670),r(3192),r(92100),r(98595),r(69446);var i,a,l=h(r(70362)),u=r(9494),s=h(r(81641)),c=h(r(76635)),f=h(r(18947)),d=h(r(63814)),p=h(r(10151));function h(e){return e&&e.__esModule?e:{default:e}}function m(){m=function(){return e};var e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,n,r){e[n]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,n,r){return Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{c({},"")}catch(e){c=function(e,n,r){return e[n]=r}}function f(e,n,r,o){var a,l,u=Object.create((n&&n.prototype instanceof h?n:h).prototype);return i(u,"_invoke",{value:(a=new S(o||[]),l="suspendedStart",function(n,o){if("executing"===l)throw Error("Generator is already running");if("completed"===l){if("throw"===n)throw o;return x()}for(a.method=n,a.arg=o;;){var i=a.delegate;if(i){var u=function e(n,r){var o=r.method,i=n.iterator[o];if(void 0===i)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=void 0,e(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),p;var a=d(i,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,p;var l=a.arg;return l?l.done?(r[n.resultName]=l.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):l:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,p)}(i,a);if(u){if(u===p)continue;return u}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===l)throw l="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);l="executing";var s=d(e,r,a);if("normal"===s.type){if(l=a.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(l="completed",a.method="throw",a.arg=s.arg)}})}),u}function d(e,n,r){try{return{type:"normal",arg:e.call(n,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function y(){}function v(){}var b={};c(b,l,function(){return this});var g=Object.getPrototypeOf,w=g&&g(g(E([])));w&&w!==n&&r.call(w,l)&&(b=w);var k=v.prototype=h.prototype=Object.create(b);function O(e){["next","throw","return"].forEach(function(n){c(e,n,function(e){return this._invoke(n,e)})})}function _(e,n){var a;i(this,"_invoke",{value:function(i,l){function u(){return new n(function(a,u){!function i(a,l,u,s){var c=d(e[a],e,l);if("throw"!==c.type){var f=c.arg,p=f.value;return p&&"object"==o(p)&&r.call(p,"__await")?n.resolve(p.__await).then(function(e){i("next",e,u,s)},function(e){i("throw",e,u,s)}):n.resolve(p).then(function(e){f.value=e,u(f)},function(e){return i("throw",e,u,s)})}s(c.arg)}(i,l,a,u)})}return a=a?a.then(u,u):u()}})}function j(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function P(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function E(e){if(e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=void 0,n.done=!0,n};return i.next=i}}return{next:x}}function x(){return{value:void 0,done:!0}}return y.prototype=v,i(k,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===y||"GeneratorFunction"===(n.displayName||n.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},O(_.prototype),c(_.prototype,u,function(){return this}),e.AsyncIterator=_,e.async=function(n,r,o,i,a){void 0===a&&(a=Promise);var l=new _(f(n,r,o,i),a);return e.isGeneratorFunction(r)?l:l.next().then(function(e){return e.done?e.value:l.next()})},O(k),c(k,s,"Generator"),c(k,l,function(){return this}),c(k,"toString",function(){return"[object Generator]"}),e.keys=function(e){var n=Object(e),r=[];for(var o in n)r.push(o);return r.reverse(),function e(){for(;r.length;){var o=r.pop();if(o in n)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=E,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=void 0),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,n){for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=n&&n<=a.finallyLoc&&(a=null);var l=a?a.completion:{};return l.type=e,l.arg=n,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(l)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),p},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),p}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var i=o.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function y(e,n,r,o,i,a,l){try{var u=e[a](l),s=u.value}catch(e){r(e);return}u.done?n(s):Promise.resolve(s).then(o,i)}function v(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function b(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?v(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=w(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEac
1h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,w(o.key),o)}}function w(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function k(){return(k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=_(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function O(e,n){return(O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=navigator.camera||i;"undefined"!=typeof window?a=window.HTMLCanvasElement:void 0!==r.g&&(a=r.g.HTMLCanvasElement),a&&!a.prototype.toBlob&&Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,n,r){var o=this;setTimeout(function(){for(var i=atob(o.toDataURL(n,r).split(",")[1]),a=i.length,l=new Uint8Array(a),u=0;u<a;u++)l[u]=i.charCodeAt(u);e(new Blob([l],{type:n||"image/png"}))})}});var P=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&O(e,n)}(v,e);var n,r,a,h=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=_(v);return e=n?Reflect.construct(r,arguments,_(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function v(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,v),h.apply(this,arguments)}return r=[{key:"init",value:function(){k(_(v.prototype),"init",this).call(this),j=navigator.camera||i;var e="undefined"!=typeof FileReader,n="undefined"!=typeof window&&!!window.FormData,r="undefined"!=typeof window&&!!window.XMLHttpRequest&&"upload"in new XMLHttpRequest;this.support={filereader:e,formdata:n,hasWarning:!e||!n||!r,progress:r},this.cameraMode=!1,this.statuses=[],this.fileDropHidden=!1}},{key:"dataReady",get:function(){return this.filesReady||f.default.resolve()}},{key:"defaultSchema",get:function(){return v.schema()}},{key:"loadImage",value:function(e){return this.component.privateDownload&&(e.private=!0),this.fileService.downloadFile(e).then(function(e){return e.url})}},{key:"emptyValue",get:function(){return[]}},{key:"getValueAsString",value:function(e){return c.default.isArray(e)?c.default.map(e,"originalName").join(", "):c.default.get(e,"originalName","")}},{key:"getValue",value:function(){return this.dataValue}},{key:"defaultValue",get:function(){var e=k(_(v.prototype),"defaultValue",this);return Array.isArray(e)?e:[]}},{key:"hasTypes",get:function(){return this.component.fileTypes&&Array.isArray(this.component.fileTypes)&&0!==this.component.fileTypes.length&&(""!==this.component.fileTypes[0].label||""!==this.component.fileTypes[0].value)}},{key:"fileDropHidden",get:function(){return this._fileBrowseHidden},set:function(e){"boolean"!=typeof e||this.component.multiple||(this._fileBrowseHidden=e)}},{key:"render",value:function(){return k(_(v.prototype),"render",this).call(this,this.renderTemplate("file",{fileSize:this.fileSize,files:this.dataValue||[],statuses:this.statuses,disabled:this.disabled,support:this.support,fileDropHidden:this.fileDropHidden}))}},{key:"getVideoStream",value:function(e){return navigator.mediaDevices.getUserMedia({video:b({width:{min:640,ideal:1920},height:{min:360,ideal:1080},aspectRatio:{ideal:16/9}},e),audio:!1})}},{key:"stopVideoStream",value:function(e){e.getVideoTracks().forEac
1h(function(e){return e.stop()})}},{key:"getFrame",value:function(e){return new f.default(function(n){var r=document.createElement("canvas");r.height=e.videoHeight,r.width=e.videoWidth,r.getContext("2d").drawImage(e,0,0),r.toBlob(n)})}},{key:"startVideo",value:function(){var e=this;this.getVideoStream().then(function(n){e.videoStream=n;var r=e.refs.videoPlayer;if(!r){console.warn("Video player not found in template."),e.cameraMode=!1,e.redraw();return}r.srcObject=n;var o=parseInt(e.component.webcamSize)||320;r.setAttribute("width",o),r.play()}).catch(function(n){console.error(n),e.cameraMode=!1,e.redraw()})}},{key:"stopVideo",value:function(){this.videoStream&&(this.stopVideoStream(this.videoStream),this.videoStream=null)}},{key:"takePicture",value:function(){var e=this,n=this.refs.videoPlayer;if(!n){console.warn("Video player not found in template."),this.cameraMode=!1,this.redraw();return}this.getFrame(n).then(function(n){n.name="photo-".concat(Date.now(),".png"),e.upload([n]),e.cameraMode=!1,e.redraw()})}},{key:"browseFiles",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new f.default(function(r){var o=e.ce("input",b({type:"file",style:"height: 0; width: 0; visibility: hidden;",tabindex:"-1"},n));document.body.appendChild(o),o.addEventListener("change",function(){r(o.files),document.body.removeChild(o)},!0),"function"==typeof o.trigger?o.trigger("click"):o.click()})}},{key:"cameraMode",get:function(){return this._cameraMode},set:function(e){this._cameraMode=e,e?this.startVideo():this.stopVideo()}},{key:"useWebViewCamera",get:function(){return this.imageUpload&&j}},{key:"imageUpload",get:function(){return!!this.component.image}},{key:"browseOptions",get:function(){var e={};if(this.component.multiple&&(e.multiple=!0),!this.isMobile.any){var n=this.component.filePattern.trim()||"",r="image/*";this.imageUpload&&(!n||"*"===n)?e.accept=r:this.imageUpload&&!n.includes(r)?e.accept="".concat(r,",").concat(n):e.accept=n}return e}},{key:"deleteFile",value:function(e){var n=this.component.options;if(e&&["url","indexeddb"].includes(this.component.storage)){var r=this.fileService;if(r&&"function"==typeof r.deleteFile)r.deleteFile(e,void 0===n?{}:n);else{var o=this.options.formio||this.root&&this.root.formio;o&&o.makeRequest("",e.url,"delete")}}}},{key:"attach",value:function(e){var n=this;this.loadRefs(e,{fileDrop:"single",fileBrowse:"single",galleryButton:"single",cameraButton:"single",takePictureButton:"single",toggleCameraMode:"single",videoPlayer:"single",fileLink:"multiple",removeLink:"multiple",fileStatusRemove:"multiple",fileImage:"multiple",fileType:"multiple",fileProcessingLoader:"single"}),this.refs.input=[];var r=k(_(v.prototype),"attach",this).call(this,e);if(this.refs.fileDrop){this.statuses.length||this.refs.fileDrop.removeAttribute("hidden");var o=this;this.addEventListener(this.refs.fileDrop,"dragover",function(e){this.className="fileSelector fileDragOver",e.preventDefault()}),this.addEventListener(this.refs.fileDrop,"dragleave",function(e){this.className="fileSelector",e.preventDefault()}),this.addEventListener(this.refs.fileDrop,"drop",function(e){this.className="fileSelector",e.preventDefault(),o.upload(e.dataTransfer.files)})}if(this.refs.fileBrowse&&this.addEventListener(this.refs.fileBrowse,"click",function(e){e.preventDefault(),n.browseFiles(n.browseOptions).then(function(e){n.upload(e)})}),this.refs.fileLink.forEach(function(e,r){n.addEventListener(e,"click",function(e){e.preventDefault(),n.getFile(n.dataValue[r])})}),this.refs.removeLink.forEach(function(e,r){n.addEventListener(e,"click",function(e){var o=n.dataValue[r];n.deleteFile(o),e.preventDefault(),n.splice(r),n.redraw()})}),this.refs.fileStatusRemove.forEach(function(e,r){n.addEventListener(e,"click",function(e){e.preventDefault(),n.abortUpload&&n.abortUpload(),n.statuses.splice(r,1),n.redraw()})}),this.refs.galleryButton&&j&&this.addEventListener(this.refs.galleryButton,"click",function(e){e.preventDefault(),j.getPicture(function(e){window.resolveLocalFileSystemURL(e,function(e){e.file(function(e){var r=new FileReader;r.onloadend=function(r){var o=new Blob([new Uint8Array(r.target.result)],{type:e.type});o.name=e.name,n.upload([o])},r.readAsArrayBuffer(e)})})},function(e){console.error(e)},{sourceType:j.PictureSourceType.PHOTOLIBRARY})}),this.refs.cameraButton&&j&&this.addEventListener(this.refs.cameraButton,"click",function(e){e.preventDefault(),j.getPicture
1(function(e){window.resolveLocalFileSystemURL(e,function(e){e.file(function(e){var r=new FileReader;r.onloadend=function(r){var o=new Blob([new Uint8Array(r.target.result)],{type:e.type});o.name=e.name,n.upload([o])},r.readAsArrayBuffer(e)})})},function(e){console.error(e)},{sourceType:j.PictureSourceType.CAMERA,encodingType:j.EncodingType.PNG,mediaType:j.MediaType.PICTURE,saveToPhotoAlbum:!0,correctOrientation:!1})}),this.refs.takePictureButton&&this.addEventListener(this.refs.takePictureButton,"click",function(e){e.preventDefault(),n.takePicture()}),this.refs.toggleCameraMode&&this.addEventListener(this.refs.toggleCameraMode,"click",function(e){e.preventDefault(),n.cameraMode=!n.cameraMode,n.redraw()}),this.refs.fileType.forEach(function(e,r){n.dataValue[r].fileType=n.dataValue[r].fileType||n.component.fileTypes[0].label,n.addEventListener(e,"change",function(e){e.preventDefault();var o=n.component.fileTypes.find(function(n){return n.value===e.target.value});n.dataValue[r].fileType=o.label})}),this.fileService){var i=[];this.filesReady=new f.default(function(e,r){n.filesReadyResolve=e,n.filesReadyReject=r}),this.refs.fileImage.forEach(function(e,r){i.push(n.loadImage(n.dataValue[r]).then(function(n){return e.src=n}))}),i.length?f.default.all(i).then(function(){n.filesReadyResolve()}).catch(function(){return n.filesReadyReject()}):this.filesReadyResolve()}return r}},{key:"fileSize",value:function(e,n,r,o,i){return"".concat((r=(n=Math).log,o=1024,i=r(e)/r(o)|0,e/n.pow(o,i)).toFixed(2)," ").concat(i?"".concat("kMGTPEZY"[--i],"B"):"Bytes")}},{key:"globStringToRegex",value:function(e){e=e.replace(/\s/g,"");var n="",r=[];if(e.length>2&&"/"===e[0]&&"/"===e[e.length-1])n=e.substring(1,e.length-1);else{var o=e.split(",");if(o.length>1)for(var i=0;i<o.length;i++){var a=this.globStringToRegex(o[i]);a.regexp?(n+="(".concat(a.regexp,")"),i<o.length-1&&(n+="|")):r=r.concat(a.excludes)}else e.startsWith("!")?r.push("^((?!".concat(this.globStringToRegex(e.substring(1)).regexp,").)*$")):(e.startsWith(".")&&(e="*".concat(e)),n=(n="^".concat(e.replace(RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&"),"$")).replace(/\\\*/g,".*").replace(/\\\?/g,"."))}return{regexp:n,excludes:r}}},{key:"translateScalars",value:function(e){if("string"==typeof e){if(e.search(/kb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2));if(e.search(/mb/i)===e.length-2)return parseFloat(1048576*e.substring(0,e.length-2));if(e.search(/gb/i)===e.length-2)return parseFloat(1073741824*e.substring(0,e.length-2));if(e.search(/b/i)===e.length-1||e.search(/s/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/m/i)===e.length-1)return parseFloat(60*e.substring(0,e.length-1));if(e.search(/h/i)===e.length-1)return parseFloat(3600*e.substring(0,e.length-1))}return e}},{key:"validatePattern",value:function(e,n){if(!n)return!0;var r=this.globStringToRegex(n),o=!0;if(r.regexp&&r.regexp.length){var i=RegExp(r.regexp,"i");o=!c.default.isNil(e.type)&&i.test(e.type)||!c.default.isNil(e.name)&&i.test(e.name)}return r.excludes.reduce(function(n,r){var o=RegExp(r,"i");return n&&(c.default.isNil(e.type)||!o.test(e.type))&&(c.default.isNil(e.name)||!o.test(e.name))},o)}},{key:"validateMinSize",value:function(e,n){return e.size+.1>=this.translateScalars(n)}},{key:"validateMaxSize",value:function(e,n){return e.size-.1<=this.translateScalars(n)}},{key:"upload",value:function(e){var n,r,o=this;this.component.multiple||(this.statuses.length&&(this.statuses=[]),e=Array.prototype.slice.call(e,0,1)),this.component.storage&&e&&e.length&&(this.fileDropHidden=!0,Array.prototype.forEach.call(e,(n=m().mark(function e(n){var r,i,a,l,s,f,h,y,v,b,g,w,k,O,_,j,P,S,E,x,C,R;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(0,u.uniqueName)(n.name,o.component.fileNameTemplate,o.evalContext()),a={originalName:i=n.name?n.name.replaceAll("<","<").replaceAll(">",">"):n.name,name:r,size:n.size,status:"info",message:o.t("Processing file. Please wait..."),hash:""},"true"!==o.root.form.submissionRevisions){e.next=12;break}return o.statuses.push(a),o.redraw(),l=new p.default,e.next=9,new Promise(function(e,r){o.emit("fileUploadingStart"),l.md5(n,function(n,o){return n?r(n):e(o)})});
1case 9:s=e.sent,o.emit("fileUploadingEnd"),a.hash=s;case 12:if(o.filesUploading||(o.filesUploading=[]),f=o.filesUploading.some(function(e){return e===n.name}),o.filesUploading.push(n.name),h=o.dataValue.some(function(e){return e.originalName===n.name}),y=o.statuses.findIndex(function(e){return e.originalName===n.name&&"error"===e.status}),(h||f)&&(a.status="error",a.message=o.t("File with the same name is already ".concat(f?"being ":"","uploaded"))),-1!==y&&(o.statuses.splice(y,1),o.redraw()),o.component.filePattern&&!o.validatePattern(n,o.component.filePattern)&&(a.status="error",a.message=o.t("File is the wrong type; it must be {{ pattern }}",{pattern:o.component.filePattern})),o.component.fileMinSize&&!o.validateMinSize(n,o.component.fileMinSize)&&(a.status="error",a.message=o.t("File is too small; it must be at least {{ size }}",{size:o.component.fileMinSize})),o.component.fileMaxSize&&!o.validateMaxSize(n,o.component.fileMaxSize)&&(a.status="error",a.message=o.t("File is too big; it must be at most {{ size }}",{size:o.component.fileMaxSize})),v=o.interpolate(o.component.dir||""),(b=o.fileService)||(a.status="error",a.message=o.t("File Service not provided.")),"true"!==o.root.form.submissionRevisions&&(o.statuses.push(a),o.redraw()),!("error"!==a.status)){e.next=60;break}if(o.component.privateDownload&&(n.private=!0),w=(g=o.component).storage,O=void 0===(k=g.options)?{}:k,_=o.interpolate(o.component.url,{file:a}),j=null,P=null,o.root.everyComponent(function(e){var n,r;(null!==(n=e.component)&&void 0!==n&&n.submissionAccess||null!==(r=e.component)&&void 0!==r&&r.defaultPermission)&&(P=e.component.submissionAccess?e.component.submissionAccess:[{type:e.component.defaultPermission,roles:[]}]).forEach(function(n){j=["admin","write","create"].includes(n.type)?e.component.key:null})}),S=o.component.fileKey||"file",E=j?o.currentForm.submission.data[j]._id:null,x=null,!o.root.options.fileProcessor){e.next=55;break}return e.prev=37,o.refs.fileProcessingLoader&&(o.refs.fileProcessingLoader.style.display="block"),C=(0,d.default)(o.fileService,o.root.options.fileProcessor),e.next=42,C(n,o.component.properties);case 42:x=e.sent,e.next=52;break;case 45:return e.prev=45,e.t0=e.catch(37),a.status="error",a.message=o.t("File processing has been failed."),o.fileDropHidden=!1,o.redraw(),e.abrupt("return");case 52:return e.prev=52,o.refs.fileProcessingLoader&&(o.refs.fileProcessingLoader.style.display="none"),e.finish(52);case 55:a.message=o.t("Starting upload."),o.redraw(),R=b.uploadFile(w,x||n,r,v,function(e){a.status="progress",a.progress=parseInt(100*e.loaded/e.total),delete a.message,o.redraw()},_,O,S,P,E,function(){o.emit("fileUploadingStart",R)},function(e){return o.abortUpload=e}).then(function(e){var n=o.statuses.indexOf(a);-1!==n&&o.statuses.splice(n,1),e.originalName=i,e.hash=a.hash,o.hasValue()||(o.dataValue=[]),o.dataValue.push(e),c.default.pull(o.filesUploading,e.originalName),o.fileDropHidden=!1,o.redraw(),o.triggerChange(),o.emit("fileUploadingEnd",R)}).catch(function(e){a.status="error",a.message="string"==typeof e?e:e.toString(),delete a.progress,o.fileDropHidden=!1,c.default.pull(o.filesUploading,n.name),o.redraw(),o.emit("fileUploadingEnd",R)}),e.next=61;break;case 60:o.filesUploading.splice(o.filesUploading.indexOf(n.name),1);case 61:case"end":return e.stop()}},e,null,[[37,45,52,55]])}),r=function(){var e=this,r=arguments;return new Promise(function(o,i){var a=n.apply(e,r);function l(e){y(a,o,i,l,u,"next",e)}function u(e){y(a,o,i,l,u,"throw",e)}l(void 0)})},function(e){return r.apply(this,arguments)})))}},{key:"getFile",value:function(e){var n=this.component.options,r=this.fileService;if(!r)return alert("File Service not provided");this.component.privateDownload&&(e.private=!0),r.downloadFile(e,void 0===n?{}:n).then(function(e){e&&(["base64","indexeddb"].includes(e.storage)?(0,s.default)(e.url,e.originalName||e.name,e.type):window.open(e.url,"_blank"))}).catch(function(e){alert(e)})}},{key:"focus",value:function(){"beforeFocus"in this.parent&&this.parent.beforeFocus(this),this.refs.fileBrowse&&this.refs.fileBrowse.focus()}},{key:"destroy",value:function(){this.stopVideo(),k(_(v.prototype),"destroy",this).call(this)}}],a=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return l.default.schema.apply(l.default,[{type:"file",label:"Upload",key:"file",image:!1,privateDownload:!1,imageSize:"200",filePattern:"*",fileMinSize:"0KB",fileMaxSize:"1GB",uploadOnly:!1}
vendor: 6,776 bytes, line 1
1].concat(n))}},{key:"builderInfo",get:function(){return{title:"File",group:"premium",icon:"file",documentation:"/userguide/form-building/premium-components#file",weight:100,schema:v.schema()}}},{key:"serverConditionSettings",get:function(){return b(b({},k(_(v),"serverConditionSettings",this)),{},{operators:["isEmpty","isNotEmpty"]})}}],r&&g(v.prototype,r),a&&g(v,a),Object.defineProperty(v,"prototype",{writable:!1}),v}(l.default);n.default=P},10331:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"defaultValue",ignore:!0}]},81832:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"placeholder",ignore:!0}]},64075:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(76381);var o,i=r(38388),a=(o=r(76635))&&o.__esModule?o:{default:o};n.default=[{type:"select",input:!0,key:"storage",label:"Storage",placeholder:"Select your file storage provider",weight:0,tooltip:"Which storage to save the files in.",valueProperty:"value",dataSrc:"custom",data:{custom:function(){return a.default.map(i.GlobalFormio.Providers.getProviders("storage"),function(e,n){return{label:e.title,value:n}})}}},{type:"textfield",input:!0,key:"url",label:"Url",weight:10,placeholder:"Enter the url to post the files to.",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#server-side' target='_blank'>https://github.com/danialfarid/ng-file-upload#server-side</a> for how to set up the server.",conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"options.indexeddb",label:"Database",weight:10,placeholder:"Enter the indexeddb database name",conditional:{json:{in:[{var:"data.storage"},["indexeddb"]]}}},{type:"textfield",input:!0,label:"Table",key:"options.indexeddbTable",weight:10,placeholder:"Enter the name for indexeddb table",conditional:{json:{in:[{var:"data.storage"},["indexeddb"]]}}},{type:"textarea",key:"options",label:"Custom request options",tooltip:"Pass your custom xhr options(optional)",rows:5,editor:"ace",input:!0,weight:15,placeholder:'{\n "withCredentials": true,\n "headers": {\n "Authorization": "Basic <key>"\n }\n }',conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"fileKey",label:"File form-data key",weight:17,placeholder:"Enter the key name of a file for form data.",tooltip:"Key name that you would like to modify for the file while calling API request.",conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"dir",label:"Directory",placeholder:"(optional) Enter a directory for the files",tooltip:"This will place all the files uploaded in this field in the directory",weight:20,conditional:{json:{"!==":[{var:"data.storage"},"googledrive"]}}},{type:"textfield",input:!0,key:"dir",label:"Folder ID",placeholder:"(optional) Enter an ID of the folder for the files",tooltip:"This will place all the files uploaded in this field in the folder",weight:20,conditional:{json:{"===":[{var:"data.storage"},"googledrive"]}}},{type:"textfield",input:!0,key:"fileNameTemplate",label:"File Name Template",placeholder:'(optional) { {name} }-{ {guid} }"',tooltip:"Specify template for name of uploaded file(s). Regular template variables are available (`data`, `component`, `user`, `value`, `moment` etc.), also `fileName`, `guid` variables are available. `guid` part must be present, if not found in template, will be added at the end.",weight:25},{type:"checkbox",input:!0,key:"image",label:"Display as image(s)",tooltip:"Instead of a list of linked files, images will be rendered in the view.",weight:30},{type:"checkbox",input:!0,key:"uploadOnly",label:"Upload Only",tooltip:"When this is checked, will only allow you to upload file(s) and consequently the download, in this component, will be unavailable.",weight:33},{type:"checkbox",input:!0,key:"privateDownload",label:"Private Download",tooltip:"When this is checked, the file download will send a POST request to the download URL with the x-jwt-token header. This will allow your endpoint to create a Private download system.",weight:31,conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"imageSize",label:"Image Size",placeholder:"100",tooltip:"The image size for previewing images.",weight:40,conditional:{json:{"==":[{var:"data.image"},!0]}}},{type:"checkbox",input:!0,key:"webcam",label:"Enable web camera",tooltip:"This will allow using an attached camera to directly take a picture instead of uploading an existing file.",weight:32},{type:"textfield",input:!0,key:"webcamSize",label:"Webcam Width",placeholder:"320",tooltip:"The webcam size for taking pictures.",weight:38,conditional:{json:{"==":[{var:"data.webcam"},!0]}}},{type:"datagrid",input:!0,label:"File Types",key:"fileTypes",tooltip:"Specify file types to classify the uploads. This is useful if you allow multiple types of uploads but want to allow the user to specify which type of file each is.",weight:11,components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}]},{type:"textfield",input:!0,key:"filePattern",label:"File Pattern",placeholder:".jpg,video/*,application/pdf",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#full-reference' target='_blank'>https://github.com/danialfarid/ng-file-upload#full-reference</a> for how to specify file patterns.",weight:50},{type:"textfield",input:!0,key:"fileMinSize",label:"File Minimum Size",placeholder:"1MB",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#full-reference' target='_blank'>https://github.com/danialfarid/ng-file-upload#full-reference</a> for how to specify file sizes.",weight:60},{type:"textfield",input:!0,key:"fileMaxSize",label:"File Maximum Size",placeholder:"10MB",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#full-reference' target='_blank'>https://github.com/danialfarid/ng-file-upload#full-reference</a> for how to specify file sizes.",weight:70}]},55655:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"unique",ignore:!0},{key:"validateOn",ignore:!0}]},88436:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default},{label:"Form",key:"form",weight:10,components:a.default},{label:"Data",key:"data",weight:10,components:l.default}]].concat(n))},r(43001);var o=u(r(28600)),i=u(r(31813)),a=u(r(18123)),l=u(r(58650));
1function u(e){return e&&e.__esModule?e:{default:e}}},58950:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(5746),r(6588),r(21500),r(92884),r(24646),r(88455),r(17223),r(32334),r(18036),r(98595),r(27846),r(9473),r(22818);var i=p(r(76635)),a=p(r(11275)),l=p(r(68452)),u=p(r(10161)),s=p(r(18947)),c=r(9494),f=r(38388),d=p(r(15587));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function m(){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=v(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function y(e,n){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&y(e,n)}(g,e);var n,r,p,b=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=v(g);return e=n?Reflect.construct(r,arguments,v(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function g(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,g),b.apply(this,arguments)}return r=[{key:"init",value:function(){if(m(v(g.prototype),"init",this).call(this),this.formObj={display:this.component.display,settings:this.component.settings,components:this.component.components},this.valueChanged=!1,this.subForm=null,this.formSrc="",this.component.src&&(this.formSrc=this.component.src),!this.component.src&&!this.options.formio&&(this.component.form||this.component.path)&&(this.component.project?(this.formSrc=f.GlobalFormio.getBaseUrl(),(0,c.isMongoId)(this.component.project)&&(this.formSrc+="/project"),this.formSrc+="/".concat(this.component.project)):this.formSrc=f.GlobalFormio.getProjectUrl(),this.options.project=this.formSrc,this.component.form?(0,c.isMongoId)(this.component.form)?this.formSrc+="/form/".concat(this.component.form):this.formSrc+="/".concat(this.component.form):this.component.path&&(this.formSrc+="/".concat(this.component.path))),!this.formSrc&&this.options.formio){var e=this.options.formio.formsUrl;if(this.component.form&&(0,c.isMongoId)(this.component.form))this.formSrc="".concat(e,"/").concat(this.component.form);else{var n=this.component.path||this.component.form;this.formSrc="".concat(e.replace(/\/form$/,""),"/").concat(n)}}return this.builderMode&&this.component.hasOwnProperty("formRevision")&&(this.component.revision=this.component.formRevision,delete this.component.formRevision),(this.component.revision||0===this.component.revision||this.component.formRevision||0===this.component.formRevision||this.component.revisionId)&&this.setFormRevision(this.component.revisionId||this.component.revision||this.component.formRevision),this.createSubForm()}},{key:"dataReady",get:function(){return this.subFormReady||s.default.resolve()}},{key:"defaultValue",get:function(){return this.subForm?m(v(g.prototype),"defaultValue",this):null}},{key:"defaultSchema",get:function(){return g.schema()}},{key:"emptyValue",get:function(){return{data:{}}}},{key:"ready",get:function(){return this.subFormReady||s.default.resolve()}},{key:"useOriginalRevision",get:function(){var e,n;return(null===(e=this.component)||void 0===e?void 0:e.useOriginalRevision)&&!!(null!==(n=this.formObj)&&void 0!==n&&n.revisions)}},{key:"setFormRevision",value:function(e){this.formSrc=this.formSrc.replace(/\/v\/[0-9a-z]+/,""),isNaN(Number.parseInt(e))?this.subFormRevision=void 0:(this.subFormRevision=e,this.formSrc+="/v/".concat(e))}},{key:"getComponent",value:function(e,n){"data"===(e=(0,c.getArrayFromComponentPath)(e))[0]&&e.shift();var r="".concat(this.path,".data.").concat((0,c.getStringFromComponentPath)(e));if(this.subForm)return this.subForm.getComponent(e,n,r)}},{key:"getSubOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.parentPath="".concat(this.path,".data."),e.events=this.createEmitter(),i.default.set(e,"buttonSettings.showSubmit",!1),this.options&&(this.options.base&&(e.base=this.options.base),this.options.project&&(e.project=this.options.project),(this.options.readOnly||this.component.disabled)&&(e.readOnly=this.options.readOnly||this.component.disabled),this.options.breadcrumbSettings&&(e.breadcrumbSettings=this.options.breadcrumbSettings),this.options.buttonSettings&&(e.buttonSettings=i.default.clone(this.options.buttonSettings)),this.options.viewAsHtml&&(e.viewAsHtml=this.options.viewAsHtml),this.options.language&&(e.language=this.options.language),this.options.template&&(e.template=this.options.template),this.options.templates&&(e.templates=this.options.templates),this.options.renderMode&&(e.renderMode=this.options.renderMode),this.options.attachMode&&(e.attachMode=this.options.attachMode),this.options.iconset&&(e.iconset=this.options.iconset),this.options.fileService&&(e.fileService=this.options.fileService),this.options.onChange&&(e.onChange=this.options.onChange),this.options.preview&&(e.preview=this.options.preview)),e}},{key:"render",value:function(){if(this.builderMode)return m(v(g.prototype),"render",this).call(this,this.component.label||"Nested form");var e=this.subForm?this.subForm.render():this.renderTemplate("loading");return m(v(g.prototype),"render",this).call(this,e)}},{key:"asString",value:function(e){return this.getValueAsString(e)}},{key:"getValueAsString",value:function(e){return e?!e.data&&e._id?e._id:e.data&&Object.keys(e.data).length?"[Complex Data]":"No data provided":"No data provided"}},{key:"attach",value:function(e){var n=this;return this.builderMode?m(v(g.prototype),"attach",this).call(this,e):m(v(g.prototype),"attach",this).call(this,e).then(function(){return!n.isSubFormLazyLoad()||n.hasLoadedForm||n.subFormLoading||n.createSubForm(!0),n.subFormReady.then(function(){if(n.empty(e),n.options.builder){n.setContent(e,n.ce("div",{class:"text-muted text-center p-2"},n.text(n.formObj.title)));return}if(n.setContent(e,n.render()),n.subForm&&(n.isNestedWizard&&(e=n.root.element),n.subForm.attach(e),n.valueChanged=n.hasSetValue,n.valueChanged||"submitted"===n.dataValue.state?n.restoreValue():n.setDefaultValue()),!n.builderMode&&n.component.modalEdit){var r=!!n.componentModal&&n.componentModal.isOpened,o=r?n.componentModal.currentValue:n.dataValue;n.componentModal=new l.default(n,e,r,o),n.setOpenModalElement()}n.calculateValue()})})}},{key:"detach",value:function(){this.subForm&&this.subForm.detach(),m(v(g.prototype),"detach",this).call(this)}},{key:"currentForm",get:function(){return this._currentForm},set:function(e){var n=this;this._currentForm=e,this.subForm&&this.subForm.getComponents().forEac
1h(function(e){e.currentForm=n})}},{key:"hasLoadedForm",get:function(){return this.formObj&&this.formObj.components&&Array.isArray(this.formObj.components)&&this.formObj.components.length}},{key:"isRevisionChanged",get:function(){return i.default.isNumber(this.subFormRevision)&&i.default.isNumber(this.formObj._vid)&&this.formObj._vid!==this.subFormRevision}},{key:"destroy",value:function(){this.subForm&&(this.subForm.destroy(),this.subForm=null,this.subFormReady=null),m(v(g.prototype),"destroy",this).call(this)}},{key:"redraw",value:function(){return this.subForm&&(this.subForm.form=this.formObj,this.setSubFormDisabled(this.subForm)),m(v(g.prototype),"redraw",this).call(this)}},{key:"everyComponent",value:function(){if(this.subForm){var e;(e=this.subForm).everyComponent.apply(e,arguments)}}},{key:"setSubFormDisabled",value:function(e){e.disabled=this.disabled}},{key:"updateSubWizards",value:function(e){var n,r,o=this;if(this.isNestedWizard&&null!==(n=this.root)&&void 0!==n&&n.subWizards&&(null==e?void 0:null===(r=e._form)||void 0===r?void 0:r.display)==="wizard"){var i=this.root.subWizards.findIndex(function(e){return e.component.form===o.component.form});-1!==i?this.root.subWizards[i]=this:this.root.subWizards.push(this),this.emit("subWizardsUpdated",e)}}},{key:"createSubForm",value:function(e){var n=this;return this.subFormReady=this.loadSubForm(e).then(function(e){if(e)return(0,c.eachComponent)(e.components,function(e){n.hideSubmitButton(e)}),n.subForm&&n.subForm.destroy(),new d.default(e,n.getSubOptions()).ready.then(function(e){return n.subForm=e,n.subForm.currentForm=n,n.subForm.parent=n,n.subForm.parentVisible=n.visible,n.subForm.on("change",function(){n.subForm&&(n.dataValue=n.subForm.getValue(),n.triggerChange({noEmit:!0}))}),n.subForm.url=n.formSrc,n.subForm.nosubmit=!0,n.subForm.root=n.root,n.subForm.localRoot=n.isNestedWizard?n.localRoot:n.subForm,n.restoreValue(),n.valueChanged=n.hasSetValue,n.onChange(),n.subForm})}).then(function(e){return n.updateSubWizards(e),e}),this.subFormReady}},{key:"hideSubmitButton",value:function(e){"button"!==e.type||"submit"!==e.action&&e.action||(e.hidden=!0)}},{key:"loadSubForm",value:function(e){var n,r=this;return this.builderMode||this.isHidden()||this.isSubFormLazyLoad()&&!e?s.default.resolve():!this.hasLoadedForm||this.isRevisionChanged||this.options.pdf&&null!==(n=this.component)&&void 0!==n&&n.useOriginalRevision&&i.default.isNull(this.subForm)&&!this.subFormLoading?this.formSrc?(this.subFormLoading=!0,new f.GlobalFormio(this.formSrc).loadForm({params:{live:1}}).then(function(e){return r.formObj=e,r.options.pdf&&r.component.useOriginalRevision&&(r.formObj.display="form"),r.subFormLoading=!1,e}).catch(function(e){return console.log(e),null})):s.default.resolve():(this.root&&this.root.form&&this.root.form.config&&!this.formObj.config&&(this.formObj.config=this.root.form.config),s.default.resolve(this.formObj))}},{key:"subFormData",get:function(){var e;return(null===(e=this.dataValue)||void 0===e?void 0:e.data)||{}}},{key:"checkComponentValidity",value:function(e,n,r,o){var i=(o=o||{}).silentCheck||!1;return this.subForm?this.subForm.checkValidity(this.subFormData,n,null,i):m(v(g.prototype),"checkComponentValidity",this).call(this,e,n,r,o)}},{key:"checkComponentConditions",value:function(e,n,r){var o=this,i=m(v(g.prototype),"checkComponentConditions",this).call(this,e,n,r);return i?this.subForm?this.subForm.checkConditions(this.subFormData):(this.subFormReady&&this.subFormReady.then(function(){if(o.subForm)return o.subForm.checkConditions(o.subFormData)}),i):i}},{key:"calculateValue",value:function(e,n,r){return this.subForm?this.subForm.calculateValue(this.subFormData,n):m(v(g.prototype),"calculateValue",this).call(this,e,n,r)}},{key:"setPristine",value:function(e){m(v(g.prototype),"setPristine",this).call(this,e),this.subForm&&this.subForm.setPristine(e)}},{key:"shouldSubmit",get:function(){return this.subFormReady&&(!this.component.hasOwnProperty("reference")||this.component.reference)&&!this.isHidden()}},{key:"getSubFormData",value:function(){return"pdf"===i.default.get(this.subForm,"form.display")?this.subForm.getSubmission():s.default.resolve(this.dataValue)}},{key:"submitSubForm",value:function(e){var n=this;return this.shouldSubmit?this.subFormReady.then(function(){return n.subForm?(n.subForm.nosubmit=!1,n.subForm.submitForm(
1).then(function(e){return n.subForm.loading=!1,n.subForm.showAllErrors=!1,n.dataValue=e.submission,n.dataValue}).catch(function(r){return(n.subForm.showAllErrors=!0,e)?(n.subForm.onSubmissionError(r),s.default.reject(r)):{}})):n.dataValue}):this.getSubFormData()}},{key:"beforePage",value:function(e){var n=this;return e?this.submitSubForm(!0).then(function(){return m(v(g.prototype),"beforePage",n).call(n,e)}):m(v(g.prototype),"beforePage",this).call(this,e)}},{key:"beforeSubmit",value:function(){var e,n=this,r=this.dataValue;return r&&r._id&&r.form&&!(null!==(e=this.subForm)&&void 0!==e&&e.wizard)?(this.dataValue=r,s.default.resolve(this.dataValue)):this.submitSubForm(!1).then(function(){return n.dataValue}).then(function(){return m(v(g.prototype),"beforeSubmit",n).call(n)})}},{key:"isSubFormLazyLoad",value:function(){var e,n;return(null===(e=this.root)||void 0===e?void 0:null===(n=e._form)||void 0===n?void 0:n.display)==="wizard"&&this.component.lazyLoad}},{key:"isHidden",value:function(){return!this.visible||!m(v(g.prototype),"checkConditions",this).call(this,this.rootValue)}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=m(v(g.prototype),"setValue",this).call(this,e,r);if(this.valueChanged=!0,this.subForm){var a,l=e._frid?"_frid":"_vid";this.useOriginalRevision&&(i.default.isNumber(e[l])||i.default.isNumber(e._fvid))&&i.default.isNumber(null===(a=this.subForm.form)||void 0===a?void 0:a[l])&&e._fvid!==this.subForm.form[l]?(this.setFormRevision(e._frid||e._fvid),this.createSubForm().then(function(){n.attach(n.element)})):this.setSubFormValue(e,r)}return o}},{key:"setSubFormValue",value:function(e,n){if(e&&e._id&&this.subForm.formio&&i.default.isEmpty(e.data)){var r=e.form||this.formObj.form||this.component.form,o="".concat(this.subForm.formio.formsUrl,"/").concat(r,"/submission/").concat(e._id);this.subForm.setUrl(o,this.options),this.subForm.loadSubmission()}else this.subForm.setValue(e,n)}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return null===e||i.default.isEqual(e,this.emptyValue)||this.areAllComponentsEmpty(e.data)&&!e._id}},{key:"areAllComponentsEmpty",value:function(e){var n=!0;return this.subForm?this.subForm.everyComponent(function(r){var o=i.default.get(e,r.key);n&=r.isEmpty(o)}):n=!1,n}},{key:"getValue",value:function(){return this.subForm?this.subForm.getValue():this.dataValue}},{key:"errors",get:function(){var e=m(v(g.prototype),"errors",this);return this.subForm&&(e=e.concat(this.subForm.errors)),e}},{key:"updateSubFormVisibility",value:function(){this.subForm&&(this.subForm.parentVisible=this.visible)}},{key:"isNestedWizard",get:function(){var e,n,r,o,i;return(null===(e=this.subForm)||void 0===e?void 0:null===(n=e._form)||void 0===n?void 0:n.display)==="wizard"&&(null===(r=this.parent)||void 0===r?void 0:null===(o=r.parent)||void 0===o?void 0:null===(i=o._form)||void 0===i?void 0:i.display)==="wizard"}},{key:"visible",get:function(){return m(v(g.prototype),"visible",this)},set:function(e){var n=this,r=this.isNestedWizard;if(this._visible!==e){if(this._visible=e,!this.subForm&&e){this.createSubForm(),this.subFormReady.then(function(){n.updateSubFormVisibility(),n.clearOnHide()}),this.redraw();return}this.updateSubFormVisibility(),this.clearOnHide(),r?this.rebuild():this.redraw()}!e&&r&&this.root.redraw()}},{key:"parentVisible",get:function(){return m(v(g.prototype),"parentVisible",this)},set:function(e){var n=this;if(this._parentVisible!==e){if(this._parentVisible=e,this.clearOnHide(),!this.subForm&&e){this.createSubForm(),this.subFormReady.then(function(){n.updateSubFormVisibility()}),this.redraw();return}this.updateSubFormVisibility(),this.redraw()}}},{key:"isInternalEvent",value:function(e){switch(e){case"focus":case"blur":case"componentChange":case"componentError":case"error":case"formLoad":case"languageChanged":case"render":case"checkValidity":case"initialized":case"submit":case"submitButton":case"nosubmit":case"updateComponent":case"submitDone":case"submissionDeleted":case"requestDone":case"nextPage":case"prevPage":case"wizardNavigationClicked":case"updateWizardNav":case"restoreDraft":case"saveDraft":case"saveComponent":case"pdfUploaded":return!0;default:return!1}}},{key:"createEmitter",value:function(){var e=new u.default,n=e.emit,r=this;return e.emit=function(e){for(var o=e.replace("".concat(r.options.namespace,"."),""),i=arguments.length,a=Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];n.call.apply(n,[this,e].concat(a)),r.isInternalEvent(o)||r.emit.apply(r,[o].concat(a))},e}},{key:"deleteValue",value:function(){m(v(g.prototype),"setValue",this).call(this,null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}}],p=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{label:"Form",type:"form",key:"form",src:"",reference:!0,form:"",path:"",tableView:!0}
vendor: 5,381 bytes, line 1
1].concat(n))}},{key:"builderInfo",get:function(){return{title:"Nested Form",icon:"wpforms",group:"premium",documentation:"/userguide/form-building/premium-components#nested-form",weight:110,schema:g.schema()}}}],r&&h(g.prototype,r),p&&h(g,p),Object.defineProperty(g,"prototype",{writable:!1}),g}(a.default);n.default=b},58650:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=r(93174))&&o.__esModule?o:{default:o},a=[i.default.javaScriptValue("Custom Default Value","customDefaultValue","customDefaultValue",120,'<p><h4>Example:</h4><pre>value = data.firstName + " " + data.lastName;</pre></p>','<p><h4>Example:</h4><pre>{"cat": [{"var": "data.firstName"}, " ", {"var": "data.lastName"}]}</pre>'),i.default.javaScriptValue("Calculated Value","calculateValue","calculateValue",130,"<p><h4>Example:</h4><pre>value = data.a + data.b + data.c;</pre></p>",'<p><h4>Example:</h4><pre>{"+": [{"var": "data.a"}, {"var": "data.b"}, {"var": "data.c"}]}</pre><p><a href="http://formio.github.io/formio.js/app/examples/calculated.html" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>'),{weight:140,type:"checkbox",label:"Clear Value When Hidden",key:"clearOnHide",defaultValue:!0,tooltip:"When a field is hidden, clear the value.",input:!0}];n.default=a},31813:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabIndex",ignore:!0},{key:"autofocus",ignore:!0}]},18123:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(62089),r(17223),n.default=[{type:"select",input:!0,dataSrc:"url",data:{url:"/form?limit=1000000&select=_id,title,display"},searchField:"title__regex",template:"<span>{{ item.title }}</span>",valueProperty:"_id",authenticate:!0,label:"Form",key:"form",weight:10,lazyLoad:!1,tooltip:"The form to load within this form component.",validate:{required:!0}},{label:"Lazy Load",inputType:"checkbox",defaultValue:!0,clearOnHide:!0,errorLabel:"",key:"lazyLoad",type:"checkbox",tooltip:"if it is checked, the subform is loaded after navigation to the page with this component within the wizard.",input:!0,customConditional:function(e){var n,r,o,i,a=e.instance,l=e.data,u=null===(n=a.root)||void 0===n?void 0:null===(r=n.getComponent("form"))||void 0===r?void 0:r.defaultDownloadedResources.find(function(e){return e._id===l.form}),s="wizard";return(null===(o=a.options)||void 0===o?void 0:null===(i=o.editForm)||void 0===i?void 0:i.display)===s&&u&&u.display!==s}},{type:"select",input:!0,dataSrc:"url",data:{url:"/form/{{ data.form }}/v"},searchField:"title__regex",template:"<span>{{ item._vid }}</span>",valueProperty:"_id",authenticate:!0,label:"Form Revision",key:"revision",weight:10,lazyLoad:!0,tooltip:"You can lock the nested form to a specific revision by choosing the revision number here.",customConditional:"show = !!data.form"},{type:"checkbox",input:!0,weight:19,key:"useOriginalRevision",label:"Use Original Revision while Submissions Viewing",tooltip:"Using this option will make form load the original revision (the one which was used to make a submission) when viewing a submission."},{type:"checkbox",input:!0,weight:20,key:"reference",label:"Save as reference",tooltip:"Using this option will save this field as a reference and link its value to the value of the origin record."}]},14598:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:i.default},{key:"data",components:a.default},{key:"validation",ignore:!0},{key:"conditional",ignore:!0}]].concat(n))},r(43001);var o=l(r(6296)),i=l(r(16448)),a=l(r(36274));function l(e){return e&&e.__esModule?e:{default:e}}},76023:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(27846),r(9473),r(22818);var i,a=(i=r(49974))&&i.__esModule?i:{default:i};function l(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function u(){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=c(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}
1function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(d,e);var n,r,i,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(d);return e=n?Reflect.construct(r,arguments,c(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d),f.apply(this,arguments)}return r=[{key:"defaultSchema",get:function(){return d.schema()}},{key:"inputInfo",get:function(){var e=u(c(d.prototype),"elementInfo",this).call(this);return e.type="input",e.attr.type="hidden",e.changeEvent="change",e}},{key:"skipInEmail",get:function(){return!0}},{key:"validateMultiple",value:function(){return!1}},{key:"labelIsHidden",value:function(){return!0}},{key:"emptyValue",get:function(){return""}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.updateValue(e,n)}},{key:"getValue",value:function(){return this.dataValue}}],i=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"hidden",tableView:!1,inputType:"hidden"}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Hidden",group:"data",icon:"user-secret",weight:0,documentation:"/userguide/form-building/data-components#hidden",showPreview:!1,schema:d.schema()}}}],r&&l(d.prototype,r),i&&l(d,i),Object.defineProperty(d,"prototype",{writable:!1}),d}(a.default);n.default=f},36274:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0},{key:"clearOnHide",ignore:!0},{key:"allowCalculateOverride",ignore:!0}]},16448:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0},{key:"hidden",ignore:!0},{key:"tableView",ignore:!0},{key:"disabled",ignore:!0}]},26812:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:i.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:a.default}]].concat(n))},r(43001);var o=l(r(6296)),i=l(r(2330)),a=l(r(84757));function l(e){return e&&e.__esModule?e:{default:e}}},39619:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(50703),r(5746),r(6588),r(76381),r(43001),r(27846),r(9473),r(22818);var i=l(r(11275)),a=l(r(76635));
1function l(e){return e&&e.__esModule?e:{default:e}}function u(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function s(){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=f(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function c(e,n){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&c(e,n)}(p,e);var n,r,l,d=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=f(p);return e=n?Reflect.construct(r,arguments,f(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p),d.apply(this,arguments)}return r=[{key:"defaultSchema",get:function(){return p.schema()}},{key:"content",get:function(){if(this.builderMode)return this.component.content;if("select"===this.component.content.replace(/(<(\/?[^>]+)>)/g,"").trim())return" ".concat(this.component.content," ");var e=a.default.get(this.root,"submission",{}),n=this.component.content?this.interpolate(this.component.content,{metadata:e.metadata||{},submission:e,data:this.rootValue,row:this.data}):"";return this.sanitize(n,this.shouldSanitizeValue)}},{key:"singleTags",get:function(){return["br","img","hr"]}},{key:"checkRefreshOn",value:function(e){s(f(p.prototype),"checkRefreshOn",this).call(this,e),!this.builderMode&&this.component.refreshOnChange&&this.element&&!a.default.isUndefined(e)&&(a.default.isBoolean(e)&&e||!a.default.isEmpty(e))&&this.conditionallyVisible(this.data,this.row)&&this.setContent(this.element,this.renderContent())}},{key:"renderContent",value:function(){var e=this,n=a.default.get(this.root,"submission",{});return this.renderTemplate("html",{component:this.component,tag:this.component.tag,attrs:(this.component.attrs||[]).map(function(r){return{attr:r.attr,value:e.interpolate(r.value,{metadata:n.metadata||{},submission:n,data:e.rootValue,row:e.data})}}),content:this.content,singleTags:this.singleTags})}},{key:"render",value:function(){return s(f(p.prototype),"render",this).call(this,this.renderContent())}},{key:"attach",value:function(e){return this.loadRefs(e,{html:"single"}),s(f(p.prototype),"attach",this).call(this,e)}}],l=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.schema.apply(i.default,[{label:"HTML",type:"htmlelement",tag:"p",attrs:[],content:"",input:!1,persistent:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"HTML Element",group:"layout",icon:"code",weight:0,documentation:"/userguide/form-building/layout-components#html-element",showPreview:!1,schema:p.schema()}}}],r&&u(p.prototype,r),l&&u(p,l),Object.defineProperty(p,"prototype",{writable:!1}),p}(i.default);n.default=d},2330:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"disabled",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0},{type:"textfield",input:!0,key:"tag",weight:50,label:"HTML Tag",placeholder:"HTML Element Tag",tooltip:"The tag of this HTML element."},{type:"textfield",input:!0,key:"className",weight:60,label:"CSS Class",placeholder:"CSS Class",tooltip:"The CSS class for this HTML element."},{type:"datagrid",input:!0,label:"Attributes",key:"attrs",tooltip:"The attributes for this HTML element. Only safe attributes are allowed, such as src, href, and title.",weight:70,components:[{label:"Attribute",ke
vendor: 4,303 bytes, line 1
1y:"attr",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}]},{type:"textarea",input:!0,editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'<div class="well">Content</div>',key:"content",weight:80},{weight:85,type:"checkbox",label:"Refresh On Change",tooltip:"Rerender the field whenever a value on the form changes.",key:"refreshOnChange",input:!0}]},84757:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"logic",components:[{key:"actions",components:[{key:"actionPanel",components:[{data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"},{label:"Content",value:"content",type:"string",component:"content"}]},key:"property"},{type:"textarea",editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'<div class="well">Content</div>',key:"content",weight:30,input:!0,customConditional:function(e){return"property"===e.row.type&&e.row.hasOwnProperty("property")&&"string"===e.row.property.type&&"content"===e.row.property.component}}]}]}]}]},9203:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=Q(r(2344)),i=Q(r(93325)),a=Q(r(87886)),l=Q(r(12777)),u=Q(r(11275)),s=Q(r(68452)),c=Q(r(15179)),f=Q(r(56333)),d=Q(r(130)),p=Q(r(43056)),h=Q(r(79789)),m=Q(r(72880)),y=Q(r(79453)),v=Q(r(74545)),b=Q(r(97411)),g=Q(r(97738)),w=Q(r(44728)),k=Q(r(58950)),O=Q(r(76023)),_=Q(r(49974)),j=Q(r(15241)),P=Q(r(70362)),S=Q(r(35779)),E=Q(r(39619)),x=Q(r(21645)),C=Q(r(98087)),R=Q(r(45641)),A=Q(r(2580)),M=Q(r(56936)),T=Q(r(34560)),D=Q(r(96864)),I=Q(r(66341)),L=Q(r(52216)),V=Q(r(21473)),N=Q(r(30488)),F=Q(r(85143)),U=Q(r(69965)),B=Q(r(96200)),z=Q(r(11486)),q=Q(r(90519)),H=Q(r(41558)),W=Q(r(97994)),K=Q(r(93290)),G=Q(r(3097)),Y=Q(r(13021)),J=Q(r(47338)),X=Q(r(99023)),Z=Q(r(56541));function Q(e){return e&&e.__esModule?e:{default:e}}var ee={address:o.default,base:u.default,component:u.default,componentmodal:s.default,button:i.default,checkbox:a.default,columns:l.default,container:c.default,content:f.default,currency:d.default,datagrid:p.default,datamap:h.default,datetime:m.default,day:y.default,editgrid:v.default,email:b.default,input:_.default,field:P.default,multivalue:j.default,list:S.default,fieldset:g.default,file:w.default,form:k.default,hidden:O.default,htmlelement:E.default,nested:x.default,nesteddata:C.default,nestedarray:R.default,number:A.default,panel:M.default,password:T.default,phoneNumber:D.default,radio:I.default,recaptcha:L.default,resource:V.default,select:F.default,selectboxes:N.default,signature:U.default,survey:B.default,table:z.default,tabs:q.default,tags:H.default,textarea:W.default,textfield:K.default,time:G.default,tree:Y.default,unknown:J.default,url:X.default,well:Z.default};n.default=ee},825:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default},{key:"data",components:a.default},{key:"validation",components:l.default}]].concat(n))},r(43001);var o=u(r(80736)),i=u(r(97159)),a=u(r(22776)),l=u(r(21503));function u(e){return e&&e.__esModule?e:{default:e}}},2580:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(24646),r(35968),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}
1),n.default=void 0,r(43001),r(5746),r(6588),r(97172),r(57184),r(28818),r(87425),r(28121),r(83972),r(82778),r(59012),r(17223),r(12551),r(18036),r(76381),r(27846),r(9473),r(22818);var i=r(15560),a=r(93808),l=c(r(76635)),u=r(9494),s=c(r(49974));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?f(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=h(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function h(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function m(){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=v(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function y(e,n){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&y(e,n)}(h,e);var n,r,c,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=v(h);return e=n?Reflect.construct(r,arguments,v(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function h(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,h);for(var e,n,r,o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];(n=f.call.apply(f,[this].concat(i))).validators=n.validators.concat(["min","max"]);var s=(0,u.getNumberSeparators)(n.options.language||navigator.language);n.decimalSeparator=n.options.decimalSeparator=n.options.decimalSeparator||(null===(e=n.options.properties)||void 0===e?void 0:e.decimalSeparator)||s.decimalSeparator,n.component.delimiter?(n.options.hasOwnProperty("thousandsSeparator")&&console.warn("Property 'thousandsSeparator' is deprecated. Please use i18n to specify delimiter."),n.delimiter=(null===(r=n.options.properties)||void 0===r?void 0:r.thousandsSeparator)||n.options.thousandsSeparator||s.delimiter):n.delimiter="";var c=l.default.get(n.component,"requireDecimal",!1);if(n.decimalLimit=(0,u.getNumberDecimalLimit)(n.component,c?2:20),l.default.has(n.options,"languageOverride.".concat(n.options.language))){var d=l.default.get(n.options,"languageOverride.".concat(n.options.language));n.decimalSeparator=d.decimalSeparator,n.delimiter=d.delimiter}return n.numberMask=n.createNumberMask(),n}return r=[{key:"createNumberMask",value:function(){return(0,i.createNumberMask)({prefix:"",suffix:"",requireDecimal
vendor: 5,208 bytes, line 1
1:l.default.get(this.component,"requireDecimal",!1),thousandsSeparatorSymbol:l.default.get(this.component,"thousandsSeparator",this.delimiter),decimalSymbol:l.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:l.default.get(this.component,"decimalLimit",this.decimalLimit),allowNegative:l.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}},{key:"defaultSchema",get:function(){return h.schema()}},{key:"defaultValue",get:function(){var e=m(v(h.prototype),"defaultValue",this);return e||0!==this.component.defaultValue||(e=this.component.defaultValue),!this.component.multiple&&l.default.isArray(e)&&(e=e[0]||0===e[0]?e[0]:null),e}},{key:"isDecimalAllowed",value:function(){return l.default.get(this.component,"allowDecimal",!(this.component.validate&&this.component.validate.integer))}},{key:"parseNumber",value:function(e){return(e=e.split(this.delimiter).join("").replace(this.decimalSeparator,"."),this.component.validate&&this.component.validate.integer)?parseInt(e,10):parseFloat(e)}},{key:"setInputMask",value:function(e){var n="[0-9";n+=(this.decimalSeparator||"")+(this.delimiter||"")+"]*",e.setAttribute("pattern",n),e.mask=(0,a.maskInput)({inputElement:e,mask:this.numberMask,shadowRoot:this.root?this.root.shadowRoot:null})}},{key:"inputInfo",get:function(){var e=m(v(h.prototype),"inputInfo",this);return this.component.mask?e.attr.type="password":e.attr.type="text",e.attr.inputmode=this.isDecimalAllowed()?"decimal":"numeric",e.changeEvent="input",e}},{key:"getValueAt",value:function(e){if(!this.refs.input.length||!this.refs.input[e])return null;var n=this.refs.input[e].value;return n&&"-_"!==n?this.parseNumber(n):null}},{key:"setValueAt",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return m(v(h.prototype),"setValueAt",this).call(this,e,this.formatValue(this.parseValue(n)),r)}},{key:"parseValue",value:function(e){"string"==typeof e&&(e=e.split(this.delimiter).join("").replace(this.decimalSeparator,"."));var n=parseFloat(e);return l.default.isNaN(n)?null:String(n).replace(".",this.decimalSeparator)}},{key:"formatValue",value:function(e){return this.component.requireDecimal&&e&&!e.includes(this.decimalSeparator)?"".concat(e).concat(this.decimalSeparator).concat(l.default.repeat("0",this.decimalLimit)):this.component.requireDecimal&&e&&e.includes(this.decimalSeparator)?"".concat(e).concat(l.default.repeat("0",this.decimalLimit-e.split(this.decimalSeparator)[1].length)):e}},{key:"focus",value:function(){var e=this.refs.input[0];e&&(m(v(h.prototype),"focus",this).call(this),e.setSelectionRange(0,e.value.length))}},{key:"getMaskedValue",value:function(e){return(e=null===e?"0":e.toString()).includes(".")&&"."!==this.decimalSeparator&&(e=e.replace(".",this.decimalSeparator)),(0,a.conformToMask)(this.formatValue(e),this.numberMask).conformedValue}},{key:"getValueAsString",value:function(e,n){var r=this;return e||0===e?Array.isArray(e=this.getWidgetValueAsString(e,n))?e.map(function(e){return r.getMaskedValue(e)}).join(", "):this.getMaskedValue(e):""}},{key:"addFocusBlurEvents",value:function(e){var n=this;m(v(h.prototype),"addFocusBlurEvents",this).call(this,e),this.addEventListener(e,"blur",function(){e.value=n.getValueAsString(n.formatValue(n.parseValue(e.value)))})}}],c=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return s.default.schema.apply(s.default,[{type:"number",label:"Number",key:"number",validate:{min:"",max:"",step:"any",integer:""}}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Number",icon:"hashtag",group:"basic",documentation:"/userguide/form-building/form-components#number",weight:30,schema:h.schema()}}},{key:"serverConditionSettings",get:function(){return{operators:["isEqual","isNotEqual","isEmpty","isNotEmpty","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual"],valueComponent:function(e){return d(d({},e),{},{type:"number"})}}}}],r&&p(h.prototype,r),c&&p(h,c),Object.defineProperty(h,"prototype",{writable:!1}),h}(s.default);n.default=b},22776:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"checkbox",input:!0,weight:70,key:"delimiter",label:"Use Thousands Separator",tooltip:"Separate thousands by local delimiter."},{type:"number",input:!0,weight:80,key:"decimalLimit",label:"Decimal Places",tooltip:"The maximum number of decimal places."},{type:"checkbox",input:!0,weight:90,key:"requireDecimal",label:"Require Decimal",tooltip:"Always show decimals, even if trailing zeros."},{key:"case",ignore:!0}]},97159:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"spellcheck",ignore:!0},{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},21503:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"unique",ignore:!0},{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}
1,{key:"validate.pattern",ignore:!0},{type:"number",label:"Minimum Value",key:"validate.min",input:!0,placeholder:"Minimum Value",tooltip:"The minimum value this field must have before the form can be submitted.",weight:150},{type:"number",label:"Maximum Value",key:"validate.max",input:!0,placeholder:"Maximum Value",tooltip:"The maximum value this field can have before the form can be submitted.",weight:160}]},76804:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default},{key:"conditional",components:a.default}]].concat(n))},r(43001);var o=l(r(28600)),i=l(r(38950)),a=l(r(88539));function l(e){return e&&e.__esModule?e:{default:e}}},56936:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(5746),r(6588),r(27846),r(9473),r(22818);var i=u(r(21645)),a=r(9494),l=u(r(58950));function u(e){return e&&e.__esModule?e:{default:e}}function s(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=p(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function f(e,n){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function d(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&f(e,n)}(m,e);var n,r,u,h=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=p(m);return e=n?Reflect.construct(r,arguments,p(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return d(e)}(this,e)});function m(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,m);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=h.call.apply(h,[this].concat(r))).noField=!0,e.on("componentError",function(){(0,a.hasInvalidComponent)(d(e))&&e.collapsed&&(e.collapsed=!1)}),e}return r=[{key:"defaultSchema",get:function(){return m.schema()}},{key:"templateName",get:function(){return"panel"}},{key:"getComponent",value:function(e,n,r){var o;return(null===(o=this.root)||void 0===o?void 0:o.parent)instanceof l.default&&(e=e.replace(this._parentPath,"")),c(p(m.prototype),"getComponent",this).call(this,e,n,r)}}],u=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.schema.apply(i.default,[{label:"Panel",type:"panel",key:"panel",title:"Panel",theme:"default",breadcrumb:"default",components:[],clearOnHide:!1,input:!1,tableView:!1,persistent:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Panel",icon:"list-alt",group:"layout",documentation:"/userguide/form-building/layout-components#panel",weight:30,schema:m.schema()}}}],r&&s(m.prototype,r),u&&s(m,u),Object.defineProperty(m,"prototype",{writable:!1}),m}(i.default);n.default=h},88539:function(e,n,r){"use strict";r(26944),r(24646),r(35968),r(77762),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(92100),r(17223),r(18997),r(24956),r(6765),r(12443),r(92884);var o=s(r(93174)),i=s(r(18149)),a=s(r(17620)),l=s(r(17335)),u=s(r(90249));
vendor: 4,677 bytes, line 1
1function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?f(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=function(e){var n=function(e,n){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==c(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===c(n)?n:String(n)}(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var p=[d(d({},o.default.javaScriptValue("Advanced Next Page","nextPage","nextPage",110,"\n <p>You must assign the <strong>next</strong> variable with the API key of the next page.</p>\n <p>The global variable <strong>data</strong> is provided, and allows you to access the data of any form component, by using its API key.</p>\n <p>Also <strong>moment</strong> library is available, and allows you to manipulate dates in a convenient way.</p>\n <h5>Example</h5><pre>next = data.addComment ? 'page3' : 'page4';</pre>\n","\n <p>Submission data is available as JsonLogic variables, with the same api key as your components.</p>\n")),{},{customConditional:function(e){var n=!1;if("wizard"===e.instance.options.editForm.display){var r=e.instance.options.editForm.components,o=e.instance.options.editComponent;r&&o&&(n=r.some(function(e){var n=(0,l.default)((0,u.default)(e),(0,u.default)(o))||[];return n.push("components"),(0,i.default)((0,a.default)(e,n),(0,a.default)(o,n))}))}return n}})];n.default=p},38950:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(92100),r(17223);var o=u(r(18149)),i=u(r(17620)),a=u(r(17335)),l=u(r(90249));function u(e){return e&&e.__esModule?e:{default:e}}var s=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0},{key:"label",hidden:!0,calculateValue:function(e){return e.data.title}},{key:"tabindex",hidden:!0},{weight:1,type:"textfield",input:!0,placeholder:"Panel Title",label:"Title",key:"title",tooltip:"The title text that appears in the header of this panel."},{weight:20,type:"textarea",input:!0,key:"tooltip",label:"Tooltip",placeholder:"To add a tooltip to this field, enter text here.",tooltip:"Adds a tooltip to the side of this field."},{weight:30,type:"select",input:!0,label:"Theme",key:"theme",dataSrc:"values",data:{values:[{label:"Default",value:"default"},{label:"Primary",value:"primary"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Danger",value:"danger"},{label:"Warning",value:"warning"}]}},{weight:40,type:"fieldset",input:!1,components:[{type:"select",input:!0,label:"Breadcrumb Type",key:"breadcrumb",dataSrc:"values",data:{values:[{label:"Default",value:"default"},{label:"Condensed",value:"condensed"},{label:"Hidden",value:"none"}]}},{input:!0,type:"checkbox",label:"Allow click on Breadcrumb",key:"breadcrumbClickable",defaultValue:!0,conditional:{json:{"!==":[{var:"data.breadcrumb"},"none"]}}},{input:!0,type:"checkbox",label:"Allow Previous",key:"allowPrevious",defaultValue:!1,tooltip:"Determines if the breadcrumb bar is clickable or not for visited tabs.",conditional:{json:{"===":[{var:"data.breadcrumbClickable"},!1]}}},{weight:50,label:"Panel Navigation Buttons",optionsLabelPosition:"right",values:[{label:"Previous",value:"previous"},{label:"Cancel",value:"cancel"},{label:"Next",value:"next"}],inline:!0,type:"selectboxes",key:"buttonSettings",input:!0,inputType:"checkbox",defaultValue:{previous:!0,cancel:!0,next:!0}},{weight:55,label:"Navigate Wizard on Enter",type:"checkbox",key:"navigateOnEnter",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Use the Enter key to go forward through pages."},{weight:56,label:"Save on Enter",type:"checkbox",key:"saveOnEnter",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Use the Enter key to
1submit form on last page."},{weight:60,label:"Scroll up on page opening",type:"checkbox",key:"scrollToTop",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Scroll to the top of the wizard page when user navigates to it"}],customConditional:function(e){var n=!1;if("wizard"===e.instance.options.editForm.display){var r=e.instance.options.editForm.components,u=e.instance.options.editComponent;r&&u&&(n=r.some(function(e){var n=(0,a.default)((0,l.default)(e),(0,l.default)(u))||[];return n.push("components"),(0,o.default)((0,i.default)(e,n),(0,i.default)(u,n))}))}return n}},{weight:650,type:"checkbox",label:"Collapsible",tooltip:"If checked, this will turn this Panel into a collapsible panel.",key:"collapsible",input:!0},{weight:651,type:"checkbox",label:"Initially Collapsed",tooltip:"Determines the initial collapsed state of this Panel.",key:"collapsed",input:!0,conditional:{json:{"===":[{var:"data.collapsible"},!0]}}}];n.default=s},47661:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"data",components:a.default},{key:"display",components:i.default},{key:"validation",components:l.default}]].concat(n))},r(43001);var o=u(r(80736)),i=u(r(47983)),a=u(r(35191)),l=u(r(11443));function u(e){return e&&e.__esModule?e:{default:e}}},34560:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(27846),r(9473),r(22818);var i=l(r(93290)),a=l(r(76635));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function s(){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=f(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function c(e,n){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&c(e,n)}(p,e);var n,r,l,d=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=f(p);return e=n?Reflect.construct(r,arguments,f(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p),d.apply(this,arguments)}return r=[{key:"defaultSchema",get:function(){return a.default.omit(p.schema(),["protected","tableView"])}},{key:"inputInfo",get:function(){var e=s(f(p.prototype),"inputInfo",this);return e.attr.type="password",e}},{key:"autocompleteDisableAttrName",get:function(){return"new-password"}}],l=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.schema.apply(i.default,[{type:"password",label:"Password",key:"password",protected:!0,tableView:!1}
1].concat(n))}},{key:"builderInfo",get:function(){return{title:"Password",icon:"asterisk",group:"basic",documentation:"/userguide/form-building/form-components#password",weight:40,schema:p.schema()}}}],r&&u(p.prototype,r),l&&u(p,l),Object.defineProperty(p,"prototype",{writable:!1}),p}(i.default);n.default=d},35191:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"inputFormat",ignore:!0},{key:"persistent",ignore:!0},{key:"protected",ignore:!0},{key:"dbIndex",ignore:!0},{key:"encrypted",ignore:!0},{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0},{key:"customDefaultValuePanel",ignore:!0},{key:"calculateValuePanel",ignore:!0},{key:"passwordInfo",weight:0,type:"htmlelement",tag:"div",className:"alert alert-info",content:"Password fields are automatically encrypted using 1-way salted bcrypt hashes. These hashes are also protected and not returned in the API."}]},47983:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{ignore:!0,key:"mask"},{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0}]},11443:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"unique",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},11417:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:[{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},{key:"validation",components:i.default}]].concat(n))},r(43001);var o=a(r(80736)),i=a(r(68897));function a(e){return e&&e.__esModule?e:{default:e}}},96864:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(27846),r(9473),r(22818);var i,a=(i=r(93290))&&i.__esModule?i:{default:i};function l(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function u(e,n){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&u(e,n)}(f,e);var n,r,i,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(f);return e=n?Reflect.construct(r,arguments,s(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),c.apply(this,arguments)}return r=[{key:"defaultSchema",get:function(){return f.schema()}}],i=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"phoneNumber",label:"Phone Number",key:"phoneNumber",inputType:"tel",inputMask:"(999) 999-9999",inputMode:"decimal",displayMask:""}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Phone Number",group:"advanced",icon:"phone-square",weight:30,documentation:"/userguide/form-building/advanced-components#phone-number",schema:f.schema()}}}],r&&l(f.prototype,r),i&&l(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(a.default);n.default=c},68897:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0}
1,{key:"validate.pattern",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},7358:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:a.default},{key:"data",components:i.default},{key:"validation",components:l.default}]].concat(n))},r(43001);var o=u(r(5417)),i=u(r(96293)),a=u(r(22357)),l=u(r(44657));function u(e){return e&&e.__esModule?e:{default:e}}},66341:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(18036),r(11102),r(15469),r(12083),r(30902),r(5746),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(34078),r(43001),r(17943),r(17223),r(1542),r(88455),r(32334),r(59012),r(12551),r(92100),r(98595),r(62089),r(87425),r(27846),r(9473),r(22818);var i=c(r(76635)),a=c(r(35779)),l=c(r(18947)),u=r(38388),s=r(9494);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function d(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function p(){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=m(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function h(e,n){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&h(e,n)}(v,e);var n,r,c,y=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=m(v);return e=n?Reflect.construct(r,arguments,m(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function v(e,n,r){var o;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,v),(o=y.call(this,e,n,r)).previousValue=o.dataValue||null,o}return r=[{key:"defaultSchema",get:function(){return v.schema()}},{key:"defaultValue",get:function(){var e=p(m(v.prototype),"defaultValue",this);return e||!1!==this.component.defaultValue||(e=this.component.defaultValue),e}},{key:"inputInfo",get:function(){var e,n=p(m(v.prototype),"elementInfo",this).call(this);return n.type="input",n.changeEvent="click",n.attr.class="form-check-input",n.attr.name=n.attr.name+="[".concat(null===(e=this.root)||void 0===e?void 0:e.id,"-").concat(this.id,"]"),n}},{key:"emptyValue",get:function(){return""}},{key:"isRadio",get:function(){return"radio"===this.component.inputType}},{key:"optionSelectedClass",get:function(){return"radio-selected"}},{key:"listData",get:function(){var e=i.default.get(this.root,"submission.metadata.listData",{});return i.default.get(e,this.path)}},{key:"init",value:function(){var e=this;p(m(v.prototype),"init",this).call(this),this.templateData={},this.validators=this.validators.concat(["select","onlyAvailableItems","availableValueProperty"]);var n=[],r=i.default.debounce(function(){n=[];for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return e.updateItems.apply(e,o)},100);this.triggerUpdate=function(){"function"==typeof e.itemsLoadedResolve&&e.itemsLoadedResolve(),e.itemsLoaded=new l.default(function(n){e.itemsLoadedResolve=n});for(var o,i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];return a.length&&(n=a),r.apply(void 0,function(e){if(Array.isArray(e))return f(e)}(o=n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,n){if(e){if("string"==typeof e)return f(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(e,void 0)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},this.itemsLoaded=new l.default(function(n){e.itemsLoadedResolve=n}),this.optionsLoaded=!1,this.loadedOptions=[],this.getTemplateKeys()}},{key:"render",value:function(){return p(m(v.prototype),"render",this).call(this,this.renderTemplate("radio",{input:this.inputInfo,inline:this.component.inline,values:"values"===this.component.dataSrc?this.component.values:this.loadedOptions,value:this.dataValue,row:this.row}))}},{key:"attach",value:function(e){var n=this;
1return this.loadRefs(e,{input:"multiple",wrapper:"multiple"}),this.refs.input.forEach(function(e,r){if(n.addEventListener(e,n.inputInfo.changeEvent,function(){n.updateValue(null,{modified:!0})}),n.component.values[r]&&n.addShortcut(e,n.component.values[r].shortcut),n.isRadio){var o=n.dataValue;i.default.isString(n.dataValue)||(o=i.default.toString(n.dataValue)),n.isSelectURL&&i.default.isObject(n.loadedOptions[r].value)?e.checked=i.default.isEqual(n.loadedOptions[r].value,n.dataValue):e.checked=o===e.value&&(e.value||"url"!==n.component.dataSrc),n.addEventListener(e,"keyup",function(r){" "===r.key&&o===e.value&&(r.preventDefault(),n.updateValue(null,{modified:!0}))})}}),this.triggerUpdate(),this.setSelectedClasses(),p(m(v.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(e){var n=this;e&&this.refs.input&&this.refs.input.forEach(function(e,r){n.component.values[r]&&n.removeShortcut(e,n.component.values[r].shortcut)}),p(m(v.prototype),"detach",this).call(this)}},{key:"getValue",value:function(){var e=this;if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var n=this.dataValue;return this.refs.input.forEach(function(r,o){r.checked&&(n=e.isSelectURL&&i.default.isObject(e.loadedOptions[o].value)?e.loadedOptions[o].value:r.value)}),n}},{key:"validateValueProperty",value:function(){var e=this;return"values"===this.component.dataSrc||!i.default.some(this.refs.wrapper,function(n,r){return e.refs.input[r].checked&&e.loadedOptions[r].invalid})}},{key:"validateValueAvailability",value:function(e,n){var r=this;if(!(0,s.boolValue)(e)||!n)return!0;var o=this.component.values;return!!o&&-1!==o.findIndex(function(e){var o=e.value;return r.normalizeValue(o)===n})}},{key:"getValueAsString",value:function(e){if(i.default.isObject(e)?e=JSON.stringify(e):i.default.isString(e)||(e=i.default.toString(e)),"values"!==this.component.dataSrc)return e;var n=i.default.find(this.component.values,function(n){return n.value===e});return i.default.get(n,"label","")}},{key:"setValueAt",value:function(e,n){if(this.refs.input&&this.refs.input[e]&&null!=n){var r=this.refs.input[e].value;this.refs.input[e].checked=r===n.toString()}}},{key:"loadItems",value:function(e,n,r,o,i,a){var l=this;if(!this.optionsLoaded){if(!this.shouldLoad&&this.listData){this.loadItemsFromMetadata();return}"GET"===(i=i||"GET").toUpperCase()&&(a=null),o.ignoreCache=this.component.ignoreCache,o.header=r,this.loading=!0,u.GlobalFormio.makeRequest(this.options.formio,"select",e,i,a,o).then(function(e){l.loading=!1,l.error=null,l.setItems(e),l.optionsLoaded=!0,l.redraw()}).catch(function(e){l.handleLoadingError(e)})}}},{key:"loadItemsFromMetadata",value:function(){var e=this;this.listData.forEach(function(n,r){e.loadedOptions[r]={label:e.itemTemplate(n)},i.default.isEqual(n,e.selectData||i.default.pick(e.dataValue,i.default.keys(n)))&&(e.loadedOptions[r].value=e.dataValue)}),this.optionsLoaded=!0,this.redraw()}},{key:"setItems",value:function(e){var n=this,r=[];if(null==e||e.forEach(function(e,o){n.loadedOptions[o]={value:n.component.valueProperty?e[n.component.valueProperty]:e,label:n.component.valueProperty?n.itemTemplate(e,e[n.component.valueProperty]):n.itemTemplate(e,e,o)},r.push(n.templateData[n.component.valueProperty?e[n.component.valueProperty]:o]),(n.component.valueProperty||!n.isRadio)&&(i.default.isUndefined(e[n.component.valueProperty])||!n.isRadio&&i.default.isObject(e[n.component.valueProperty])||!n.isRadio&&i.default.isBoolean(e[n.component.valueProperty]))&&(n.loadedOptions[o].invalid=!0)}),this.isSelectURL){var o=this.root.submission;o.metadata||(o.metadata={}),o.metadata.listData||(o.metadata.listData={}),i.default.set(o.metadata.listData,this.path,r)}}},{key:"setSelectedClasses",value:function(){var e=this;if(this.refs.wrapper){var n=this.dataValue;this.refs.wrapper.forEach(function(r,o){var i=e.refs.input[o];("checkbox"===i.type?n[i.value]:i.value.toString()===n.toString())?(e.addClass(r,e.optionSelectedClass),i.setAttribute("checked","true")):(e.removeClass(r,e.optionSelectedClass),i.removeAttribute("checked"))})}}}
vendor: 4,256 bytes, line 1
1,{key:"updateValue",value:function(e,n){var r=p(m(v.prototype),"updateValue",this).call(this,e,n);return(r&&this.setSelectedClasses(),n&&n.modified&&this.isRadio)?(this.currentValue=this.dataValue,n&&n.modified&&!n.noUpdateEvent&&this.previousValue===this.currentValue&&(this.resetValue(),this.triggerChange(n),this.setSelectedClasses()),this.previousValue=this.dataValue):r&&(this.previousValue=this.dataValue),r}},{key:"normalizeValue",value:function(e){if(e===this.emptyValue)return e;if(!isNaN(parseFloat(e))&&isFinite(e)&&(e=+e),"true"===e&&(e=!0),"false"===e&&(e=!1),this.isSelectURL&&this.templateData&&this.templateData[e]){var n=this.root.submission;n.metadata.selectData||(n.metadata.selectData={}),i.default.set(n.metadata.selectData,this.path,this.templateData[e])}return p(m(v.prototype),"normalizeValue",this).call(this,e)}}],c=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"radio",inputType:"radio",label:"Radio",key:"radio",values:[{label:"",value:""}],data:{url:""},fieldSet:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Radio",group:"basic",icon:"dot-circle-o",weight:80,documentation:"/userguide/form-building/form-components#radio",schema:v.schema()}}}],r&&d(v.prototype,r),c&&d(v,c),Object.defineProperty(v,"prototype",{writable:!1}),v}(a.default);n.default=y},96293:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(17216),r(17943),r(17223),r(1542);var o=a(r(65319)),i=a(r(76635));function a(e){return e&&e.__esModule?e:{default:e}}var l=[{key:"multiple",ignore:!0},{key:"dataSrc",data:{values:[{label:"Values",value:"values"},{label:"URL",value:"url"}]},validate:{required:!0},onChange:function(e){e&&e.flags&&e.flags&&e.flags.modified&&(e.data.values=[{label:"",value:""}])}},{type:"datagrid",input:!0,label:"Values",key:"values",tooltip:"The radio button values that can be picked for this field. Values are text submitted with the form data. Labels are text that appears next to the radio buttons on the form.",weight:10,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:"value = _.camelCase(row.label);",validate:{required:!0}},{type:"select",input:!0,weight:180,label:"Shortcut",key:"shortcut",tooltip:"The shortcut key for this option.",dataSrc:"custom",valueProperty:"value",customDefaultValue:function(){return""},template:"{{ item.label }}",data:{custom:function(e){return o.default.getAvailableShortcuts(i.default.get(e,"instance.options.editForm",{}),i.default.get(e,"instance.options.editComponent",{}))}}}],conditional:{json:{"===":[{var:"data.dataSrc"},"values"]}}},{key:"template",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}}];n.default=l},22357:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"placeholder",ignore:!0},{type:"select",input:!0,label:"Options Label Position",key:"optionsLabelPosition",tooltip:"Position for the label for options for this field.",dataSrc:"values",weight:32,defaultValue:"right",data:{values:[{label:"Top",value:"top"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Bottom",value:"bottom"}]}},{type:"checkbox",input:!0,key:"inline",label:"Inline Layout",tooltip:"Displays the checkboxes/radios horizontally.",weight:650}]},44657:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"validateOn",ignore:!0},{key:"unique",ignore:!0},{weight:52,type:"checkbox",label:"Allow only available values",tooltip:"Check this if you would like to perform a validation check to ensure the selected value is an available option.",key:"validate.onlyAvailableItems",input:!0}]},83538:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return o.default.baseEditForm([{key:"display",components:i.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"conditional",ignore:!0},{key:"logic",ignore:!0}])};var o=a(r(6296)),i=a(r(84158));
1function a(e){return e&&e.__esModule?e:{default:e}}},52216:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(24646),r(35968),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(34078),r(43001),r(27846),r(9473),r(22818);var i=c(r(11275)),a=r(38388),l=c(r(72579)),u=c(r(54073)),s=c(r(18947));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?f(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=h(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function h(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function m(){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=v(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function y(e,n){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&y(e,n)}(h,e);var n,r,c,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=v(h);return e=n?Reflect.construct(r,arguments,v(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function h(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,h),f.apply(this,arguments)}return r=[{key:"render",value:function(){return(this.recaptchaResult=null,this.builderMode)?m(v(h.prototype),"render",this).call(this,"reCAPTCHA"):m(v(h.prototype),"render",this).call(this,"",!0)}},{key:"createInput",value:function(){if(this.builderMode)this.append(this.text(this.name));else{var e=(0,l.default)(this.root.form,"settings.recaptcha.siteKey");e?this.recaptchaApiReady=a.GlobalFormio.requireLibrary("googleRecaptcha","grecaptcha","https://www.google.com/recaptcha/api.js?render=".concat(e),!0):console.warn("There is no Site Key specified in settings in form JSON")}}},{key:"createLabel",value:function(){}},{key:"verify",value:function(e){var n=this,r=(0,l.default)(this.root.form,"settings.recaptcha.siteKey");if(!r){console.warn("There is no Site Key specified in settings in form JSON");return}if(!this.recaptchaApiReady){var o="https://www.google.com/recaptcha/api.js?render=".concat((0,l.default)(this.root.form,"settings.recaptcha.siteKey"));this.recaptchaApiReady=a.GlobalFormio.requireLibrary("googleRecaptcha","grecaptcha",o,!0)}this.recaptchaApiReady&&(this.recaptchaVerifiedPromise=new s.default(function(o,i){n.recaptchaApiReady.then(function(){n.isLoading||(n.isLoading=!0,grecaptcha.ready((0,u.default)(function(){gre
1captcha.execute(r,{action:e}).then(function(e){return n.sendVerificationRequest(e).then(function(e){var r=e.verificationResult,i=e.token;return n.recaptchaResult=d(d({},r),{},{token:i}),n.updateValue(n.recaptchaResult),o(r)})}).catch(function(){n.isLoading=!1})},1e3)))}).catch(function(){return i()})}).then(function(){n.isLoading=!1}))}},{key:"beforeSubmit",value:function(){var e=this;return this.recaptchaVerifiedPromise?this.recaptchaVerifiedPromise.then(function(){return m(v(h.prototype),"beforeSubmit",e).call(e)}):m(v(h.prototype),"beforeSubmit",this).call(this)}},{key:"sendVerificationRequest",value:function(e){return a.GlobalFormio.makeStaticRequest("".concat(a.GlobalFormio.projectUrl,"/recaptcha?recaptchaToken=").concat(e)).then(function(n){return{verificationResult:n,token:e}})}},{key:"checkComponentValidity",value:function(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e=e||this.rootValue,r=r||this.data;var a=i.async;if(!(void 0!==a&&a))return m(v(h.prototype),"checkComponentValidity",this).call(this,e,n,r,i);var l=r[this.component.key];return l&&l.token?l.success?this.hook("validateReCaptcha",l.token,function(){return s.default.resolve(!0)}).then(function(e){return e}).catch(function(e){return o.setCustomValidity(e.message||e),!1}):(this.setCustomValidity("ReCAPTCHA: Token validation error"),s.default.resolve(!1)):(this.setCustomValidity("ReCAPTCHA: Token is not specified in submission"),s.default.resolve(!1))}},{key:"normalizeValue",value:function(e){return this.recaptchaResult?this.recaptchaResult:e}}
1],c=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.schema.apply(i.default,[{type:"recaptcha",key:"recaptcha",label:"reCAPTCHA"}].concat(n))}},{key:"builderInfo",get:function(){return{title:"reCAPTCHA",group:"premium",icon:"refresh",documentation:"/userguide/form-building/premium-components#recaptcha",weight:40,schema:h.schema()}}}],r&&p(h.prototype,r),c&&p(h,c),Object.defineProperty(h,"prototype",{writable:!1}),h}(i.default);n.default=b},84158:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(9494),i=[{key:"eventType",label:"Type of event",tooltip:"Specify type of event that this reCAPTCHA would react to",type:"radio",values:[{label:"Form Load",value:"formLoad"},{label:"Button Click",value:"buttonClick"}],weight:650},{type:"select",input:!0,label:"Button Key",key:"buttonKey",dataSrc:"custom",valueProperty:"value",tooltip:"Specify key of button on this form that this reCAPTCHA should react to",weight:660,customConditional:function(e){return"buttonClick"===e.data.eventType},data:{custom:function(e){return(0,o.getContextButtons)(e)}}},{key:"label",ignore:!0},{key:"hideLabel",ignore:!0},{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"errorLabel",ignore:!0},{key:"customClass",ignore:!0},{key:"tabindex",ignore:!0},{key:"multiple",ignore:!0},{key:"clearOnHide",ignore:!0},{key:"hidden",ignore:!0},{key:"mask",ignore:!0},{key:"dataGridLabel",ignore:!0},{key:"disabled",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0}];n.default=i},59486:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:i.default}]].concat(n))},r(43001);var o=a(r(6296)),i=a(r(34426));function a(e){return e&&e.__esModule?e:{default:e}}},21473:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(27846),r(9473),r(22818);var i,a=(i=r(85143))&&i.__esModule?i:{default:i};function l(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function u(){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=c(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(d,e);var n,r,i,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(d);return e=n?Reflect.construct(r,arguments,c(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d),f.apply(this,arguments)}return r=[{key:"init",value:function(){u(c(d.prototype),"init",this).call(this),this.component.dataSrc="resource",this.component.data={resource:this.component.resource}}},{key:"defaultSchema",get:function(){return d.schema()}}],i=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"resource",label:"Resource",key:"resource",dataSrc:"resource",resource:"",project:"",template:"<span>{{ item.data }}</span>"}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Resource",icon:"files-o",weight:90,documentation:"/userguide/form-building/form-components#resource",schema:d.schema()}}}],r&&l(d.prototype,r),i&&l(d,i),Object.defineProperty(d,"prototype",{writable:!1}),d}(a.default);n.default=f},34426:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"resourceInfo",weight:-10,type:"htmlelement",tag:"div",className:"alert alert-danger",content:"This component has been deprecated and will be removed in a future version of Formio.js."},{type:"select",input:!0,dataSrc:"url",data:{url:"/form?type=resource&limit=1000000&select=_id,title"},authenticate:!0,template:"<span>{{ item.title }}</span>",valueProperty:"_id",label:"Resource",key:"resource",weight:50,tooltip:"The resource to be used with this field."},{type:"tags",input:!0,key:"selectFields",label:"Select Fields",tooltip:"The properties on the resource to return as part of the options. If left blank, all properties will be returned.",placeholder:"Enter the fields to select.",weight:51},{type:"tags",input:!0,key:"searchFields",label:"Search Fields",tooltip:"A list of search f
1ilters based on the fields of the resource. See the <a target='_blank' href='https://github.com/travist/resourcejs#filtering-the-results'>Resource.js documentation</a> for the format of these filters.",placeholder:"The fields to query on the server",weight:52},{type:"textfield",input:!0,key:"filter",label:"Filter Query",weight:53,description:"The filter query for results.",tooltip:"Use this to provide additional filtering using query parameters."},{type:"textfield",input:!0,key:"sort",label:"Sort Query",weight:53,description:"The sort query for results",tooltip:"Use this to provide additional sorting using query parameters"},{type:"textarea",input:!0,key:"template",label:"Item Template",editor:"ace",as:"html",rows:3,weight:53,tooltip:"The HTML template for the result data items."},{type:"checkbox",input:!0,weight:54,key:"addResource",label:"Add Resource",tooltip:"Allows to create a new resource while entering a submission.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",label:"Add Resource Label",key:"addResourceLabel",tooltip:"Set the text of the Add Resource button.",placeholder:"Add Resource",weight:55,input:!0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!!":{var:"data.addResource"}}]}}}]},39070:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:a.default},{key:"data",components:i.default},{key:"validation",components:l.default}]].concat(n))},r(43001);var o=u(r(5417)),i=u(r(23186)),a=u(r(38298)),l=u(r(97340));function u(e){return e&&e.__esModule?e:{default:e}}},85143:function(e,n,r){"use strict";r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(26981),r(11102),r(15469),r(12083),r(30902),r(34078),r(30534),r(98197),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(62089),r(17223),r(59012),r(12551),r(18036),r(76381),r(5746),r(71340),r(50703),r(97172),r(28818),r(209),r(13423),r(28121),r(83972),r(35968),r(45343),r(52315),r(9473),r(24646),r(88455),r(32334),r(92884),r(16433),r(32809),r(98595),r(6588),r(17943),r(1542),r(92100),r(27846),r(22818);var o,i=f(r(76635)),a=r(38388),l=f(r(35779)),u=f(r(15587)),s=f(r(18947)),c=r(9494);function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function h(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?p(Object(r),!0).forEach(function(n){w(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return y(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function v(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,k(o.key),o)}}function b(e,n,r,o){return(b="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=_(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else w(o,n,r);return!0})(e,n,r,o)}
1function g(e,n,r,o,i){if(!b(e,n,r,o||e)&&i)throw Error("failed to set property");return r}function w(e,n,r){return(n=k(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function k(e){var n=function(e,n){if("object"!==d(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==d(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===d(n)?n:String(n)}function O(){return(O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=_(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function _(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=P(e)););return e}function j(e,n){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}"undefined"!=typeof window&&(o=r(12832).ZP);var S=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&j(e,n)}(y,e);var n,r,f,p=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=P(y);return e=n?Reflect.construct(r,arguments,P(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===d(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function y(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,y),p.apply(this,arguments)}return r=[{key:"init",value:function(){var e=this;O(P(y.prototype),"init",this).call(this),this.templateData={},this.validators=this.validators.concat(["select","onlyAvailableItems"]);var n=[],r=i.default.debounce(function(){n=[];for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return e.updateItems.apply(e,o)},100);this.triggerUpdate=function(){"function"==typeof e.itemsLoadedResolve&&e.itemsLoadedResolve(),e.itemsLoaded=new s.default(function(n){e.itemsLoadedResolve=n});for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return i.length&&(n=i),r.apply(void 0,m(n))},this.selectOptions=[],this.itemsFromUrl&&(this.isFromSearch=!1,this.searchServerCount=null,this.defaultServerCount=null,this.isScrollLoading=!1,this.searchDownloadedResources=[],this.defaultDownloadedResources=[]),this.activated=!1,this.itemsLoaded=new s.default(function(n){e.itemsLoadedResolve=n}),this.isHtmlRenderMode()&&this.activate(),this.getTemplateKeys()}},{key:"dataReady",get:function(){return this.root&&this.root.submissionSet&&!this.attached?s.default.resolve():this.itemsLoaded}},{key:"defaultSchema",get:function(){return y.schema()}},{key:"emptyValue",get:function(){if(this.component.multiple)return[];if("json"===this.component.dataSrc&&this.component.data.json){var e,n=this.component.data.json[0];return(e=this.valueProperty?i.default.get(n,this.valueProperty):n)&&"string"==typeof e?"":{}}return this.valueProperty?"":{}}},{key:"valueProperty",get:function(){return this.component.valueProperty?this.component.valueProperty:"values"===this.component.dataSrc?"value":""}},{key:"inputInfo",get:function(){var e=O(P(y.prototype),"elementInfo",this).call(this);return e.type="select",e.changeEvent="change",e}},{key:"isSelectResource",get:function(){return"resource"===this.component.dataSrc}},{key:"itemsFromUrl",get:function(){return this.isSelectResource||this.isSelectURL}},{key:"isInfiniteScrollProvided",get:function(){return this.itemsFromUrl}},{key:"shouldDisabled",get:function(){return O(P(y.prototype),"shouldDisabled",this)||this.parentDisabled}},{key:"shouldInitialLoad",get:function(){return(!("html5"===this.component.widget&&this.isEntireObjectDisplay())||!this.component.searchField||!this.dataValue)&&O(P(y.prototype),"shouldLoad",this)}},{key:"isEntireObjectDisplay",value:function(){return"resource"===this.component.dataSrc&&"data"===this.valueProperty}},{key:"selectValueAndLabel",value:function(e){var n=this.getOptionValue(this.isEntireObjectDisplay()&&!this.itemValue(e)?e:this.itemValue(e));return{value:n,label:this.itemTemplate(this.isEntireObjectDisplay()&&!i.default.isObject(e.data)?{data:e}:e,n)}}},{key:"itemTemplate",value:function(e,n){var r=this;if(!i.default.isNumber(e)&&i.default.isEmpty(e))return"";if(this.options.readOnly&&this.component.readOnlyValue)return this.itemValue(e);if(e&&!this.component.template){var o=e.label||e,a="string"==typeof o?this.t(o,{_userInput:!0}):o;
vendor: 6,529 bytes, line 1
1return this.sanitize(a,this.shouldSanitizeValue)}if(this.component.multiple&&i.default.isArray(this.dataValue)?this.dataValue.find(function(e){return n===e}):this.dataValue===n){var l=this.selectData;if(l){var u=this.component.reference&&null!=n&&n._id?n._id.toString():n;this.templateData&&this.templateData[u]||this.getOptionTemplate(e,n),this.component.multiple?l[u]&&(e=l[u]):e=l}}if("string"==typeof e||"number"==typeof e)return this.sanitize(this.t(e,{_userInput:!0}),this.shouldSanitizeValue);if(Array.isArray(e))return e.map(function(e){return"string"==typeof e||"number"==typeof e?r.sanitize(r.t(e,{_userInput:!0}),r.shouldSanitizeValue):e});if(e.data){var s=/item\.data\.\w*/g.test(this.component.template);e.data=this.isEntireObjectDisplay()&&i.default.isObject(e.data)&&!s?JSON.stringify(e.data):e.data}return O(P(y.prototype),"itemTemplate",this).call(this,e,n)}},{key:"addOption",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,c.getRandomComponentId)();if(!i.default.isNil(n)){var a=this.component.idPath?this.component.idPath.split(".").reduceRight(function(e,n){return w({},n,e)},o):{},l=h({value:this.getOptionValue(e),label:n},a);if(this.component.uniqueOptions&&this.selectOptions.find(function(e){return i.default.isEqual(e.value,l.value)}))return;if(e&&this.selectOptions.push(l),this.refs.selectContainer&&"html5"===this.component.widget){l.value&&i.default.isObject(l.value)&&i.default.isEmpty(l.value)&&(l.value="");var u=document.createElement("div");u.innerHTML=this.sanitize(this.renderTemplate("selectOption",{selected:i.default.isEqual(this.getOptionValue(this.dataValue),l.value),option:l,attrs:r,id:o,useId:(""===this.valueProperty||this.isEntireObjectDisplay())&&i.default.isObject(e)&&o}),this.shouldSanitizeValue).trim(),l.element=u.firstChild,this.refs.selectContainer.appendChild(l.element)}}}},{key:"addValueOptions",value:function(e){var n=this;e=e||[];var r=!1,o=this.dataValue;if(this.options.pdf&&!e.length&&"url"===this.component.dataSrc&&this.valueProperty&&(o=Array.isArray(o)?o.map(function(e){return i.default.set({},n.valueProperty,e)}):i.default.set({},this.valueProperty,o)),!this.selectOptions.length){var a=Array.isArray(o)&&this.component.multiple?o:[o];(r=this.addCurrentChoices(a,e))||this.component.multiple||this.addPlaceholder()}return r}},{key:"disableInfiniteScroll",value:function(){this.downloadedResources&&(this.downloadedResources.serverCount=this.downloadedResources.length,this.serverCount=this.downloadedResources.length)}},{key:"setItems",value:function(e,n){var r,o,a,l=this;if("string"==typeof e)try{e=JSON.parse(e)}catch(n){console.warn(n.message),e=[]}if(this.component.onSetItems&&"function"==typeof this.component.onSetItems){var u=this.component.onSetItems(this,e);u&&(e=u)}if(!this.choices&&this.refs.selectContainer&&this.empty(this.refs.selectContainer),this.component.selectValues&&(e=i.default.get(e,this.component.selectValues,e)||[]),this.itemsFromUrl){r=!!this.isSelectURL&&i.default.isEqual(e,this.downloadedResources);var s=this.component.limit>e.length,c=r&&this.downloadedResources&&this.downloadedResources.length===e.length;s?this.disableInfiniteScroll():c?this.selectOptions=[]:this.serverCount=e.serverCount}if(this.isScrollLoading&&e)r||(this.downloadedResources=this.downloadedResources?this.downloadedResources.concat(e):e),this.downloadedResources.serverCount=e.serverCount||this.downloadedResources.serverCount;else if(this.downloadedResources=e||[],this.selectOptions=[],!i.default.isEmpty(this.dataValue)&&this.component.idPath){var f=i.default.get(this.dataValue,this.component.idPath,null),d=!i.default.isNil(f)&&e.find(function(e){return i.default.get(e,l.component.idPath)===f});d&&this.setValue(d)}if(n||this.addValueOptions(e),"html5"!==this.component.widget||this.component.placeholder||this.addOption(null,""),i.default.each(e,function(e,n){if(!l.root||!l.root.options.editForm||!l.root.options.editForm._id||l.root.options.editForm._id!==e._id){var r=l.selectValueAndLabel(e);l.addOption(r.value,r.label,{},i.default.get(e,l.component.idPath,String(n)))}}),this.choices?this.choices.setChoices(this.selectOptions,"value","label",!0):this.loading,this.isScrollLoading=!1,this.loading=!1,!(n&&(null===(o=this.choices)||void 0===o?void 0:null===(a=o.input)||void 0===a?void 0:a.isFocussed))){if(!this.isEmpty()||this.isRemoveButtonPressed)this.setValue(this.dataValue,{noUpdateEvent:!0});else if(this.shouldAddDefaultValue&&!this.options.readOnly){var p=this.defaultValue;this.isEmpty(p)||this.setValue(p)}}this.itemsLoadedResolve()}},{key:"getSingleItemValueForHTMLMode",value:function(e){var n,r=null===(n=this.selectOptions)||void 0===n?void 0:n.find(function(n){var r=n.value;return i.default.isEqual(r,e)});return r&&r.label||e}},{key:"itemValueForHTMLMode",value:function(e){var n=this;return this.isHtmlRenderMode()?Array.isArray(e)?e.map(function(e){return Array.isArray(e)?n.itemValueForHTMLMode(e):n.getSingleItemValueForHTMLMode(e)}).join(", "):this.getSingleItemValueForHTMLMode(e):O(P(y.prototype),"itemValueForHTMLMode",this).call(this,e)}},{key:"defaultValue",get:function(){var e=O(P(y.prototype),"defaultValue",this);return e||!1!==this.component.defaultValue&&0!==this.component.defaultValue||(e=this.component.defaultValue),e}},{key:"loadingError",get:function(){return!this.component.refreshOn&&!this.component.refreshOnBlur&&this.networkError}},{key:"loadItems",value:function(e,n,r,o,l,u){var s=this;if(o=o||{},!this.shouldLoad||!this.itemsFromUrl&&this.options.readOnly){this.isScrollLoading=!1,this.loading=!1,this.itemsLoadedResolve();return}var c=parseInt(this.component.minSearch,10);if(this.component.searchField&&c>0&&(!n||n.length<c))return this.setItems([]);"GET"===(l=l||"GET").toUpperCase()&&(u=null);var f=this.component.limit||100,p=this.isScrollLoading?this.selectOptions.length:0,h=this.component.disableLimit?{}:{limit:f,skip:p};if(e=this.interpolate(e,{formioBase:a.GlobalFormio.getBaseUrl(),search:n,limit:f,skip:p,page:Math.abs(Math.floor(p/f))}),this.component.searchField&&n){var m=Array.isArray(n)?n.join(","):"object"===d(n)?JSON.stringify(n):n;h[this.component.searchField]=this.component.searchField.endsWith("__regex")?i.default.escapeRegExp(m):m}this.component.selectFields&&(h.select=this.component.selectFields),this.component.sort&&(h.sort=this.component.sort),i.default.isEmpty(h)||(e+=(e.includes("?")?"&":"?")+a.GlobalFormio.serialize(h,function(e){return s.interpolate(e)}
1)),this.component.filter&&(e+=(e.includes("?")?"&":"?")+this.interpolate(this.component.filter)),o.ignoreCache=this.component.ignoreCache,o.header=r,this.loading=!0,a.GlobalFormio.makeRequest(this.options.formio,"select",e,l,u,o).then(function(e){s.loading=!1,s.error=null,s.setItems(e,!!n)}).catch(function(e){s.itemsFromUrl&&(s.setItems([]),s.disableInfiniteScroll()),s.isScrollLoading=!1,s.handleLoadingError(e)})}},{key:"handleLoadingError",value:function(e){this.loading=!1,e.networkError&&(this.networkError=!0),this.itemsLoadedResolve(),this.emit("componentError",{component:this.component,message:e.toString()}),console.warn("Unable to load resources for ".concat(this.key))}},{key:"requestHeaders",get:function(){var e=this,n=new a.GlobalFormio.Headers;if(this.component.data&&this.component.data.headers)try{i.default.each(this.component.data.headers,function(r){r.key&&n.set(r.key,e.interpolate(r.value))})}catch(e){console.warn(e.message)}return n}},{key:"getCustomItems",value:function(){var e=this.evaluate(this.component.data.custom,{values:[]},"values");return this.asyncValues=(0,c.isPromise)(e),e}},{key:"asyncCustomValues",value:function(){return i.default.isBoolean(this.asyncValues)||this.getCustomItems(),this.asyncValues}},{key:"updateCustomItems",value:function(e){var n=this;if(this.asyncCustomValues()){if(!e&&!this.active){this.itemsLoadedResolve();return}this.loading=!0,this.getCustomItems().then(function(e){n.loading=!1,n.setItems(e||[])}).catch(function(e){n.handleLoadingError(e)})}else this.setItems(this.getCustomItems()||[])}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return O(P(y.prototype),"isEmpty",this).call(this,e)||void 0===e}},{key:"refresh",value:function(e,n){var r=n.instance;this.component.clearOnRefresh&&r&&!r.pristine&&this.setValue(this.emptyValue),this.updateItems(null,!0)}},{key:"additionalResourcesAvailable",get:function(){return i.default.isNil(this.serverCount)||this.serverCount>this.downloadedResources.length}},{key:"serverCount",get:function(){return this.isFromSearch?this.searchServerCount:this.defaultServerCount},set:function(e){this.isFromSearch?this.searchServerCount=e:this.defaultServerCount=e}},{key:"downloadedResources",get:function(){return this.isFromSearch?this.searchDownloadedResources:this.defaultDownloadedResources},set:function(e){this.isFromSearch?this.searchDownloadedResources=e:this.defaultDownloadedResources=e}},{key:"addPlaceholder",value:function(){this.component.placeholder&&this.addOption("",this.component.placeholder,{placeholder:!0})}},{key:"activate",value:function(){(this.loading||!this.active)&&this.setLoadingItem(),this.active||(this.activated=!0,this.triggerUpdate())}}
vendor: 9,035 bytes, line 1
1,{key:"setLoadingItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.choices?e?this.choices.setChoices([{value:"".concat(this.id,"-loading"),label:"Loading...",disabled:!0}],"value","label"):this.choices.setChoices([{value:"",label:'<i class="'.concat(this.iconClass("refresh"),'" style="font-size:1.3em;"></i>'),disabled:!0}],"value","label",!0):("url"===this.component.dataSrc||"resource"===this.component.dataSrc)&&this.addOption("",this.t("loading..."))}},{key:"active",get:function(){return!this.component.lazyLoad||this.activated}},{key:"render",value:function(){var e=this.inputInfo;return e.attr=e.attr||{},e.multiple=this.component.multiple,O(P(y.prototype),"render",this).call(this,this.wrapElement(this.renderTemplate("select",{input:e,selectOptions:"",index:null})))}},{key:"wrapElement",value:function(e){return this.component.addResource&&!this.options.readOnly?this.renderTemplate("resourceAdd",{element:e}):e}},{key:"choicesOptions",value:function(){var e=!this.component.hasOwnProperty("searchEnabled")||this.component.searchEnabled,n=this.t(this.component.placeholder,{_userInput:!0}),r=this.component.customOptions||{};if("string"==typeof r)try{r=JSON.parse(r)}catch(e){console.warn(e.message),r={}}var o={maxPatternLength:1e3,distance:1e3};return h({removeItemButton:!this.component.disabled&&i.default.get(this.component,"removeItemButton",!0),itemSelectText:"",classNames:{containerOuter:"choices form-group formio-choices",containerInner:this.transform("class","form-control ui fluid selection dropdown")},addItemText:!1,allowHTML:!0,placeholder:!!this.component.placeholder,placeholderValue:n,noResultsText:this.t("No results found"),noChoicesText:this.t("No choices to choose from"),searchPlaceholderValue:this.t("Type to search"),shouldSort:!1,position:this.component.dropdown||"auto",searchEnabled:e,searchChoices:!this.component.searchField,searchFields:i.default.get(this,"component.searchFields",["label"]),shadowRoot:this.root?this.root.shadowRoot:null,fuseOptions:this.component.useExactSearch?h({tokenize:!0,matchAllTokens:!0},o):Object.assign({},i.default.get(this,"component.fuseOptions",{}),h({include:"score",threshold:i.default.get(this,"component.selectThreshold",.3)},o)),valueComparer:i.default.isEqual,resetScrollPosition:!1},r)}},{key:"attach",value:function(e){var n,r,l,s=this,c=O(P(y.prototype),"attach",this).call(this,e);this.loadRefs(e,{selectContainer:"single",addResource:"single",autocompleteInput:"single"});var f=this.refs.autocompleteInput;f&&this.addEventListener(f,"change",function(e){s.setValue(e.target.value)});var d=this.refs.selectContainer;if(d){if(this.addEventListener(d,this.inputInfo.changeEvent,function(){return s.updateValue(null,{modified:!0})}),this.attachRefreshOnBlur(),"html5"===this.component.widget){this.addFocusBlurEvents(d),this.triggerUpdate(null,!0),this.visible&&this.setItems(this.selectOptions||[]),this.focusableElement=d,this.addEventListener(d,"focus",function(){return s.update()}),this.addEventListener(d,"keydown",function(e){["Backspace","Delete"].includes(e.key)&&s.setValue(s.emptyValue)});return}var p=d.tabIndex;this.addPlaceholder(),d.setAttribute("dir",this.i18next.dir()),null!==(n=this.choices)&&void 0!==n&&null!==(r=n.containerOuter)&&void 0!==r&&null!==(l=r.element)&&void 0!==l&&l.parentNode&&this.choices.destroy();var h=this.choicesOptions();if(o&&(this.choices=new o(d,h),this.selectOptions&&this.selectOptions.length&&this.choices.setChoices(this.selectOptions,"value","label",!0),this.component.multiple?this.focusableElement=this.choices.input.element:(this.focusableElement=this.choices.containerInner.element,this.choices.containerOuter.element.setAttribute("tabIndex","-1"),this.addEventListener(this.choices.containerOuter.element,"focus",function(){return s.focusableElement.focus()})),this.addFocusBlurEvents(this.focusableElement),this.itemsFromUrl&&!this.component.noRefreshOnScroll&&(this.scrollList=this.choices.choiceList.element,this.addEventListener(this.scrollList,"scroll",function(){return s.onScroll()})),h.removeItemButton&&this.addEventListener(d,"removeItem",function(){s.isRemoveButtonPressed=!0})),this.focusableElement.setAttribute("tabIndex",p),this.component.searchField){this.choices&&this.choices.input&&this.choices.input.element&&this.addEventListener(this.choices.input.element,"input",function(e){s.isFromSearch=!!e.target.value,e.target.value?(s.serverCount=null,s.downloadedResources=[]):s.triggerUpdate()}),this.addEventListener(d,"choice",function(){s.component.multiple&&"resource"===s.component.dataSrc&&s.isFromSearch&&s.triggerUpdate(),s.isFromSearch=!1});var v=this.component.searchField&&(this.isSelectResource||this.isSelectURL)?(0===this.component.searchDebounce?0:this.component.searchDebounce||this.defaultSchema.searchDebounce)*1e3:0;this.addEventListener(d,"search",i.default.debounce(function(e){s.triggerUpdate(e.detail.value)},v)),this.addEventListener(d,"stopSearch",function(){return s.triggerUpdate()}),this.addEventListener(d,"hideDropdown",function(){s.choices&&s.choices.input&&s.choices.input.element&&(s.choices.input.element.value=""),s.updateItems(null,!0)})}return this.addEventListener(d,"showDropdown",function(){return s.update()}),this.choices&&h.placeholderValue&&this.choices._isSelectOneElement&&(this.addPlaceholderItem(h.placeholderValue),this.addEventListener(d,"removeItem",function(){s.addPlaceholderItem(h.placeholderValue)})),this.addValueOptions(),this.setChoicesValue(this.dataValue),this.isSelectResource&&this.refs.addResource&&this.addEventListener(this.refs.addResource,"click",function(e){e.preventDefault();var n=s.ce("div"),r=s.createModal(n),o=i.default.get(s.root,"formio.projectUrl",a.GlobalFormio.getProjectUrl()),l="".concat(o,"/form/").concat(s.component.data.resource);new u.default(n,l,{}).ready.then(function(e){e.on("submit",function(e){var n=s.valueProperty?i.default.get(e,s.valueProperty):e;s.component.multiple&&(n=[].concat(m(s.dataValue),[n])),s.setValue(n),s.triggerUpdate(),r.close()})})}),this.disabled=this.shouldDisabled,this.triggerUpdate(),c}}},{key:"isLoadingAvailable",get:function(){return!this.isScrollLoading&&this.additionalResourcesAvailable}},{key:"onScroll",value:function(){this.isLoadingAvailable&&(this.isScrollLoading=!0,this.setLoadingItem(!0),this.triggerUpdate(this.choices.input.element.value))}},{key:"attachRefreshOnBlur",value:function(){var e=this;this.component.refreshOnBlur&&this.on("blur",function(n){e.checkRefreshOn([{instance:n,value:n.dataValue}],{fromBlur:!0})})}},{key:"addPlaceholderItem",value:function(e){this.choices._store.activeItems.length||this.choices._addItem({value:e,label:e,choiceId:0,groupId:-1,customProperties:null,placeholder:!0,keyCode:null})}},{key:"update",value:function(){"custom"===this.component.dataSrc&&this.updateCustomItems(),this.activate()}},{key:"disabled",get:function(){return O(P(y.prototype),"disabled",this)},set:function(e){g(P(y.prototype),"disabled",e,this,!0),this.choices&&(e?(this.setDisabled(this.choices.containerInner.element,!0),this.focusableElement.removeAttribute("tabIndex"),this.choices.disable()):(this.setDisabled(this.choices.containerInner.element,!1),this.focusableElement.setAttribute("tabIndex",this.component.tabindex||0),this.choices.enable()))}},{key:"visible",get:function(){return O(P(y.prototype),"visible",this)},set:function(e){e&&!this._visible!=!e&&this.triggerUpdate(),g(P(y.prototype),"visible",e,this,!0)}},{key:"addCurrentChoices",value:function(e,n,r){var o=this;if(!e)return!1;var a=[],l=e.reduce(function(e,l){if(!l||i.default.isEmpty(l))return e;var u=!1,s=n===o.selectOptions;return(n&&n.length&&i.default.each(n,function(e){if(e._id&&l._id&&e._id===l._id)return u=!0,!1;var n=r?e.value:o.itemValue(e,s);return!(u|=i.default.isEqual(n,l))}),u)?u||e:(a.push(o.selectValueAndLabel(l)),!0)},!1);return a.length&&(this.choices&&this.choices.setChoices(a,"value","label"),a.map(function(e){o.addOption(e.value,e.label)})),l}},{key:"getValueAsString",value:function(e){return this.component.multiple&&Array.isArray(e)?e.map(this.asString.bind(this)).join(", "):this.asString(e)}},{key:"getValue",value:function(){if(this.viewOnly||this.loading||!this.component.lazyLoad&&!this.selectOptions.length||!this.element)return this.dataValue;var e=this.emptyValue;if(this.choices)e=this.choices.getValue(!0),!this.component.multiple&&this.component.placeholder&&e===this.t(this.component.placeholder,{_userInput:!0})&&(e=this.emptyValue);else if(this.refs.selectContainer){if(e=this.refs.selectContainer.value,""===this.valueProperty||this.isEntireObjectDisplay()){if(""===e)return{};var n=this.selectOptions[e]||this.selectOptions.find(function(n){return n.id===e});n&&i.default.isObject(n.value)&&(e=n.value)}}else e=this.dataValue;return null==e&&(e=""),e}},{key:"redraw",value:function(){var e=O(P(y.prototype),"redraw",this).call(this);return this.triggerUpdate(),e}},{key:"normalizeSingleValue",value:function(e,n){var r=this;if(!i.default.isNil(e)){var o=i.default.isObject(e);
1if(o&&0===Object.keys(e).length)return e;if(n){var a,l=this.component.reference&&null!=e&&e._id?e._id.toString():e,u=!o||this.component.reference;if(l&&u&&this.templateData&&this.templateData[l]&&null!==(a=this.root)&&void 0!==a&&a.submission){var s=this.root.submission;s.metadata||(s.metadata={}),s.metadata.selectData||(s.metadata.selectData={});var c=this.templateData[l];if(this.component.multiple){c={};var f=this.dataValue;f&&i.default.isArray(f)&&f.length&&f.forEach(function(e){var n=r.component.reference?e._id.toString():e;c[n]=r.templateData[n]})}i.default.set(s.metadata.selectData,this.path,c)}}var d=this.component.dataType||"auto";try{return({value:e,number:function(){var n=Number(this.value),r=e.toString()===n.toString();return!Number.isNaN(n)&&Number.isFinite(n)&&""!==e&&r&&(this.value=n),this},boolean:function(){return i.default.isString(this.value)&&("true"===this.value.toLowerCase()||"false"===this.value.toLowerCase())&&(this.value="true"===this.value.toLowerCase()),this},string:function(){return this.value=String(this.value),this},object:function(){return this},auto:function(){return i.default.isObject(this.value)?this.value=this.object().value:this.value=this.string().number().boolean().value,this}})[d]().value}catch(n){return console.warn("Failed to normalize value",n),e}}}},{key:"normalizeValue",value:function(e){var n=this;return this.component.multiple&&Array.isArray(e)?e.map(function(e){return n.normalizeSingleValue(e,!0)}):O(P(y.prototype),"normalizeValue",this).call(this,this.normalizeSingleValue(e,!0))}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.dataValue;if("html5"===this.component.widget&&(i.default.isEqual(e,o)||i.default.isEqual(o,{})&&i.default.isEqual(r,{}))&&!r.fromSubmission)return!1;var a=this.updateValue(e,r);e=this.dataValue;var l=!this.isEmpty(o),u=!this.isEmpty(e);if(this.component.multiple&&Array.isArray(e)?e=e.map(function(e){return"boolean"==typeof e||"number"==typeof e?e.toString():e}):("boolean"==typeof e||"number"==typeof e)&&(e=e.toString()),this.isHtmlRenderMode()&&r&&r.fromSubmission&&a)return this.itemsLoaded.then(function(){n.redraw()}),a;if(this.loading)return a;
1if(this.isInitApiCallNeeded(u)){this.loading=!0,this.lazyLoadInit=!0;var s=this.component.searchField||this.component.valueProperty;return this.triggerUpdate(i.default.get(e.data||e,s,e),!0),a}return this.itemsLoaded.then(function(){n.addValueOptions(),n.setChoicesValue(e,l,r)}),a}},{key:"isInitApiCallNeeded",value:function(e){return this.component.lazyLoad&&!this.lazyLoadInit&&!this.active&&!this.selectOptions.length&&e&&this.shouldInitialLoad&&this.visible&&(this.component.searchField||this.component.valueProperty)}},{key:"setChoicesValue",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=!this.isEmpty(e)||r.fromSubmission;if(n=void 0===n||n,this.choices){if(o){this.choices.removeActiveItems();var a=Array.isArray(e)&&this.component.multiple?e:[e];this.addCurrentChoices(a,this.selectOptions,!0)||this.choices.setChoices(this.selectOptions,"value","label",!0),this.choices.setChoiceByValue(a)}else(n||r.resetValue)&&this.choices.removeActiveItems()}else if(o){var l=Array.isArray(e)?e:[e];if(!i.default.isEqual(this.dataValue,this.defaultValue)&&this.selectOptions.length<2||this.selectData&&r.fromSubmission){var u=this.selectValueAndLabel(this.dataValue),s=u.value,c=u.label;this.addOption(s,c)}i.default.each(this.selectOptions,function(e){i.default.each(l,function(n){if(""===e.value&&(e.value={}),i.default.isEqual(n,e.value)&&e.element)return e.element.selected=!0,e.element.setAttribute("selected","selected"),!1})})}else i.default.each(this.selectOptions,function(e){e.element&&(e.element.selected=!1,e.element.removeAttribute("selected"))})}},{key:"itemsLoaded",get:function(){return this._itemsLoaded||s.default.resolve()},set:function(e){this._itemsLoaded=e}},{key:"validateValueAvailability",value:function(e,n){var r=this;if(!(0,c.boolValue)(e)||!n)return!0;var o=this.getOptionsValues();if(o){if(i.default.isObject(n)){var a=function(e){var o=r.normalizeSingleValue(e,!0);if(!i.default.isObject(o))return!1;try{return JSON.stringify(o)===JSON.stringify(n)}catch(e){return console.warn.error("Error while comparing items",e),!1}};return -1!==o.findIndex(function(e){return a(e)})}return -1!==o.findIndex(function(e){return r.normalizeSingleValue(e)===n})}return!1}},{key:"getOptionValue",value:function(e){return i.default.isObject(e)&&this.isEntireObjectDisplay()?this.normalizeSingleValue(e):i.default.isObject(e)&&(this.valueProperty||"resource"!==this.component.key)?e:i.default.isObject(e)&&!this.valueProperty?this.interpolate(this.component.template,{item:e}).replace(/<\/?[^>]+(>|$)/g,""):i.default.isNull(e)?this.emptyValue:String(this.normalizeSingleValue(e))}},{key:"getOptionsValues",value:function(){var e=this,n=[];switch(this.component.dataSrc){case"values":n=this.component.data.values;break;case"json":n=this.component.data.json;break;case"custom":n=this.getCustomItems()}if("string"==typeof n)try{n=JSON.parse(n)}catch(e){console.warn(e.message),n=[]}if(Array.isArray(n))return n.map(function(n){return e.getOptionValue(e.itemValue(n))})}},{key:"deleteValue",value:function(){this.setValue("",{noUpdateEvent:!0}),this.unset()}},{key:"validateMultiple",value:function(){return!1}},{key:"isBooleanOrNumber",value:function(e){return"number"==typeof e||"boolean"==typeof e}},{key:"getNormalizedValues",value:function(){var e=this;if(this.component&&this.component.data&&this.component.data.values)return this.component.data.values.map(function(n){return{label:n.label,value:String(e.normalizeSingleValue(n.value))}})}},{key:"asString",value:function(e){var n,r=this;e=null!==(n=e)&&void 0!==n?n:this.getValue();var o=function(e,n){return n?Array.isArray(e)?e.forEach(function(e){return e[n]=e[n].toString()}):e[n]=e[n].toString():(r.isBooleanOrNumber(e)&&(e=e.toString()),Array.isArray(e)&&e.some(function(e){return r.isBooleanOrNumber(e)})&&(e=e.map(function(e){r.isBooleanOrNumber(e)&&(e=e.toString())}))),e};if(e=o(e),["values","custom"].includes(this.component.dataSrc)&&!this.asyncCustomValues()){var a,l,u,s="values"===this.component.dataSrc?{items:o(this.getNormalizedValues(),"value"),valueProperty:"value"}:{items:o(this.getCustomItems(),this.valueProperty),valueProperty:this.valueProperty},c=s.items,f=s.valueProperty;e=this.component.multiple&&Array.isArray(e)?i.default.filter(c,function(n){return e.includes(n.value)}):f?null!==(a=i.default.find(c,[f,e]),l=r.defaultSchema.data.values||[],u=i.default.isEqual(a,l[0])?"-":a)&&void 0!==u?u:{value:e,label:e}:e}if(i.default.isString(e))return e;if(Array.isArray(e)){var d=[];return(e.forEach(function(e){return d.push(r.itemTemplate(e))}),"resource"===this.component.dataSrc&&d.length>0)?d.join(", "):d.length>0?d.join("<br />"):"-"}return this.isEntireObjectDisplay()&&i.default.isObject(e)?JSON.stringify(e):i.default.isNil(e)?"-":this.itemTemplate(e)}},{key:"detach",value:function(){if(O(P(y.prototype),"detach",this).call(this),this.off("blur"),this.choices){var e,n;null!==(e=this.choices.containerOuter)&&void 0!==e&&null!==(n=e.element)&&void 0!==n&&n.parentNode&&this.choices.destroy(),this.choices=null}}},{key:"focus",value:function(){this.focusableElement&&(O(P(y.prototype),"focus",this).call(this),this.focusableElement.focus())}},{key:"setErrorClasses",value:function(e,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.element;O(P(y.prototype),"setErrorClasses",this).call(this,e,n,r,o,i),this.choices?O(P
vendor: 4,323 bytes, line 1
1(y.prototype),"setErrorClasses",this).call(this,[this.choices.containerInner.element],n,r,o,i):O(P(y.prototype),"setErrorClasses",this).call(this,[this.refs.selectContainer],n,r,o,i)}}],f=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return l.default.schema.apply(l.default,[{type:"select",label:"Select",key:"select",idPath:"id",data:{values:[{label:"",value:""}],json:"",url:"",resource:"",custom:""},clearOnRefresh:!1,limit:100,valueProperty:"",lazyLoad:!0,filter:"",searchEnabled:!0,searchDebounce:.3,searchField:"",minSearch:0,readOnlyValue:!1,selectFields:"",selectThreshold:.3,uniqueOptions:!1,tableView:!0,fuseOptions:{include:"score",threshold:.3},indexeddb:{filter:{}},customOptions:{},useExactSearch:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Select",group:"basic",icon:"th-list",weight:70,documentation:"/userguide/form-building/form-components#select",schema:y.schema()}}},{key:"serverConditionSettings",get:function(){return h(h({},O(P(y),"serverConditionSettings",this)),{},{valueComponent:function(e){return h(h({},e),{},{type:"select"})}})}}],r&&v(y.prototype,r),f&&v(y,f),Object.defineProperty(y,"prototype",{writable:!1}),y}(l.default);n.default=S},23186:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(17216);var o=r(9494),i=[{key:"dataSrc",data:{values:[{label:"Values",value:"values"},{label:"URL",value:"url"},{label:"Resource",value:"resource"},{label:"Custom",value:"custom"},{label:"Raw JSON",value:"json"}]}},{type:"textfield",weight:10,input:!0,key:"indexeddb.database",label:"Database name",tooltip:"The name of the indexeddb database.",conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textfield",input:!0,key:"indexeddb.table",label:"Table name",weight:16,tooltip:"The name of table in the indexeddb database.",conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textarea",as:"json",editor:"ace",weight:18,input:!0,key:"indexeddb.filter",label:"Row Filter",tooltip:"Filter table items that match the object.",defaultValue:{},conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"data.json",label:"Data Source Raw JSON",tooltip:"A valid JSON array to use as a data source.",description:'<div>Example: <pre>["apple", "banana", "orange"].</pre></div> <div>Example 2: <pre>[{"name": "John", "email": "[email protected]"}, {"name": "Jane", "email": "[email protected]"}].</pre></div>',conditional:{json:{"===":[{var:"data.dataSrc"},"json"]}}},{type:"checkbox",input:!0,label:"Lazy Load Data",key:"lazyLoad",tooltip:"When set, this will not fire off the request to the URL until this control is within focus. This can improve performance if you have many Select dropdowns on your form where the API's will only fire when the control is activated.",weight:11,conditional:{json:{and:[{in:[{var:"data.dataSrc"},["resource","url"]]},{"!==":[{var:"data.widget"},"html5"]}]}}},{type:"datagrid",input:!0,label:"Data Source Values",key:"data.values",tooltip:"Values to use as the data source. Labels are shown in the select field. Values are the corresponding values saved with the submission.",weight:10,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:"value = _.camelCase(row.label);"}],conditional:{json:{"===":[{var:"data.dataSrc"},"values"]}}},{type:"select",input:!0,dataSrc:"url",data:{url:"/form?type=resource&limit=1000000&select=_id,title"},authenticate:!0,template:"<span>{{ item.title }}</span>",valueProperty:"_id",clearOnHide:!1,label:"Resource",key:"data.resource",lazyLoad:!1,weight:10,tooltip:"The resource to be used with this field.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",input:!0,label:"Data Path",key:"selectValues",weight:12,description:"The object path to the iterable items.",tooltip:"The property within the source data, where iterable items reside. For example: results.items or results[0].items",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"select",input:!0,label:"Value Property",key:"valueProperty",skipMerge:!0,
1clearOnHide:!0,tooltip:"The field to use as the value.",weight:11,refreshOn:"data.resource",template:"<span>{{ item.label }}</span>",valueProperty:"key",dataSrc:"url",lazyLoad:!1,onSetItems:function(e,n){var r="resource"===n.type?[{label:"{Entire Object}",key:"data"}]:[];return(0,o.eachComponent)(n.components,function(e,n){e.input&&r.push({label:e.label||e.key,key:"data.".concat(n)})}),r},onChange:function(e){if(e&&e.flags&&e.flags.modified){var n=e.instance.data.valueProperty;e.instance.root.getComponent("template").setValue("<span>{{ item.".concat(n||"data"," }}</span>")),e.instance.root.getComponent("searchField").setValue(n?"".concat(n,"__regex"):"")}},data:{url:"/form/{{ data.data.resource }}"},conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!==":[{var:"data.reference"},!0]},{var:"data.data.resource"}]}}},{type:"select",input:!0,label:"Storage Type",key:"dataType",clearOnHide:!0,tooltip:"The type to store the data. If you select something other than autotype, it will force it to that type.",weight:12,template:"<span>{{ item.label }}</span>",dataSrc:"values",data:{values:[{label:"Autotype",value:"auto"},{label:"String",value:"string"},{label:"Number",value:"number"},{label:"Boolean",value:"boolean"},{label:"Object",value:"object"}]}},{type:"textfield",input:!0,key:"idPath",weight:12,label:"ID Path",placeholder:"id",tooltip:"Path to the select option id."},{type:"textfield",input:!0,label:"Select Fields",key:"selectFields",tooltip:"The properties on the resource to return as part of the options. Separate property names by commas. If left blank, all properties will be returned.",placeholder:"Comma separated list of fields to select.",weight:14,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"===":[{var:"data.valueProperty"},""]}]}}},{type:"checkbox",input:!0,key:"disableLimit",label:"Disable limiting response",tooltip:"When enabled the request will not include the limit and skip options in the query string",weight:15,conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"textfield",input:!0,key:"searchField",label:"Search Query Name",weight:16,description:"Name of URL query parameter",tooltip:"The name of the search querystring parameter used when sending a request to filter results with. The server at the URL must handle this query parameter.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"searchDebounce",label:"Search request delay",weight:16,description:"The delay (in seconds) before the search request is sent.",tooltip:"The delay in seconds before the search request is sent, measured from the last character input in the search field.",validate:{min:0,customMessage:"",json:"",max:1},delimiter:!1,requireDecimal:!1,encrypted:!1,defaultValue:.3,conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"minSearch",weight:17,label:"Minimum Search Length",tooltip:"The minimum amount of characters they must type before a search is made.",defaultValue:0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"url"]},{"!=":[{var:"data.searchField"},""]}]}}},{type:"textfield",input:!0,key:"filter",label:"Filter Query",weight:18,description:"The filter query for results.",tooltip:"Use this to provide additional filtering using query parameters.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"textfield",input:!0,key:"sort",label:"Sort Query",weight:18,description:"The sort query for results",tooltip:"Use this to provide additional sorting using query parameters",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"limit",label:"Limit",weight:18,description:"Maximum number of items to view per page of results.",tooltip:"Use this to limit the number of items to request or view.",clearOnHide:!1,conditional:{json:{and:[{in:[{var:"data.dataSrc"},["url","resource"]]},{"!==":[{var:"data.disableLimit"},!0]}]}}},{type:"textarea",input:!0,key:"data.custom",label:"Custom Values",editor:"ace",rows:10,weight:14,placeholder:"values = data['mykey'] or values = Promise.resolve(['myValue'])",tooltip:"Write custom code to return the value options or a promise with value options. The form data object is available.",conditional:{json:{"===":[{var:"data.dataSrc"},"custom"]}}},{type:"select",input:!0,key:"refreshOn",label:"Refresh Options On",weight:19,tooltip:"Refresh data when another field changes.",dataSrc:"custom",valueProperty:"value",data:{custom:function(e){var n=[];return n.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,function(r,o){r.key!==e.data.key&&n.push({label:r.label||r.key,value:o})}),n}},conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values","custom"]]}}},{type:"select",input:!0,key:"refreshOnBlur",label:"Refresh Options On Blur",weight:19,tooltip:"Refresh data when another field is blured.",dataSrc:"custom",valueProperty:"value",data:{custom:function(e){var n=[];return n.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,function(r,o){r.key!==e.data.key&&n.push({label:r.label||r.key,value:o})}),n}},conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values"]]}}},{type:"checkbox",input:!0,weight:20,key:"clearOnRefresh",label:"Clear Value On Refresh Options",defaultValue:!1,tooltip:"When the Refresh On field is changed, clear this components value.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values","custom"]]}}},{type:"checkbox",input:!0,weight:21,key:"searchEnabled",label:"Enable Static Search",defaultValue:!0,tooltip:"When checked, the select dropdown will allow for searching within the static list of items provided."},{type:"checkbox",input:!0,weight:21,key:"noRefreshOnScroll",label:"Disable Options Refresh When Scrolling",defaultValue:!1,tooltip:"When checked, the select with search input won't perform new api requests when scrolling through the list of options.",conditional:{json:{and:[{in:[{var:"data.dataSrc"},["url","resource"]]},{"===":[{var:"data.searchEnabled"},!0]}]}}},{label:"Search Threshold",mask:!1,tableView:!0,alwaysEnabled:!1,type:"number",input:!0,key:"selectThreshold",validate:{min:0,customMessage:"",json:"",max:1}
vendor: 4,165 bytes, line 1
1,delimiter:!1,requireDecimal:!1,encrypted:!1,defaultValue:.3,weight:22,tooltip:"At what point does the match algorithm give up. A threshold of 0.0 requires a perfect match, a threshold of 1.0 would match anything."},{type:"checkbox",input:!0,weight:23,key:"addResource",label:"Add Resource",tooltip:"Allows to create a new resource while entering a submission.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",label:"Add Resource Label",key:"addResourceLabel",tooltip:"Set the text of the Add Resource button.",placeholder:"Add Resource",weight:24,input:!0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!!":{var:"data.addResource"}}]}}},{type:"checkbox",input:!0,weight:25,key:"reference",label:"Save as reference",tooltip:"Using this option will save this field as a reference and link its value to the value of the origin record.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"checkbox",input:!0,weight:27,key:"readOnlyValue",label:"Read Only Value",tooltip:"Check this if you would like to show just the value when in Read Only mode."},{type:"textarea",as:"json",editor:"ace",weight:28,input:!0,key:"customOptions",label:"Choices.js options",tooltip:"A raw JSON object to use as options for the Select component (Choices JS).",defaultValue:{}},{type:"checkbox",input:!0,weight:29,key:"useExactSearch",label:"Use exact search",tooltip:"Disables search algorithm threshold."}];n.default=i},38298:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"select",input:!0,weight:20,tooltip:"Select the type of widget you'd like to use.",key:"widget",defaultValue:"choicesjs",label:"Widget Type",dataSrc:"values",data:{values:[{label:"ChoicesJS",value:"choicesjs"},{label:"HTML 5",value:"html5"}]}},{weight:1230,type:"checkbox",label:"Unique Options",tooltip:"Display only unique dropdown options.",key:"uniqueOptions",input:!0}]},97340:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{weight:50,type:"checkbox",label:"Perform server validation of remote value",tooltip:"Check this if you would like for the server to perform a validation check to ensure the selected value is an available option. This requires a Search query to ensure a record is found.",key:"validate.select",input:!0,conditional:{json:{var:"data.searchField"}}},{weight:52,type:"checkbox",label:"Allow only available values",tooltip:"Check this if you would like to perform a validation check to ensure the selected value is an available option (only for synchronous values).",key:"validate.onlyAvailableItems",input:!0,conditional:{json:{in:[{var:"data.dataSrc"},["values","json","custom"]]}}}]},10630:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"data",components:[{key:"dataType",ignore:!0}]},{key:"validation",components:i.default}]].concat(n))},r(43001);var o=a(r(7358)),i=a(r(96892));function a(e){return e&&e.__esModule?e:{default:e}}},30488:function(e,n,r){"use strict";r(19169),r(77762),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(15469),r(30534),r(98197),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(34078),r(52315),r(17223),r(17943),r(1542),r(18036),r(73985),r(88455),r(32334),r(97172),r(76381),r(35968),r(24646),r(59012),r(12551),r(62089),r(98595),r(27846),r(9473),r(22818);var o=a(r(76635)),i=a(r(66341));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function u(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?l(Object(r),!0).forEach(function(n){s(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEac
1h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s(e,n,r){return(n=d(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}function d(e){var n=function(e,n){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==c(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===c(n)?n:String(n)}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=m(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(d,e);var n,r,a,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=m(d);return e=n?Reflect.construct(r,arguments,m(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===c(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=l.call.apply(l,[this].concat(r))).validators=e.validators.concat("minSelectedCount","maxSelectedCount","availableValueProperty"),e}return r=[{key:"init",value:function(){h(m(d.prototype),"init",this).call(this),this.component.inputType="checkbox"}},{key:"defaultSchema",get:function(){return d.schema()}},{key:"inputInfo",get:function(){var e=h(m(d.prototype),"elementInfo",this).call(this);return e.attr.name+="[]",e.attr.type="checkbox",e.attr.class="form-check-input",e}},{key:"emptyValue",get:function(){return this.component.values.reduce(function(e,n){return n.value&&(e[n.value]=!1),e},{})}},{key:"defaultValue",get:function(){var e=this.emptyValue;return o.default.isEmpty(this.component.defaultValue)||(e=this.component.defaultValue),this.component.customDefaultValue&&!this.options.preview&&(e=this.evaluate(this.component.customDefaultValue,{value:""},"value")),e}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue,n=!0;for(var r in e)if(e.hasOwnProperty(r)&&e[r]){n=!1;break}return n}},{key:"getValue",value:function(){if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var e={};return o.default.each(this.refs.input,function(n){e[n.value]=!!n.checked}),e}},{key:"normalizeValue",value:function(e){var n=this;"object"!==c(e=e||{})&&(e="string"==typeof e?s({},e,!0):{}),Array.isArray(e)&&o.default.each(e,function(n){e[n]=!0});var r=o.default.keys(o.default.pickBy(e,function(e){return e}));if(this.isSelectURL&&this.templateData&&o.default.every(r,function(e){return n.templateData[e]})){var i=this.root.submission;i.metadata.selectData||(i.metadata.selectData={});var a=[];r.forEach(function(e){return a.push(n.templateData[e])}),o.default.set(i.metadata.selectData,this.path,a)}return e}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
1,r=this.updateValue(e,n);return e=this.dataValue,this.isHtmlRenderMode()?r&&this.redraw():o.default.each(this.refs.input,function(n){o.default.isUndefined(e[n.value])&&(e[n.value]=!1),n.checked=!!e[n.value]}),r}},{key:"getValueAsString",value:function(e){return e?this.isSelectURL?(0,o.default)(e).pickBy(function(e){return e}).keys().join(", "):(0,o.default)(this.component.values||[]).filter(function(n){return e[n.value]}).map("label").join(", "):""}},{key:"setSelectedClasses",value:function(){var e=this;if(this.refs.wrapper){var n=this.dataValue,r=Object.keys(n);this.refs.wrapper.forEach(function(i,a){var l=r[a],u=e.refs.input[a];(null==u?void 0:u.value.toString())!==l&&(l=r.find(function(e){return(null==u?void 0:u.value.toString())===e}));var s=n[l];s&&l||e.isSelectURL&&!e.shouldLoad&&e.listData&&-1!==o.default.findIndex(e.selectData,e.listData[a])?(e.addClass(i,e.optionSelectedClass),u.setAttribute("checked","true")):!s&&l&&(e.removeClass(i,e.optionSelectedClass),u.removeAttribute("checked"))})}}},{key:"setInputsDisabled",value:function(e,n){this.refs.input&&this.refs.input.forEach(function(r){(!n||r.checked)&&n||(r.disabled=e)})}},{key:"checkComponentValidity",value:function(e,n,r,o){var i=this,a=this.component.validate.minSelectedCount,l=this.component.validate.maxSelectedCount,u=this.isValid(e,n);if((l||a)&&!this.shouldSkipValidation(e,n,r)){var s=Object.keys(this.validationValue).reduce(function(e,n){return i.validationValue[n]&&e++,e},0);if(l&&s>=l?this.setInputsDisabled(!0,!0):l&&!this.shouldDisabled&&this.setInputsDisabled(!1),!u&&l&&s>l){var c=this.t(this.component.maxSelectedCountMessage||"You can only select up to {{maxCount}} items.",{maxCount:l});return this.setCustomValidity(c,n),!1}if(!u&&a&&s<a){this.setInputsDisabled(!1);var f=this.t(this.component.minSelectedCountMessage||"You must select at least {{minCount}} items.",{minCount:a});return this.setCustomValidity(f,n),!1}}return h(m(d.prototype),"checkComponentValidity",this).call(this,e,n,r,o)}}],a=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.schema.apply(i.default,[{type:"selectboxes",label:"Select Boxes",key:"selectBoxes",inline:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Select Boxes",group:"basic",icon:"plus-square",weight:60,documentation:"/userguide/form-building/form-components#select-box",schema:d.schema()}}},{key:"serverConditionSettings",get:function(){return u(u({},h(m(d),"serverConditionSettings",this)),{},{valueComponent:function(e){return{type:"select",dataSrc:"custom",valueProperty:"value",valueType:"string",data:{custom:"values = ".concat(e&&e.values?JSON.stringify(e.values):[])}}}})}}],r&&f(d.prototype,r),a&&f(d,a),Object.defineProperty(d,"prototype",{writable:!1}),d}(i.default);n.default=y},96892:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"number",input:!0,key:"validate.minSelectedCount",label:"Minimum checked number",tooltip:"Minimum checkboxes required before form can be submitted.",weight:250},{type:"number",input:!0,key:"validate.maxSelectedCount",label:"Maximum checked number",tooltip:"Maximum checkboxes possible before form can be submitted.",weight:250},{type:"textfield",input:!0,key:"minSelectedCountMessage",label:"Minimum checked error message",tooltip:"Error message displayed if minimum number of items not checked.",weight:250},{type:"textfield",input:!0,key:"maxSelectedCountMessage",label:"Maximum checked error message",tooltip:"Error message displayed if maximum number of items checked.",weight:250}]},14358:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:a.default},{key:"data",components:i.default},{key:"validation",components:l.default}]].concat(n))},r(43001);var o=u(r(6296)),i=u(r(43063)),a=u(r(36624)),l=u(r(5617));function u(e){return e&&e.__esModule?e:{default:e}}},69965:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(24646),r(35968),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(75162),r(9473),r(43001),r(27846),r(22818);var i=s(r(54700)),a=s(r(97209)),l=s(r(49974)),u=s(r(76635));
1function s(e){return e&&e.__esModule?e:{default:e}}function c(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function f(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?c(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=p(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,p(o.key),o)}}function p(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function h(){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=y(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function m(e,n){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&m(e,n)}(p,e);var n,r,s,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=y(p);return e=n?Reflect.construct(r,arguments,y(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p),c.apply(this,arguments)}return r=[{key:"init",value:function(){var e,n,r,o,i;h(y(p.prototype),"init",this).call(this),this.currentWidth=0,this.scale=1,this.component.width||(this.component.width="100%"),this.component.height||(this.component.height="200px"),this.component.keepOverlayRatio&&(null===(e=this.options)||void 0===e?void 0:e.display)==="pdf"&&null!==(n=this.component.overlay)&&void 0!==n&&n.width&&null!==(r=this.component.overlay)&&void 0!==r&&r.height&&(this.ratio=(null===(o=this.component.overlay)||void 0===o?void 0:o.width)/(null===(i=this.component.overlay)||void 0===i?void 0:i.height),this.component.width="100%",this.component.height="auto")}},{key:"emptyValue",get:function(){return""}},{key:"defaultSchema",get:function(){return p.schema()}},{key:"inputInfo",get:function(){var e=h(y(p.prototype),"inputInfo",this);return e.type="input",e.attr.type="hidden",e}},{key:"className",get:function(){return"".concat(h(y(p.prototype),"className",this)," signature-pad")}},{key:"labelIsHidden",value:function(){return this.component.hideLabel}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=h(y(p.prototype),"setValue",this).call(this,e,n);return this.refs.signatureImage&&(this.options.readOnly||this.disabled)&&(this.refs.signatureImage.setAttribute("src",e),this.showCanvas(!1)),this.signaturePad&&(e?r&&this.triggerChange():this.signaturePad.clear()),this.signaturePad&&this.dataValue&&this.signaturePad.isEmpty()&&this.setDataToSigaturePad(),r}},{key:"showCanvas",value:function(e){e?(this.refs.canvas&&(this.refs.canvas.style.display="inherit"),this.refs.signatureImage&&(this.refs.signatureImage.style.display="none")):(this.refs.canvas&&(this.refs.canvas.style.display="none"),this.refs.signatureImage&&(this.refs.signatureImage.style.display="inherit",this.refs.signatureImage.style.maxHeight="100%"))}},{key:"onDisabled",value:function(){this.showCanvas(!h(y(p.prototype),"disabled",this)),this.signaturePad&&(h(y(p.prototype),"disabled",this)?(this.signaturePad.off(),this.refs.refresh&&this.refs.refresh.classList.add("disabled"),this.refs.signatureImage&&this.dataValue&&this.refs.signatureImage.setAttribute("src",this.dataValue)):(this.signaturePad.on(),this.refs.refresh&&this.refs.refresh.classList.remove("disabled")))}},{key:"checkSize",value:function(e,n){if(this.refs.padBody&&(e||this.refs.padBody&&this.refs.padBody.offsetWidth!==this.currentWidth)){this.scale=e?n:this.scale,this.currentWidth=this.refs.padBody.offsetWidth;var r=this.currentWidth*this.scale,o=this.ratio?r/this.ratio:this.refs.padBody.offsetHeight*this.scale,i=this.ratio?o:this.refs.padBody.offsetHeight*this.scale;this.refs.canvas.width=r,this.refs.canvas.height=o>
vendor: 4,895 bytes, line 1
1i?i:o,this.refs.canvas.style.maxWidth="".concat(this.currentWidth*this.scale,"px"),this.refs.canvas.style.maxHeight="".concat(i,"px");var a=this.refs.canvas.getContext("2d");a.setTransform(1,0,0,1,0,0),a.scale(1/this.scale,1/this.scale),a.fillStyle=this.signaturePad.backgroundColor,a.fillRect(0,0,this.refs.canvas.width,this.refs.canvas.height),this.signaturePad.clear(),this.dataValue&&this.setDataToSigaturePad(),this.showCanvas(!0)}}},{key:"renderElement",value:function(e,n){return this.renderTemplate("signature",{element:h(y(p.prototype),"renderElement",this).call(this,e,n),required:u.default.get(this.component,"validate.required",!1)})}},{key:"hasModalSaveButton",get:function(){return!1}},{key:"getModalPreviewTemplate",value:function(){return this.renderTemplate("modalPreview",{previewText:this.dataValue?"<img src=".concat(this.dataValue," ref='openModal' style=\"width: 100%;height: 100%;\" />"):this.t("Click to Sign")})}},{key:"attach",value:function(e){var n=this;this.loadRefs(e,{canvas:"single",refresh:"single",padBody:"single",signatureImage:"single"});var r=h(y(p.prototype),"attach",this).call(this,e);return this.refs.refresh&&this.options.readOnly&&this.refs.refresh.classList.add("disabled"),this.refs.canvas&&(this.signaturePad=new i.default(this.refs.canvas,{minWidth:this.component.minWidth,maxWidth:this.component.maxWidth,penColor:this.component.penColor,backgroundColor:this.component.backgroundColor}),this.signaturePad.addEventListener("endStroke",function(){return n.setValue(n.signaturePad.toDataURL())}),this.refs.signatureImage.setAttribute("src",this.signaturePad.toDataURL()),this.onDisabled(),this.refs.padBody&&(this.refs.padBody.style.maxWidth||(this.refs.padBody.style.maxWidth="100%"),this.builderMode||this.options.preview||(this.observer=new a.default(function(){n.checkSize()}),this.observer.observe(this.refs.padBody)),this.addEventListener(window,"resize",u.default.debounce(function(){return n.checkSize()},10)),setTimeout((function e(){this.refs.padBody&&this.refs.padBody.offsetWidth?this.checkSize():setTimeout(e.bind(this),20)}).bind(this),20))),this.addEventListener(this.refs.refresh,"click",function(e){e.preventDefault(),n.showCanvas(!0),n.signaturePad.clear(),n.setValue(n.defaultValue)}),this.setValue(this.dataValue),r}},{key:"detach",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.signaturePad&&this.signaturePad.off(),this.signaturePad=null,this.currentWidth=0,h(y(p.prototype),"detach",this).call(this)}},{key:"getValueAsString",value:function(e){return u.default.isUndefined(e)&&this.inDataTable?"":e?"Yes":"No"}},{key:"focus",value:function(){this.refs.padBody.focus()}},{key:"setDataToSigaturePad",value:function(){this.signaturePad.fromDataURL(this.dataValue,{ratio:1,width:this.refs.canvas.width,height:this.refs.canvas.height})}}],s=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return l.default.schema.apply(l.default,[{type:"signature",label:"Signature",key:"signature",footer:"Sign above",width:"100%",height:"150px",penColor:"black",backgroundColor:"rgb(245,245,235)",minWidth:"0.5",maxWidth:"2.5",keepOverlayRatio:!0}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Signature",group:"advanced",icon:"pencil",weight:120,documentation:"/developers/integrations/esign/esign-integrations#signature-component",schema:p.schema()}}},{key:"serverConditionSettings",get:function(){return f(f({},h(y(p),"serverConditionSettings",this)),{},{operators:["isEmpty","isNotEmpty"]})}}],r&&d(p.prototype,r),s&&d(p,s),Object.defineProperty(p,"prototype",{writable:!1}),p}(l.default);n.default=v},43063:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0},{key:"dbIndex",ignore:!0}]},36624:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"textfield",input:!0,key:"footer",label:"Footer Label",tooltip:"The footer text that appears below the signature area.",placeholder:"Footer Label",weight:10},{type:"textfield",input:!0,key:"width",label:"Width",tooltip:"The width of the signature area.",placeholder:"Width",conditional:{json:{"!":[{var:"data.keepOverlayRatio"}]}},weight:50},{type:"textfield",input:!0,key:"height",label:"Height",tooltip:"The height of the signature area.",placeholder:"Height",conditional:{json:{"!":[{var:"data.keepOverlayRatio"}]}},weight:51},{weight:52,type:"checkbox",label:"Keep Overlay Aspect Ratio",tooltip:"If checked, the field will have the same aspect ratio as its preview.",key:"keepOverlayRatio",customConditional:function(e){var n,r=e.options;return(null==r?void 0:null===(n=r.editForm)||void 0===n?void 0:n.display)==="pdf"},input:!0},{type:"textfield",input:!0,key:"backgroundColor",label:"Backgroun
1d Color",tooltip:"The background color of the signature area.",placeholder:"Background Color",weight:52},{type:"textfield",input:!0,key:"penColor",label:"Pen Color",tooltip:"The ink color for the signature area.",placeholder:"Pen Color",weight:53},{key:"placeholder",ignore:!0},{key:"autofocus",ignore:!0}]},5617:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"unique",ignore:!0},{key:"validateOn",ignore:!0}]},57223:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:a.default},{key:"data",components:i.default},{key:"validation",components:l.default}]].concat(n))},r(43001);var o=u(r(6296)),i=u(r(85222)),a=u(r(39850)),l=u(r(9865));function u(e){return e&&e.__esModule?e:{default:e}}},96200:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(26981),r(24646),r(35968),r(30534),r(98197),r(11102),r(15469),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(88455),r(17223),r(32334),r(34078),r(92100),r(17943),r(1542),r(52315),r(43001),r(62089),r(27846),r(9473),r(22818);var i=u(r(76635)),a=u(r(70362)),l=r(9494);function u(e){return e&&e.__esModule?e:{default:e}}function s(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function c(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?s(Object(r),!0).forEach(function(n){p(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function d(e,n,r,o){return(d="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=y(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else p(o,n,r);return!0})(e,n,r,o)}function p(e,n,r){return(n=h(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function h(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function m(){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=y(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function y(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=b(e)););return e}function v(e,n){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&v(e,n)}(p,e);var n,r,u,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=b(p);return e=n?Reflect.construct(r,arguments,b(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p),s.apply(this,arguments)}return r=[{key:"defaultSchema",get:function(){return p.schema()}},{key:"render",value:function(){return m(b(p.prototype),"render",this).call(this,this.renderTemplate("survey"))}},{key:"attach",value:function(e){var n=this;
1this.loadRefs(e,{input:"multiple"});var r=m(b(p.prototype),"attach",this).call(this,e);return this.refs.input.forEach(function(e){n.disabled?e.setAttribute("disabled","disabled"):n.addEventListener(e,"change",function(){return n.updateValue(null,{modified:!0})})}),this.setValue(this.dataValue),r}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;i.default.each(this.component.questions,function(r){i.default.each(n.refs.input,function(o){o.name===n.getInputName(r)&&(o.checked=o.value===e[r.value])})});var o=this.updateValue(e,r);return o&&this.isHtmlRenderMode()&&this.redraw(),o}},{key:"emptyValue",get:function(){return{}}},{key:"defaultValue",get:function(){var e=m(b(p.prototype),"defaultValue",this);if(e&&!i.default.isObject(e)&&this.component.values.some(function(n){return n.value===e})){var n={};return this.component.questions.forEach(function(r){n[r.value]=e}),n}return e}},{key:"getValue",value:function(){var e=this;if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var n={};return i.default.each(this.component.questions,function(r){i.default.each(e.refs.input,function(o){if(o.checked&&o.name===e.getInputName(r))return n[r.value]=o.value,!1})}),n}},{key:"disabled",get:function(){return m(b(p.prototype),"disabled",this)},set:function(e){(function(e,n,r,o,i){if(!d(e,n,r,o||e)&&i)throw Error("failed to set property")})(b(p.prototype),"disabled",e,this,!0),i.default.each(this.refs.input,function(e){e.disabled=!0})}},{key:"validateRequired",value:function(e,n){return!(0,l.boolValue)(e)||this.component.questions.reduce(function(e,r){return e&&!!n[r.value]},!0)}},{key:"getInputName",value:function(e){return"".concat(this.options.name,"[").concat(e.value,"]")}},{key:"getValueAsString",value:function(e,n){var r=this;if(null!=n&&n.email){var o='\n <table border="1" style="width:100%">\n <thead>\n <tr>\n <th>Question</th>\n <th>Value</th>\n </tr>\n </thead>\n <tbody>\n ';return i.default.forIn(e,function(e,n){var a=i.default.find(r.component.questions,["value",n]),l=i.default.find(r.component.values,["value",e]);a&&l&&(o+='\n <tr>\n <td style="text-align:center;padding: 5px 10px;">'.concat(a.label,'</td>\n <td style="text-align:center;padding: 5px 10px;">').concat(l.label,"</td>\n </tr>\n "))}),o+="</tbody></table>"}return m(b(p.prototype),"getValueAsString",this).call(this,e,n)}}],u=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"survey",label:"Survey",key:"survey",questions:[],values:[]}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Survey",group:"advanced",icon:"list",weight:110,documentation:"/userguide/form-building/advanced-components#survey",schema:p.schema()}}},{key:"serverConditionSettings",get:function(){return c(c({},m(b(p),"serverConditionSettings",this)),{},{operators:["isEmpty","isNotEmpty"]})}}],r&&f(p.prototype,r),u&&f(p,u),Object.defineProperty(p,"prototype",{writable:!1}),p}(a.default);n.default=g},85222:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0},{type:"datagrid",input:!0,label:"Questions",key:"questions",tooltip:"The questions you would like to ask in this survey question.",weight:0,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}},{label:"Tooltip",key:"tooltip",input:!0,type:"textfield"}]},{type:"datagrid",input:!0,label:"Values",key:"values",tooltip:"The values that can be selected per question. Example: 'Satisfied', 'Very Satisfied', etc.",weight:1,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}},{label:"Tooltip",key:"tooltip",input:!0,type:"textfield"}]}]},39850:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"placeholder",ignore:!0}]},9865:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"validateOn",ignore:!0}]},63577:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default}]].concat(n))},r(43001);var o=a(r(28600)),i=a(r(43452));
1function a(e){return e&&e.__esModule?e:{default:e}}},11486:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(19169),r(77762),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(24646),r(35968),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(59012),r(17223),r(12551),r(30902),r(76381),r(52315),r(88455),r(32334),r(27846),r(9473),r(22818);var i=u(r(76635)),a=u(r(65319)),l=u(r(21645));function u(e){return e&&e.__esModule?e:{default:e}}function s(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function c(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?s(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=d(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}function d(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=m(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(d,e);var n,r,u,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=m(d);return e=n?Reflect.construct(r,arguments,m(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=s.call.apply(s,[this].concat(r))).noField=!0,e}return r=[{key:"defaultSchema",get:function(){return d.schema()}},{key:"schema",get:function(){var e=this,n=i.default.omit(h(m(d.prototype),"schema",this),"components");return n.rows=[],this.eachComponent(function(r){n.rows&&n.rows.length||(n.rows=d.emptyTable(e.component.numRows,e.component.numCols)),n.rows[r.tableRow]||(n.rows[r.tableRow]=[]),n.rows[r.tableRow][r.tableColumn]||(n.rows[r.tableRow][r.column]={components:[]}),n.rows[r.tableRow][r.tableColumn].components.push(r.schema)}),n.rows.length||(n.rows=d.emptyTable(this.component.numRows,this.component.numCols)),n}},{key:"className",get:function(){var e="table-responsive ".concat(h(m(d.prototype),"className",this));return this.component.bordered||(e+=" no-top-border-table"),e}},{key:"cellClassName",get:function(){var e="";return this.component.cellAlignment&&(e="cell-align-".concat(this.component.cellAlignment)),e}},{key:"tableKey",get:function(){return"table-".concat(this.key)}},{key:"colWidth",get:function(){var e=this.component.numCols;return e&&"number"==typeof e?Math.floor(12/e).toString():""}},{key:"init",value:function(){var e=this;h(m(d.prototype),"init",this).call(this);for(var n=0;n<this.component.numRows;n++){this.component.rows[n]=this.component.rows[n]||[];for(var r=0;r<this.component.numCols;r++)this.component.rows[n][r]=this.component.rows[n][r]||{components:[]};this.component.rows[n]=this.component.rows[n].slice(0,this.component.numCols)}this.component.rows=this.component.rows.slice(0,this.component.numRows);var o=[];this.table=[],i.default.each(this.component.rows,function(n,r){e.table[r]=[],i.default.each(n,function(n,l){e.table[r][l]=[],e.component.cloneRows&&(n.components.length?o[l]=n:o[l]&&(n.components=i.default.cloneDeep(o[l].components),a.default.uniquify(e.root._form.components,n))),i.default.each(n.components,function(n){e.builderMode?(n.id=n.id+r,o=n):o=c(c({},n),{},{id:n.id+r});var o,i=e.createComponent(o);
vendor: 4,263 bytes, line 1
1i.tableRow=r,i.tableColumn=l,e.table[r][l].push(i)})})})}},{key:"render",value:function(){var e=this;return h(m(d.prototype),"render",this).call(this,this.renderTemplate("table",{cellClassName:this.cellClassName,tableKey:this.tableKey,colWidth:this.colWidth,tableComponents:this.table.map(function(n){return n.map(function(n){return e.renderComponents(n)})})}))}},{key:"attach",value:function(e){var n=this,r=this.table.reduce(function(e,r,o){return e["".concat(n.tableKey,"-").concat(o)]="multiple",e},{});this.loadRefs(e,r);var o=h(m(d.prototype),"attach",this).call(this,e);return this.table.forEach(function(e,r){e.forEach(function(e,o){n.attachComponents(n.refs["".concat(n.tableKey,"-").concat(r)][o],n.table[r][o],n.component.rows[r][o].components)})}),o}},{key:"destroy",value:function(e){h(m(d.prototype),"destroy",this).call(this,e),delete this.table}}],u=[{key:"emptyTable",value:function(e,n){for(var r=[],o=0;o<e;o++){for(var i=[],a=0;a<n;a++)i.push({components:[]});r.push(i)}return r}},{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return l.default.schema.apply(l.default,[{label:"Table",type:"table",input:!1,key:"table",numRows:3,numCols:3,rows:d.emptyTable(3,3),header:[],caption:"",cloneRows:!1,striped:!1,bordered:!1,hover:!1,condensed:!1,persistent:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Table",group:"layout",icon:"table",weight:40,documentation:"/userguide/form-building/layout-components#table",showPreview:!1,schema:d.schema()}}}],r&&f(d.prototype,r),u&&f(d,u),Object.defineProperty(d,"prototype",{writable:!1}),d}(l.default);n.default=y},43452:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{type:"number",label:"Number of Rows",key:"numRows",input:!0,weight:1,placeholder:"Number of Rows",tooltip:"Enter the number or rows that should be displayed by this table."},{type:"number",label:"Number of Columns",key:"numCols",input:!0,weight:2,placeholder:"Number of Columns",tooltip:"Enter the number or columns that should be displayed by this table."},{type:"checkbox",label:"Clone Row Components",key:"cloneRows",input:!0,weight:3,tooltip:"Check this if you would like to 'clone' the first row of components to all additional empty rows of the table."},{type:"select",label:"Cell Alignment",key:"cellAlignment",input:!0,tooltip:"Horizontal alignment for cells of the table.",dataSrc:"values",data:{values:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}]},defaultValue:"left",weight:3},{type:"checkbox",label:"Striped",key:"striped",tooltip:"This will stripe the table if checked.",input:!0,weight:701},{type:"checkbox",label:"Bordered",key:"bordered",input:!0,tooltip:"This will border the table if checked.",weight:702},{type:"checkbox",label:"Hover",key:"hover",input:!0,tooltip:"Highlight a row on hover.",weight:703},{type:"checkbox",label:"Condensed",key:"condensed",input:!0,tooltip:"Condense the size of the table.",weight:704}]},43261:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default}]].concat(n))},r(43001);var o=a(r(28600)),i=a(r(68463));function a(e){return e&&e.__esModule?e:{default:e}}},90519:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(19169),r(77762),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),r(12083),r(30902),r(34078),r(5746),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(76381),r(88455),r(17223),r(9473),r(32334),r(98595),r(92100),r(18036),r(52315),r(35968),r(28121),r(83972),r(27846),r(22818);
1var i=l(r(76635)),a=l(r(21645));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return s(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function c(e,n,r){return(n=d(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function f(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}function d(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function h(){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=m(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(d,e);var n,r,l,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=m(d);return e=n?Reflect.construct(r,arguments,m(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=s.call.apply(s,[this].concat(r))).currentTab=0,e.noField=!0,e}return r=[{key:"defaultSchema",get:function(){return d.schema()}},{key:"schema",get:function(){var e=this,n=h(m(d.prototype),"schema",this),r=i.default.cloneDeep(this.component.components);return n.components=r.map(function(n,r){return n.components=e.tabs[r].map(function(e){return e.schema}),n}),n}},{key:"tabKey",get:function(){return"tab-".concat(this.key)}},{key:"tabLikey",get:function(){return"tabLi-".concat(this.key)}},{key:"tabLinkKey",get:function(){return"tabLink-".concat(this.key)}},{key:"init",value:function(){var e=this;this.components=[],this.tabs=[],i.default.each(this.component.components,function(n,r){e.tabs[r]=[],n.components=n.components||[],i.default.each(n.components,function(n){var o=e.createComponent(n);o.tab=r,e.tabs[r].push(o)})})}},{key:"render",value:function(){var e=this;return h(m(d.prototype),"render",this).call(this,this.renderTemplate("tab",{tabKey:this.tabKey,tabLikey:this.tabLikey,tabLinkKey:this.tabLinkKey,currentTab:this.currentTab,tabComponents:this.tabs.map(function(n){return e.renderComponents(n)})},this.options.flatten||this.options.pdf?"flat":null))}},{key:"attach",value:function(e){var n,r=this;this.loadRefs(e,(c(n={},this.tabLinkKey,"multiple"),c(n,this.tabKey,"multiple"),c(n,this.tabLikey,"multiple"),n)),["change","error"].forEach(function(e){return r.on(e,r.handleTabsValidation.bind(r))});var o=h(m(d.prototype),"attach",this).call(this,e);
1return this.refs[this.tabLinkKey].forEach(function(e,n){r.addEventListener(e,"click",function(e){e.preventDefault(),r.setTab(n)})}),this.refs[this.tabKey].forEach(function(e,n){r.attachComponents(e,r.tabs[n],r.component.components[n].components)}),o}},{key:"detach",value:function(e){h(m(d.prototype),"detach",this).call(this,e)}},{key:"setTab",value:function(e){var n=this;this.tabs&&this.tabs[e]&&this.refs[this.tabKey]&&this.refs[this.tabKey][e]&&(this.currentTab=e,i.default.each(this.refs[this.tabKey],function(e){n.removeClass(e,"formio-tab-panel-active"),e.style.display="none"}),this.addClass(this.refs[this.tabKey][e],"formio-tab-panel-active"),this.refs[this.tabKey][e].style.display="block",i.default.each(this.refs[this.tabLinkKey],function(e,r){n.refs[n.tabLinkKey][r]&&n.removeClass(e,"formio-tab-link-active"),n.refs[n.tabLikey][r]&&n.removeClass(n.refs[n.tabLikey][r],"formio-tab-link-container-active")}),this.refs[this.tabLikey][e]&&this.addClass(this.refs[this.tabLikey][e],"formio-tab-link-container-active"),this.refs[this.tabLinkKey][e]&&this.addClass(this.refs[this.tabLinkKey][e],"formio-tab-link-active"),this.triggerChange())}},{key:"beforeFocus",value:function(e){"beforeFocus"in this.parent&&this.parent.beforeFocus(this);var n=this.tabs.findIndex(function(n){return n.some(function(n){return n===e})});-1!==n&&this.currentTab!==n&&this.setTab(n)}},{key:"setErrorClasses",value:function(e,n,r,o){var i=this,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.element;this.component.modalEdit&&h(m(d.prototype),"setErrorClasses",this).call(this,e,n,r,o,a),e.forEach(function(e){i.addClass(e,"is-invalid"),"openModal"!==e.getAttribute("ref")&&(i.options.highlightErrors?i.addClass(e,"tab-error"):i.addClass(e,"has-error"))})}},{key:"clearErrorClasses",value:function(e){var n=this;if(!this.options.server&&this.rendered){if(this.component.modalEdit){var r=Array.isArray(e)||e instanceof NodeList?this.element:e;h(m(d.prototype),"clearErrorClasses",this).call(this,r)}(e=Array.isArray(e)||e instanceof NodeList?e:[e]).forEach(function(e){n.removeClass(e,"is-invalid"),n.removeClass(e,"tab-error"),n.removeClass(e,"has-error")})}}},{key:"handleTabsValidation",value:function(){if(this.refs[this.tabLinkKey]&&this.refs[this.tabLinkKey].length&&this.tabs.length){this.clearErrorClasses(this.refs[this.tabLinkKey]);var e=this.tabs.reduce(function(e,n,r){return n.some(function(e){return!!e.error})?[].concat(u(e),[r]):e},[]);if(e.length){var n=u(this.refs[this.tabLinkKey]).filter(function(n,r){return e.includes(r)});this.setErrorClasses(n)}}}}],l=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{label:"Tabs",type:"tabs",input:!1,key:"tabs",persistent:!1,tableView:!1,components:[{label:"Tab 1",key:"tab1",components:[]}],verticalLayout:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Tabs",group:"layout",icon:"folder-o",weight:50,documentation:"/userguide/form-building/layout-components#tabs",showPreview:!1,schema:d.schema()}}}],r&&f(d.prototype,r),l&&f(d,l),Object.defineProperty(d,"prototype",{writable:!1}),d}(a.default);n.default=y},68463:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{key:"components",type:"datagrid",input:!0,label:"Tabs",weight:50,reorder:!0,components:[{type:"textfield",input:!0,key:"label",label:"Label"},{type:"textfield",input:!0,key:"key",label:"Key",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}}]},{weight:1100,type:"checkbox",label:"Vertical Layout",tooltip:"Make this field display in vertical orientation.",key:"verticalLayout",input:!0}]},74226:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];
1return o.default.baseEditForm.apply(o.default,[[{key:"data",components:i.default}]].concat(n))},r(43001);var o=a(r(6296)),i=a(r(75652));function a(e){return e&&e.__esModule?e:{default:e}}},41558:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(26981),r(24646),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),r(12083),r(30902),r(34078),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(92100),r(17223),r(50703),r(18036),r(97172),r(35968),r(5746),r(57184),r(76381),r(59012),r(12551),r(43001),r(27846),r(9473),r(22818);var i,a,l=(i=r(49974))&&i.__esModule?i:{default:i};function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function s(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function c(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?s(Object(r),!0).forEach(function(n){p(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function d(e,n,r,o){return(d="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=y(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else p(o,n,r);return!0})(e,n,r,o)}function p(e,n,r){return(n=h(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function h(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function m(){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=y(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function y(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=b(e)););return e}function v(e,n){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}"undefined"!=typeof window&&(a=r(18631));var g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&v(e,n)}(p,e);var n,r,i,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=b(p);return e=n?Reflect.construct(r,arguments,b(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p),s.apply(this,arguments)}return r=[{key:"init",value:function(){m(b(p.prototype),"init",this).call(this)}},{key:"emptyValue",get:function(){return"string"===this.component.storeas?"":[]}},{key:"defaultSchema",get:function(){return p.schema()}},{key:"inputInfo",get:function(){var e=m(b(p.prototype),"inputInfo",this);return e.type="input",e.attr.type="text",e.changeEvent="change",e}},{key:"delimiter",get:function(){return this.component.delimeter||","}},{key:"attachElement",value:function(e,n){var r=this;if(m(b(p.prototype),"attachElement",this).call(this,e,n),e&&(e.setAttribute("dir",this.i18next.dir()),this.choices&&this.choices.destroy(),a)){var o=!!this.component.placeholder;this.choices=new a(e,{delimiter:this.delimiter,editItems:!0,allowHTML:!0,maxItemCount:this.component.maxTags,removeItemButton:!0,duplicateItemsAllowed:!1,shadowRoot:this.root?this.root.shadowRoot:null,placeholder:o,placeholderValue:o?this.t(this.component.placeholder,{_userInput:!0}):null}),this.choices.itemList.element.tabIndex=e.tabIndex,this.addEventListener(this.choices.input.element,"blur",function(){var e=r.choices.input.value,n=r.component.maxTags,o=r.choices.getValue(!0).length,i=r.choices.getValue(!0).some(function(n){return n.trim()===e.trim()});e&&(n&&o===n?(r.choices.addItems=!1,r.choices.clearInput()):i?r.choices.clearInput():(r.choices.setValue([e]),r.choices.clearInput(),r.choices.hideDropdown(!0),r.updateValue(null,{modified:!0})))})}}},{key:"detach",value:function(){m(b(p.prototype),"detach",this).call(this),this.choices&&(this.choices.destroy(),this.choices=null)}},{key:"normalizeValue",value:function(e){return"string"===this.component.storeas&&Array.isArray(e)?e.join(this.delimiter):"array"===this.component.storeas&&"string"==typeof e?e.split(this.delimiter).filter(function(e){return e}):e}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=m(b(p.prototype),"setValue",this).call(this,e,r);if(this.choices){var i=this.dataValue;if(this.choices.removeActiveItems(),i){"string"==typeof i&&(i=i.split(this.delimiter).filter(function(e){return e}));var a=Array.isArray(i)?i:[i];this.choices.setValue(a.map(function(e){return n.sanitize(e,n.shouldSanitizeV
1alue)}))}}return o}},{key:"disabled",get:function(){return m(b(p.prototype),"disabled",this)},set:function(e){(function(e,n,r,o,i){if(!d(e,n,r,o||e)&&i)throw Error("failed to set property")})(b(p.prototype),"disabled",e,this,!0),this.choices&&(e?this.choices.disable():this.choices.enable())}},{key:"focus",value:function(){this.refs.input&&this.refs.input.length&&this.refs.input[0].parentNode.lastChild.focus()}},{key:"getValueAsString",value:function(e){if(!e)return"";if(Array.isArray(e))return e.join("".concat(this.delimiter||","," "));var n=e.toString();return this.sanitize(n,this.shouldSanitizeValue)}}],i=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return l.default.schema.apply(l.default,[{type:"tags",label:"Tags",key:"tags",delimeter:",",storeas:"string",maxTags:0}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Tags",icon:"tags",group:"advanced",documentation:"/userguide/form-building/advanced-components#tags",weight:30,schema:p.schema()}}},{key:"serverConditionSettings",get:function(){var e;return c(c({},m(b(p),"serverConditionSettings",this)),{},{operators:[].concat(function(e){if(Array.isArray(e))return u(e)}(e=m(b(p),"serverConditionSettings",this).operators)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return u(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),["includes","notIncludes"])})}}],r&&f(p.prototype,r),i&&f(p,i),Object.defineProperty(p,"prototype",{writable:!1}),p}(l.default);n.default=g},75652:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0},{weight:20,type:"textfield",input:!0,key:"delimeter",label:"Delimiter",tooltip:"What is used to separate the tags.</a>"},{weight:22,type:"number",input:!0,key:"maxTags",label:"Max Tags",defaultValue:0,tooltip:"The maximum amount of tags that can be added. 0 for infinity."},{weight:24,type:"select",input:!0,key:"storeas",label:"Store As",dataSrc:"values",data:{values:[{label:"String (CSV)",value:"string"},{label:"Array of Tags",value:"array"}]}}]},76180:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default},{key:"validation",components:a.default}]].concat(n))},r(43001);var o=l(r(80736)),i=l(r(31586)),a=l(r(75998));function l(e){return e&&e.__esModule?e:{default:e}}},97994:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18036),r(43001),r(28818),r(34078),r(76381),r(88455),r(17223),r(87425),r(41126),r(5746),r(12551),r(6588),r(32334),r(27846),r(9473),r(22818);var i=s(r(93290)),a=s(r(76635)),l=s(r(18947)),u=r(9494);function s(e){return e&&e.__esModule?e:{default:e}}function c(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=p(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}
1function d(e,n){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&d(e,n)}(m,e);var n,r,s,h=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=p(m);return e=n?Reflect.construct(r,arguments,p(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function m(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,m),h.apply(this,arguments)}return r=[{key:"init",value:function(){f(p(m.prototype),"init",this).call(this),this.editors=[],this.editorsReady=[],this.updateSizes=[],this.options.submitOnEnter=!1}},{key:"defaultSchema",get:function(){return m.schema()}},{key:"inputInfo",get:function(){var e=f(p(m.prototype),"inputInfo",this);return e.type=this.component.wysiwyg?"div":"textarea",this.component.rows&&(e.attr.rows=this.component.rows),e}},{key:"validateMultiple",value:function(){return!this.isJsonValue}},{key:"renderElement",value:function(e,n){var r=this.inputInfo;if(r.attr=r.attr||{},r.content=e,(this.options.readOnly||this.disabled)&&!this.isHtmlRenderMode()){var o=this.info.attr.style||"";return this.renderTemplate("well",{children:'<div ref="input" class="formio-editor-read-only-content" '.concat(o?"style='".concat(o,"'"):"","></div>"),nestedKey:this.key,value:e})}return this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:r,value:e,index:n})}},{key:"autoExpand",get:function(){return this.component.autoExpand}}
1,{key:"updateEditorValue",value:function(e,n){n=this.getConvertedValue(this.trimBlanks(n));var r=this.dataValue;if(this.component.multiple&&Array.isArray(r)){var o=a.default.clone(r);o[e]=n,n=o}a.default.isEqual(n,r)||a.default.isEmpty(n)&&a.default.isEmpty(r)||this.updateValue(n,{modified:!this.autoModified},e),this.autoModified=!1}},{key:"attachElement",value:function(e,n){var r=this;if(this.autoExpand&&(this.isPlain||this.options.readOnly||this.options.htmlView)&&"TEXTAREA"===e.nodeName&&this.addAutoExpanding(e,n),this.options.readOnly)return e;this.component.wysiwyg&&!this.component.editor&&(this.component.editor="ckeditor");var o=a.default.isEmpty(this.component.wysiwyg)?this.wysiwygDefault[this.component.editor]||this.wysiwygDefault.default:this.component.wysiwyg;return this.editorsReady[n]=new l.default(function(i){switch(r.component.editor){case"ace":o||(o={}),o.mode=r.component.as?"ace/mode/".concat(r.component.as):"ace/mode/javascript",r.addAce(e,o,function(e){return r.updateEditorValue(n,e)}).then(function(e){r.editors[n]=e;var o=r.dataValue;return o=r.component.multiple&&Array.isArray(o)?o[n]:o,e.setValue(r.setConvertedValue(o,n)),i(e),e}).catch(function(e){return console.warn(e)});break;case"quill":(o.hasOwnProperty("toolbarGroups")||o.hasOwnProperty("toolbar"))&&(console.warn("The WYSIWYG settings are configured for CKEditor. For this renderer, you will need to use configurations for the Quill Editor. See https://quilljs.com/docs/configuration for more information."),o=r.wysiwygDefault.quill),r.addQuill(e,o,function(){return r.updateEditorValue(n,r.editors[n].root.innerHTML)}).then(function(e){r.editors[n]=e,r.component.isUploadEnabled&&(e.getModule("uploader").options.handler=function(){for(var e,n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];(e=r.imageHandler).call.apply(e,[r,this].concat(o))}),e.root.spellcheck=r.component.spellcheck,(r.options.readOnly||r.disabled)&&e.disable();var o=r.dataValue;return o=r.component.multiple&&Array.isArray(o)?o[n]:o,e.setContents(e.clipboard.convert({html:r.setConvertedValue(o,n)})),i(e),e}).catch(function(e){return console.warn(e)});break;case"ckeditor":(o=o||{}).rows=r.component.rows,r.addCKE(e,o,function(e){return r.updateEditorValue(n,e)}).then(function(e){r.editors[n]=e;var o=r.dataValue;o=r.component.multiple&&Array.isArray(o)?o[n]:o;var l=r.setConvertedValue(o,n),s=r.options.readOnly||r.disabled;if((0,u.getBrowserInfo)().ie)e.on("instanceReady",function(){e.setReadOnly(s),e.setData(l)});else{var c=parseInt(r.component.rows,10);a.default.isFinite(c)&&a.default.has(e,"ui.view.editable.editableElement")&&(e.ui.view.editable.editableElement.style.height="".concat(31*c+14,"px")),e.isReadOnly=s,e.data.set(l)}return i(e),e});break;default:f(p(m.prototype),"attachElement",r).call(r,e,n)}}),e}},{key:"attach",value:function(e){var n=f(p(m.prototype),"attach",this).call(this,e);return this.restoreValue(),n}},{key:"imageHandler",value:function(e,n,r){var o,i=this,a=e.quill;if(!r||!r.length){console.warn("No files selected");return}a.enable(!1);var l=this.component,s=l.uploadStorage,c=l.uploadUrl,f=l.uploadOptions,d=l.uploadDir,p=l.fileKey;this.fileService.uploadFile(s,r[0],(0,u.uniqueName)(r[0].name),d||"",null,c,f,p).then(function(e){return o=e,i.fileService.downloadFile(e)}).then(function(e){a.enable(!0);var r=Quill.import("delta");a.updateContents(new r().retain(n.index).delete(n.length).insert({image:e.url},{alt:JSON.stringify(o)}),Quill.sources.USER)}).catch(function(e){console.warn("Quill image upload failed"),console.warn(e),a.enable(!0)})}},{key:"isPlain",get:function(){return!this.component.wysiwyg&&!this.component.editor}},{key:"htmlView",get:function(){return this.options.readOnly&&(this.component.editor||this.component.wysiwyg)}},{key:"setValueAt",value:function(e,n){var r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};f(p(m.prototype),"setValueAt",this).call(this,e,n,i),this.editorsReady[e]&&this.editorsReady[e].then((r=a.default.clone(i),function(i){if(!r.skipWysiwyg)switch(o.autoModified=!0,o.component.editor){case"ace":i.setValue(o.setConvertedValue(n,e));break;case"quill":if(o.component.isUploadEnabled)o.setAsyncConvertedValue(n).then(function(e){var n=i.clipboard.convert({html:e});i.setContents(n)});else{var a=o.setConvertedValue(n,e),l=i.clipboard.convert({html:a});i.setContents(l)}break;case"ckeditor":i.data.set(o.setConvertedValue(n,e))}}))}},{key:"setValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isPlain||this.options.readOnly||this.disabled?e=this.component.multiple&&Array.isArray(e)?e.map(function(e,r){return n.setConvertedValue(e,r)}):this.setConvertedValue(e):r.skipWysiwyg=(""!==e||!r.resetValue)&&a.default.isEqual(e,this.getValue()),f(p(m.prototype),"setValue",this).call(this,e,r)}},{key:"setContent",value:function(e,n,r){f(p(m.prototype),"setContent",this).call(this,e,n,r,{addAttr:["allow","allowfullscreen","frameborder","scrolling"],addTags:["iframe"]})}}
1,{key:"setReadOnlyValue",value:function(e,n){n=n||0,(this.options.readOnly||this.disabled)&&this.refs.input&&this.refs.input[n]&&("plain"===this.component.inputFormat?this.refs.input[n].innerText=this.interpolate(e,{},{noeval:!0}):this.setContent(this.refs.input[n],this.interpolate(e,{},{noeval:!0}),this.shouldSanitizeValue))}},{key:"isJsonValue",get:function(){return this.component.as&&"json"===this.component.as}},{key:"setConvertedValue",value:function(e,n){if(this.isJsonValue&&!a.default.isNil(e))try{e=JSON.stringify(e,null,2)}catch(e){console.warn(e)}return a.default.isString(e)||(e=""),this.setReadOnlyValue(e,n),e}},{key:"setAsyncConvertedValue",value:function(e){if(this.isJsonValue&&e)try{e=JSON.stringify(e,null,2)}catch(e){console.warn(e)}a.default.isString(e)||(e="");var n=new DOMParser().parseFromString(e,"text/html"),r=n.getElementsByTagName("img");return r.length?this.setImagesUrl(r).then(function(){return e=n.getElementsByTagName("body")[0].innerHTML}):l.default.resolve(e)}},{key:"setImagesUrl",value:function(e){var n=this;return l.default.all(a.default.map(e,function(e){var r;try{r=JSON.parse(e.getAttribute("alt"))}catch(e){console.warn(e)}return n.fileService.downloadFile(r).then(function(n){e.setAttribute("src",n.url)})}))}},{key:"addAutoExpanding",value:function(e,n){var r=null,o=null,i=function(n){var r=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=r,e.style.overflowY=n},l=function(e,n){for(var r=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&r.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;n(),r.forEach(function(e){e.node.scrollTop=e.scrollTop})},u=function(){0!==e.scrollHeight&&l(e,function(){e.style.height="",e.style.height="".concat(e.scrollHeight+r,"px")})},s=a.default.debounce(function(){u();var n=Math.round(parseFloat(e.style.height)),r=window.getComputedStyle(e,null),a=e.offsetHeight;a<n&&"hidden"===r.overflowY?i("scroll"):"hidden"!==r.overflowY&&i("hidden"),u(),a=e.offsetHeight,o!==a&&(o=a,s())},200),c=window.getComputedStyle(e,null);e.style.resize="none",r=parseFloat(c.borderTopWidth)+parseFloat(c.borderBottomWidth)||0,window&&this.addEventListener(window,"resize",s),this.addEventListener(e,"input",s),this.on("initialized",s),this.updateSizes[n]=s,s()}},{key:"trimBlanks",value:function(e){if(!e||this.isPlain)return e;var n=function(e){var n="<p> </p>",r="<p><br></p>",o="<p><br> </p>",i=RegExp("^".concat(n,"|").concat(n,"$|^").concat(r,"|").concat(r,"$|^").concat(o,"|").concat(o,"$"),"g");return"string"==typeof e?e.replace(i,""):e};return Array.isArray(e)?e.forEach(function(r,o){e[o]=n(r)}):e=n(e),e}},{key:"onChange",value:function(e,n){var r=f(p(m.prototype),"onChange",this).call(this,e,n);
1return this.updateSizes.forEach(function(e){return e()}),r}},{key:"hasChanged",value:function(e,n){return f(p(m.prototype),"hasChanged",this).call(this,this.trimBlanks(e),this.trimBlanks(n))}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return f(p(m.prototype),"isEmpty",this).call(this,this.trimBlanks(e))}},{key:"defaultValue",get:function(){var e=f(p(m.prototype),"defaultValue",this);return"quill"!==this.component.editor||e||(e="<p><br></p>"),e}},{key:"getConvertedValue",value:function(e){if(this.isJsonValue&&e)try{e=JSON.parse(e)}catch(e){}return e}},{key:"detach",value:function(){var e=this;this.editors.forEach(function(e){e.destroy&&e.destroy()}),this.editors=[],this.editorsReady=[],this.updateSizes.forEach(function(n){return e.removeEventListener(window,"resize",n)}),this.updateSizes=[],f(p(m.prototype),"detach",this).call(this)}},{key:"getValue",value:function(){return this.isPlain?this.getConvertedValue(f(p(m.prototype),"getValue",this).call(this)):this.dataValue}},{key:"focus",value:function(){var e,n,r,o=this;switch(f(p(m.prototype),"focus",this).call(this),this.component.editor){case"ckeditor":null===(e=this.editorsReady[0])||void 0===e||e.then(function(){var e,n;null!==(e=o.editors[0].editing)&&void 0!==e&&null!==(n=e.view)&&void 0!==n&&n.focus&&o.editors[0].editing.view.focus(),o.element.scrollIntoView()}).catch(function(e){console.warn("An editor did not initialize properly when trying to focus:",e)});break;case"ace":null===(n=this.editorsReady[0])||void 0===n||n.then(function(){o.editors[0].focus(),o.element.scrollIntoView()}).catch(function(e){console.warn("An editor did not initialize properly when trying to focus:",e)});break;case"quill":null===(r=this.editorsReady[0])||void 0===r||r.then(function(){o.editors[0].focus()}).catch(function(e){console.warn("An editor did not initialize properly when trying to focus:",e)})}}}],s=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.default.schema.apply(i.default,[{type:"textarea",label:"Text Area",key:"textArea",rows:3,wysiwyg:!1,editor:"",fixedSize:!0,inputFormat:"html",validate:{minWords:"",maxWords:""}}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Text Area",group:"basic",icon:"font",documentation:"/userguide/form-building/form-components#text-area",weight:20,schema:m.schema()}}}],r&&c(m.prototype,r),s&&c(m,s),Object.defineProperty(m,"prototype",{writable:!1}),m}(i.default);n.default=h},31586:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(76381);var o,i=(o=r(76635))&&o.__esModule?o:{default:o},a=r(38388);n.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"mask",ignore:!0},{type:"number",input:!0,key:"rows",label:"Rows",weight:210,tooltip:"This allows control over how many rows are visible in the text area.",placeholder:"Enter the amount of rows"},{weight:1350,type:"checkbox",input:!0,key:"spellcheck",defaultValue:!0,label:"Allow Spellcheck"},{type:"select",input:!0,key:"editor",label:"Editor",tooltip:"Select the type of WYSIWYG editor to use for this text area.",dataSrc:"values",data:{values:[{label:"None",value:""},{label:"ACE",value:"ace"},{label:"CKEditor",value:"ckeditor"},{label:"Quill",value:"quill"}]},weight:415},{type:"checkbox",input:!0,key:"autoExpand",label:"Auto Expand",tooltip:"This will make the TextArea auto expand it's height as the user is typing into the area.",weight:415,conditional:{json:{"==":[{var:"data.editor"},""]}}},{type:"checkbox",input:!0,key:"isUploadEnabled",label:"Enable Image Upload",weight:415.1,conditional:{json:{or:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.editor"},"ckeditor"]}]}}},{type:"select",input:!0,key:"uploadStorage",label:"Image Upload Storage",placeholder:"Select your file storage provider",weight:415.2,tooltip:"Which storage to save the files in.",valueProperty:"value",dataSrc:"custom",data:{custom:function(){return i.default.map(a.GlobalFormio.Providers.getProviders("storage"),function(e,n){return{label:e.title,value:n}})}},conditional:{json:{"===":[{var:"data.isUploadEnabled"},!0]}}},{type:"textfield",input:!0,key:"uploadUrl",label:"Image Upload Url",weight:415.3,placeholder:"Enter the url to post the files to.",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#server-side' target='_blank'>https://github.com/danialfarid/ng-file-upload#server-side</a> for how to set up the server.",conditional:{json:{"===":[{var:"data.uploadStorage"},"url"]}}},{type:"textarea",key:"uploadOptions",label:"Image Upload Custom request options",tooltip:"Pass your custom xhr options(optional)",rows:5,editor:"ace",input:!0,weight:415.4,placeholder:'{\n "withCredentials": true\n }',conditional:{json:{"===":[{var:"data.uploadStorage"},"url"]}}},{type:"textfield",input:!0,key:"uploadDir",label:"Image Upload Directory",placeholder:"(optional) Enter a directory for the files",tooltip:"This will place all the files uploaded in this field in the directory",weight:415.5,conditional:{json:{"===":[{var:"data.isUploadEnabled"},!0]}}},{type:"textfield",key:"fileKey",input:!0,label:"File form-data Key",tooltip:"Key name that you would like to modify for the file while calling API request.",rows:5,weight:415.6,placeholder:"Enter the key name of a file for form data.",conditional:{json:{and:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.isUploadEnabled"},!0]},{"===":[{var:"data.uploadStorage"},"url"]}]}}},{type:"select",input:!0,key:"as",label:"Save As",dataSrc:"values",tooltip:"This setting determines how the value should be entered and stored in the database.",clearOnHide:!0,data:{values:[{label:"Str
1ing",value:"string"},{label:"JSON",value:"json"},{label:"HTML",value:"html"}]},conditional:{json:{or:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.editor"},"ace"]}]}},weight:416},{type:"textarea",input:!0,editor:"ace",rows:10,as:"json",label:"Editor Settings",tooltip:"Enter the WYSIWYG editor JSON configuration.",key:"wysiwyg",customDefaultValue:function(e,n,r,o,i){return i?i.wysiwygDefault:""},conditional:{json:{or:[{"===":[{var:"data.editor"},"ace"]},{"===":[{var:"data.editor"},"ckeditor"]},{"===":[{var:"data.editor"},"quill"]}]}},weight:417}]},75998:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{weight:125,key:"validate.minWords",label:"Minimum Word Length",placeholder:"Minimum Word Length",type:"number",tooltip:"The minimum amount of words that can be added to this field.",input:!0},{weight:126,key:"validate.maxWords",label:"Maximum Word Length",placeholder:"Maximum Word Length",type:"number",tooltip:"The maximum amount of words that can be added to this field.",input:!0}]},80736:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.baseEditForm.apply(o.default,[[{key:"display",components:a.default},{key:"data",components:i.default},{key:"validation",components:l.default}]].concat(n))},r(43001);var o=u(r(6296)),i=u(r(55342)),a=u(r(66820)),l=u(r(59763));function u(e){return e&&e.__esModule?e:{default:e}}},93290:function(e,n,r){"use strict";r(19169),r(77762),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(24646),r(35968),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),r(12083),r(30902),r(34078),r(92370),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18036),r(76381),r(5746),r(6588),r(49670),r(50703),r(59012),r(17223),r(12551),r(43001),r(27846),r(9473),r(22818);var o=s(r(49974)),i=r(93808),a=function(e,n){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!=typeof e)return{default:e};var r=u(void 0);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(9494)),l=s(r(18947));function u(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:n})(e)}function s(e){return e&&e.__esModule?e:{default:e}}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function p(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?d(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=m(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function h(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,m(o.key),o)}}function m(e){var n=function(e,n){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==f(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===f(n)?n:String(n)}
1function y(e,n){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function v(){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=b(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&y(e,n)}(d,e);var n,r,u,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=b(d);return e=n?Reflect.construct(r,arguments,b(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===f(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(e,n,r){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);var o,i,a,l,u=(null===(o=(l=s.call(this,e,n,r)).component.widget)||void 0===o?void 0:o.timezone)||l.options.timezone,c=(null===(i=l.component.widget)||void 0===i?void 0:i.displayInTimezone)||"viewer";return(null===(a=l.component.widget)||void 0===a?void 0:a.type)==="calendar"&&(l.component.widget=p(p({},l.component.widget),{},{readOnly:l.options.readOnly,timezone:u,displayInTimezone:c,locale:l.component.widget.locale||l.options.language,saveAs:"text"})),l}return r=[{key:"defaultSchema",get:function(){return d.schema()}},{key:"inputInfo",get:function(){var e=v(b(d.prototype),"inputInfo",this);return e.type="input",this.component.hasOwnProperty("spellcheck")&&(e.attr.spellcheck=this.component.spellcheck),this.component.mask?e.attr.type="password":e.attr.type="password"===this.component.inputType?"password":"text",e.changeEvent="blur"===this.component.applyMaskOn?"blur":"input",e}},{key:"emptyValue",get:function(){return""}},{key:"attach",value:function(e){return this.loadRefs(e,{valueMaskInput:"single"}),v(b(d.prototype),"attach",this).call(this,e)}},{key:"maskValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&"object"===f(e)||(e={value:e,maskName:this.component.inputMasks[0].label}),!e.value){var r=n.noDefault?this.emptyValue:this.defaultValue;e.value=Array.isArray(r)?r[0]:r}return e}},{key:"normalizeValue",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isMultipleMasksField?Array.isArray(e)?v(b(d.prototype),"normalizeValue",this).call(this,e.map(function(e){return n.maskValue(e,r)})):v(b(d.prototype),"normalizeValue",this).call(this,this.maskValue(e,r)):v(b(d.prototype),"normalizeValue",this).call(this,e)}},{key:"setValueAt",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.isMultipleMasksField)return v(b(d.prototype),"setValueAt",this).call(this,e,n,r);var o=(n=this.maskValue(n,r)).value||"",l=this.refs.mask?this.refs.mask[e]:null,u=this.refs.select?this.refs.select[e]:null,s=this.getMaskPattern(n.maskName);if(!l||!u||!s)return v(b(d.prototype),"setValueAt",this).call(this,e,o,r);var c=this.placeholderChar;l.value=(0,i.conformToMask)(o,a.getInputMask(s),{placeholderChar:c}).conformedValue,u.value=n.maskName}},{key:"unmaskValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.component.displayMask,r=a.getInputMask(n,this.placeholderChar);return a.unmaskValue(e,r,this.placeholderChar)}},{key:"getValueAt",value:function(e){if(!this.isMultipleMasksField){var n,r,o=v(b(d.prototype),"getValueAt",this).call(this,e),i=this.component.inputMask,a=this.component.displayMask;return i&&!a||a===i?o:a&&!i?this.unmaskValue(o,a):null!==(n=this.refs.valueMaskInput)&&void 0!==n&&n.mask?(this.refs.valueMaskInput.mask.textMaskInputElement.update(o),null===(r=this.refs.valueMaskInput)||void 0===r?void 0:r.value):o}var l=this.refs.mask?this.refs.mask[e]:null,u=this.refs.select?this.refs.select[e]:null;return{value:l?l.value:void 0,maskName:u?u.value:void 0}}},{key:"getValueAsString",value:function(e,n){return e&&"plain"===this.component.inputFormat&&/<[^<>]+>
1/g.test(e)&&(e=e.replaceAll("<","<").replaceAll(">",">")),v(b(d.prototype),"getValueAsString",this).call(this,e,n)}},{key:"isHtmlRenderMode",value:function(){return v(b(d.prototype),"isHtmlRenderMode",this).call(this)||(this.options.readOnly||this.disabled)&&"html"===this.component.inputFormat&&"textfield"===this.type}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return this.isMultipleMasksField?v(b(d.prototype),"isEmpty",this).call(this,e)||(this.component.multiple?0===e.length:!e.maskName||!e.value):v(b(d.prototype),"isEmpty",this).call(this,(e||"").toString().trim())}},{key:"truncateMultipleSpaces",value:function(e){return e?e.trim().replace(/\s{2,}/g," "):e}},{key:"validationValue",get:function(){var e=v(b(d.prototype),"validationValue",this);return e&&this.component.truncateMultipleSpaces?this.truncateMultipleSpaces(e):e}},{key:"beforeSubmit",value:function(){var e=this,n=this.dataValue;return this.component.truncateMultipleSpaces&&n?(n=this.truncateMultipleSpaces(n),this.dataValue=n,l.default.resolve(n).then(function(){return v(b(d.prototype),"beforeSubmit",e).call(e)})):l.default.resolve(n)}}],u=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.schema.apply(o.default,[{label:"Text Field",key:"textField",type:"textfield",mask:!1,inputType:"text",inputFormat:"plain",inputMask:"",displayMask:"",tableView:!0,spellcheck:!0,truncateMultipleSpaces:!1,validate:{minLength:"",maxLength:"",pattern:""}}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Text Field",icon:"terminal",group:"basic",documentation:"/userguide/form-building/form-components#text-field",weight:0,schema:d.schema()}}},{key:"serverConditionSettings",get:function(){var e;return p(p({},v(b(d),"serverConditionSettings",this)),{},{operators:[].concat(function(e){if(Array.isArray(e))return c(e)}(e=v(b(d),"serverConditionSettings",this).operators)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return c(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),["includes","notIncludes","endsWith","startsWith"])})}}],r&&h(d.prototype,r),u&&h(d,u),Object.defineProperty(d,"prototype",{writable:!1}),d}(o.default);n.default=g},55342:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"select",label:"Input Format",key:"inputFormat",weight:105,placeholder:"Input Format",tooltip:"Force the output of this field to be sanitized in a specific format.",template:"<span>{{ item.label }}</span>",data:{values:[{value:"plain",label:"Plain"},{value:"html",label:"HTML"},{value:"raw",label:"Raw (Insecure)"}]},defaultValue:"plain",input:!0},{weight:200,type:"radio",label:"Text Case",key:"case",tooltip:"When data is entered, you can change the case of the value.",input:!0,values:[{value:"mixed",label:"Mixed (Allow upper and lower case)"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"}]},{weight:205,type:"checkbox",input:!0,key:"truncateMultipleSpaces",label:"Truncate Multiple Spaces"}]},66820:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(1357)),i=a(r(76635));function a(e){return e&&e.__esModule?e:{default:e}}var l=[{weight:400,type:"select",input:!0,key:"widget.type",label:"Widget",placeholder:"Select a widget",tooltip:"The widget is the display UI used to input the value of the field.",defaultValue:"input",onChange:function(e){e.data.widget=i.default.pick(e.data.widget,"type")},dataSrc:"values",data:{values:[{label:"Input Field",value:"input"},{label:"Calendar Picker",value:"calendar"}]},conditional:{json:{"===":[{var:"data.type"},"textfield"]}}},{weight:405,type:"textarea",key:"widget",label:"Widget Settings",refreshOn:"wiget.type",clearOnHide:!1,calculateValue:function(e){var n=e.instance.calculatedValue,r=e.data.widget.type;if(i.default.isEmpty(i.default.omit(e.data.widget,"type"))||i.default.isEmpty(i.default.omit(n,"type"))){if(n&&!n.type)return e.data.widget;var a=e.instance._currentForm.options.editComponent.widget;if(a&&!i.default.isEmpty(i.default.omit(a,"type"))&&r===a.type)return i.default.omit(a,"language");if(r)return i.default.omit(o.default[r].defaultSettings,"language")}return e.data.widget},input:!0,rows:5,editor:"ace",as:"json",conditional:{json:{"!==":[{var:"data.widget.type"},"input"]}}},{weight:410,type:"textfield",input:!0,key:"inputMask",label:"Input Mask",tooltip:"An input mask helps the user with input by ensuring a predefined format.<br><br>9: numeric<br>a: alphabetical<br>*: alphanumeric<br><br>Example telephone mask: (999) 999-9999<br><br>See the <a target='_blank' href='https://github.com/RobinHerbots/jquery.inputmask'>jquery.inputmask documentation</a> for more information.</a>",customConditional:function(e){return!e.data.allowMultipleMasks}},{weight:410,type:"textfield",input:!0,key:"displayMask",label:"Display Mask",tooltip:"A display mask helps to display the input in a readable way, this won't affect the value which will be saved (to affect both view and saved value, delete Display Mask and use Input Mask).<br><br>9: numeric<br>a: alphabetical<br>*: alphanumeric<br><br>Example telephone mask: (999) 999-9999<br><br>See the <a target='_blank' href='https://github.com/RobinHerbots/jquery.inputmask'>jquery.inputmask documentation</a> for more information.</a>",customConditional:function(e){return!e.data.allowMultipleMasks}},{weight:410,type:"select",input:!0,key:"applyMaskOn",label:"Apply Mask On",tooltip:"Select the type of applying mask.",defaultValue:"change",dataSrc:"values",data:{values:[{label:"Change",value:"change"},{label:"Blur",value:"blur"}]},customConditional:function(e){return!e.data.allowMultipleMasks}},{weight:411,type:"textfield",input:!0,key:"inputMaskPlaceholderChar",label:"Input Mask Placeholder Char",tooltip:"You can specify a char which will be used as a placeholder in the field. <br>E.g., Ë<br>Make note that placeholder char will be replaced by a space if it is used inside the mask",validation:{maxLength:1},customConditional:function(e){return e.data.inputMask||e.data.displayMask}},{weight:413,type:"checkbox",input:!0,key:"allowMultipleMasks",label:"Allow Multiple Masks"},{weight:1350,type:"checkbox",input:!0,key:"spellcheck",defaultValue:!0,label:"Allow Spellcheck"},{weight:417,type:"datagrid",input:!0,key:"inputMasks",label:"Input Masks",customConditional:function(e){return!0===e.data.allowMultipleMasks},reorder:!0,components:[{type:"textfield",key:"label",label:"Label",input:!0},{type:"textfield",key:"mask",label:"Mask",input:!0}]},{weight:320,type:"textfield",input:!0,key:"prefix",label:"Prefix"},{weight:330,type:"textfield",input:!0,key:"suffix",label:"Suffix"},{weight:700,type:"textfield",input:!0,key:"autocomplete",label:"Autocomplete",placeholder:"on",tooltip:"Indicates whether input elements can by default have their values automatically completed by the browser. See the <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete'>MDN documentation</a> on autocomplete for more information."},{weight:1300,type:"checkbox",label:"Hide Input",tooltip:"Hide the input in the browser. This does not encrypt on the server. Do not use for passwords.",ke
1y:"mask",input:!0},{weight:1200,type:"checkbox",label:"Show Word Counter",tooltip:"Show a live count of the number of words.",key:"showWordCount",input:!0},{weight:1201,type:"checkbox",label:"Show Character Counter",tooltip:"Show a live count of the number of characters.",key:"showCharCount",input:!0}];n.default=l},59763:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"number",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"number",tooltip:"The maximum length requirement this field must meet.",input:!0},{weight:125,key:"validate.minWords",label:"Minimum Word Length",placeholder:"Minimum Word Length",type:"number",tooltip:"The minimum amount of words that can be added to this field.",input:!0},{weight:126,key:"validate.maxWords",label:"Maximum Word Length",placeholder:"Maximum Word Length",type:"number",tooltip:"The maximum amount of words that can be added to this field.",input:!0},{weight:130,key:"validate.pattern",label:"Regular Expression Pattern",placeholder:"Regular Expression Pattern",type:"textfield",tooltip:"The regular expression pattern test that the field value must pass before the form can be submitted.",input:!0}]},51007:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"data",components:i.default},{key:"display",components:a.default}]].concat(n))},r(43001);var o=l(r(30308)),i=l(r(51725)),a=l(r(98564));function l(e){return e&&e.__esModule?e:{default:e}}},3097:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(19169),r(77762),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),r(12083),r(34078),r(24646),r(35968),r(88455),r(32334),r(30534),r(98197),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18036),r(76381),r(28121),r(83972),r(43001),r(30902),r(5746),r(6588),r(27846),r(9473),r(22818);var i=u(r(89868)),a=u(r(93290)),l=r(9494);function u(e){return e&&e.__esModule?e:{default:e}}function s(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function c(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?s(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=h(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return d(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function p(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function h(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function m(e,n){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function y(){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=v(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b="HH:mm:ss",g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&m(e,n)}(d,e);var n,r,u,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=v(d);return e=n?Reflect.construct(r,arguments,v(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(e,n,r){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d),o=s.call(this,e,n,r);var o,i=(0,l.getBrowserInfo)(),a=i.edge,u=i.version;return o.component.inputMask=o.getInputMaskFromFormat(o.component.format),o.component.inputType=a&&u<=18?"text":o.component.inputType||"time",o.rawData=o.component.multiple?[]:o.emptyValue,o}return r=[{key:"init",value:function(){y(v(d.prototype),"init",this).call(this),"text"===this.component.inputType&&this.validators.push("time")}},{key:"dataFormat",get:function(){return this.component.dataFormat||b}},{key:"defaultSchema",get:function(){return d.schema()}},{key:"defaultValue",get:function(){var e=this,n=y(v(d.prototype),"defaultValue",this);return this.component.multiple&&Array.isArray(n)?n=n.map(function(n){return n?e.getStringAsValue(n):n}
vendor: 3,301 bytes, line 1
1):n&&(n=this.getStringAsValue(n)),n}},{key:"validationValue",get:function(){return(!Array.isArray(this.rawData)||this.rawData.length)&&this.rawData?this.rawData:this.dataValue}},{key:"inputInfo",get:function(){var e=y(v(d.prototype),"inputInfo",this);return e.attr.type=this.component.inputType,e}},{key:"skipMaskValidation",get:function(){return!0}},{key:"isNotCompleteInput",value:function(e){return e.includes("_")}},{key:"removeValue",value:function(e){this.rawData=Array.isArray(this.rawData)?[].concat(f(this.rawData.slice(0,e)),f(this.rawData.slice(e+1))):this.emptyValue,y(v(d.prototype),"removeValue",this).call(this,e)}},{key:"resetRawData",value:function(e){e?this.setRawValue(this.emptyValue,e):this.rawData=[]}},{key:"setRawValue",value:function(e,n){Array.isArray(this.rawData)?this.rawData[n]=e:this.rawData=e}},{key:"getRawValue",value:function(e){return e&&Array.isArray(this.rawData)?this.rawData[e]||this.emptyValue:this.rawData}},{key:"getValueAt",value:function(e){if(!this.refs.input.length||!this.refs.input[e])return this.emptyValue;var n=this.refs.input[e].value;return n?(this.setRawValue(n,e),this.getStringAsValue(n)):(this.resetRawData(e),this.emptyValue)}},{key:"setValueAt",value:function(e,n){this.setRawValue(n?this.getValueAsString(n):n,e),this.refs.input[e].value=this.getRawValue(e)}},{key:"getStringAsValue",value:function(e){return e?(0,i.default)(e,this.component.format).format(this.component.dataFormat):e}},{key:"getValueAsString",value:function(e){return(e?(0,i.default)(e,this.component.dataFormat).format(this.component.format):e)||""}},{key:"getInputMaskFromFormat",value:function(e){return"LT"===e?"99:99 AA":"LTS"===e?"99:99:99 AA":e.replace(/[hHmMsSk]/g,"9").replace(/[aA]/,"AA")}},{key:"addFocusBlurEvents",value:function(e){var n=this;y(v(d.prototype),"addFocusBlurEvents",this).call(this,e),this.addEventListener(e,"blur",function(){e.value=n.getValueAsString(e.value)})}}],u=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"time",label:"Time",key:"time",inputType:"time",format:"HH:mm",dataFormat:b}].concat(n))}},{key:"serverConditionSettings",get:function(){return c(c({},y(v(d),"serverConditionSettings",this)),{},{valueComponent:function(e){return c(c({},e),{},{type:"time"})}})}},{key:"builderInfo",get:function(){return{title:"Time",icon:"clock-o",group:"advanced",documentation:"/userguide/form-building/advanced-components#time-1",weight:55,schema:d.schema()}}}],r&&p(d.prototype,r),u&&p(d,u),Object.defineProperty(d,"prototype",{writable:!1}),d}(a.default);n.default=g},51725:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"textfield",input:!0,key:"dataFormat",label:"Data Format",placeholder:"HH:mm:ss",tooltip:"The moment.js format for saving the value of this field.",weight:25}]},98564:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{type:"select",input:!0,weight:40,tooltip:"Select the type of widget you'd like to use.",key:"inputType",defaultValue:"time",label:"Input Type",dataSrc:"values",data:{values:[{label:"HTML5 Time Input",value:"time"},{label:"Text Input with Mask",value:"text"}]}}
1,{type:"textfield",input:!0,key:"format",label:"Format",placeholder:"Format",tooltip:"The moment.js format for showing the value of this field.",weight:50,defaultValue:"HH:mm",conditional:{json:{"===":[{var:"data.inputType"},"text"]}}},{key:"placeholder",ignore:!0}]},27161:function(e,n,r){"use strict";r(26944),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(76381),r(35968),r(17223),r(92100),r(18036),r(43001),r(88455),r(32334),r(52315),r(18997),r(24956),r(6765),r(12443),r(92884);var o,i=(o=r(76635))&&o.__esModule?o:{default:o};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=function(){var e;function n(e){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.data,l=o.children,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=u.checkNode,c=u.createComponents,f=u.isNew,d=u.removeComponents,p=u.parentPath;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n),this.parent=e,this.previousData={},this.persistentData=i.default.cloneDeep(void 0===a?{}:a),this.new=void 0===f||f,this.createComponents=c,this.checkNode=s,this.removeComponents=d,this.revertAvailable=!1,this.editing=!1,this.collapsed=!1,this.components=[],this.children=[],this.parentPath=void 0===p?"":p,this.resetData(),this.children=(void 0===l?[]:l).map(function(e,o){return new n(r,e,{checkNode:s,createComponents:c,isNew:!1,removeComponents:d,parentPath:r.getChildrenPath(o)})})}return e=[{key:"value",get:function(){return this.new?null:{data:i.default.cloneDeep(this.persistentData),children:this.children.filter(function(e){return!e.new}).map(function(e){return e.value})}}},{key:"isRoot",get:function(){return null===this.parent}},{key:"changing",get:function(){return this.new||this.editing}},{key:"hasChangingChildren",get:function(){return this.changin||this.children.some(function(e){return e.hasChangingChildren})}},{key:"hasData",get:function(){return!i.default.isEmpty(this.persistentData)}},{key:"hasChildren",get:function(){return Array.isArray(this.children)&&this.children.length>0}},{key:"getChildrenPath",value:function(e){return this.parentPath?"".concat(this.parentPath,".children[").concat(e,"]"):""}},{key:"eachChild",value:function(e){return e(this),this.children.forEach(function(n){return n.eachChild(e)}),this}},{key:"getComponents",value:function(){return this.children.reduce(function(e,n){return e.concat(n.getComponents())},this.components)}},{key:"validateNode",value:function(){var e=this,n=!0;return this.getComponents().forEach(function(r){r.setPristine(!1),n&=r.checkValidity(null,!1,e.persistentData)}),n}},{key:"addChild",value:function(){if(this.new)return null;var e=new n(this,{},{checkNode:this.checkNode,createComponents:this.createComponents,isNew:!0,removeComponents:this.removeComponents,parentPath:this.getChildrenPath(this.children.length)});return this.children=this.children.concat(e),e}},{key:"removeChild",value:function(e){return this.new||(this.children=this.children.filter(function(n){return n!==e})),this}},{key:"edit",value:function(){return this.new?this:(this.editing=!0,this.resetData())}},{key:"save",value:function(){var e=this.validateNode();return this.changing&&e&&(this.new?this.new=!1:(this.editing=!1,this.revertAvailable=!0),this.commitData()),e}},{key:"cancel",value:function(){return this.new?this.remove():this.editing&&(this.editing=!1,this.resetData()),this}},{key:"remove",value:function(){return this.parent.removeChild(this),this.parent=null,this.clearComponents(),this}},{key:"revert",value:function(){return this.revertAvailable?(this.data=this.previousData,this.commitData()):this}},{key:"commitData",value:function(){return this.previousData=this.persistentData,this.persistentData=i.default.cloneDeep(this.data),this.clearComponents(),this}},{key:"resetData",value:function(){return this.data=i.default.cloneDeep(this.persistentData),this.updateComponentsContext(),this}},{key:"updateComponentsContext",value:function(){return this.changing?this.instantiateComponents():this.clearComponents(),this}},{key:"instantiateComponents",value:function(){var e=this;this.components=this.createComponents(this.data,this),this.components.forEac
1h(function(n){if(e.parentPath){var r=e.calculateComponentPath(n);n.path=r}}),this.checkNode(this)}},{key:"clearComponents",value:function(){this.removeComponents(this.components),this.components=[]}},{key:"calculateComponentPath",value:function(e){var n="";return e.component.key&&(n="".concat(this.parentPath,".data.").concat(e.component.key)),n}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==a(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===a(n)?n:String(n)}(o.key),o)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=l},82463:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:a.default},{key:"data",components:i.default}]].concat(n))},r(43001);var o=l(r(30308)),i=l(r(34998)),a=l(r(9141));function l(e){return e&&e.__esModule?e:{default:e}}},13021:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(26981),r(24646),r(35968),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(88455),r(17223),r(32334),r(76381),r(52315),r(9473),r(27846),r(22818);var i=f(r(76635)),a=f(r(11275)),l=f(r(6296)),u=f(r(98087)),s=f(r(27161)),c=f(r(18947));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function p(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?d(Object(r),!0).forEach(function(n){y(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function h(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,v(o.key),o)}}function m(e,n,r,o){return(m="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=g(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else y(o,n,r);return!0})(e,n,r,o)}function y(e,n,r){return(n=v(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function v(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function b(){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=g(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function g(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=k(e)););return e}function w(e,n){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&w(e,n)}(d,e);var n,r,a,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=k(d);return e=n?Reflect.construct(r,arguments,k(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=f.call.apply(f,[this].concat(r))).type="tree",e}return r=[{key:"emptyValue",get:function(){return{}}},{key:"viewComponents",get:function(){return this.viewComponentsInstantiated||(this.viewComponentsInstantiated=!0,this._viewComponents=this.createComponents({})),this._viewComponents}},{key:"init",value:function(){if(this.builderMode)return b(k(d.prototype),"init",this).call(this);this.components=[],this.componentOptions=p(p({},this.options),{},{parent:this,root:this.root||this}),this.disabled=this.shouldDisabled,this.setRoot(),this.viewComponentsInstantiated=!1,this._viewComponents=[]}},{key:"disabled",get:function(){return b(k(d.prototype),"disabled",this)}
1,set:function(e){(function(e,n,r,o,i){if(!m(e,n,r,o||e)&&i)throw Error("failed to set property")})(k(d.prototype),"disabled",e,this,!0),this.viewComponents.forEach(function(n){return n.parentDisabled=e})}},{key:"isDefaultValueComponent",get:function(){return!!this.options.editComponent&&!!this.options.editForm&&"defaultValue"===this.component.key}},{key:"destroy",value:function(){b(k(d.prototype),"destroy",this).call(this),this.builderMode||this.removeComponents(this._viewComponents)}},{key:"createComponents",value:function(e,n){var r=this,o=this.componentComponents.map(function(n){var o=l.default.create(n,r.componentOptions,e);return o.init(),o.parentDisabled=r.disabled,o});return n&&this.checkNode(this.data,n),o}},{key:"removeComponents",value:function(e){return e.map(function(e){return e.destroy()})}},{key:"render",value:function(){return this.builderMode?b(k(d.prototype),"render",this).call(this):b(k(d.prototype),"render",this).call(this,this.renderTree(this.treeRoot))}},{key:"renderTree",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=e.hasChildren&&!e.collapsed?this.renderChildNodes(e.children,!n):[],o=e.changing?this.renderEdit(e):this.renderView(e);return this.renderTemplate("tree",{odd:n,childNodes:r,content:o,node:e})}},{key:"renderChildNodes",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;return n.map(function(n){return e.renderTree(n,r)})}},{key:"renderEdit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.renderTemplate("treeEdit",{children:this.renderComponents(e.components),node:e})}},{key:"renderView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.renderTemplate("treeView",{values:this.viewComponents.map(function(n){return n.data=e.data,n.checkComponentConditions(e.data),n.getView(n.dataValue)}),nodeData:e.data,node:e})}},{key:"attach",value:function(e){return this.builderMode?b(k(d.prototype),"attach",this).call(this,e):(this.loadRefs(e,{root:"single"}),c.default.all([b(k(d.prototype),"attach",this).call(this,e),this.attachNode(this.refs.root,this.treeRoot)]))}},{key:"attachNode",value:function(e,n){if(!e)return c.default.resolve();var r=c.default.resolve(),o=c.default.resolve();return n.refs=i.default.reduce(e.children,function(e,n){return n.hasAttribute("ref")?p(p({},e),{},y({},n.getAttribute("ref"),n)):e},{}),n.refs.content&&(this.attachActions(n),r=this.attachComponents(n)),n.refs.childNodes&&(o=this.attachChildren(n)),c.default.all([r,o])}},{key:"attachActions",value:function(e){var n,r=this;e.editing||this.loadRefs.call(e,e.refs.content,{addChild:"single",editNode:"single",removeNode:"single",revertNode:"single",toggleNode:"single"}),this.loadRefs.call(e,(null===(n=e.refs.content.children[0])||void 0===n?void 0:n.children[1])||e.refs.content,{cancelNode:"single",saveNode:"single"}),e.refs.addChild&&this.addEventListener(e.refs.addChild,"click",function(){r.addChild(e)}),e.refs.cancelNode&&this.addEventListener(e.refs.cancelNode,"click",function(){r.cancelNode(e)}),e.refs.editNode&&this.addEventListener(e.refs.editNode,"click",function(){r.editNode(e)}),e.refs.removeNode&&this.addEventListener(e.refs.removeNode,"click",function(){r.removeNode(e)}),e.refs.revertNode&&this.addEventListener(e.refs.revertNode,"click",function(){r.revertNode(e)}),e.refs.saveNode&&this.addEventListener(e.refs.saveNode,"click",function(){r.saveNode(e)}),e.refs.toggleNode&&this.addEventListener(e.refs.toggleNode,"click",function(){r.toggleNode(e)})}},{key:"attachComponents",value:function(e){if(this.builderMode){for(var n,r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return(n=b(k(d.prototype),"attachComponents",this)).call.apply(n,[this,e].concat(o))}return this.loadRefs.call(e,e.refs.content,{nodeEdit:"single"}),e.refs.nodeEdit?b(k(d.prototype),"attachComponents",this).call(this,e.refs.nodeEdit,e.components):c.default.resolve()}},{key:"attachChildren",value:function(e){var n=this,r=e.refs.childNodes.children;return c.default.all(i.default.map(r,function(r,o){return n.attachNode(r,e.children[o])}))}},{key:"setValue",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
vendor: 4,696 bytes, line 1
1,r=this.updateValue(e,n);return this.setRoot(),r}},{key:"addChild",value:function(e){var n=this;this.options.readOnly||e.new||this.hook("tree.addChild",{parent:e,component:this},function(){var r=e.addChild();return n.redraw(),r})}},{key:"cancelNode",value:function(e){var n=this;this.options.readOnly||this.hook("tree.cancelNode",{node:e,component:this},function(){return e.isRoot?e.persistentData&&!i.default.isEmpty(e.persistentData)?(e.cancel(),n.redraw()):n.removeRoot():(e.cancel(),n.redraw()),e})}},{key:"editNode",value:function(e){var n=this;this.options.readOnly||e.new||this.hook("tree.editNode",{node:e,component:this},function(){return e.edit(),n.redraw(),e})}},{key:"removeNode",value:function(e){var n=this;this.options.readOnly||e.new||this.hook("tree.removeNode",{node:e,component:this},function(){return e.isRoot?n.removeRoot():(e.remove(),n.updateTree()),e})}},{key:"revertNode",value:function(e){var n=this;!this.options.readOnly&&e.revertAvailable&&this.hook("tree.revertNode",{node:e,component:this},function(){return e.revert(),n.updateTree(),e})}},{key:"saveNode",value:function(e){var n=this;this.options.readOnly||this.hook("tree.saveNode",{node:e,component:this},function(){return e.save()&&n.updateTree(),e})}},{key:"toggleNode",value:function(e){var n=this;this.hook("tree.toggleNode",{node:e,component:this},function(){return e.collapsed=!e.collapsed,n.redraw(),e})}},{key:"removeRoot",value:function(){this.options.readOnly||(this.dataValue=this.defaultValue,this.setRoot(),this.redraw())}},{key:"setRoot",value:function(){var e=this.getValue();this.treeRoot=new s.default(null,e,{isNew:!!this.builderMode||!e.data,createComponents:this.createComponents.bind(this),checkNode:this.checkNode.bind(this,this.data),removeComponents:this.removeComponents,parentPath:this.isDefaultValueComponent?this.path||this.component.key:null}),this.hook("tree.setRoot",{root:this.treeRoot,component:this}),this.redraw()}},{key:"getValue",value:function(){return this.dataValue||{}}},{key:"updateTree",value:function(){this.updateValue(this.treeRoot.value),this.redraw()}},{key:"checkData",value:function(e,n,r){return this.checkNode(e,this.treeRoot,n,r)}},{key:"checkNode",value:function(e,n,r,o){var i=this;return n.children.reduce(function(n,a){return i.checkNode(e,a,r,o)&&n},b(k(d.prototype),"checkData",this).call(this,e,r,n.data,n.components)&&!n.editing&&!n.new)}},{key:"getComponents",value:function(){return this.treeRoot&&(this.isDefaultValueComponent||!this.isDefaultValueComponent&&!this.builderMode)?this.treeRoot.getComponents():b(k(d.prototype),"getComponents",this).call(this)}}],a=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return u.default.schema.apply(u.default,[{label:"Tree",key:"tree",type:"tree",clearOnHide:!0,input:!0,tree:!0,components:[],multiple:!1}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Tree",icon:"indent",weight:40,documentation:"/userguide/form-building/data-components#tree",showPreview:!1,schema:d.schema()}}}],r&&h(d.prototype,r),a&&h(d,a),Object.defineProperty(d,"prototype",{writable:!1}),d}(u.default);n.default=O,O.prototype.hasChanged=a.default.prototype.hasChanged},34998:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"multiple",ignore:!0}]},9141:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"treeInfo",weight:-10,type:"htmlelement",tag:"div",className:"alert alert-danger",content:"This component has been deprecated and will be removed in a future version of Formio.js."}]},70474:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return{components:[{type:"tabs",key:"tabs",components:[{label:"Custom",key:"display",weight:0,components:i.default}]}]}};var o,i=(o=r(23555))&&o.__esModule?o:{default:o}},47338:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}
1function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(17223),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(27846),r(9473),r(22818);var u,s=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(c,e);var n,r,u,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);return e=n?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c),s.apply(this,arguments)}return r=[{key:"defaultSchema",get:function(){return c.schema()}}],u=[{key:"schema",value:function(){return{type:"custom",key:"custom",protected:!1,persistent:!0}}},{key:"builderInfo",get:function(){return{title:"Custom",icon:"cubes",group:"premium",documentation:"/userguide/form-building/premium-components#custom",weight:120,schema:c.schema()}}}],r&&i(c.prototype,r),u&&i(c,u),Object.defineProperty(c,"prototype",{writable:!1}),c}(((u=r(11275))&&u.__esModule?u:{default:u}).default);n.default=s},23555:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"customComponentDescription",label:"Custom component description",input:!1,tag:"p",content:'Custom components can be used to render special fields or widgets inside your app. For information on how to display in an app, see <a href="http://help.form.io/userguide/#custom" target="_blank" rel="noopener noreferrer">custom component documentation</a>.',type:"htmlelement",weight:5},{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"componentJson",label:"Custom Element JSON",tooltip:"Enter the JSON for this custom element."}]},3980:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default},{key:"data",components:a.default},{key:"validation",components:l.default}]].concat(n))},r(43001);var o=u(r(80736)),i=u(r(47442)),a=u(r(60248)),l=u(r(72884));function u(e){return e&&e.__esModule?e:{default:e}}},99023:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(27846),r(9473),r(22818);var i,a=(i=r(93290))&&i.__esModule?i:{default:i};function l(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function u(){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=c(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}
1function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(d,e);var n,r,i,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(d);return e=n?Reflect.construct(r,arguments,c(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(e,n,r){var o;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,d),(o=f.call(this,e,n,r)).validators.push("url"),o}return r=[{key:"defaultSchema",get:function(){return d.schema()}},{key:"elementInfo",value:function(){var e=u(c(d.prototype),"elementInfo",this).call(this);return e.attr.type=this.component.mask?"password":"url",e}}],i=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"url",label:"Url",key:"url",inputType:"url"}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Url",group:"advanced",icon:"link",documentation:"/userguide/form-building/advanced-components#url",weight:20,schema:d.schema()}}}],r&&l(d.prototype,r),i&&l(d,i),Object.defineProperty(d,"prototype",{writable:!1}),d}(a.default);n.default=f},60248:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"case",ignore:!0}]},47442:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},72884:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},74729:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.default.apply(void 0,[[{key:"display",components:i.default}]].concat(n))},r(43001);var o=a(r(28600)),i=a(r(22323));function a(e){return e&&e.__esModule?e:{default:e}}},56541:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(27846),r(9473),r(22818);var i,a=(i=r(21645))&&i.__esModule?i:{default:i};function l(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function u(e,n){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}
1function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&u(e,n)}(f,e);var n,r,i,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(f);return e=n?Reflect.construct(r,arguments,s(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=c.call.apply(c,[this].concat(r))).noField=!0,e}return r=[{key:"defaultSchema",get:function(){return f.schema()}},{key:"className",get:function(){return"".concat(this.component.customClass)}},{key:"templateName",get:function(){return"well"}}],i=[{key:"schema",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.default.schema.apply(a.default,[{type:"well",key:"well",input:!1,persistent:!1,components:[]}].concat(n))}},{key:"builderInfo",get:function(){return{title:"Well",icon:"square-o",group:"layout",documentation:"/userguide/form-building/layout-components#well",showPreview:!1,weight:60,schema:f.schema()}}}],r&&l(f.prototype,r),i&&l(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(a.default);n.default=c},22323:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0}]},95583:function(e,n,r){"use strict";r(26944),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var o,i,a=c(r(76635)),l=c(r(23639)),u=c(r(43392)),s=c(r(55248));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){var n=function(e,n){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==f(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===f(n)?n:String(n)}var p=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"addDisplay",value:function(e,r){n.displays[e]=r}},{key:"addDisplays",value:function(e){n.displays=a.default.merge(n.displays,e)}},{key:"getDisplay",value:function(e){return n.displays[e]}},{key:"getDisplays",value:function(){return n.displays}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=p,o="displays",i={pdf:l.default,webform:u.default,wizard:s.default},(o=d(o))in p?Object.defineProperty(p,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):p[o]=i},68619:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=((o=r(95583))&&o.__esModule?o:{default:o}).default;n.default=i},5729:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Builders",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"Components",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,"Conjunctions",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(n,"Displays",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,"Form",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(n,"Formio",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"Operators",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(n,"Providers",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(n,"QuickRules",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(n,"Rules",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(n,"Templates",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(n,"Transformers",{enumerable:!0,get:function(){return y.default}}
vendor: 4,986 bytes, line 1
1),Object.defineProperty(n,"Utils",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(n,"ValueSources",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(n,"Widgets",{enumerable:!0,get:function(){return b.default}}),r(24646),r(88455),r(17223),r(32334),r(18036),r(6765),r(12443),r(11102),r(17943),r(15469),r(1542);var o=O(r(76635)),i=O(r(38388)),a=O(r(9203)),l=O(r(21621)),u=O(r(6296)),s=O(r(95583)),c=O(r(538)),f=O(r(90420)),d=O(r(42501)),p=O(r(58819)),h=O(r(65801)),m=O(r(84567)),y=O(r(65998)),v=O(r(90741)),b=O(r(1357)),g=O(r(15587)),w=O(r(28948)),k=O(r(80993));function O(e){return e&&e.__esModule?e:{default:e}}function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}i.default.loadModules=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"".concat(i.default.getApiUrl(),"/externalModules.js"),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"externalModules";i.default.requireLibrary(n,n,e,!0).then(function(e){i.default.use(e)})},i.default.Components=u.default,i.default.Templates=c.default,i.default.Builders=l.default,i.default.Utils=w.default,i.default.Form=g.default,i.default.Displays=s.default,i.default.Providers=f.default,i.default.Rules=d.default,i.default.Widgets=b.default,i.default.Evaluator=k.default,i.default.Conjunctions=p.default,i.default.Operators=h.default,i.default.QuickRules=m.default,i.default.Transformers=y.default,i.default.ValueSources=v.default,i.default.AllComponents=a.default,i.default.Formio=i.default,i.default.Components.setComponents(a.default);var j=function(e){if("object"===_(e))for(var n=0,r=Object.keys(e);n<r.length;n++){var a=r[n],l=e.framework||i.default.Templates.framework||"bootstrap";switch(a){case"options":i.default.options=o.default.merge(i.default.options,e.options);break;case"templates":for(var u=0,s=Object.keys(e.templates);u<s.length;u++){var c=s[u];i.default.Templates.extendTemplate(c,e.templates[c])}e.templates[l]&&(i.default.Templates.current=e.templates[l]);break;case"components":i.default.Components.setComponents(e.components);break;case"framework":i.default.Templates.framework=e.framework;break;case"fetch":for(var f=0,d=Object.keys(e.fetch);f<d.length;f++){var p=d[f];i.default.registerPlugin(e.fetch[p],p)}break;case"providers":for(var h=0,m=Object.keys(e.providers);h<m.length;h++){var y=m[h];i.default.Providers.addProviders(y,e.providers[y])}break;case"displays":i.default.Displays.addDisplays(e.displays);break;case"builders":i.default.Builders.addBuilders(e.builders);break;case"rules":i.default.Rules.addRules(e.rules);break;case"evaluator":i.default.Evaluator.registerEvaluator(e.evaluator);break;case"conjunctions":i.default.Conjunctions.addConjunctions(e.conjunctions);break;case"operators":i.default.Operators.addOperators(e.operators);break;case"quickRules":i.default.QuickRules.addQuickRules(e.quickRules);break;case"transformers":i.default.Transformers.addTransformers(e.transformers);break;case"valueSources":i.default.ValueSources.addValueSources(e.valueSources);break;default:console.log("Unknown plugin option",a)}}};i.default.use=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(e){Array.isArray(e)?e.forEach(function(e){return j(e)}):j(e)})}},41098:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=r(4600))&&o.__esModule?o:{default:o},a={lng:"en",nsSeparator:"::",keySeparator:".|.",pluralSeparator:"._.",contextSeparator:"._.",resources:{en:{translation:(0,r(9494).fastCloneDeep)(i.default)}}};n.default=a},99072:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Builders",{enumerable:!0,get:function(){return i.Builders}}),Object.defineProperty(n,"Components",{enumerable:!0,get:function(){return i.Components}}),Object.defineProperty(n,"Conjunctions",{enumerable:!0,get:function(){return i.Conjunctions}}),Object.defineProperty(n,"Displays",{enumerable:!0,get:function(){return i.Displays}}),Object.defineProperty(n,"Form",{enumerable:!0,get:function(){return i.Form}}),Object.defineProperty(n,"FormBuilder",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"Formio",{enumerable:!0,get:function(){return i.Formio}}),Object.defineProperty(n,"Operators",{enumerable:!0,get:function(){return i.Operators}}),Object.defineProperty(n,"Providers",{enumerable:!0,get:function(){return i.Providers}}),Object.defineProperty(n,"QuickRules",{enumerable:!0,get:function(){return i.QuickRules}}),Object.defineProperty(n,"Rules",{enumerable:!0,get:function(){return i.Rules}}),Object.defineProperty(n,"Templates",{enumerable:!0,get:function(){return i.Templates}}),Object.defineProperty(n,"Transformers",{enumerable:!0,get:function(){return i.Transformers}}
vendor: 1,801 bytes, line 1
1),Object.defineProperty(n,"Utils",{enumerable:!0,get:function(){return i.Utils}}),Object.defineProperty(n,"ValueSources",{enumerable:!0,get:function(){return i.ValueSources}}),Object.defineProperty(n,"Widgets",{enumerable:!0,get:function(){return i.Widgets}});var o,i=r(5729),a=(o=r(39505))&&o.__esModule?o:{default:o}},58360:function(e,n,r){"use strict";var o=r(71335),i=r(49328),a=TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a function")}},38790:function(e,n,r){"use strict";var o=r(26530),i=r(49328),a=TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a constructor")}},70030:function(e,n,r){"use strict";var o=r(71335),i=String,a=TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw a("Can't set "+i(e)+" as a prototype")}},8625:function(e,n,r){"use strict";var o=r(66630),i=r(17295),a=r(11830).f,l=o("unscopables"),u=Array.prototype;void 0==u[l]&&a(u,l,{configurable:!0,value:i(null)}),e.exports=function(e){u[l][e]=!0}},37005:function(e,n,r){"use strict";var o=r(7070).charAt;e.exports=function(e,n,r){return n+(r?o(e,n).length:1)}},32565:function(e,n,r){"use strict";var o=r(37317),i=TypeError;e.exports=function(e,n){if(o(n,e))return e;throw i("Incorrect invocation")}},59555:function(e,n,r){"use strict";var o=r(70778),i=String,a=TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not an object")}},73912:function(e){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},81367:function(e,n,r){"use strict";var o=r(43650);e.exports=o(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})},12340:function(e,n,r){"use strict";var o,i,a,l=r(73912),u=r(71224),s=r(72847),c=r(71335),f=r(70778),d=r
vendor: 6,012 bytes, line 1
1(84159),p=r(48066),h=r(49328),m=r(60769),y=r(52522),v=r(59901),b=r(37317),g=r(25015),w=r(23215),k=r(66630),O=r(61466),_=r(79450),j=_.enforce,P=_.get,S=s.Int8Array,E=S&&S.prototype,x=s.Uint8ClampedArray,C=x&&x.prototype,R=S&&g(S),A=E&&g(E),M=Object.prototype,T=s.TypeError,D=k("toStringTag"),I=O("TYPED_ARRAY_TAG"),L="TypedArrayConstructor",V=l&&!!w&&"Opera"!==p(s.opera),N=!1,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},B=function(e){var n=g(e);if(f(n)){var r=P(n);return r&&d(r,L)?r[L]:B(n)}},z=function(e){if(!f(e))return!1;var n=p(e);return d(F,n)||d(U,n)};for(o in F)(a=(i=s[o])&&i.prototype)?j(a)[L]=i:V=!1;for(o in U)(a=(i=s[o])&&i.prototype)&&(j(a)[L]=i);if((!V||!c(R)||R===Function.prototype)&&(R=function(){throw T("Incorrect invocation")},V))for(o in F)s[o]&&w(s[o],R);if((!V||!A||A===M)&&(A=R.prototype,V))for(o in F)s[o]&&w(s[o].prototype,A);if(V&&g(C)!==A&&w(C,A),u&&!d(A,D))for(o in N=!0,v(A,D,{configurable:!0,get:function(){return f(this)?this[I]:void 0}}),F)s[o]&&m(s[o],I,o);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:V,TYPED_ARRAY_TAG:N&&I,aTypedArray:function(e){if(z(e))return e;throw T("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!w||b(R,e)))return e;throw T(h(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,n,r,o){if(u){if(r)for(var i in F){var a=s[i];if(a&&d(a.prototype,e))try{delete a.prototype[e]}catch(r){try{a.prototype[e]=n}catch(e){}}}(!A[e]||r)&&y(A,e,r?n:V&&E[e]||n,o)}},exportTypedArrayStaticMethod:function(e,n,r){var o,i;if(u){if(w){if(r){for(o in F)if((i=s[o])&&d(i,e))try{delete i[e]}catch(e){}}if(R[e]&&!r)return;try{return y(R,e,r?n:V&&R[e]||n)}catch(e){}}for(o in F)(i=s[o])&&(!i[e]||r)&&y(i,e,n)}},getTypedArrayConstructor:B,isView:function(e){if(!f(e))return!1;var n=p(e);return"DataView"===n||d(F,n)||d(U,n)},isTypedArray:z,TypedArray:R,TypedArrayPrototype:A}},2431:function(e,n,r){"use strict";var o=r(72847),i=r(63966),a=r(71224),l=r(73912),u=r(14355),s=r(60769),c=r(59901),f=r(94874),d=r(43650),p=r(32565),h=r(401),m=r(9111),y=r(79169),v=r(6735),b=r(25015),g=r(23215),w=r(11957).f,k=r(46908),O=r(7833),_=r(15366),j=r(79450),P=u.PROPER,S=u.CONFIGURABLE,E="ArrayBuffer",x="DataView",C="prototype",R="Wrong index",A=j.getterFor(E),M=j.getterFor(x),T=j.set,D=o[E],I=D,L=I&&I[C],V=o[x],N=V&&V[C],F=Object.prototype,U=o.Array,B=o.RangeError,z=i(k),q=i([].reverse),H=v.pack,W=v.unpack,K=function(e){return[255&e]},G=function(e){return[255&e,e>>8&255]},Y=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},J=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},X=function(e){return H(e,23,4)},Z=function(e){return H(e,52,8)},Q=function(e,n,r){c(e[C],n,{configurable:!0,get:function(){return r(this)[n]}})},ee=function(e,n,r,o){var i=M(e),a=y(r);if(a+n>i.byteLength)throw B(R);var l=i.bytes,u=a+i.byteOffset,s=O(l,u,u+n);return o?s:q(s)},et=function(e,n,r,o,i,a){var l=M(e),u=y(r),s=o(+i),c=!!a;if(u+n>l.byteLength)throw B(R);for(var f=l.bytes,d=u+l.byteOffset,p=0;p<n;p++)f[d+p]=s[c?p:n-p-1]};if(l){var en=P&&D.name!==E;if(!d(function(){D(1)})||!d(function(){new D(-1)})||d(function(){return new D,new D(1.5),new D(NaN),1!=D.length||en&&!S})){(I=function(e){return p(this,L),new D(y(e))})[C]=L;for(var er,eo=w(D),ei=0;eo.length>ei;)(er=eo[ei++])in I||s(I,er,D[er]);L.constructor=I}else en&&S&&s(D,"name",E);g&&b(N)!==F&&g(N,F);var ea=new V(new I(2)),el=i(N.setInt8);ea.setInt8(0,2147483648),ea.setInt8(1,2147483649),(ea.getInt8(0)||!ea.getInt8(1))&&f(N,{setInt8:function(e,n){el(this,e,n<<24>>24)},setUint8:function(e,n){el(this,e,n<<24>>24)}},{unsafe:!0})}else L=(I=function(e){p(this,L);var n=y(e);T(this,{type:E,bytes:z(U(n),0),byteLength:n}),a||(this.byteLength=n,this.detached=!1)})[C],N=(V=function(e,n,r){p(this,N),p(e,L);var o=A(e),i=o.byteLength,l=h(n);if(l<0||l>i)throw B("Wrong offset");if(r=void 0===r?i-l:m(r),l+r>i)throw B("Wrong length");T(this,{type:x,buffer:e,byteLength:r,byteOffset:l,bytes:o.bytes}),a||(this.buffer=e,this.byteLength=r,this.byteOffset=l)})[C],a&&(Q(I,"byteLength",A),Q(V,"buffer",M),Q(V,"byteLength",M),Q(V,"byteOffset",M)),f(N,{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e){var n=ee(this,2,e,arguments.length>1&&arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(e){var n=ee(this,2,e,arguments.length>1&&arguments[1]);return n[1]<<8|n[0]},getInt32:function(e){return J(ee(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return J(ee(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return W(ee(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return W(ee(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,n){et(this,1,e,K,n)},setUint8:function(e,n){et(this,1,e,K,n)},setInt16:function(e,n){et(this,2,e,G,n,arguments.length>2&&arguments[2])},setUint16:function(e,n){et(this,2,e,G,n,arguments.length>2&&arguments[2])},setInt32:function(e,n){et(this,4,e,Y,n,arguments.length>2&&arguments[2])},setUint32:function(e,n){et(this,4,e,Y,n,arguments.length>2&&arguments[2])},setFloat32:function(e,n){et(this,4,e,X,n,arguments.length>2&&arguments[2])},setFloat64:function(e,n){et(this,8,e,Z,n,arguments.length>2&&arguments[2])}});_(I,E),_(V,x),e.exports={ArrayBuffer:I,DataView:V}},85164:function(e,n,r){"use strict";var o=r(62716),i=r(48031),a=r(10164),l=r(15833),u=Math.min;e.exports=[].copyWithin||function(e,n){var r=o(this),s=a(r),c=i(e,s),f=i(n,s),d=arguments.length>2?arguments[2]:void 0,p=u((void 0===d?s:i(d,s))-f,s-c),h=1;for(f<c&&c<f+p&&(h=-1,f+=p-1,c+=p-1);p-- >0;)f in r?r[c]=r[f]:l(r,c),c+=h,f+=h;return r}},46908:function(e,n,r){"use strict";var o=r(62716),i=r(48031),a=r(10164);e.exports=function(e){for(var n=o(this),r=a(n),l=arguments.length,u=i(l>1?arguments[1]:void 0,r),s=l>2?arguments[2]:void 0,c=void 0===s?r:i(s,r);c>u;)n[u++]=e;return n}},55599:function(e,n,r){"use strict";
vendor: 6,677 bytes, line 1
1var o=r(66890).forEach,i=r(72268)("forEach");e.exports=i?[].forEach:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}},76817:function(e,n,r){"use strict";var o=r(10164);e.exports=function(e,n){for(var r=0,i=o(n),a=new e(i);i>r;)a[r]=n[r++];return a}},77332:function(e,n,r){"use strict";var o=r(82951),i=r(20517),a=r(62716),l=r(98474),u=r(71627),s=r(26530),c=r(10164),f=r(95677),d=r(12650),p=r(57338),h=Array;e.exports=function(e){var n,r,m,y,v,b,g=a(e),w=s(this),k=arguments.length,O=k>1?arguments[1]:void 0,_=void 0!==O;_&&(O=o(O,k>2?arguments[2]:void 0));var j=p(g),P=0;if(j&&!(this===h&&u(j)))for(v=(y=d(g,j)).next,r=w?new this:[];!(m=i(v,y)).done;P++)b=_?l(y,O,[m.value,P],!0):m.value,f(r,P,b);else for(n=c(g),r=w?new this(n):h(n);n>P;P++)b=_?O(g[P],P):g[P],f(r,P,b);return r.length=P,r}},78342:function(e,n,r){"use strict";var o=r(53303),i=r(48031),a=r(10164),l=function(e){return function(n,r,l){var u,s=o(n),c=a(s),f=i(l,c);if(e&&r!=r){for(;c>f;)if((u=s[f++])!=u)return!0}else for(;c>f;f++)if((e||f in s)&&s[f]===r)return e||f||0;return!e&&-1}};e.exports={includes:l(!0),indexOf:l(!1)}},66890:function(e,n,r){"use strict";var o=r(82951),i=r(63966),a=r(61674),l=r(62716),u=r(10164),s=r(43786),c=i([].push),f=function(e){var n=1==e,r=2==e,i=3==e,f=4==e,d=6==e,p=7==e,h=5==e||d;return function(m,y,v,b){for(var g,w,k=l(m),O=a(k),_=o(y,v),j=u(O),P=0,S=b||s,E=n?S(m,j):r||p?S(m,0):void 0;j>P;P++)if((h||P in O)&&(w=_(g=O[P],P,k),e)){if(n)E[P]=w;else if(w)switch(e){case 3:return!0;case 5:return g;case 6:return P;case 2:c(E,g)}else switch(e){case 4:return!1;case 7:c(E,g)}}return d?-1:i||f?f:E}};e.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},37640:function(e,n,r){"use strict";var o=r(4611),i=r(53303),a=r(401),l=r(10164),u=r(72268),s=Math.min,c=[].lastIndexOf,f=!!c&&1/[1].lastIndexOf(1,-0)<0,d=u("lastIndexOf");e.exports=f||!d?function(e){if(f)return o(c,this,arguments)||0;var n=i(this),r=l(n),u=r-1;for(arguments.length>1&&(u=s(u,a(arguments[1]))),u<0&&(u=r+u);u>=0;u--)if(u in n&&n[u]===e)return u||0;return -1}:c},26794:function(e,n,r){"use strict";var o=r(43650),i=r(66630),a=r(99615),l=i("species");e.exports=function(e){return a>=51||!o(function(){var n=[];return(n.constructor={})[l]=function(){return{foo:1}},1!==n[e](Boolean).foo})}},72268:function(e,n,r){"use strict";var o=r(43650);e.exports=function(e,n){var r=[][e];return!!r&&o(function(){r.call(null,n||function(){return 1},1)})}},95612:function(e,n,r){"use strict";var o=r(58360),i=r(62716),a=r(61674),l=r(10164),u=TypeError,s=function(e){return function(n,r,s,c){o(r);var f=i(n),d=a(f),p=l(f),h=e?p-1:0,m=e?-1:1;if(s<2)for(;;){if(h in d){c=d[h],h+=m;break}if(h+=m,e?h<0:p<=h)throw u("Reduce of empty array with no initial value")}for(;e?h>=0:p>h;h+=m)h in d&&(c=r(c,d[h],h,f));return c}};e.exports={left:s(!1),right:s(!0)}},84829:function(e,n,r){"use strict";var o=r(71224),i=r(68443),a=TypeError,l=Object.getOwnPropertyDescriptor,u=o&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=u?function(e,n){if(i(e)&&!l(e,"length").writable)throw a("Cannot set read only .length");return e.length=n}:function(e,n){return e.length=n}},7833:function(e,n,r){"use strict";var o=r(48031),i=r(10164),a=r(95677),l=Array,u=Math.max;e.exports=function(e,n,r){for(var s=i(e),c=o(n,s),f=o(void 0===r?s:r,s),d=l(u(f-c,0)),p=0;c<f;c++,p++)a(d,p,e[c]);return d.length=p,d}},37062:function(e,n,r){"use strict";var o=r(63966);e.exports=o([].slice)},94964:function(e,n,r){"use strict";var o=r(7833),i=Math.floor,a=function(e,n){var r=e.length,s=i(r/2);return r<8?l(e,n):u(e,a(o(e,0,s),n),a(o(e,s),n),n)},l=function(e,n){for(var r,o,i=e.length,a=1;a<i;){for(o=a,r=e[a];o&&n(e[o-1],r)>0;)e[o]=e[--o];o!==a++&&(e[o]=r)}return e},u=function(e,n,r,o){for(var i=n.length,a=r.length,l=0,u=0;l<i||u<a;)e[l+u]=l<i&&u<a?0>=o(n[l],r[u])?n[l++]:r[u++]:l<i?n[l++]:r[u++];return e};e.exports=a},50795:function(e,n,r){"use strict";var o=r(68443),i=r(26530),a=r(70778),l=r(66630)("species"),u=Array;e.exports=function(e){var n;return o(e)&&(i(n=e.constructor)&&(n===u||o(n.prototype))?n=void 0:a(n)&&null===(n=n[l])&&(n=void 0)),void 0===n?u:n}},43786:function(e,n,r){"use strict";var o=r(50795);e.exports=function(e,n){return new(o(e))(0===n?0:n)}},98474:function(e,n,r){"use strict";var o=r(59555),i=r(33820);e.exports=function(e,n,r,a){try{return a?n(o(r)[0],r[1]):n(r)}catch(n){i(e,"throw",n)}}},64310:function(e,n,r){"use strict";var o=r(66630)("iterator"),i=!1;try{var a=0,l={next:function(){return{done:!!a++}},return:function(){i=!0}};l[o]=function(){return this},Array.from(l,function(){throw 2})}catch(e){}e.exports=function(e,n){if(!n&&!i)return!1;var r=!1;try{var a={};a[o]=function(){return{next:function(){return{done:r=!0}}}},e(a)}catch(e){}return r}},27221:function(e,n,r){"use strict";var o=r(63966),i=o({}.toString),a=o("".slice);e.exports=function(e){return a(i(e),8,-1)}},48066:function(e,n,r){"use strict";var o=r(92225),i=r(71335),a=r(27221),l=r(66630)("toStringTag"),u=Object,s="Arguments"==a(function(){return arguments}()),c=function(e,n){try{return e[n]}catch(e){}};e.exports=o?a:function(e){var n,r,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=c(n=u(e),l))?r:s?a(n):"Object"==(o=a(n))&&i(n.callee)?"Arguments":o}},28382:function(e,n,r){"use strict";var o=r(17295),i=r(59901),a=r(94874),l=r(82951),u=r(32565),s=r(12779),c=r(68968),f=r(35380),d=r(49391),p=r(33381),h=r(71224),m=r(84993).fastKey,y=r(79450),v=y.set,b=y.getterFor;e.exports={getConstructor:function(e,n,r,f){var d=e(function(e,i){u(e,p),v(e,{type:n,index:o(null),first:void 0,last:void 0,size:0}),h||(e.size=0),s(i)||c(i,e[f],{that:e,AS_ENTRIES:r})}),p=d.prototype,y=b(n),g=function(e,n,r){var o,i,a=y(e),l=w(e,n);return l?l.value=r:(a.last=l={index:i=m(n,!0),key:n,value:r,previous:o=a.last,next:void 0,removed:!1},a.first||(a.first=l),o&&(o.next=l),h?a.size++:e.size++,"F"!==i&&(a.index[i]=l)),e},w=function(e,n){var r,o=y(e),i=m(n);if("F"!==i)return o.index[i];for(r=o.first;r;r=r.next)if(r.key==n)return r};return a(p,{clear:function(){for(var e=y(this),n=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;e.first=e.last=void 0,h?e.size=0:this.size=0},delete:function(e){var n=y(this),r=w(this,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),h?n.size--:this.size--}return!!r},forEach:function(e){for(var n,r=y(this),o=l(e,arguments.length>1?arguments[1]:void 0);n=n?n.next:r.first;
1)for(o(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function(e){return!!w(this,e)}}),a(p,r?{get:function(e){var n=w(this,e);return n&&n.value},set:function(e,n){return g(this,0===e?0:e,n)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),h&&i(p,"size",{configurable:!0,get:function(){return y(this).size}}),d},setStrong:function(e,n,r){var o=n+" Iterator",i=b(n),a=b(o);f(e,n,function(e,n){v(this,{type:o,target:e,state:i(e),kind:n,last:void 0})},function(){for(var e=a(this),n=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==n?d(r.key,!1):"values"==n?d(r.value,!1):d([r.key,r.value],!1):(e.target=void 0,d(void 0,!0))},r?"entries":"values",!r,!0),p(n)}}},46521:function(e,n,r){"use strict";var o=r(63966),i=r(94874),a=r(84993).getWeakData,l=r(32565),u=r(59555),s=r(12779),c=r(70778),f=r(68968),d=r(66890),p=r(84159),h=r(79450),m=h.set,y=h.getterFor,v=d.find,b=d.findIndex,g=o([].splice),w=0,k=function(e){return e.frozen||(e.frozen=new O)},O=function(){this.entries=[]},_=function(e,n){return v(e.entries,function(e){return e[0]===n})};O.prototype={get:function(e){var n=_(this,e);if(n)return n[1]},has:function(e){return!!_(this,e)},set:function(e,n){var r=_(this,e);r?r[1]=n:this.entries.push([e,n])},delete:function(e){var n=b(this.entries,function(n){return n[0]===e});return~n&&g(this.entries,n,1),!!~n}},e.exports={getConstructor:function(e,n,r,o){var d=e(function(e,i){l(e,h),m(e,{type:n,id:w++,frozen:void 0}),s(i)||f(i,e[o],{that:e,AS_ENTRIES:r})}),h=d.prototype,v=y(n),b=function(e,n,r){var o=v(e),i=a(u(n),!0);return!0===i?k(o).set(n,r):i[o.id]=r,e};return i(h,{delete:function(e){var n=v(this);if(!c(e))return!1;var r=a(e);return!0===r?k(n).delete(e):r&&p(r,n.id)&&delete r[n.id]},has:function(e){var n=v(this);if(!c(e))return!1;var r=a(e);return!0===r?k(n).has(e):r&&p(r,n.id)}}),i(h,r?{get:function(e){var n=v(this);if(c(e)){var r=a(e);return!0===r?k(n).get(e):r?r[n.id]:void 0}},set:function(e,n){return b(this,e,n)}}:{add:function(e){return b(this,e,!0)}}),d}}},71454:function(e,n,r){"use strict";var o=r(54828),i=r(72847),a=r(63966),l=r(8433),u=r(52522),s=r(84993),c=r(68968),f=r(32565),d=r(71335),p=r(12779),h=r(70778),m=r(43650),y=r(64310),v=r(15366),b=r(50818);e.exports=function(e,n,r){var g=-1!==e.indexOf("Map"),w=-1!==e.indexOf("Weak"),k=g?"set":"add",O=i[e],_=O&&O.prototype,j=O,P={},S=function(e){var n=a(_[e]);u(_,e,"add"==e?function(e){return n(this,0===e?0:e),this}:"delete"==e?function(e){return(!w||!!h(e))&&n(this,0===e?0:e)}:"get"==e?function(e){return w&&!h(e)?void 0:n(this,0===e?0:e)}:"has"==e?function(e){return(!w||!!h(e))&&n(this,0===e?0:e)}:function(e,r){return n(this,0===e?0:e,r),this})};if(l(e,!d(O)||!(w||_.forEach&&!m(function(){new O().entries().next()}))))j=r.getConstructor(n,e,g,k),s.enable();else if(l(e,!0)){var E=new j,x=E[k](w?{}:-0,1)!=E,C=m(function(){E.has(1)}),R=y(function(e){new O(e)}),A=!w&&m(function(){for(var e=new O,n=5;n--;)e[k](n,n);return!e.has(-0)});R||((j=n(function(e,n){f(e,_);var r=b(new O,e,j);return p(n)||c(n,r[k],{that:r,AS_ENTRIES:g}),r})).prototype=_,_.constructor=j),(C||A)&&(S("delete"),S("has"),g&&S("get")),(A||x)&&S(k),w&&_.clear&&delete _.clear}return P[e]=j,o({global:!0,constructor:!0,forced:j!=O},P),v(j,e),w||r.setStrong(j,e,g),j}},12604:function(e,n,r){"use strict";var o=r(84159),i=r(9929),a=r(51578),l=r(11830);e.exports=function(e,n,r){for(var u=i(n),s=l.f,c=a.f,f=0;f<u.length;f++){var d=u[f];o(e,d)||r&&o(r,d)||s(e,d,c(n,d))}}},89955:function(e,n,r){"use strict";var o=r(66630)("match");e.exports=function(e){var n=/./;try{"/./"[e](n)}catch(r){try{return n[o]=!1,"/./"[e](n)}catch(e){}}return!1}},10822:function(e,n,r){"use strict";var o=r(43650);e.exports=!o(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},49391:function(e){"use strict";e.exports=function(e,n){return{value:e,done:n}}},60769:function(e,n,r){"use strict";var o=r(71224),i=r(11830),a=r(41418);e.exports=o?function(e,n,r){return i.f(e,n,a(1,r))}:function(e,n,r){return e[n]=r,e}},41418:function(e){"use strict";e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},95677:function(e,n,r){"use strict";var o=r(59690),i=r(11830),a=r(41418);e.exports=function(e,n,r){var l=o(n);l in e?i.f(e,l,a(0,r)):e[l]=r}},15109:function(e,n,r){"use strict";var o=r(63966),i=r(43650),a=r(80701).start,l=RangeError,u=isFinite,s=Math.abs,c=Date.prototype,f=c.toISOString,d=o(c.getTime),p=o(c.getUTCDate),h=o(c.getUTCFullYear),m=o(c.getUTCHours),y=o(c.getUTCMilliseconds),v=o(c.getUTCMinutes),b=o(c.getUTCMonth),g=o(c.getUTCSeconds);e.exports=i(function(){return"0385-07-25T07:06:39.999Z"!=f.call(new Date(-5e13-1))})||!i(function(){f.call(new Date(NaN))}
1)?function(){if(!u(d(this)))throw l("Invalid time value");var e=h(this),n=y(this),r=e<0?"-":e>9999?"+":"";return r+a(s(e),r?6:4,0)+"-"+a(b(this)+1,2,0)+"-"+a(p(this),2,0)+"T"+a(m(this),2,0)+":"+a(v(this),2,0)+":"+a(g(this),2,0)+"."+a(n,3,0)+"Z"}:f},44103:function(e,n,r){"use strict";var o=r(59555),i=r(16900),a=TypeError;e.exports=function(e){if(o(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw a("Incorrect hint");return i(this,e)}},59901:function(e,n,r){"use strict";var o=r(51133),i=r(11830);e.exports=function(e,n,r){return r.get&&o(r.get,n,{getter:!0}),r.set&&o(r.set,n,{setter:!0}),i.f(e,n,r)}},52522:function(e,n,r){"use strict";var o=r(71335),i=r(11830),a=r(51133),l=r(3428);e.exports=function(e,n,r,u){u||(u={});var s=u.enumerable,c=void 0!==u.name?u.name:n;if(o(r)&&a(r,c,u),u.global)s?e[n]=r:l(n,r);else{try{u.unsafe?e[n]&&(s=!0):delete e[n]}catch(e){}s?e[n]=r:i.f(e,n,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return e}},94874:function(e,n,r){"use strict";var o=r(52522);e.exports=function(e,n,r){for(var i in n)o(e,i,n[i],r);return e}},3428:function(e,n,r){"use strict";var o=r(72847),i=Object.defineProperty;e.exports=function(e,n){try{i(o,e,{value:n,configurable:!0,writable:!0})}catch(r){o[e]=n}return n}},15833:function(e,n,r){"use strict";var o=r(49328),i=TypeError;e.exports=function(e,n){if(!delete e[n])throw i("Cannot delete property "+o(n)+" of "+o(e))}},71224:function(e,n,r){"use strict";var o=r(43650);e.exports=!o(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},49926:function(e){"use strict";var n="object"==typeof document&&document.all;e.exports={all:n,IS_HTMLDDA:void 0===n&&void 0!==n}},77123:function(e,n,r){"use strict";var o=r(72847),i=r(70778),a=o.document,l=i(a)&&i(a.createElement);e.exports=function(e){return l?a.createElement(e):{}}},31282:function(e){"use strict";var n=TypeError;e.exports=function(e){if(e>9007199254740991)throw n("Maximum allowed index exceeded");return e}},40001:function(e){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},52309:function(e,n,r){"use strict";var o=r(77123)("span").classList,i=o&&o.constructor&&o.constructor.prototype;e.exports=i===Object.prototype?void 0:i},4829:function(e,n,r){"use strict";var o=r(40290).match(/firefox\/(\d+)/i);e.exports=!!o&&+o[1]},98310:function(e,n,r){"use strict";var o=r(63027),i=r(33996);e.exports=!o&&!i&&"object"==typeof window&&"object"==typeof document},72456:function(e){"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},63027:function(e){"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},76361:function(e,n,r){"use strict";var o=r(40290);e.exports=/MSIE|Trident/.test(o)},47651:function(e,n,r){"use strict";var o=r(40290);e.exports=/ipad|iphone|ipod/i.test(o)&&"undefined"!=typeof Pebble},58329:function(e,n,r){"use strict";var o=r(40290);
1e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(o)},33996:function(e,n,r){"use strict";var o=r(34406),i=r(27221);e.exports=void 0!==o&&"process"==i(o)},66436:function(e,n,r){"use strict";var o=r(40290);e.exports=/web0s(?!.*chrome)/i.test(o)},40290:function(e){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},99615:function(e,n,r){"use strict";var o,i,a=r(72847),l=r(40290),u=a.process,s=a.Deno,c=u&&u.versions||s&&s.version,f=c&&c.v8;f&&(i=(o=f.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&l&&(!(o=l.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=l.match(/Chrome\/(\d+)/))&&(i=+o[1]),e.exports=i},423:function(e,n,r){"use strict";var o=r(40290).match(/AppleWebKit\/(\d+)\./);e.exports=!!o&&+o[1]},46141:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},54828:function(e,n,r){"use strict";var o=r(72847),i=r(51578).f,a=r(60769),l=r(52522),u=r(3428),s=r(12604),c=r(8433);e.exports=function(e,n){var r,f,d,p,h,m=e.target,y=e.global,v=e.stat;if(r=y?o:v?o[m]||u(m,{}):(o[m]||{}).prototype)for(f in n){if(p=n[f],d=e.dontCallGetSet?(h=i(r,f))&&h.value:r[f],!c(y?f:m+(v?".":"#")+f,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;s(p,d)}(e.sham||d&&d.sham)&&a(p,"sham",!0),l(r,f,p,e)}}},43650:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7502:function(e,n,r){"use strict";r(5746);var o=r(2460),i=r(52522),a=r(51016),l=r(43650),u=r(66630),s=r(60769),c=u("species"),f=RegExp.prototype;e.exports=function(e,n,r,d){var p=u(e),h=!l(function(){var n={};return n[p]=function(){return 7},7!=""[e](n)}),m=h&&!l(function(){var n=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return n=!0,null},r[p](""),!n});if(!h||!m||r){var y=o(/./[p]),v=n(p,""[e],function(e,n,r,i,l){var u=o(e),s=n.exec;return s===a||s===f.exec?h&&!l?{done:!0,value:y(n,r,i)}:{done:!0,value:u(r,n,i)}:{done:!1}});i(String.prototype,e,v[0]),i(f,p,v[1])}d&&s(f[p],"sham",!0)}},33404:function(e,n,r){"use strict";var o=r(43650);e.exports=!o(function(){return Object.isExtensible(Object.preventExtensions({}))})},4611:function(e,n,r){"use strict";var o=r(88130),i=Function.prototype,a=i.apply,l=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(o?l.bind(a):function(){return l.apply(a,arguments)})},82951:function(e,n,r){"use strict";var o=r(2460),i=r(58360),a=r(88130),l=o(o.bind);e.exports=function(e,n){return i(e),void 0===n?e:a?l(e,n):function(){return e.apply(n,arguments)}}},88130:function(e,n,r){"use strict";var o=r(43650);e.exports=!o(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},85511:function(e,n,r){"use strict";var o=r(63966),i=r(58360),a=r(70778),l=r(84159),u=r(37062),s=r(88130),c=Function,f=o([].concat),d=o([].join),p={},h=function(e,n,r){if(!l(p,n)){for(var o=[],i=0;i<n;i++)o[i]="a["+i+"]";p[n]=c("C,a","return new C("+d(o,",")+")")}return p[n](e,r)};e.exports=s?c.bind:function(e){var n=i(this),r=n.prototype,o=u(arguments,1),l=function(){var r=f(o,u(arguments));return this instanceof l?h(n,r.length,r):n.apply(e,r)};return a(r)&&(l.prototype=r),l}},20517:function(e,n,r){"use strict";var o=r(88130),i=Function.prototype.call;e.exports=o?i.bind(i):function(){return i.apply(i,arguments)}},14355:function(e,n,r){"use strict";var o=r(71224),i=r(84159),a=Function.prototype,l=o&&Object.getOwnPropertyDescriptor,u=i(a,"name"),s=u&&(!o||o&&l(a,"name").configurable);e.exports={EXISTS:u,PROPER:u&&"something"===(function(){}).name,CONFIGURABLE:s}},9959:function(e,n,r){"use strict";var o=r(63966),i=r(58360);e.exports=function(e,n,r){try{return o(i(Object.getOwnPropertyDescriptor(e,n)[r]))}catch(e){}}},2460:function(e,n,r){"use strict";var o=r(27221),i=r(63966);e.exports=function(e){if("Function"===o(e))return i(e)}},63966:function(e,n,r){"use strict";var o=r(88130),i=Function.prototype,a=i.call,l=o&&i.bind.bind(a,a);e.exports=o?l:function(e){return function(){return a.apply(e,arguments)}}},93760:function(e,n,r){"use strict";var o=r(72847),i=r(71335);e.exports=function(e,n){var r;return arguments.length<2?i(r=o[e])?r:void 0:o[e]&&o[e][n]}},57338:function(e,n,r){"use strict";var o=r(48066),i=r(20744),a=r(12779),l=r(44833),u=r(66630)("iterator");e.exports=function(e){if(!a(e))return i(e,u)||i(e,"@@iterator")||l[o(e)]}},12650:function(e,n,r){"use strict";var o=r(20517),i=r(58360),a=r(59555),l=r(49328),u=r(57338),s=TypeError;e.exports=function(e,n){var r=arguments.length<2?u(e):n;if(i(r))return a(o(r,e));throw s(l(e)+" is not iterable")}},2548:function(e,n,r){"use strict";
1var o=r(63966),i=r(68443),a=r(71335),l=r(27221),u=r(78435),s=o([].push);e.exports=function(e){if(a(e))return e;if(i(e)){for(var n=e.length,r=[],o=0;o<n;o++){var c=e[o];"string"==typeof c?s(r,c):("number"==typeof c||"Number"==l(c)||"String"==l(c))&&s(r,u(c))}var f=r.length,d=!0;return function(e,n){if(d)return d=!1,n;if(i(this))return n;for(var o=0;o<f;o++)if(r[o]===e)return n}}}},20744:function(e,n,r){"use strict";var o=r(58360),i=r(12779);e.exports=function(e,n){var r=e[n];return i(r)?void 0:o(r)}},40443:function(e,n,r){"use strict";var o=r(63966),i=r(62716),a=Math.floor,l=o("".charAt),u=o("".replace),s=o("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,n,r,o,d,p){var h=r+e.length,m=o.length,y=f;return void 0!==d&&(d=i(d),y=c),u(p,y,function(i,u){var c;switch(l(u,0)){case"$":return"$";case"&":return e;case"`":return s(n,0,r);case"'":return s(n,h);case"<":c=d[s(u,1,-1)];break;default:var f=+u;if(0===f)return i;if(f>m){var p=a(f/10);if(0===p)return i;if(p<=m)return void 0===o[p-1]?l(u,1):o[p-1]+l(u,1);return i}c=o[f-1]}return void 0===c?"":c})}},72847:function(e,n,r){"use strict";var o=function(e){return e&&e.Math==Math&&e};e.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},84159:function(e,n,r){"use strict";var o=r(63966),i=r(62716),a=o({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,n){return a(i(e),n)}},64757:function(e){"use strict";e.exports={}},94584:function(e){"use strict";e.exports=function(e,n){try{1==arguments.length?console.error(e):console.error(e,n)}catch(e){}}},60112:function(e,n,r){"use strict";var o=r(93760);e.exports=o("document","documentElement")},86407:function(e,n,r){"use strict";var o=r(71224),i=r(43650),a=r(77123);e.exports=!o&&!i(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},6735:function(e){"use strict";var n=Array,r=Math.abs,o=Math.pow,i=Math.floor,a=Math.log,l=Math.LN2;e.exports={pack:function(e,u,s){var c,f,d,p=n(s),h=8*s-u-1,m=(1<<h)-1,y=m>>1,v=23===u?o(2,-24)-o(2,-77):0,b=e<0||0===e&&1/e<0?1:0,g=0;for((e=r(e))!=e||e===1/0?(f=e!=e?1:0,c=m):(d=o(2,-(c=i(a(e)/l))),e*d<1&&(c--,d*=2),c+y>=1?e+=v/d:e+=v*o(2,1-y),e*d>=2&&(c++,d/=2),c+y>=m?(f=0,c=m):c+y>=1?(f=(e*d-1)*o(2,u),c+=y):(f=e*o(2,y-1)*o(2,u),c=0));u>=8;)p[g++]=255&f,f/=256,u-=8;for(c=c<<u|f,h+=u;h>0;)p[g++]=255&c,c/=256,h-=8;return p[--g]|=128*b,p},unpack:function(e,n){var r,i=e.length,a=8*i-n-1,l=(1<<a)-1,u=l>>1,s=a-7,c=i-1,f=e[c--],d=127&f;for(f>>=7;s>0;)d=256*d+e[c--],s-=8;for(r=d&(1<<-s)-1,d>>=-s,s+=n;s>0;)r=256*r+e[c--],s-=8;if(0===d)d=1-u;else{if(d===l)return r?NaN:f?-1/0:1/0;r+=o(2,n),d-=u}return(f?-1:1)*r*o(2,d-n)}}},61674:function(e,n,r){"use strict";var o=r(63966),i=r(43650),a=r(27221),l=Object,u=o("".split);e.exports=i(function(){return!l("z").propertyIsEnumerable(0)})?function(e){return"String"==a(e)?u(e,""):l(e)}:l},50818:function(e,n,r){"use strict";var o=r(71335),i=r(70778),a=r(23215);e.exports=function(e,n,r){var l,u;return a&&o(l=n.constructor)&&l!==r&&i(u=l.prototype)&&u!==r.prototype&&a(e,u),e}},19373:function(e,n,r){"use strict";var o=r(63966),i=r(71335),a=r(27193),l=o(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return l(e)}),e.exports=a.inspectSource},84993:function(e,n,r){"use strict";var o=r(54828),i=r(63966),a=r(64757),l=r(70778),u=r(84159),s=r(11830).f,c=r(11957),f=r(4510),d=r(7061),p=r(61466),h=r(33404),m=!1,y=p("meta"),v=0,b=function(e){s(e,y,{value:{objectID:"O"+v++,weakData:{}}})},g=e.exports={enable:function(){g.enable=function(){},m=!0;var e=c.f,n=i([].splice),r={};r[y]=1,e(r).length&&(c.f=function(r){for(var o=e(r),i=0,a=o.length;i<a;i++)if(o[i]===y){n(o,i,1);break}return o},o({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(e,n){if(!l(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!u(e,y)){if(!d(e))return"F";if(!n)return"E";b(e)}return e[y].objectID},getWeakData:function(e,n){if(!u(e,y)){if(!d(e))return!0;
vendor: 4,182 bytes, line 1
1if(!n)return!1;b(e)}return e[y].weakData},onFreeze:function(e){return h&&m&&d(e)&&!u(e,y)&&b(e),e}};a[y]=!0},79450:function(e,n,r){"use strict";var o,i,a,l=r(35707),u=r(72847),s=r(70778),c=r(60769),f=r(84159),d=r(27193),p=r(39594),h=r(64757),m="Object already initialized",y=u.TypeError,v=u.WeakMap;if(l||d.state){var b=d.state||(d.state=new v);b.get=b.get,b.has=b.has,b.set=b.set,o=function(e,n){if(b.has(e))throw y(m);return n.facade=e,b.set(e,n),n},i=function(e){return b.get(e)||{}},a=function(e){return b.has(e)}}else{var g=p("state");h[g]=!0,o=function(e,n){if(f(e,g))throw y(m);return n.facade=e,c(e,g,n),n},i=function(e){return f(e,g)?e[g]:{}},a=function(e){return f(e,g)}}e.exports={set:o,get:i,has:a,enforce:function(e){return a(e)?i(e):o(e,{})},getterFor:function(e){return function(n){var r;if(!s(n)||(r=i(n)).type!==e)throw y("Incompatible receiver, "+e+" required");return r}}}},71627:function(e,n,r){"use strict";var o=r(66630),i=r(44833),a=o("iterator"),l=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||l[a]===e)}},68443:function(e,n,r){"use strict";var o=r(27221);e.exports=Array.isArray||function(e){return"Array"==o(e)}},78693:function(e,n,r){"use strict";var o=r(48066);e.exports=function(e){var n=o(e);return"BigInt64Array"==n||"BigUint64Array"==n}},71335:function(e,n,r){"use strict";var o=r(49926),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},26530:function(e,n,r){"use strict";var o=r(63966),i=r(43650),a=r(71335),l=r(48066),u=r(93760),s=r(19373),c=function(){},f=[],d=u("Reflect","construct"),p=/^\s*(?:class|function)\b/,h=o(p.exec),m=!p.exec(c),y=function(e){if(!a(e))return!1;try{return d(c,f,e),!0}catch(e){return!1}},v=function(e){if(!a(e))return!1;switch(l(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!h(p,s(e))}catch(e){return!0}};v.sham=!0,e.exports=!d||i(function(){var e;return y(y.call)||!y(Object)||!y(function(){e=!0})||e})?v:y},41180:function(e,n,r){"use strict";var o=r(84159);e.exports=function(e){return void 0!==e&&(o(e,"value")||o(e,"writable"))}},8433:function(e,n,r){"use strict";var o=r(43650),i=r(71335),a=/#|\.prototype\./,l=function(e,n){var r=s[u(e)];return r==f||r!=c&&(i(n)?o(n):!!n)},u=l.normalize=function(e){return String(e).replace(a,".").toLowerCase()},s=l.data={},c=l.NATIVE="N",f=l.POLYFILL="P";e.exports=l},93344:function(e,n,r){"use strict";var o=r(70778),i=Math.floor;e.exports=Number.isInteger||function(e){return!o(e)&&isFinite(e)&&i(e)===e}},12779:function(e){"use strict";e.exports=function(e){return null==e}},70778:function(e,n,r){"use strict";var o=r(71335),i=r(49926),a=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:o(e)||e===a}:function(e){return"object"==typeof e?null!==e:o(e)}},69450:function(e){"use strict";e.exports=!1},99206:function(e,n,r){"use strict";var o=r(70778),i=r(27221),a=r(66630)("match");e.exports=function(e){var n;return o(e)&&(void 0!==(n=e[a])?!!n:"RegExp"==i(e))}},10633:function(e,n,r){"use strict";var o=r(93760),i=r(71335),a=r(37317),l=r(82073),u=Object;e.exports=l?function(e){return"symbol"==typeof e}:function(e){var n=o("Symbol");return i(n)&&a(n.prototype,u(e))}},68968:function(e,n,r){"use strict";var o=r(82951),i=r(20517),a=r(59555),l=r(49328),u=r(71627),s=r(10164),c=r(37317),f=r(12650),d=r(57338),p=r(33820),h=TypeError,m=function(e,n){this.stopped=e,this.result=n},y=m.prototype;e.exports=function(e,n,r){var v,b,g,w,k,O,_,j=r&&r.that,P=!!(r&&r.AS_ENTRIES),S=!!(r&&r.IS_RECORD),E=!!(r&&r.IS_ITERATOR),x=!!(r&&r.INTERRUPTED),C=o(n,j),R=function(e){return v&&p(v,"normal",e),new m(!0,e)},A=function(e){return P?(a(e),x?C(e[0],e[1],R):C(e[0],e[1])):x?C(e,R):C(e)};if(S)v=e.iterator;else if(E)v=e;else{if(!(b=d(e)))throw h(l(e)+" is not iterable");if(u(b)){for(g=0,w=s(e);w>g;g++)if((k=A(e[g]))&&c(y,k))return k;return new m(!1)}v=f(e,b)}for(O=S?e.next:v.next;!(_=i(O,v)).done;){try{k=A(_.value)}catch(e){p(v,"throw",e)}if("object"==typeof k&&k&&c(y,k))return k}return new m(!1)}},33820:function(e,n,r){"use strict";var o=r(20517),i=r(59555),a=r(20744);e.exports=function(e,n,r){var l,u;i(e);
vendor: 5,568 bytes, line 1
1try{if(!(l=a(e,"return"))){if("throw"===n)throw r;return r}l=o(l,e)}catch(e){u=!0,l=e}if("throw"===n)throw r;if(u)throw l;return i(l),r}},70531:function(e,n,r){"use strict";var o=r(85189).IteratorPrototype,i=r(17295),a=r(41418),l=r(15366),u=r(44833),s=function(){return this};e.exports=function(e,n,r,c){var f=n+" Iterator";return e.prototype=i(o,{next:a(+!c,r)}),l(e,f,!1,!0),u[f]=s,e}},35380:function(e,n,r){"use strict";var o=r(54828),i=r(20517),a=r(69450),l=r(14355),u=r(71335),s=r(70531),c=r(25015),f=r(23215),d=r(15366),p=r(60769),h=r(52522),m=r(66630),y=r(44833),v=r(85189),b=l.PROPER,g=l.CONFIGURABLE,w=v.IteratorPrototype,k=v.BUGGY_SAFARI_ITERATORS,O=m("iterator"),_="keys",j="values",P="entries",S=function(){return this};e.exports=function(e,n,r,l,m,v,E){s(r,n,l);var x,C,R,A=function(e){if(e===m&&L)return L;if(!k&&e in D)return D[e];switch(e){case _:case j:case P:return function(){return new r(this,e)}}return function(){return new r(this)}},M=n+" Iterator",T=!1,D=e.prototype,I=D[O]||D["@@iterator"]||m&&D[m],L=!k&&I||A(m),V="Array"==n&&D.entries||I;if(V&&(x=c(V.call(new e)))!==Object.prototype&&x.next&&(a||c(x)===w||(f?f(x,w):u(x[O])||h(x,O,S)),d(x,M,!0,!0),a&&(y[M]=S)),b&&m==j&&I&&I.name!==j&&(!a&&g?p(D,"name",j):(T=!0,L=function(){return i(I,this)})),m){if(C={values:A(j),keys:v?L:A(_),entries:A(P)},E)for(R in C)!k&&!T&&R in D||h(D,R,C[R]);else o({target:n,proto:!0,forced:k||T},C)}return(!a||E)&&D[O]!==L&&h(D,O,L,{name:m}),y[n]=L,C}},85189:function(e,n,r){"use strict";var o,i,a,l=r(43650),u=r(71335),s=r(70778),c=r(17295),f=r(25015),d=r(52522),p=r(66630),h=r(69450),m=p("iterator"),y=!1;[].keys&&("next"in(a=[].keys())?(i=f(f(a)))!==Object.prototype&&(o=i):y=!0),!s(o)||l(function(){var e={};return o[m].call(e)!==e})?o={}:h&&(o=c(o)),u(o[m])||d(o,m,function(){return this}),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:y}},44833:function(e){"use strict";e.exports={}},10164:function(e,n,r){"use strict";var o=r(9111);e.exports=function(e){return o(e.length)}},51133:function(e,n,r){"use strict";var o=r(63966),i=r(43650),a=r(71335),l=r(84159),u=r(71224),s=r(14355).CONFIGURABLE,c=r(19373),f=r(79450),d=f.enforce,p=f.get,h=String,m=Object.defineProperty,y=o("".slice),v=o("".replace),b=o([].join),g=u&&!i(function(){return 8!==m(function(){},"length",{value:8}).length}),w=String(String).split("String"),k=e.exports=function(e,n,r){"Symbol("===y(h(n),0,7)&&(n="["+v(h(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(n="get "+n),r&&r.setter&&(n="set "+n),(!l(e,"name")||s&&e.name!==n)&&(u?m(e,"name",{value:n,configurable:!0}):e.name=n),g&&r&&l(r,"arity")&&e.length!==r.arity&&m(e,"length",{value:r.arity});try{r&&l(r,"constructor")&&r.constructor?u&&m(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=d(e);return l(o,"source")||(o.source=b(w,"string"==typeof n?n:"")),e};Function.prototype.toString=k(function(){return a(this)&&p(this).source||c(this)},"toString")},83951:function(e){"use strict";var n=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var o=+e;return(o>0?r:n)(o)}},53990:function(e,n,r){"use strict";var o,i,a,l,u,s=r(72847),c=r(82951),f=r(51578).f,d=r(7716).set,p=r(3781),h=r(58329),m=r(47651),y=r(66436),v=r(33996),b=s.MutationObserver||s.WebKitMutationObserver,g=s.document,w=s.process,k=s.Promise,O=f(s,"queueMicrotask"),_=O&&O.value;if(!_){var j=new p,P=function(){var e,n;for(v&&(e=w.domain)&&e.exit();n=j.get();)try{n()}catch(e){throw j.head&&o(),e}e&&e.enter()};h||v||y||!b||!g?!m&&k&&k.resolve?((l=k.resolve(void 0)).constructor=k,u=c(l.then,l),o=function(){u(P)}):v?o=function(){w.nextTick(P)}:(d=c(d,s),o=function(){d(P)}):(i=!0,a=g.createTextNode(""),new b(P).observe(a,{characterData:!0}),o=function(){a.data=i=!i}),_=function(e){j.head||o(),j.add(e)}}e.exports=_},4619:function(e,n,r){"use strict";var o=r(58360),i=TypeError,a=function(e){var n,r;this.promise=new e(function(e,o){if(void 0!==n||void 0!==r)throw i("Bad Promise constructor");n=e,r=o}),this.resolve=o(n),this.reject=o(r)};e.exports.f=function(e){return new a(e)}},41554:function(e,n,r){"use strict";var o=r(99206),i=TypeError;e.exports=function(e){if(o(e))throw i("The method doesn't accept regular expressions");return e}},52396:function(e,n,r){"use strict";var o=r(72847).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&o(e)}},90251:function(e,n,r){"use strict";var o=r(72847),i=r(43650),a=r(63966),l=r(78435),u=r(92685).trim,s=r(25926),c=a("".charAt),f=o.parseFloat,d=o.Symbol,p=d&&d.iterator,h=1/f(s+"-0")!=-1/0||p&&!i(function(){f(Object(p))});e.exports=h?function(e){var n=u(l(e)),r=f(n);return 0===r&&"-"==c(n,0)?-0:r}:f},83674:function(e,n,r){"use strict";var o=r(72847),i=r(43650),a=r(63966),l=r(78435),u=r(92685).trim,s=r(25926),c=o.parseInt,f=o.Symbol,d=f&&f.iterator,p=/^[+-]?0x/i,h=a(p.exec),m=8!==c(s+"08")||22!==c(s+"0x16")||d&&!i(function(){c(Object(d))});e.exports=m?function(e,n){var r=u(l(e));return c(r,n>>>0||(h(p,r)?16:10))}:c},58787:function(e,n,r){"use strict";var o=r(71224),i=r(63966),a=r(20517),l=r(43650),u=r(62837),s=r(61218),c=r(59781),f=r(62716),d=r(61674),p=Object.assign,h=Object.defineProperty,m=i([].concat);e.exports=!p||l(function(){if(o&&1!==p({b:1},p(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},r=Symbol(),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach(function(e){n[e]=e}),7!=p({},e)[r]||u(p({},n)).join("")!=i})?function(e,n){for(var r=f(e),i=arguments.length,l=1,p=s.f,h=c.f;i>l;)for(var y,v=d(arguments[l++]),b=p?m(u(v),p(v)):u(v),g=b.length,w=0;g>w;
1)y=b[w++],(!o||a(h,v,y))&&(r[y]=v[y]);return r}:p},17295:function(e,n,r){"use strict";var o,i=r(59555),a=r(50075),l=r(46141),u=r(64757),s=r(60112),c=r(77123),f=r(39594),d="prototype",p="script",h=f("IE_PROTO"),m=function(){},y=function(e){return"<"+p+">"+e+"</"+p+">"},v=function(e){e.write(y("")),e.close();var n=e.parentWindow.Object;return e=null,n},b=function(){var e,n=c("iframe");return n.style.display="none",s.appendChild(n),n.src=String("java"+p+":"),(e=n.contentWindow.document).open(),e.write(y("document.F=Object")),e.close(),e.F},g=function(){try{o=new ActiveXObject("htmlfile")}catch(e){}g="undefined"!=typeof document?document.domain&&o?v(o):b():v(o);for(var e=l.length;e--;)delete g[d][l[e]];return g()};u[h]=!0,e.exports=Object.create||function(e,n){var r;return null!==e?(m[d]=i(e),r=new m,m[d]=null,r[h]=e):r=g(),void 0===n?r:a.f(r,n)}},50075:function(e,n,r){"use strict";var o=r(71224),i=r(37051),a=r(11830),l=r(59555),u=r(53303),s=r(62837);n.f=o&&!i?Object.defineProperties:function(e,n){l(e);for(var r,o=u(n),i=s(n),c=i.length,f=0;c>f;)a.f(e,r=i[f++],o[r]);return e}},11830:function(e,n,r){"use strict";var o=r(71224),i=r(86407),a=r(37051),l=r(59555),u=r(59690),s=TypeError,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",h="writable";n.f=o?a?function(e,n,r){if(l(e),n=u(n),l(r),"function"==typeof e&&"prototype"===n&&"value"in r&&h in r&&!r[h]){var o=f(e,n);o&&o[h]&&(e[n]=r.value,r={configurable:p in r?r[p]:o[p],enumerable:d in r?r[d]:o[d],writable:!1})}return c(e,n,r)}:c:function(e,n,r){if(l(e),n=u(n),l(r),i)try{return c(e,n,r)}catch(e){}if("get"in r||"set"in r)throw s("Accessors not supported");return"value"in r&&(e[n]=r.value),e}},51578:function(e,n,r){"use strict";var o=r(71224),i=r(20517),a=r(59781),l=r(41418),u=r(53303),s=r(59690),c=r(84159),f=r(86407),d=Object.getOwnPropertyDescriptor;n.f=o?d:function(e,n){if(e=u(e),n=s(n),f)try{return d(e,n)}catch(e){}if(c(e,n))return l(!i(a.f,e,n),e[n])}},4510:function(e,n,r){"use strict";var o=r(27221),i=r(53303),a=r(11957).f,l=r(7833),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return a(e)}catch(e){return l(u)}};e.exports.f=function(e){return u&&"Window"==o(e)?s(e):a(i(e))}},11957:function(e,n,r){"use strict";var o=r(81403),i=r(46141).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return o(e,i)}},61218:function(e,n){"use strict";n.f=Object.getOwnPropertySymbols},25015:function(e,n,r){"use strict";var o=r(84159),i=r(71335),a=r(62716),l=r(39594),u=r(10822),s=l("IE_PROTO"),c=Object,f=c.prototype;e.exports=u?c.getPrototypeOf:function(e){var n=a(e);if(o(n,s))return n[s];var r=n.constructor;return i(r)&&n instanceof r?r.prototype:n instanceof c?f:null}},7061:function(e,n,r){"use strict";var o=r(43650),i=r(70778),a=r(27221),l=r(81367),u=Object.isExtensible,s=o(function(){u(1)});e.exports=s||l?function(e){return!!i(e)&&(!l||"ArrayBuffer"!=a(e))&&(!u||u(e))}:u},37317:function(e,n,r){"use strict";var o=r(63966);e.exports=o({}.isPrototypeOf)},81403:function(e,n,r){"use strict";var o=r(63966),i=r(84159),a=r(53303),l=r(78342).indexOf,u=r(64757),s=o([].push);e.exports=function(e,n){var r,o=a(e),c=0,f=[];for(r in o)!i(u,r)&&i(o,r)&&s(f,r);for(;n.length>c;)i(o,r=n[c++])&&(~l(f,r)||s(f,r));return f}},62837:function(e,n,r){"use strict";var o=r(81403),i=r(46141);e.exports=Object.keys||function(e){return o(e,i)}},59781:function(e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(e){var n=o(this,e);return!!n&&n.enumerable}:r},21019:function(e,n,r){"use strict";var o=r(69450),i=r(72847),a=r(43650),l=r(423);e.exports=o||!a(function(){if(!l||!(l<535)){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete i[e]}})},23215:function(e,n,r){"use strict";var o=r(9959),i=r(59555),a=r(70030);
1e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,n=!1,r={};try{(e=o(Object.prototype,"__proto__","set"))(r,[]),n=r instanceof Array}catch(e){}return function(r,o){return i(r),a(o),n?e(r,o):r.__proto__=o,r}}():void 0)},56722:function(e,n,r){"use strict";var o=r(71224),i=r(43650),a=r(63966),l=r(25015),u=r(62837),s=r(53303),c=a(r(59781).f),f=a([].push),d=o&&i(function(){var e=Object.create(null);return e[2]=2,!c(e,2)}),p=function(e){return function(n){for(var r,i=s(n),a=u(i),p=d&&null===l(i),h=a.length,m=0,y=[];h>m;)r=a[m++],(!o||(p?r in i:c(i,r)))&&f(y,e?[r,i[r]]:i[r]);return y}};e.exports={entries:p(!0),values:p(!1)}},32257:function(e,n,r){"use strict";var o=r(92225),i=r(48066);e.exports=o?({}).toString:function(){return"[object "+i(this)+"]"}},16900:function(e,n,r){"use strict";var o=r(20517),i=r(71335),a=r(70778),l=TypeError;e.exports=function(e,n){var r,u;if("string"===n&&i(r=e.toString)&&!a(u=o(r,e))||i(r=e.valueOf)&&!a(u=o(r,e))||"string"!==n&&i(r=e.toString)&&!a(u=o(r,e)))return u;throw l("Can't convert object to primitive value")}},9929:function(e,n,r){"use strict";var o=r(93760),i=r(63966),a=r(11957),l=r(61218),u=r(59555),s=i([].concat);e.exports=o("Reflect","ownKeys")||function(e){var n=a.f(u(e)),r=l.f;return r?s(n,r(e)):n}},66559:function(e,n,r){"use strict";var o=r(72847);e.exports=o},10884:function(e){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},53177:function(e,n,r){"use strict";var o=r(72847),i=r(74607),a=r(71335),l=r(8433),u=r(19373),s=r(66630),c=r(98310),f=r(63027),d=r(69450),p=r(99615),h=i&&i.prototype,m=s("species"),y=!1,v=a(o.PromiseRejectionEvent),b=l("Promise",function(){var e=u(i),n=e!==String(i);if(!n&&66===p||d&&!(h.catch&&h.finally))return!0;if(!p||p<51||!/native code/.test(e)){var r=new i(function(e){e(1)}),o=function(e){e(function(){},function(){})};if((r.constructor={})[m]=o,!(y=r.then(function(){}) instanceof o))return!0}return!n&&(c||f)&&!v});e.exports={CONSTRUCTOR:b,REJECTION_EVENT:v,SUBCLASSING:y}},74607:function(e,n,r){"use strict";var o=r(72847);e.exports=o.Promise},70840:function(e,n,r){"use strict";var o=r(59555),i=r(70778),a=r(4619);e.exports=function(e,n){if(o(e),i(n)&&n.constructor===e)return n;var r=a.f(e);return(0,r.resolve)(n),r.promise}},215:function(e,n,r){"use strict";var o=r(74607),i=r(64310),a=r(53177).CONSTRUCTOR;e.exports=a||!i(function(e){o.all(e).then(void 0,function(){})})},74549:function(e,n,r){"use strict";var o=r(11830).f;e.exports=function(e,n,r){r in e||o(e,r,{configurable:!0,get:function(){return n[r]},set:function(e){n[r]=e}})}},3781:function(e){"use strict";var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var n={item:e,next:null},r=this.tail;r?r.next=n:this.head=n,this.tail=n},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=n},62611:function(e,n,r){"use strict";var o=r(20517),i=r(59555),a=r(71335),l=r(27221),u=r(51016),s=TypeError;e.exports=function(e,n){var r=e.exec;if(a(r)){var c=o(r,e,n);return null!==c&&i(c),c}if("RegExp"===l(e))return o(u,e,n);throw s("RegExp#exec called on incompatible receiver")}},51016:function(e,n,r){"use strict";var o,i,a=r(20517),l=r(63966),u=r(78435),s=r(50845),c=r(39411),f=r(16094),d=r(17295),p=r(79450).get,h=r(15645),m=r(64503),y=f("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,b=v,g=l("".charAt),w=l("".indexOf),k=l("".replace),O=l("".slice),_=(i=/b*/g,a(v,o=/a/,"a"),a(v,i,"a"),0!==o.lastIndex||0!==i.lastIndex),j=c.BROKEN_CARET,P=void 0!==/()??/.exec("")[1];(_||P||j||h||m)&&(b=function(e){var n,r,o,i,l,c,f,h=p(this),m=u(e),S=h.raw;if(S)return S.lastIndex=this.lastIndex,n=a(b,S,m),this.lastIndex=S.lastIndex,n;var E=h.groups,x=j&&this.sticky,C=a(s,this),R=this.source,A=0,M=m;if(x&&(-1===w(C=k(C,"y",""),"g")&&(C+="g"),M=O(m,this.lastIndex),this.lastIndex>0&&(!this.multiline||this.multiline&&"\n"!==g(m,this.lastIndex-1))&&(R="(?: "+R+")",M=" "+M,A++),r=RegExp("^(?:"+R+")",C)),P&&(r=RegExp("^"+R+"$(?!\\s)",C)),_&&(o=this.lastIndex),i=a(v,x?r:this,M),x?i?(i.input=O(i.input,A),i[0]=O(i[0],A),i.index=this.lastIndex,this.lastIndex+=i[0].length):this.lastIndex=0:_&&i&&(this.lastIndex=this.global?i.index+i[0].length:o),P&&i&&i.length>1&&a(y,i[0],r,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(i[l]=void 0)}),i&&E)for(l=0,i.groups=c=d(null);l<E.length;l++)c[(f=E[l])[0]]=i[f[1]];return i}),e.exports=b},50845:function(e,n,r){"use strict";var o=r(59555);e.exports=function(){var e=o(this),n="";return e.hasIndices&&(n+="d"),e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.unicodeSets&&(n+="v"),e.sticky&&(n+="y"),n}},80384:function(e,n,r){"use strict";var o=r(20517),i=r(84159),a=r(37317),l=r(50845),u=RegExp.prototype;e.exports=function(e){var n=e.flags;return void 0===n&&!("flags"in u)&&!i(e,"flags")&&a(u,e)?o(l,e):n}},39411:function(e,n,r){"use strict";var o=r(43650),i=r(72847).RegExp,a=o(function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),l=a||o(function(){return!i("a","y").sticky}),u=a||o(function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")});e.exports={BROKEN_CARET:u,MISSED_STICKY:l,UNSUPPORTED_Y:a}},15645:function(e,n,r){"use strict";var o=r(43650),i=r(72847).RegExp;e.exports=o(function(){var e=i(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})},64503:function(e,n,r){"use strict";var o=r(43650),i=r(72847).RegExp;e.exports=o(function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},30838:function(e,n,r){"use strict";var o=r(12779),i=TypeError;e.exports=function(e){if(o(e))throw i("Can't call method on "+e);return e}},84806:function(e){"use strict";e.exports=Object.is||function(e,n){return e===n?0!==e||1/e==1/n:e!=e&&n!=n}},17320:function(e,n,r){"use strict";var o,i=r(72847),a=r(4611),l=r(71335),u=r(72456),s=r(40290),c=r(37062),f=r(92624),d=i.Function,p=/MSIE .\./.test(s)||u&&((o=i.Bun.version.split(".")).length<3||0==o[0]&&(o[1]<3||3==o[1]&&0==o[2]));e.exports=function(e,n){var r=n?2:1;return p?function(o,i){var u=f(arguments.length,1)>r,s=l(o)?o:d(o),p=u?c(arguments,r):[],h=u?function(){a(s,this,p)}:s;return n?e(h,i):e(h)}:e}},33381:function(e,n,r){"use strict";var o=r(93760),i=r(59901),a=r(66630),l=r(71224),u=a("species");e.exports=function(e){var n=o(e);l&&n&&!n[u]&&i(n,u,{configurable:!0,get:function(){return this}})}},15366:function(e,n,r){"use strict";var o=r(11830).f,i=r(84159),a=r(66630)("toStringTag");e.exports=function(e,n,r){e&&!r&&(e=e.prototype),e&&!i(e,a)&&o(e,a,{configurable:!0,value:n})}},39594:function(e,n,r){"use strict";var o=r(16094),i=r(61466),a=o("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},27193:function(e,n,r){"use strict";var o=r(72847),i=r(3428),a="__core-js_shared__",l=o[a]||i(a,{});e.exports=l},16094:function(e,n,r){"use strict";var o=r(69450),i=r(27193);
vendor: 2,323 bytes, line 1
1(e.exports=function(e,n){return i[e]||(i[e]=void 0!==n?n:{})})("versions",[]).push({version:"3.32.0",mode:o?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE",source:"https://github.com/zloirock/core-js"})},47594:function(e,n,r){"use strict";var o=r(59555),i=r(38790),a=r(12779),l=r(66630)("species");e.exports=function(e,n){var r,u=o(e).constructor;return void 0===u||a(r=o(u)[l])?n:i(r)}},7070:function(e,n,r){"use strict";var o=r(63966),i=r(401),a=r(78435),l=r(30838),u=o("".charAt),s=o("".charCodeAt),c=o("".slice),f=function(e){return function(n,r){var o,f,d=a(l(n)),p=i(r),h=d.length;return p<0||p>=h?e?"":void 0:(o=s(d,p))<55296||o>56319||p+1===h||(f=s(d,p+1))<56320||f>57343?e?u(d,p):o:e?c(d,p,p+2):(o-55296<<10)+(f-56320)+65536}};e.exports={codeAt:f(!1),charAt:f(!0)}},91204:function(e,n,r){"use strict";var o=r(40290);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(o)},80701:function(e,n,r){"use strict";var o=r(63966),i=r(9111),a=r(78435),l=r(74126),u=r(30838),s=o(l),c=o("".slice),f=Math.ceil,d=function(e){return function(n,r,o){var l,d,p=a(u(n)),h=i(r),m=p.length,y=void 0===o?" ":a(o);return h<=m||""==y?p:((d=s(y,f((l=h-m)/y.length))).length>l&&(d=c(d,0,l)),e?p+d:d+p)}};e.exports={start:d(!1),end:d(!0)}},82847:function(e,n,r){"use strict";var o=r(63966),i=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,l="Overflow: input needs wider integers to process",u=RangeError,s=o(a.exec),c=Math.floor,f=String.fromCharCode,d=o("".charCodeAt),p=o([].join),h=o([].push),m=o("".replace),y=o("".split),v=o("".toLowerCase),b=function(e){for(var n=[],r=0,o=e.length;r<o;){var i=d(e,r++);if(i>=55296&&i<=56319&&r<o){var a=d(e,r++);(64512&a)==56320?h(n,((1023&i)<<10)+(1023&a)+65536):(h(n,i),r--)}else h(n,i)}return n},g=function(e){return e+22+75*(e<26)},w=function(e,n,r){var o=0;for(e=r?c(e/700):e>>1,e+=c(e/n);e>455;)e=c(e/35),o+=36;return c(o+36*e/(e+38))},k=function(e){var n,r,o=[],i=(e=b(e)).length,a=128,s=0,d=72;for(n=0;n<e.length;n++)(r=e[n])<128&&h(o,f(r));var m=o.length,y=m;for(m&&h(o,"-");y<i;){var v=2147483647;for(n=0;n<e.length;n++)(r=e[n])>=a&&r<v&&(v=r);var k=y+1;if(v-a>c((2147483647-s)/k))throw u(l);for(s+=(v-a)*k,a=v,n=0;n<e.length;n++){if((r=e[n])<a&&++s>2147483647)throw u(l);
1if(r==a){for(var O=s,_=36;;){var j=_<=d?1:_>=d+26?26:_-d;if(O<j)break;var P=O-j,S=36-j;h(o,f(g(j+P%S))),O=c(P/S),_+=36}h(o,f(g(O))),d=w(s,k,y==m),s=0,y++}}s++,a++}return p(o,"")};e.exports=function(e){var n,r,o=[],l=y(m(v(e),a,"."),".");for(n=0;n<l.length;n++)h(o,s(i,r=l[n])?"xn--"+k(r):r);return p(o,".")}},74126:function(e,n,r){"use strict";var o=r(401),i=r(78435),a=r(30838),l=RangeError;e.exports=function(e){var n=i(a(this)),r="",u=o(e);if(u<0||u==1/0)throw l("Wrong number of repetitions");for(;u>0;(u>>>=1)&&(n+=n))1&u&&(r+=n);return r}},64443:function(e,n,r){"use strict";var o=r(14355).PROPER,i=r(43650),a=r(25926),l="â\x85á ";e.exports=function(e){return i(function(){return!!a[e]()||l[e]()!==l||o&&a[e].name!==e})}},92685:function(e,n,r){"use strict";var o=r(63966),i=r(30838),a=r(78435),l=r(25926),u=o("".replace),s=RegExp("^["+l+"]+"),c=RegExp("(^|[^"+l+"])["+l+"]+$"),f=function(e){return function(n){var r=a(i(n));return 1&e&&(r=u(r,s,"")),2&e&&(r=u(r,c,"$1")),r}};e.exports={start:f(1),end:f(2),trim:f(3)}},45199:function(e,n,r){"use strict";var o=r(99615),i=r(43650),a=r(72847).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol();return!a(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&o&&o<41})},96628:function(e,n,r){"use strict";var o=r(20517),i=r(93760),a=r(66630),l=r(52522);e.exports=function(){var e=i("Symbol"),n=e&&e.prototype,r=n&&n.valueOf,u=a("toPrimitive");n&&!n[u]&&l(n,u,function(e){return o(r,this)},{arity:1})}},64487:function(e,n,r){"use strict";var o=r(45199);e.exports=o&&!!Symbol.for&&!!Symbol.keyFor},7716:function(e,n,r){"use strict";var o,i,a,l,u=r(72847),s=r(4611),c=r(82951),f=r(71335),d=r(84159),p=r(43650),h=r(60112),m=r(37062),y=r(77123),v=r(92624),b=r(58329),g=r(33996),w=u.setImmediate,k=u.clearImmediate,O=u.process,_=u.Dispatch,j=u.Function,P=u.MessageChannel,S=u.String,E=0,x={},C="onreadystatechange";p(function(){o=u.location});var R=function(e){if(d(x,e)){var n=x[e];delete x[e],n()}},A=function(e){return function(){R(e)}},M=function(e){R(e.data)},T=function(e){u.postMessage(S(e),o.protocol+"//"+o.host)};w&&k||(w=function(e){v(arguments.length,1);var n=f(e)?e:j(e),r=m(arguments,1);return x[++E]=function(){s(n,void 0,r)},i(E),E},k=function(e){delete x[e]},g?i=function(e){O.nextTick(A(e))}:_&&_.now?i=function(e){_.now(A(e))}:P&&!b?(l=(a=new P).port2,a.port1.onmessage=M,i=c(l.postMessage,l)):u.addEventListener&&f(u.postMessage)&&!u.importScripts&&o&&"file:"!==o.protocol&&!p(T)?(i=T,u.addEventListener("message",M,!1)):i=C in y("script")?function(e){h.appendChild(y("script"))[C]=function(){h.removeChild(this),R(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:w,clear:k}},35448:function(e,n,r){"use strict";var o=r(63966);e.exports=o(1..valueOf)},48031:function(e,n,r){"use strict";var o=r(401),i=Math.max,a=Math.min;e.exports=function(e,n){var r=o(e);return r<0?i(r+n,0):a(r,n)}},21850:function(e,n,r){"use strict";var o=r(24378),i=TypeError;e.exports=function(e){var n=o(e,"number");if("number"==typeof n)throw i("Can't convert number to bigint");return BigInt(n)}},79169:function(e,n,r){"use strict";var o=r(401),i=r(9111),a=RangeError;e.exports=function(e){if(void 0===e)return 0;var n=o(e),r=i(n);if(n!==r)throw a("Wrong length or index");return r}},53303:function(e,n,r){"use strict";var o=r(61674),i=r(30838);e.exports=function(e){return o(i(e))}},401:function(e,n,r){"use strict";var o=r(83951);e.exports=function(e){var n=+e;return n!=n||0===n?0:o(n)}},9111:function(e,n,r){"use strict";var o=r(401),i=Math.min;e.exports=function(e){return e>0?i(o(e),9007199254740991):0}},62716:function(e,n,r){"use strict";var o=r(30838),i=Object;e.exports=function(e){return i(o(e))}},22823:function(e,n,r){"use strict";var o=r(65996),i=RangeError;e.exports=function(e,n){var r=o(e);if(r%n)throw i("Wrong offset");return r}},65996:function(e,n,r){"use strict";var o=r(401),i=RangeError;e.exports=function(e){var n=o(e);if(n<0)throw i("The argument can't be less than 0");return n}},24378:function(e,n,r){"use strict";var o=r(20517),i=r(70778),a=r(10633),l=r(20744),u=r(16900),s=r(66630),c=TypeError,f=s("toPrimitive");e.exports=function(e,n){if(!i(e)||a(e))return e;var r,s=l(e,f);if(s){if(void 0===n&&(n="default"),!i(r=o(s,e,n))||a(r))return r;throw c("Can't convert object to primitive value")}return void 0===n&&(n="number"),u(e,n)}},59690:function(e,n,r){"use strict";var o=r(24378),i=r(10633);e.exports=function(e){var n=o(e,"string");return i(n)?n:n+""}},92225:function(e,n,r){"use strict";var o=r(66630)("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},78435:function(e,n,r){"use strict";var o=r(48066),i=String;e.exports=function(e){if("Symbol"===o(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},16987:function(e){"use strict";var n=Math.round;e.exports=function(e){var r=n(e);return r<0?0:r>255?255:255&r}},49328:function(e){"use strict";var n=String;e.exports=function(e){try{return n(e)}catch(e){return"Object"}}},91728:function(e,n,r){"use strict";var o=r(54828),i=r(72847),a=r(20517),l=r(71224),u=r(67829),s=r(12340),c=r(2431),f=r(32565),d=r(41418),p=r(60769),h=r(93344),m=r(9111),y=r(79169),v=r(22823),b=r(16987),g=r(59690),w=r(84159),k=r(48066),O=r(70778),_=r(10633),j=r(17295),P=r(37317),S=r(23215),E=r(11957).f,x=r(45243),C=r(66890).forEac
vendor: 4,914 bytes, line 1
1h,R=r(33381),A=r(59901),M=r(11830),T=r(51578),D=r(79450),I=r(50818),L=D.get,V=D.set,N=D.enforce,F=M.f,U=T.f,B=i.RangeError,z=c.ArrayBuffer,q=z.prototype,H=c.DataView,W=s.NATIVE_ARRAY_BUFFER_VIEWS,K=s.TYPED_ARRAY_TAG,G=s.TypedArray,Y=s.TypedArrayPrototype,J=s.aTypedArrayConstructor,X=s.isTypedArray,Z="BYTES_PER_ELEMENT",Q="Wrong length",ee=function(e,n){J(e);for(var r=0,o=n.length,i=new e(o);o>r;)i[r]=n[r++];return i},et=function(e,n){A(e,n,{configurable:!0,get:function(){return L(this)[n]}})},en=function(e){var n;return P(q,e)||"ArrayBuffer"==(n=k(e))||"SharedArrayBuffer"==n},er=function(e,n){return X(e)&&!_(n)&&n in e&&h(+n)&&n>=0},eo=function(e,n){return er(e,n=g(n))?d(2,e[n]):U(e,n)},ei=function(e,n,r){return er(e,n=g(n))&&O(r)&&w(r,"value")&&!w(r,"get")&&!w(r,"set")&&!r.configurable&&(!w(r,"writable")||r.writable)&&(!w(r,"enumerable")||r.enumerable)?(e[n]=r.value,e):F(e,n,r)};l?(W||(T.f=eo,M.f=ei,et(Y,"buffer"),et(Y,"byteOffset"),et(Y,"byteLength"),et(Y,"length")),o({target:"Object",stat:!0,forced:!W},{getOwnPropertyDescriptor:eo,defineProperty:ei}),e.exports=function(e,n,r){var l=e.match(/\d+/)[0]/8,s=e+(r?"Clamped":"")+"Array",c="get"+e,d="set"+e,h=i[s],g=h,w=g&&g.prototype,k={},_=function(e,n){var r=L(e);return r.view[c](n*l+r.byteOffset,!0)},P=function(e,n,o){var i=L(e);i.view[d](n*l+i.byteOffset,r?b(o):o,!0)},A=function(e,n){F(e,n,{get:function(){return _(this,n)},set:function(e){return P(this,n,e)},enumerable:!0})};W?u&&(g=n(function(e,n,r,o){return f(e,w),I(O(n)?en(n)?void 0!==o?new h(n,v(r,l),o):void 0!==r?new h(n,v(r,l)):new h(n):X(n)?ee(g,n):a(x,g,n):new h(y(n)),e,g)}),S&&S(g,G),C(E(h),function(e){e in g||p(g,e,h[e])}),g.prototype=w):(g=n(function(e,n,r,o){f(e,w);var i,u,s,c=0,d=0;if(O(n)){if(en(n)){i=n,d=v(r,l);var p=n.byteLength;if(void 0===o){if(p%l||(u=p-d)<0)throw B(Q)}else if((u=m(o)*l)+d>p)throw B(Q);s=u/l}else if(X(n))return ee(g,n);else return a(x,g,n)}else i=new z(u=(s=y(n))*l);for(V(e,{buffer:i,byteOffset:d,byteLength:u,length:s,view:new H(i)});c<s;)A(e,c++)}),S&&S(g,G),w=g.prototype=j(Y)),w.constructor!==g&&p(w,"constructor",g),N(w).TypedArrayConstructor=g,K&&p(w,K,s);var M=g!=h;k[s]=g,o({global:!0,constructor:!0,forced:M,sham:!W},k),Z in g||p(g,Z,l),Z in w||p(w,Z,l),R(s)}):e.exports=function(){}},67829:function(e,n,r){"use strict";var o=r(72847),i=r(43650),a=r(64310),l=r(12340).NATIVE_ARRAY_BUFFER_VIEWS,u=o.ArrayBuffer,s=o.Int8Array;e.exports=!l||!i(function(){s(1)})||!i(function(){new s(-1)})||!a(function(e){new s,new s(null),new s(1.5),new s(e)},!0)||i(function(){return 1!==new s(new u(2),1,void 0).length})},12494:function(e,n,r){"use strict";var o=r(76817),i=r(19211);e.exports=function(e,n){return o(i(e),n)}},45243:function(e,n,r){"use strict";var o=r(82951),i=r(20517),a=r(38790),l=r(62716),u=r(10164),s=r(12650),c=r(57338),f=r(71627),d=r(78693),p=r(12340).aTypedArrayConstructor,h=r(21850);e.exports=function(e){var n,r,m,y,v,b,g,w,k=a(this),O=l(e),_=arguments.length,j=_>1?arguments[1]:void 0,P=void 0!==j,S=c(O);if(S&&!f(S))for(w=(g=s(O,S)).next,O=[];!(b=i(w,g)).done;)O.push(b.value);for(P&&_>2&&(j=o(j,arguments[2])),r=u(O),y=d(m=new(p(k))(r)),n=0;r>n;n++)v=P?j(O[n],n):O[n],m[n]=y?h(v):+v;return m}},19211:function(e,n,r){"use strict";var o=r(12340),i=r(47594),a=o.aTypedArrayConstructor,l=o.getTypedArrayConstructor;e.exports=function(e){return a(i(e,l(e)))}},61466:function(e,n,r){"use strict";var o=r(63966),i=0,a=Math.random(),l=o(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+l(++i+a,36)}},85046:function(e,n,r){"use strict";var o=r(43650),i=r(66630),a=r(71224),l=r(69450),u=i("iterator");e.exports=!o(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),n=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),o="";return e.pathname="c%20d",n.forEach(function(e,r){n.delete("b"),o+=r+e}),r.delete("a",2),r.delete("b",void 0),l&&(!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!n.size&&(l||!a)||!n.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==n.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!n[u]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://ÑеÑÑ").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==o||"x"!==new URL("http://x",void 0).host})},82073:function(e,n,r){"use strict";var o=r(45199);e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},37051:function(e,n,r){"use strict";var o=r(71224),i=r(43650);e.exports=o&&i(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},92624:function(e){"use strict";var n=TypeError;e.exports=function(e,r){if(e<r)throw n("Not enough arguments");return e}},35707:function(e,n,r){"use strict";var o=r(72847),i=r(71335),a=o.WeakMap;e.exports=i(a)&&/native code/.test(String(a))},29546:function(e,n,r){"use strict";var o=r(66559),i=r(84159),a=r(6911),l=r(11830).f;
1e.exports=function(e){var n=o.Symbol||(o.Symbol={});i(n,e)||l(n,e,{value:a.f(e)})}},6911:function(e,n,r){"use strict";var o=r(66630);n.f=o},66630:function(e,n,r){"use strict";var o=r(72847),i=r(16094),a=r(84159),l=r(61466),u=r(45199),s=r(82073),c=o.Symbol,f=i("wks"),d=s?c.for||c:c&&c.withoutSetter||l;e.exports=function(e){return a(f,e)||(f[e]=u&&a(c,e)?c[e]:d("Symbol."+e)),f[e]}},25926:function(e){"use strict";e.exports=" \n\v\f\r \xa0áââââââ
ââââââ¯âã\u2028\u2029\uFEFF"},16362:function(e,n,r){"use strict";var o=r(54828),i=r(2460),a=r(43650),l=r(2431),u=r(59555),s=r(48031),c=r(9111),f=r(47594),d=l.ArrayBuffer,p=l.DataView,h=p.prototype,m=i(d.prototype.slice),y=i(h.getUint8),v=i(h.setUint8);o({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:a(function(){return!new d(2).slice(1,void 0).byteLength})},{slice:function(e,n){if(m&&void 0===n)return m(u(this),e);for(var r=u(this).byteLength,o=s(e,r),i=s(void 0===n?r:n,r),a=new(f(this,d))(c(i-o)),l=new p(this),h=new p(a),b=0;o<i;)v(h,b++,y(l,o++));return a}})},43001:function(e,n,r){"use strict";var o=r(54828),i=r(43650),a=r(68443),l=r(70778),u=r(62716),s=r(10164),c=r(31282),f=r(95677),d=r(43786),p=r(26794),h=r(66630),m=r(99615),y=h("isConcatSpreadable"),v=m>=51||!i(function(){var e=[];return e[y]=!1,e.concat()[0]!==e}),b=function(e){if(!l(e))return!1;var n=e[y];return void 0!==n?!!n:a(e)};o({target:"Array",proto:!0,arity:1,forced:!v||!p("concat")},{concat:function(e){var n,r,o,i,a,l=u(this),p=d(l,0),h=0;for(n=-1,o=arguments.length;n<o;n++)if(a=-1===n?l:arguments[n],b(a))for(c(h+(i=s(a))),r=0;r<i;r++,h++)r in a&&f(p,h,a[r]);else c(h+1),f(p,h++,a);return p.length=h,p}})},73985:function(e,n,r){"use strict";var o=r(54828),i=r(66890).every;o({target:"Array",proto:!0,forced:!r(72268)("every")},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},35968:function(e,n,r){"use strict";var o=r(54828),i=r(66890).filter;o({target:"Array",proto:!0,forced:!r(26794)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},98595:function(e,n,r){"use strict";var o=r(54828),i=r(66890).findIndex,a=r(8625),l="findIndex",u=!0;l in[]&&[,][l](function(){u=!1}),o({target:"Array",proto:!0,forced:u},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(l)},62089:function(e,n,r){"use strict";var o=r(54828),i=r(66890).find,a=r(8625),l="find",u=!0;l in[]&&[,][l](function(){u=!1}),o({target:"Array",proto:!0,forced:u},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(l)},88455:function(e,n,r){"use strict";var o=r(54828),i=r(55599);o({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},12083:function(e,n,r){"use strict";var o=r(54828),i=r(77332);o({target:"Array",stat:!0,forced:!r(64310)(function(e){Array.from(e)})},{from:i})},28121:function(e,n,r){"use strict";var o=r(54828),i=r(78342).includes,a=r(43650),l=r(8625);o({target:"Array",proto:!0,forced:a(function(){return![,].includes()})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),l("includes")},69446:function(e,n,r){"use strict";var o=r(54828),i=r(2460),a=r(78342).indexOf,l=r(72268),u=i([].indexOf),s=!!u&&1/u([1],1,-0)<0;o({target:"Array",proto:!0,forced:s||!l("indexOf")},{indexOf:function(e){var n=arguments.length>1?arguments[1]:void 0;return s?u(this,e,n)||0:a(this,e,n)}})},18036:function(e,n,r){"use strict";r(54828)({target:"Array",stat:!0},{isArray:r(68443)})},17943:function(e,n,r){"use strict";var o=r(53303),i=r(8625),a=r(44833),l=r(79450),u=r(11830).f,s=r(35380),c=r(49391),f=r(69450),d=r(71224),p="Array Iterator",h=l.set,m=l.getterFor(p);e.exports=s(Array,"Array",function(e,n){h(this,{type:p,target:o(e),index:0,kind:n})},function(){var e=m(this),n=e.target,r=e.kind,o=e.index++;return!n||o>=n.length?(e.target=void 0,c(void 0,!0)):"keys"==r?c(o,!1):"values"==r?c(n[o],!1):c([o,n[o]],!1)},"values");var y=a.Arguments=a.Array;
1if(i("keys"),i("values"),i("entries"),!f&&d&&"values"!==y.name)try{u(y,"name",{value:"values"})}catch(e){}},97172:function(e,n,r){"use strict";var o=r(54828),i=r(63966),a=r(61674),l=r(53303),u=r(72268),s=i([].join);o({target:"Array",proto:!0,forced:a!=Object||!u("join",",")},{join:function(e){return s(l(this),void 0===e?",":e)}})},76381:function(e,n,r){"use strict";var o=r(54828),i=r(66890).map;o({target:"Array",proto:!0,forced:!r(26794)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},71340:function(e,n,r){"use strict";var o=r(54828),i=r(95612).right,a=r(72268),l=r(99615);o({target:"Array",proto:!0,forced:!r(33996)&&l>79&&l<83||!a("reduceRight")},{reduceRight:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},52315:function(e,n,r){"use strict";var o=r(54828),i=r(95612).left,a=r(72268),l=r(99615);o({target:"Array",proto:!0,forced:!r(33996)&&l>79&&l<83||!a("reduce")},{reduce:function(e){var n=arguments.length;return i(this,e,n,n>1?arguments[1]:void 0)}})},99304:function(e,n,r){"use strict";var o=r(54828),i=r(63966),a=r(68443),l=i([].reverse),u=[1,2];o({target:"Array",proto:!0,forced:String(u)===String(u.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),l(this)}})},30902:function(e,n,r){"use strict";var o=r(54828),i=r(68443),a=r(26530),l=r(70778),u=r(48031),s=r(10164),c=r(53303),f=r(95677),d=r(66630),p=r(26794),h=r(37062),m=p("slice"),y=d("species"),v=Array,b=Math.max;o({target:"Array",proto:!0,forced:!m},{slice:function(e,n){var r,o,d,p=c(this),m=s(p),g=u(e,m),w=u(void 0===n?m:n,m);if(i(p)&&(a(r=p.constructor)&&(r===v||i(r.prototype))?r=void 0:l(r)&&null===(r=r[y])&&(r=void 0),r===v||void 0===r))return h(p,g,w);for(d=0,o=new(void 0===r?v:r)(b(w-g,0));g<w;g++,d++)g in p&&f(o,d,p[g]);return o.length=d,o}})},92100:function(e,n,r){"use strict";var o=r(54828),i=r(66890).some;o({target:"Array",proto:!0,forced:!r(72268)("some")},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},13423:function(e,n,r){"use strict";var o=r(54828),i=r(63966),a=r(58360),l=r(62716),u=r(10164),s=r(15833),c=r(78435),f=r(43650),d=r(94964),p=r(72268),h=r(4829),m=r(76361),y=r(99615),v=r(423),b=[],g=i(b.sort),w=i(b.push),k=f(function(){b.sort(void 0)}),O=f(function(){b.sort(null)}),_=p("sort"),j=!f(function(){if(y)return y<70;if(!h||!(h>3)){if(m)return!0;if(v)return v<603;var e,n,r,o,i="";for(e=65;e<76;
vendor: 4,449 bytes, line 1
1e++){switch(n=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(o=0;o<47;o++)b.push({k:n+o,v:r})}for(b.sort(function(e,n){return n.v-e.v}),o=0;o<b.length;o++)n=b[o].k.charAt(0),i.charAt(i.length-1)!==n&&(i+=n);return"DGBEFHACIJK"!==i}});o({target:"Array",proto:!0,forced:k||!O||!_||!j},{sort:function(e){void 0!==e&&a(e);var n,r,o=l(this);if(j)return void 0===e?g(o):g(o,e);var i=[],f=u(o);for(r=0;r<f;r++)r in o&&w(i,o[r]);for(d(i,function(n,r){return void 0===r?-1:void 0===n?1:void 0!==e?+e(n,r)||0:c(n)>c(r)?1:-1}),n=u(i),r=0;r<n;)o[r]=i[r++];for(;r<f;)s(o,r++);return o}})},92782:function(e,n,r){"use strict";var o=r(54828),i=r(62716),a=r(48031),l=r(401),u=r(10164),s=r(84829),c=r(31282),f=r(43786),d=r(95677),p=r(15833),h=r(26794)("splice"),m=Math.max,y=Math.min;o({target:"Array",proto:!0,forced:!h},{splice:function(e,n){var r,o,h,v,b,g,w=i(this),k=u(w),O=a(e,k),_=arguments.length;for(0===_?r=o=0:1===_?(r=0,o=k-O):(r=_-2,o=y(m(l(n),0),k-O)),c(k+r-o),h=f(w,o),v=0;v<o;v++)(b=O+v)in w&&d(h,v,w[b]);if(h.length=o,r<o){for(v=O;v<k-o;v++)b=v+o,g=v+r,b in w?w[g]=w[b]:p(w,g);for(v=k;v>k-o+r;v--)p(w,v-1)}else if(r>o)for(v=k-o;v>O;v--)b=v+o-1,g=v+r-1,b in w?w[g]=w[b]:p(w,g);for(v=0;v<r;v++)w[v+O]=arguments[v+2];return s(w,k-o+r),h}})},10025:function(e,n,r){"use strict";var o=r(54828),i=r(63966),a=Date,l=i(a.prototype.getTime);o({target:"Date",stat:!0},{now:function(){return l(new a)}})},96255:function(e,n,r){"use strict";var o=r(54828),i=r(15109);o({target:"Date",proto:!0,forced:Date.prototype.toISOString!==i},{toISOString:i})},24956:function(e,n,r){"use strict";var o=r(84159),i=r(52522),a=r(44103),l=r(66630)("toPrimitive"),u=Date.prototype;o(u,l)||i(u,l,a)},59012:function(e,n,r){"use strict";var o=r(63966),i=r(52522),a=Date.prototype,l="Invalid Date",u="toString",s=o(a[u]),c=o(a.getTime);String(new Date(NaN))!=l&&i(a,u,function(){var e=c(this);return e==e?s(this):l})},9473:function(e,n,r){"use strict";var o=r(54828),i=r(85511);o({target:"Function",proto:!0,forced:Function.bind!==i},{bind:i})},34078:function(e,n,r){"use strict";var o=r(71224),i=r(14355).EXISTS,a=r(63966),l=r(59901),u=Function.prototype,s=a(u.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,f=a(c.exec);o&&!i&&l(u,"name",{configurable:!0,get:function(){try{return f(c,s(this))[1]}catch(e){return""}}})},91878:function(e,n,r){"use strict";var o=r(54828),i=r(72847);o({global:!0,forced:i.globalThis!==i},{globalThis:i})},34852:function(e,n,r){"use strict";var o=r(54828),i=r(93760),a=r(4611),l=r(20517),u=r(63966),s=r(43650),c=r(71335),f=r(10633),d=r(37062),p=r(2548),h=r(45199),m=String,y=i("JSON","stringify"),v=u(/./.exec),b=u("".charAt),g=u("".charCodeAt),w=u("".replace),k=u(1..toString),O=/[\uD800-\uDFFF]/g,_=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,P=!h||s(function(){var e=i("Symbol")();return"[null]"!=y([e])||"{}"!=y({a:e})||"{}"!=y(Object(e))}),S=s(function(){return'"\udf06\ud834"'!==y("\uDF06\uD834")||'"\udead"'!==y("\uDEAD")}),E=function(e,n){var r=d(arguments),o=p(n);if(!(!c(o)&&(void 0===e||f(e))))return r[1]=function(e,n){if(c(o)&&(n=l(o,this,m(e),n)),!f(n))return n},a(y,null,r)},x=function(e,n,r){var o=b(r,n-1),i=b(r,n+1);return v(_,e)&&!v(j,i)||v(j,e)&&!v(_,o)?"\\u"+k(g(e,0),16):e};y&&o({target:"JSON",stat:!0,arity:3,forced:P||S},{stringify:function(e,n,r){var o=d(arguments),i=a(P?E:y,null,o);return S&&"string"==typeof i?w(i,O,x):i}})},60639:function(e,n,r){"use strict";var o=r(72847);r(15366)(o.JSON,"JSON",!0)},50242:function(e,n,r){"use strict";r(71454)("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},r(28382))},31206:function(e,n,r){"use strict";r(50242)},66054:function(e,n,r){"use strict";var o=r(54828),i=Math.log,a=Math.LN2;o({target:"Math",stat:!0},{log2:function(e){return i(e)/a}})},37714:function(e,n,r){"use strict";r(15366)(Math,"Math",!0)},92884:function(e,n,r){"use strict";var o=r(54828),i=r(69450),a=r(71224),l=r(72847),u=r(66559),s=r(63966),c=r(8433),f=r(84159),d=r(50818),p=r(37317),h=r(10633),m=r(24378),y=r(43650),v=r(11957).f,b=r(51578).f,g=r(11830).f,w=r(35448),k=r(92685).trim,O="Number",_=l[O],j=u[O],P=_.prototype,S=l.TypeError,E=s("".slice),x=s("".charCodeAt),C=function(e){var n=m(e,"number");return"bigint"==typeof n?n:R(n)},R=function(e){var n,r,o,i,a,l,u,s,c=m(e,"number");if(h(c))throw S("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>
vendor: 11,520 bytes, line 1
12){if(43===(n=x(c=k(c),0))||45===n){if(88===(r=x(c,2))||120===r)return NaN}else if(48===n){switch(x(c,1)){case 66:case 98:o=2,i=49;break;case 79:case 111:o=8,i=55;break;default:return+c}for(u=0,l=(a=E(c,2)).length;u<l;u++)if((s=x(a,u))<48||s>i)return NaN;return parseInt(a,o)}}return+c},A=c(O,!_(" 0o1")||!_("0b1")||_("+0x1")),M=function(e){var n,r=arguments.length<1?0:_(C(e));return(n=this,p(P,n)&&y(function(){w(n)}))?d(Object(r),this,M):r};M.prototype=P,A&&!i&&(P.constructor=M),o({global:!0,constructor:!0,wrap:!0,forced:A},{Number:M});var T=function(e,n){for(var r,o=a?v(n):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;o.length>i;i++)f(n,r=o[i])&&!f(e,r)&&g(e,r,b(n,r))};i&&j&&T(u[O],j),(A||i)&&T(u[O],_)},32809:function(e,n,r){"use strict";r(54828)({target:"Number",stat:!0},{isFinite:r(52396)})},16433:function(e,n,r){"use strict";r(54828)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},21500:function(e,n,r){"use strict";var o=r(54828),i=r(83674);o({target:"Number",stat:!0,forced:Number.parseInt!=i},{parseInt:i})},89610:function(e,n,r){"use strict";var o=r(54828),i=r(63966),a=r(401),l=r(35448),u=r(74126),s=r(43650),c=RangeError,f=String,d=Math.floor,p=i(u),h=i("".slice),m=i(1..toFixed),y=function(e,n,r){return 0===n?r:n%2==1?y(e,n-1,r*e):y(e*e,n/2,r)},v=function(e){for(var n=0,r=e;r>=4096;)n+=12,r/=4096;for(;r>=2;)n+=1,r/=2;return n},b=function(e,n,r){for(var o=-1,i=r;++o<6;)i+=n*e[o],e[o]=i%1e7,i=d(i/1e7)},g=function(e,n){for(var r=6,o=0;--r>=0;)o+=e[r],e[r]=d(o/n),o=o%n*1e7},w=function(e){for(var n=6,r="";--n>=0;)if(""!==r||0===n||0!==e[n]){var o=f(e[n]);r=""===r?o:r+p("0",7-o.length)+o}return r};o({target:"Number",proto:!0,forced:s(function(){return"0.000"!==m(8e-5,3)||"1"!==m(.9,0)||"1.25"!==m(1.255,2)||"1000000000000000128"!==m(0xde0b6b3a7640080,0)})||!s(function(){m({})})},{toFixed:function(e){var n,r,o,i,u=l(this),s=a(e),d=[0,0,0,0,0,0],m="",k="0";if(s<0||s>20)throw c("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return f(u);if(u<0&&(m="-",u=-u),u>1e-21){if(r=((n=v(u*y(2,69,1))-69)<0?u*y(2,-n,1):u/y(2,n,1))*4503599627370496,(n=52-n)>0){for(b(d,0,r),o=s;o>=7;)b(d,1e7,0),o-=7;for(b(d,y(10,o,1),0),o=n-1;o>=23;)g(d,8388608),o-=23;g(d,1<<o),b(d,1,1),g(d,2),k=w(d)}else b(d,0,r),b(d,1<<-n,0),k=w(d)+p("0",s)}return s>0?m+((i=k.length)<=s?"0."+p("0",s-i)+k:h(k,0,i-s)+"."+h(k,i-s)):m+k}})},45343:function(e,n,r){"use strict";var o=r(54828),i=r(58787);o({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},14785:function(e,n,r){"use strict";r(54828)({target:"Object",stat:!0,sham:!r(71224)},{create:r(17295)})},46144:function(e,n,r){"use strict";var o=r(54828),i=r(71224),a=r(21019),l=r(58360),u=r(62716),s=r(11830);i&&o({target:"Object",proto:!0,forced:a},{__defineGetter__:function(e,n){s.f(u(this),e,{get:l(n),enumerable:!0,configurable:!0})}})},98197:function(e,n,r){"use strict";var o=r(54828),i=r(71224),a=r(50075).f;o({target:"Object",stat:!0,forced:Object.defineProperties!==a,sham:!i},{defineProperties:a})},26944:function(e,n,r){"use strict";var o=r(54828),i=r(71224),a=r(11830).f;o({target:"Object",stat:!0,forced:Object.defineProperty!==a,sham:!i},{defineProperty:a})},96192:function(e,n,r){"use strict";var o=r(54828),i=r(71224),a=r(21019),l=r(58360),u=r(62716),s=r(11830);i&&o({target:"Object",proto:!0,forced:a},{__defineSetter__:function(e,n){s.f(u(this),e,{set:l(n),enumerable:!0,configurable:!0})}})},41099:function(e,n,r){"use strict";var o=r(54828),i=r(56722).entries;o({target:"Object",stat:!0},{entries:function(e){return i(e)}})},77762:function(e,n,r){"use strict";var o=r(54828),i=r(43650),a=r(53303),l=r(51578).f,u=r(71224);o({target:"Object",stat:!0,forced:!u||i(function(){l(1)}),sham:!u},{getOwnPropertyDescriptor:function(e,n){return l(a(e),n)}})},30534:function(e,n,r){"use strict";var o=r(54828),i=r(71224),a=r(9929),l=r(53303),u=r(51578),s=r(95677);o({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var n,r,o=l(e),i=u.f,c=a(o),f={},d=0;c.length>d;)void 0!==(r=i(o,n=c[d++]))&&s(f,n,r);return f}})},42016:function(e,n,r){"use strict";var o=r(54828),i=r(45199),a=r(43650),l=r(61218),u=r(62716);o({target:"Object",stat:!0,forced:!i||a(function(){l.f(1)})},{getOwnPropertySymbols:function(e){var n=l.f;return n?n(u(e)):[]}})},22818:function(e,n,r){"use strict";var o=r(54828),i=r(43650),a=r(62716),l=r(25015),u=r(10822);o({target:"Object",stat:!0,forced:i(function(){l(1)}),sham:!u},{getPrototypeOf:function(e){return l(a(e))}})},24646:function(e,n,r){"use strict";var o=r(54828),i=r(62716),a=r(62837);o({target:"Object",stat:!0,forced:r(43650)(function(){a(1)})},{keys:function(e){return a(i(e))}})},27846:function(e,n,r){"use strict";r(54828)({target:"Object",stat:!0},{setPrototypeOf:r(23215)})},17223:function(e,n,r){"use strict";var o=r(92225),i=r(52522),a=r(32257);o||i(Object.prototype,"toString",a,{unsafe:!0})},89945:function(e,n,r){"use strict";var o=r(54828),i=r(56722).values;o({target:"Object",stat:!0},{values:function(e){return i(e)}})},87425:function(e,n,r){"use strict";var o=r(54828),i=r(90251);o({global:!0,forced:parseFloat!=i},{parseFloat:i})},28818:function(e,n,r){"use strict";var o=r(54828),i=r(83674);o({global:!0,forced:parseInt!=i},{parseInt:i})},43213:function(e,n,r){"use strict";var o=r(54828),i=r(20517),a=r(58360),l=r(4619),u=r(10884),s=r(68968);o({target:"Promise",stat:!0,forced:r(215)},{all:function(e){var n=this,r=l.f(n),o=r.resolve,c=r.reject,f=u(function(){var r=a(n.resolve),l=[],u=0,f=1;s(e,function(e){var a=u++,s=!1;f++,i(r,n,e).then(function(e){!s&&(s=!0,l[a]=e,--f||o(l))},c)}),--f||o(l)});return f.error&&c(f.value),r.promise}})},15522:function(e,n,r){"use strict";var o=r(54828),i=r(69450),a=r(53177).CONSTRUCTOR,l=r(74607),u=r(93760),s=r(71335),c=r(52522),f=l&&l.prototype;if(o({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&s(l)){var d=u("Promise").prototype.catch;f.catch!==d&&c(f,"catch",d,{unsafe:!0})}},27481:function(e,n,r){"use strict";var o,i,a,l,u=r(54828),s=r(69450),c=r(33996),f=r(72847),d=r(20517),p=r(52522),h=r(23215),m=r(15366),y=r(33381),v=r(58360),b=r(71335),g=r(70778),w=r(32565),k=r(47594),O=r(7716).set,_=r(53990),j=r(94584),P=r(10884),S=r(3781),E=r(79450),x=r(74607),C=r(53177),R=r(4619),A="Promise",M=C.CONSTRUCTOR,T=C.REJECTION_EVENT,D=C.SUBCLASSING,I=E.getterFor(A),L=E.set,V=x&&x.prototype,N=x,F=V,U=f.TypeError,B=f.document,z=f.process,q=R.f,H=q,W=!!(B&&B.createEvent&&f.dispatchEvent),K="unhandledrejection",G=function(e){var n;return!!(g(e)&&b(n=e.then))&&n},Y=function(e,n){var r,o,i,a=n.value,l=1==n.state,u=l?e.ok:e.fail,s=e.resolve,c=e.reject,f=e.domain;try{u?(l||(2===n.rejection&&ee(n),n.rejection=1),!0===u?r=a:(f&&f.enter(),r=u(a),f&&(f.exit(),i=!0)),r===e.promise?c(U("Promise-chain cycle")):(o=G(r))?d(o,r,s,c):s(r)):c(a)}catch(e){f&&!i&&f.exit(),c(e)}},J=function(e,n){e.notified||(e.notified=!0,_(function(){for(var r,o=e.reactions;r=o.get();)Y(r,e);e.notified=!1,n&&!e.rejection&&Z(e)}))},X=function(e,n,r){var o,i;W?((o=B.createEvent("Event")).promise=n,o.reason=r,o.initEvent(e,!1,!0),f.dispatchEvent(o)):o={promise:n,reason:r},!T&&(i=f["on"+e])?i(o):e===K&&j("Unhandled promise rejection",r)},Z=function(e){d(O,f,function(){var n,r=e.facade,o=e.value;if(Q(e)&&(n=P(function(){c?z.emit("unhandledRejection",o,r):X(K,r,o)}),e.rejection=c||Q(e)?2:1,n.error))throw n.value})},Q=function(e){return 1!==e.rejection&&!e.parent},ee=function(e){d(O,f,function(){var n=e.facade;c?z.emit("rejectionHandled",n):X("rejectionhandled",n,e.value)})},et=function(e,n,r){return function(o){e(n,o,r)}},en=function(e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,J(e,!0))},er=function(e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===n)throw U("Promise can't be resolved itself");var o=G(n);o?_(function(){var r={done:!1};try{d(o,n,et(er,r,e),et(en,r,e))}catch(n){en(r,n,e)}}):(e.value=n,e.state=1,J(e,!1))}catch(n){en({done:!1},n,e)}}};if(M&&(F=(N=function(e){w(this,F),v(e),d(o,this);var n=I(this);try{e(et(er,n),et(en,n))}catch(e){en(n,e)}}).prototype,(o=function(e){L(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=p(F,"then",function(e,n){var r=I(this),o=q(k(this,N));return r.parent=!0,o.ok=!b(e)||e,o.fail=b(n)&&n,o.domain=c?z.domain:void 0,0==r.state?r.reactions.add(o):_(function(){Y(o,r)}),o.promise}),i=function(){var e=new o,n=I(e);this.promise=e,this.resolve=et(er,n),this.reject=et(en,n)},R.f=q=function(e){return e===N||e===a?new i(e):H(e)},!s&&b(x)&&V!==Object.prototype)){l=V.then,D||p(V,"then",function(e,n){var r=this;return new N(function(e,n){d(l,r,e,n)}).then(e,n)},{unsafe:!0});try{delete V.constructor}catch(e){}h&&h(V,F)}u({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:N}),m(N,A,!1,!0),y(A)},42237:function(e,n,r){"use strict";var o=r(54828),i=r(69450),a=r(74607),l=r(43650),u=r(93760),s=r(71335),c=r(47594),f=r(70840),d=r(52522),p=a&&a.prototype;if(o({target:"Promise",proto:!0,real:!0,forced:!!a&&l(function(){p.finally.call({then:function(){}},function(){})})},{finally:function(e){var n=c(this,u("Promise")),r=s(e);return this.then(r?function(r){return f(n,e()).then(function(){return r})}:e,r?function(r){return f(n,e()).then(function(){throw r})}:e)}}),!i&&s(a)){var h=u("Promise").prototype.finally;p.finally!==h&&d(p,"finally",h,{unsafe:!0})}},3192:function(e,n,r){"use strict";r(27481),r(43213),r(15522),r(10119),r(42470),r(63397)},10119:function(e,n,r){"use strict";var o=r(54828),i=r(20517),a=r(58360),l=r(4619),u=r(10884),s=r(68968);o({target:"Promise",stat:!0,forced:r(215)},{race:function(e){var n=this,r=l.f(n),o=r.reject,c=u(function(){var l=a(n.resolve);s(e,function(e){i(l,n,e).then(r.resolve,o)})});return c.error&&o(c.value),r.promise}})},42470:function(e,n,r){"use strict";var o=r(54828),i=r(20517),a=r(4619);o({target:"Promise",stat:!0,forced:r(53177).CONSTRUCTOR},{reject:function(e){var n=a.f(this);return i(n.reject,void 0,e),n.promise}})},63397:function(e,n,r){"use strict";var o=r(54828),i=r(93760),a=r(69450),l=r(74607),u=r(53177).CONSTRUCTOR,s=r(70840),c=i("Promise"),f=a&&!u;o({target:"Promise",stat:!0,forced:a||u},{resolve:function(e){return s(f&&this===c?l:this,e)}})},15264:function(e,n,r){"use strict";var o=r(54828),i=r(93760),a=r(4611),l=r(85511),u=r(38790),s=r(59555),c=r(70778),f=r(17295),d=r(43650),p=i("Reflect","construct"),h=Object.prototype,m=[].push,y=d(function(){function e(){}return!(p(function(){},[],e) instanceof e)}),v=!d(function(){p(function(){})}),b=y||v;o({target:"Reflect",stat:!0,forced:b,sham:b},{construct:function(e,n){u(e),s(n);var r=arguments.length<3?e:u(arguments[2]);if(v&&!y)return p(e,n,r);if(e==r){switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3])}var o=[null];return a(m,o,n),new(a(l,e,o))}var i=r.prototype,d=f(c(i)?i:h),b=a(e,d,n);return c(b)?b:d}})},19169:function(e,n,r){"use strict";var o=r(54828),i=r(20517),a=r(70778),l=r(59555),u=r(41180),s=r(51578),c=r(25015);o({target:"Reflect",stat:!0},{get:function e(n,r){var o,f,d=arguments.length<3?n:arguments[2];return l(n)===d?n[r]:(o=s.f(n,r))?u(o)?o.value:void 0===o.get?void 0:i(o.get,d):a(f=c(n))?e(f,r,d):void 0}})},26981:function(e,n,r){"use strict";var o=r(54828),i=r(20517),a=r(59555),l=r(70778),u=r(41180),s=r(43650),c=r(11830),f=r(51578),d=r
vendor: 8,432 bytes, line 1
1(25015),p=r(41418);o({target:"Reflect",stat:!0,forced:s(function(){var e=function(){},n=c.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,n)})},{set:function e(n,r,o){var s,h,m,y=arguments.length<4?n:arguments[3],v=f.f(a(n),r);if(!v){if(l(h=d(n)))return e(h,r,o,y);v=p(0)}if(u(v)){if(!1===v.writable||!l(y))return!1;if(s=f.f(y,r)){if(s.get||s.set||!1===s.writable)return!1;s.value=o,c.f(y,r,s)}else c.f(y,r,p(0,o))}else{if(void 0===(m=v.set))return!1;i(m,y,o)}return!0}})},41126:function(e,n,r){"use strict";var o=r(71224),i=r(72847),a=r(63966),l=r(8433),u=r(50818),s=r(60769),c=r(11957).f,f=r(37317),d=r(99206),p=r(78435),h=r(80384),m=r(39411),y=r(74549),v=r(52522),b=r(43650),g=r(84159),w=r(79450).enforce,k=r(33381),O=r(66630),_=r(15645),j=r(64503),P=O("match"),S=i.RegExp,E=S.prototype,x=i.SyntaxError,C=a(E.exec),R=a("".charAt),A=a("".replace),M=a("".indexOf),T=a("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I=/a/g,L=/a/g,V=new S(I)!==I,N=m.MISSED_STICKY,F=m.UNSUPPORTED_Y,U=o&&(!V||N||_||j||b(function(){return L[P]=!1,S(I)!=I||S(L)==L||"/a/i"!=S(I,"i")})),B=function(e){for(var n,r=e.length,o=0,i="",a=!1;o<=r;o++){if("\\"===(n=R(e,o))){i+=n+R(e,++o);continue}a||"."!==n?("["===n?a=!0:"]"===n&&(a=!1),i+=n):i+="[\\s\\S]"}return i},z=function(e){for(var n,r=e.length,o=0,i="",a=[],l={},u=!1,s=!1,c=0,f="";o<=r;o++){if("\\"===(n=R(e,o)))n+=R(e,++o);else if("]"===n)u=!1;else if(!u)switch(!0){case"["===n:u=!0;break;case"("===n:C(D,T(e,o+1))&&(o+=2,s=!0),i+=n,c++;continue;case">"===n&&s:if(""===f||g(l,f))throw new x("Invalid capture group name");l[f]=!0,a[a.length]=[f,c],s=!1,f="";continue}s?f+=n:i+=n}return[i,a]};if(l("RegExp",U)){for(var q=function(e,n){var r,o,i,a,l,c,m=f(E,this),y=d(e),v=void 0===n,b=[],g=e;if(!m&&y&&v&&e.constructor===q)return e;if((y||f(E,e))&&(e=e.source,v&&(n=h(g))),e=void 0===e?"":p(e),n=void 0===n?"":p(n),g=e,_&&("dotAll"in I)&&(o=!!n&&M(n,"s")>-1)&&(n=A(n,/s/g,"")),r=n,N&&("sticky"in I)&&(i=!!n&&M(n,"y")>-1)&&F&&(n=A(n,/y/g,"")),j&&(e=(a=z(e))[0],b=a[1]),l=u(S(e,n),m?this:E,q),(o||i||b.length)&&(c=w(l),o&&(c.dotAll=!0,c.raw=q(B(e),r)),i&&(c.sticky=!0),b.length&&(c.groups=b)),e!==g)try{s(l,"source",""===g?"(?:)":g)}catch(e){}return l},H=c(S),W=0;H.length>W;)y(q,S,H[W++]);E.constructor=q,q.prototype=E,v(i,"RegExp",q,{constructor:!0})}k("RegExp")},5746:function(e,n,r){"use strict";var o=r(54828),i=r(51016);o({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},17216:function(e,n,r){"use strict";var o=r(72847),i=r(71224),a=r(59901),l=r(50845),u=r(43650),s=o.RegExp,c=s.prototype;i&&u(function(){var e=!0;try{s(".","d")}catch(n){e=!1}var n={},r="",o=e?"dgimsy":"gimsy",i=function(e,o){Object.defineProperty(n,e,{get:function(){return r+=o,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var l in e&&(a.hasIndices="d"),a)i(l,a[l]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(n)!==o||r!==o})&&a(c,"flags",{configurable:!0,get:l})},12551:function(e,n,r){"use strict";var o=r(14355).PROPER,i=r(52522),a=r(59555),l=r(78435),u=r(43650),s=r(80384),c="toString",f=RegExp.prototype[c],d=u(function(){return"/a/b"!=f.call({source:"a",flags:"b"})}),p=o&&f.name!=c;(d||p)&&i(RegExp.prototype,c,function(){var e=a(this);return"/"+l(e.source)+"/"+l(s(e))},{unsafe:!0})},209:function(e,n,r){"use strict";var o,i=r(54828),a=r(2460),l=r(51578).f,u=r(9111),s=r(78435),c=r(41554),f=r(30838),d=r(89955),p=r(69450),h=a("".endsWith),m=a("".slice),y=Math.min,v=d("endsWith");i({target:"String",proto:!0,forced:!(!p&&!v&&(o=l(String.prototype,"endsWith"))&&!o.writable)&&!v},{endsWith:function(e){var n=s(f(this));c(e);var r=arguments.length>1?arguments[1]:void 0,o=n.length,i=void 0===r?o:y(u(r),o),a=s(e);return h?h(n,a,i):m(n,i-a.length,i)===a}})},83972:function(e,n,r){"use strict";var o=r(54828),i=r(63966),a=r(41554),l=r(30838),u=r(78435),s=r(89955),c=i("".indexOf);o({target:"String",proto:!0,forced:!s("includes")},{includes:function(e){return!!~c(u(l(this)),u(a(e)),arguments.length>1?arguments[1]:void 0)}})},15469:function(e,n,r){"use strict";var o=r(7070).charAt,i=r(78435),a=r(79450),l=r(35380),u=r(49391),s="String Iterator",c=a.set,f=a.getterFor(s);l(String,"String",function(e){c(this,{type:s,string:i(e),index:0})},function(){var e,n=f(this),r=n.string,i=n.index;return i>=r.length?u(void 0,!0):(e=o(r,i),n.index+=e.length,u(e,!1))})},45009:function(e,n,r){"use strict";var o=r(20517),i=r(7502),a=r(59555),l=r(12779),u=r(9111),s=r(78435),c=r(30838),f=r(20744),d=r(37005),p=r(62611);i("match",function(e,n,r){return[function(n){var r=c(this),i=l(n)?void 0:f(n,e);return i?o(i,n,r):new RegExp(n)[e](s(r))},function(e){var o,i=a(this),l=s(e),c=r(n,i,l);if(c.done)return c.value;if(!i.global)return p(i,l);var f=i.unicode;i.lastIndex=0;for(var h=[],m=0;null!==(o=p(i,l));){var y=s(o[0]);h[m]=y,""===y&&(i.lastIndex=d(l,u(i.lastIndex),f)),m++}return 0===m?null:h}]})},17217:function(e,n,r){"use strict";var o=r(54828),i=r(80701).start;o({target:"String",proto:!0,forced:r(91204)},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},82778:function(e,n,r){"use strict";r(54828)({target:"String",proto:!0},{repeat:r(74126)})},1153:function(e,n,r){"use strict";var o=r(54828),i=r(20517),a=r(63966),l=r(30838),u=r(71335),s=r(12779),c=r(99206),f=r(78435),d=r(20744),p=r(80384),h=r(40443),m=r(66630),y=r(69450),v=m("replace"),b=TypeError,g=a("".indexOf),w=a("".replace),k=a("".slice),O=Math.max,_=function(e,n,r){return r>e.length?-1:""===n?r:g(e,n,r)};o({target:"String",proto:!0},{replaceAll:function(e,n){var r,o,a,m,j,P,S,E,x=l(this),C=0,R=0,A="";if(!s(e)){if((r=c(e))&&!~g(f(l(p(e))),"g"))throw b("`.replaceAll` does not allow non-global regexes");if(o=d(e,v))return i(o,e,x,n);if(y&&r)return w(f(x),e,n)}for(a=f(x),m=f(e),(j=u(n))||(n=f(n)),S=O(1,P=m.length),C=_(a,m,0);-1!==C;)E=j?f(n(m,C,a)):h(m,a,C,[],void 0,n),A+=k(a,R,C)+E,R=C+P,C=_(a,m,C+S);return R<a.length&&(A+=k(a,R)),A}})},6588:function(e,n,r){"use strict";var o=r(4611),i=r(20517),a=r(63966),l=r(7502),u=r(43650),s=r(59555),c=r(71335),f=r(12779),d=r(401),p=r(9111),h=r(78435),m=r(30838),y=r(37005),v=r(20744),b=r(40443),g=r(62611),w=r(66630)("replace"),k=Math.max,O=Math.min,_=a([].concat),j=a([].push),P=a("".indexOf),S=a("".slice),E="$0"==="a".replace(/./,"$0"),x=!!/./[w]&&""===/./[w]("a","$0");l("replace",function(e,n,r){var a=x?"$":"$0";return[function(e,r){var o=m(this),a=f(e)?void 0:v(e,w);return a?i(a,e,o,r):i(n,h(o),e,r)},function(e,i){var l=s(this),u=h(e);if("string"==typeof i&&-1===P(i,a)&&-1===P(i,"$<")){var f=r(n,l,u,i);if(f.done)return f.value}var m=c(i);m||(i=h(i));var v=l.global;if(v){var w=l.unicode;l.lastIndex=0}for(var E=[];;){var x=g(l,u);if(null===x||(j(E,x),!v))break;""===h(x[0])&&(l.lastIndex=y(u,p(l.lastIndex),w))}for(var C="",R=0,A=0;A<E.length;A++){for(var M,T=h((x=E[A])[0]),D=k(O(d(x.index),u.length),0),I=[],L=1;L<x.length;L++)j(I,void 0===(M=x[L])?M:String(M));var V=x.groups;if(m){var N=_([T],I,D,u);void 0!==V&&j(N,V);var F=h(o(i,void 0,N))}else F=b(T,u,D,I,V,i);D>=R&&(C+=S(u,R,D)+F,R=D+T.length)}return C+S(u,R)}]},!!u(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!E||x)},41666:function(e,n,r){"use strict";var o=r(20517),i=r(7502),a=r(59555),l=r(12779),u=r(30838),s=r(84806),c=r(78435),f=r(20744),d=r(62611);i("search",function(e,n,r){return[function(n){var r=u(this),i=l(n)?void 0:f(n,e);return i?o(i,n,r):new RegExp(n)[e](c(r))},function(e){var o=a(this),i=c(e),l=r(n,o,i);if(l.done)return l.value;var u=o.lastIndex;s(u,0)||(o.lastIndex=0);var f=d(o,i);return s(o.lastIndex,u)||(o.lastIndex=u),null===f?-1:f.index}]})},57184:function(e,n,r){"use strict";var o=r(4611),i=r(20517),a=r(63966),l=r(7502),u=r(59555),s=r(12779),c=r(99206),f=r(30838),d=r(47594),p=r(37005),h=r(9111),m=r(78435),y=r(20744),v=r(7833),b=r(62611),g=r(51016),w=r(39411),k=r(43650),O=w.UNSUPPORTED_Y,_=Math.min,j=[].push,P=a(/./.exec),S=a(j),E=a("".slice);l("split",function(e,n,r){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var a,l,u,s=m(f(this)),d=void 0===r?4294967295:r>>>0;if(0===d)return[];if(void 0===e)return[s];if(!c(e))return i(n,s,e,d);for(var p=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),y=0,b=RegExp(e.source,h+"g");
1(a=i(g,b,s))&&(!((l=b.lastIndex)>y)||(S(p,E(s,y,a.index)),a.length>1&&a.index<s.length&&o(j,p,v(a,1)),u=a[0].length,y=l,!(p.length>=d)));)b.lastIndex===a.index&&b.lastIndex++;return y===s.length?(u||!P(b,""))&&S(p,""):S(p,E(s,y)),p.length>d?v(p,0,d):p}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:i(n,this,e,r)}:n,[function(n,r){var o=f(this),l=s(n)?void 0:y(n,e);return l?i(l,n,o,r):i(a,m(o),n,r)},function(e,o){var i=u(this),l=m(e),s=r(a,i,l,o,a!==n);if(s.done)return s.value;var c=d(i,RegExp),f=i.unicode,y=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(O?"g":"y"),v=new c(O?"^(?:"+i.source+")":i,y),g=void 0===o?4294967295:o>>>0;if(0===g)return[];if(0===l.length)return null===b(v,l)?[l]:[];for(var w=0,k=0,j=[];k<l.length;){v.lastIndex=O?0:k;var P,x=b(v,O?E(l,k):l);if(null===x||(P=_(h(v.lastIndex+(O?k:0)),l.length))===w)k=p(l,k,f);else{if(S(j,E(l,w,k)),j.length===g)return j;for(var C=1;C<=x.length-1;C++)if(S(j,x[C]),j.length===g)return j;k=w=P}}return S(j,E(l,w)),j}]},!!k(function(){var e=/(?:)/,n=e.exec;e.exec=function(){return n.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}),O)},36686:function(e,n,r){"use strict";var o,i=r(54828),a=r(2460),l=r(51578).f,u=r(9111),s=r(78435),c=r(41554),f=r(30838),d=r(89955),p=r(69450),h=a("".startsWith),m=a("".slice),y=Math.min,v=d("startsWith");i({target:"String",proto:!0,forced:!(!p&&!v&&(o=l(String.prototype,"startsWith"))&&!o.writable)&&!v},{startsWith:function(e){var n=s(f(this));c(e);var r=u(y(arguments.length>1?arguments[1]:void 0,n.length)),o=s(e);return h?h(n,o,r):m(n,r,r+o.length)===o}})},50703:function(e,n,r){"use strict";var o=r(54828),i=r(92685).trim;o({target:"String",proto:!0,forced:r(64443)("trim")},{trim:function(){return i(this)}})},65546:function(e,n,r){"use strict";r(29546)("asyncIterator")},72023:function(e,n,r){"use strict";var o=r(54828),i=r(72847),a=r(20517),l=r(63966),u=r(69450),s=r(71224),c=r(45199),f=r(43650),d=r(84159),p=r(37317),h=r(59555),m=r(53303),y=r(59690),v=r(78435),b=r(41418),g=r(17295),w=r(62837),k=r(11957),O=r(4510),_=r(61218),j=r(51578),P=r(11830),S=r(50075),E=r(59781),x=r(52522),C=r(59901),R=r(16094),A=r(39594),M=r(64757),T=r(61466),D=r(66630),I=r(6911),L=r(29546),V=r(96628),N=r(15366),F=r(79450),U=r(66890).forEach,B=A("hidden"),z="Symbol",q="prototype",H=F.set,W=F.getterFor(z),K=Object[q],G=i.Symbol,Y=G&&G[q],J=i.TypeError,X=i.QObject,Z=j.f,Q=P.f,ee=O.f,et=E.f,en=l([].push),er=R("symbols"),eo=R("op-symbols"),ei=R("wks"),ea=!X||!X[q]||!X[q].findChild,el=s&&f(function(){return 7!=g(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a})?function(e,n,r){var o=Z(K,n);o&&delete K[n],Q(e,n,r),o&&e!==K&&Q(K,n,o)}:Q,eu=function(e,n){var r=er[e]=g(Y);return H(r,{type:z,tag:e,description:n}),s||(r.description=n),r},es=function(e,n,r){e===K&&es(eo,n,r),h(e);var o=y(n);return(h(r),d(er,o))?(r.enumerable?(d(e,B)&&e[B][o]&&(e[B][o]=!1),r=g(r,{enumerable:b(0,!1)})):(d(e,B)||Q(e,B,b(1,{})),e[B][o]=!0),el(e,o,r)):Q(e,o,r)},ec=function(e,n){h(e);var r=m(n);return U(w(r).concat(eh(r)),function(n){(!s||a(ef,r,n))&&es(e,n,r[n])}),e},ef=function(e){var n=y(e),r=a(et,this,n);return(!(this===K&&d(er,n))||!!d(eo,n))&&(!(r||!d(this,n)||!d(er,n)||d(this,B)&&this[B][n])||r)},ed=function(e,n){var r=m(e),o=y(n);if(!(r===K&&d(er,o))||d(eo,o)){var i=Z(r,o);return i&&d(er,o)&&!(d(r,B)&&r[B][o])&&(i.enumerable=!0),i}},ep=function(e){var n=ee(m(e)),r=[];return U(n,function(e){d(er,e)||d(M,e)||en(r,e)}),r},eh=function(e){var n=e===K,r=ee(n?eo:m(e)),o=[];return U(r,function(e){d(er,e)&&(!n||d(K,e))&&en(o,er[e])}),o};c||(x(Y=(G=function(){if(p(Y,this))throw J("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,n=T(e),r=function(e){this===K&&a(r,eo,e),d(this,B)&&d(this[B],n)&&(this[B][n]=!1),el(this,n,b(1,e))};return s&&ea&&el(K,n,{configurable:!0,set:r}),eu(n,e)})[q],"toString",function(){return W(this).tag}),x(G,"withoutSetter",function(e){return eu(T(e),e)}),E.f=ef,P.f=es,S.f=ec,j.f=ed,k.f=O.f=ep,_.f=eh,I.f=function(e){return eu(D(e),e)},s&&(C(Y,"description",{configurable:!0,get:function(){return W(this).description}}),u||x(K,"propertyIsEnumerable",ef,{unsafe:!0}))),o({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:G}),U(w(ei),function(e){L(e)}),o({target:z,stat:!0,forced:!c}
vendor: 4,210 bytes, line 1
1,{useSetter:function(){ea=!0},useSimple:function(){ea=!1}}),o({target:"Object",stat:!0,forced:!c,sham:!s},{create:function(e,n){return void 0===n?g(e):ec(g(e),n)},defineProperty:es,defineProperties:ec,getOwnPropertyDescriptor:ed}),o({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ep}),V(),N(G,z),M[B]=!0},12443:function(e,n,r){"use strict";var o=r(54828),i=r(71224),a=r(72847),l=r(63966),u=r(84159),s=r(71335),c=r(37317),f=r(78435),d=r(59901),p=r(12604),h=a.Symbol,m=h&&h.prototype;if(i&&s(h)&&(!("description"in m)||void 0!==h().description)){var y={},v=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),n=c(m,this)?new h(e):void 0===e?h():h(e);return""===e&&(y[n]=!0),n};p(v,h),v.prototype=m,m.constructor=v;var b="Symbol(test)"==String(h("test")),g=l(m.valueOf),w=l(m.toString),k=/^Symbol\((.*)\)[^)]+$/,O=l("".replace),_=l("".slice);d(m,"description",{configurable:!0,get:function(){var e=g(this);if(u(y,e))return"";var n=w(e),r=b?_(n,7,-1):O(n,k,"$1");return""===r?void 0:r}}),o({global:!0,constructor:!0,forced:!0},{Symbol:v})}},97051:function(e,n,r){"use strict";var o=r(54828),i=r(93760),a=r(84159),l=r(78435),u=r(16094),s=r(64487),c=u("string-to-symbol-registry"),f=u("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!s},{for:function(e){var n=l(e);if(a(c,n))return c[n];var r=i("Symbol")(n);return c[n]=r,f[r]=n,r}})},11102:function(e,n,r){"use strict";r(29546)("iterator")},6765:function(e,n,r){"use strict";r(72023),r(97051),r(60743),r(34852),r(42016)},60743:function(e,n,r){"use strict";var o=r(54828),i=r(84159),a=r(10633),l=r(49328),u=r(16094),s=r(64487),c=u("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!s},{keyFor:function(e){if(!a(e))throw TypeError(l(e)+" is not a symbol");if(i(c,e))return c[e]}})},18997:function(e,n,r){"use strict";var o=r(29546),i=r(96628);o("toPrimitive"),i()},93963:function(e,n,r){"use strict";var o=r(93760),i=r(29546),a=r(15366);i("toStringTag"),a(o("Symbol"),"Symbol")},84113:function(e,n,r){"use strict";var o=r(63966),i=r(12340),a=o(r(85164)),l=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",function(e,n){return a(l(this),e,n,arguments.length>2?arguments[2]:void 0)})},58455:function(e,n,r){"use strict";var o=r(12340),i=r(66890).every,a=o.aTypedArray;(0,o.exportTypedArrayMethod)("every",function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)})},28091:function(e,n,r){"use strict";var o=r(12340),i=r(46908),a=r(21850),l=r(48066),u=r(20517),s=r(63966),c=r(43650),f=o.aTypedArray,d=o.exportTypedArrayMethod,p=s("".slice);d("fill",function(e){var n=arguments.length;return f(this),u(i,this,"Big"===p(l(this),0,3)?a(e):+e,n>1?arguments[1]:void 0,n>2?arguments[2]:void 0)},c(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}))},9263:function(e,n,r){"use strict";var o=r(12340),i=r(66890).filter,a=r(12494),l=o.aTypedArray;(0,o.exportTypedArrayMethod)("filter",function(e){var n=i(l(this),e,arguments.length>1?arguments[1]:void 0);return a(this,n)})},43103:function(e,n,r){"use strict";var o=r(12340),i=r(66890).findIndex,a=o.aTypedArray;(0,o.exportTypedArrayMethod)("findIndex",function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)})},5149:function(e,n,r){"use strict";var o=r(12340),i=r(66890).find,a=o.aTypedArray;(0,o.exportTypedArrayMethod)("find",function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)})},47063:function(e,n,r){"use strict";var o=r(12340),i=r(66890).forEach,a=o.aTypedArray;(0,o.exportTypedArrayMethod)("forEach",function(e){i(a(this),e,arguments.length>1?arguments[1]:void 0)})},26081:function(e,n,r){"use strict";var o=r(12340),i=r(78342).includes,a=o.aTypedArray;(0,o.exportTypedArrayMethod)("includes",function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)})},2009:function(e,n,r){"use strict";var o=r(12340),i=r(78342).indexOf,a=o.aTypedArray;(0,o.exportTypedArrayMethod)("indexOf",function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)})},36741:function(e,n,r){"use strict";var o=r(72847),i=r(43650),a=r(63966),l=r(12340),u=r(17943),s=r(66630)("iterator"),c=o.Uint8Array,f=a(u.values),d=a(u.keys),p=a(u.entries),h=l.aTypedArray,m=l.exp
vendor: 5,841 bytes, line 1
1ortTypedArrayMethod,y=c&&c.prototype,v=!i(function(){y[s].call([1])}),b=!!y&&y.values&&y[s]===y.values&&"values"===y.values.name,g=function(){return f(h(this))};m("entries",function(){return p(h(this))},v),m("keys",function(){return d(h(this))},v),m("values",g,v||!b,{name:"values"}),m(s,g,v||!b,{name:"values"})},68252:function(e,n,r){"use strict";var o=r(12340),i=r(63966),a=o.aTypedArray,l=o.exportTypedArrayMethod,u=i([].join);l("join",function(e){return u(a(this),e)})},13275:function(e,n,r){"use strict";var o=r(12340),i=r(4611),a=r(37640),l=o.aTypedArray;(0,o.exportTypedArrayMethod)("lastIndexOf",function(e){var n=arguments.length;return i(a,l(this),n>1?[e,arguments[1]]:[e])})},94580:function(e,n,r){"use strict";var o=r(12340),i=r(66890).map,a=r(19211),l=o.aTypedArray;(0,o.exportTypedArrayMethod)("map",function(e){return i(l(this),e,arguments.length>1?arguments[1]:void 0,function(e,n){return new(a(e))(n)})})},70302:function(e,n,r){"use strict";var o=r(12340),i=r(95612).right,a=o.aTypedArray;(0,o.exportTypedArrayMethod)("reduceRight",function(e){var n=arguments.length;return i(a(this),e,n,n>1?arguments[1]:void 0)})},43721:function(e,n,r){"use strict";var o=r(12340),i=r(95612).left,a=o.aTypedArray;(0,o.exportTypedArrayMethod)("reduce",function(e){var n=arguments.length;return i(a(this),e,n,n>1?arguments[1]:void 0)})},25040:function(e,n,r){"use strict";var o=r(12340),i=o.aTypedArray,a=o.exportTypedArrayMethod,l=Math.floor;a("reverse",function(){for(var e,n=i(this).length,r=l(n/2),o=0;o<r;)e=this[o],this[o++]=this[--n],this[n]=e;return this})},49705:function(e,n,r){"use strict";var o=r(72847),i=r(20517),a=r(12340),l=r(10164),u=r(22823),s=r(62716),c=r(43650),f=o.RangeError,d=o.Int8Array,p=d&&d.prototype,h=p&&p.set,m=a.aTypedArray,y=a.exportTypedArrayMethod,v=!c(function(){var e=new Uint8ClampedArray(2);return i(h,e,{length:1,0:3},1),3!==e[1]}),b=v&&a.NATIVE_ARRAY_BUFFER_VIEWS&&c(function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});y("set",function(e){m(this);var n=u(arguments.length>1?arguments[1]:void 0,1),r=s(e);if(v)return i(h,this,r,n);var o=this.length,a=l(r),c=0;if(a+n>o)throw f("Wrong length");for(;c<a;)this[n+c]=r[c++]},!v||b)},95864:function(e,n,r){"use strict";var o=r(12340),i=r(19211),a=r(43650),l=r(37062),u=o.aTypedArray;(0,o.exportTypedArrayMethod)("slice",function(e,n){for(var r=l(u(this),e,n),o=i(this),a=0,s=r.length,c=new o(s);s>a;)c[a]=r[a++];return c},a(function(){new Int8Array(1).slice()}))},38784:function(e,n,r){"use strict";var o=r(12340),i=r(66890).some,a=o.aTypedArray;(0,o.exportTypedArrayMethod)("some",function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)})},45612:function(e,n,r){"use strict";var o=r(72847),i=r(2460),a=r(43650),l=r(58360),u=r(94964),s=r(12340),c=r(4829),f=r(76361),d=r(99615),p=r(423),h=s.aTypedArray,m=s.exportTypedArrayMethod,y=o.Uint16Array,v=y&&i(y.prototype.sort),b=!!v&&!(a(function(){v(new y(2),null)})&&a(function(){v(new y(2),{})})),g=!!v&&!a(function(){if(d)return d<74;if(c)return c<67;if(f)return!0;if(p)return p<602;var e,n,r=new y(516),o=Array(516);for(e=0;e<516;e++)n=e%4,r[e]=515-e,o[e]=e-2*n+3;for(v(r,function(e,n){return(e/4|0)-(n/4|0)}),e=0;e<516;e++)if(r[e]!==o[e])return!0});m("sort",function(e){return(void 0!==e&&l(e),g)?v(this,e):u(h(this),function(n,r){return void 0!==e?+e(n,r)||0:r!=r?-1:n!=n?1:0===n&&0===r?1/n>0&&1/r<0?1:-1:n>r})},!g||b)},2024:function(e,n,r){"use strict";var o=r(12340),i=r(9111),a=r(48031),l=r(19211),u=o.aTypedArray;(0,o.exportTypedArrayMethod)("subarray",function(e,n){var r=u(this),o=r.length,s=a(e,o);return new(l(r))(r.buffer,r.byteOffset+s*r.BYTES_PER_ELEMENT,i((void 0===n?o:a(n,o))-s))})},9872:function(e,n,r){"use strict";var o=r(72847),i=r(4611),a=r(12340),l=r(43650),u=r(37062),s=o.Int8Array,c=a.aTypedArray,f=a.exportTypedArrayMethod,d=[].toLocaleString,p=!!s&&l(function(){d.call(new s(1))});f("toLocaleString",function(){return i(d,p?u(c(this)):c(this),u(arguments))},l(function(){return[1,2].toLocaleString()!=new s([1,2]).toLocaleString()})||!l(function(){s.prototype.toLocaleString.call([1,2])}))},72028:function(e,n,r){"use strict";var o=r(12340).exportTypedArrayMethod,i=r(43650),a=r(72847),l=r(63966),u=a.Uint8Array,s=u&&u.prototype||{},c=[].toString,f=l([].join);i(function(){c.call({})})&&(c=function(){return f(this)});var d=s.toString!=c;o("toString",c,d)},70020:function(e,n,r){"use strict";r(91728)("Uint8",function(e){return function(n,r,o){return e(this,n,r,o)}})},78091:function(e,n,r){"use strict";var o,i=r(33404),a=r(72847),l=r(63966),u=r(94874),s=r(84993),c=r(71454),f=r(46521),d=r(70778),p=r(79450).enforce,h=r(43650),m=r(35707),y=Object,v=Array.isArray,b=y.isExtensible,g=y.isFrozen,w=y.isSealed,k=y.freeze,O=y.seal,_={},j={},P=!a.ActiveXObject&&"ActiveXObject"in a,S=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},E=c("WeakMap",S,f),x=E.prototype,C=l(x.set);if(m){if(P){o=f.getConstructor(S,"WeakMap",!0),s.enable();var R=l(x.delete),A=l(x.has),M=l(x.get);u(x,{delete:function(e){if(d(e)&&!b(e)){var n=p(this);return n.frozen||(n.frozen=new o),R(this,e)||n.frozen.delete(e)}return R(this,e)},has:function(e){if(d(e)&&!b(e)){var n=p(this);return n.frozen||(n.frozen=new o),A(this,e)||n.frozen.has(e)}return A(this,e)},get:function(e){if(d(e)&&!b(e)){var n=p(this);return n.frozen||(n.frozen=new o),A(this,e)?M(this,e):n.frozen.get(e)}return M(this,e)},set:function(e,n){if(d(e)&&!b(e)){var r=p(this);r.frozen||(r.frozen=new o),A(this,e)?C(this,e,n):r.frozen.set(e,n)}else C(this,e,n);return this}})}else i&&h(function(){var e=k([]);return C(new E,e,1),!g(e)})&&u(x,{set:function(e,n){var r;return v(e)&&(g(e)?r=_:w(e)&&(r=j)),C(this,e,n),r==_&&k(e),r==j&&O(e),this}})}},92370:function(e,n,r){"use strict";r(78091)},51106:function(e,n,r){"use strict";r(91878)},49670:function(e,n,r){"use strict";
1r(1153)},32334:function(e,n,r){"use strict";var o=r(72847),i=r(40001),a=r(52309),l=r(55599),u=r(60769),s=function(e){if(e&&e.forEach!==l)try{u(e,"forEach",l)}catch(n){e.forEach=l}};for(var c in i)i[c]&&s(o[c]&&o[c].prototype);s(a)},1542:function(e,n,r){"use strict";var o=r(72847),i=r(40001),a=r(52309),l=r(17943),u=r(60769),s=r(66630),c=s("iterator"),f=s("toStringTag"),d=l.values,p=function(e,n){if(e){if(e[c]!==d)try{u(e,c,d)}catch(n){e[c]=d}if(e[f]||u(e,f,n),i[n]){for(var r in l)if(e[r]!==l[r])try{u(e,r,l[r])}catch(n){e[r]=l[r]}}}};for(var h in i)p(o[h]&&o[h].prototype,h);p(a,"DOMTokenList")},331:function(e,n,r){"use strict";var o=r(54828),i=r(72847),a=r(17320)(i.setInterval,!0);o({global:!0,bind:!0,forced:i.setInterval!==a},{setInterval:a})},94780:function(e,n,r){"use strict";var o=r(54828),i=r(72847),a=r(17320)(i.setTimeout,!0);o({global:!0,bind:!0,forced:i.setTimeout!==a},{setTimeout:a})},75162:function(e,n,r){"use strict";r(331),r(94780)},36571:function(e,n,r){"use strict";r(17943);var o=r(54828),i=r(72847),a=r(20517),l=r(63966),u=r(71224),s=r(85046),c=r(52522),f=r(59901),d=r(94874),p=r(15366),h=r(70531),m=r(79450),y=r(32565),v=r(71335),b=r(84159),g=r(82951),w=r(48066),k=r(59555),O=r(70778),_=r(78435),j=r(17295),P=r(41418),S=r(12650),E=r(57338),x=r(92624),C=r(66630),R=r(94964),A=C("iterator"),M="URLSearchParams",T=M+"Iterator",D=m.set,I=m.getterFor(M),L=m.getterFor(T),V=Object.getOwnPropertyDescriptor,N=function(e){if(!u)return i[e];var n=V(i,e);return n&&n.value},F=N("fetch"),U=N("Request"),B=N("Headers"),z=U&&U.prototype,q=B&&B.prototype,H=i.RegExp,W=i.TypeError,K=i.decodeURIComponent,G=i.encodeURIComponent,Y=l("".charAt),J=l([].join),X=l([].push),Z=l("".replace),Q=l([].shift),ee=l([].splice),et=l("".split),en=l("".slice),er=/\+/g,eo=[,,,,],ei=function(e){try{return K(e)}catch(n){return e}},ea=function(e){var n,r=Z(e,er," "),o=4;try{return K(r)}catch(e){for(;o;)r=Z(r,eo[(n=o--)-1]||(eo[n-1]=H("((?:%[\\da-f]{2}){"+n+"})","gi")),ei);return r}}
vendor: 7,662 bytes, line 1
1,el=/[!'()~]|%20/g,eu={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},es=function(e){return eu[e]},ec=function(e){return Z(G(e),el,es)},ef=h(function(e,n){D(this,{type:T,iterator:S(I(e).entries),kind:n})},"Iterator",function(){var e=L(this),n=e.kind,r=e.iterator.next(),o=r.value;return r.done||(r.value="keys"===n?o.key:"values"===n?o.value:[o.key,o.value]),r},!0),ed=function(e){this.entries=[],this.url=null,void 0!==e&&(O(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Y(e,0)?en(e,1):e:_(e)))};ed.prototype={type:M,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var n,r,o,i,l,u,s,c=E(e);if(c)for(r=(n=S(e,c)).next;!(o=a(r,n)).done;){if((u=a(l=(i=S(k(o.value))).next,i)).done||(s=a(l,i)).done||!a(l,i).done)throw W("Expected sequence with length 2");X(this.entries,{key:_(u.value),value:_(s.value)})}else for(var f in e)b(e,f)&&X(this.entries,{key:f,value:_(e[f])})},parseQuery:function(e){if(e)for(var n,r,o=et(e,"&"),i=0;i<o.length;)(n=o[i++]).length&&(r=et(n,"="),X(this.entries,{key:ea(Q(r)),value:ea(J(r,"="))}))},serialize:function(){for(var e,n=this.entries,r=[],o=0;o<n.length;)X(r,ec((e=n[o++]).key)+"="+ec(e.value));return J(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ep=function(){y(this,eh);var e=arguments.length>0?arguments[0]:void 0,n=D(this,new ed(e));u||(this.size=n.entries.length)},eh=ep.prototype;if(d(eh,{append:function(e,n){var r=I(this);x(arguments.length,2),X(r.entries,{key:_(e),value:_(n)}),!u&&this.length++,r.updateURL()},delete:function(e){for(var n=I(this),r=x(arguments.length,1),o=n.entries,i=_(e),a=r<2?void 0:arguments[1],l=void 0===a?a:_(a),s=0;s<o.length;){var c=o[s];if(c.key===i&&(void 0===l||c.value===l)){if(ee(o,s,1),void 0!==l)break}else s++}u||(this.size=o.length),n.updateURL()},get:function(e){var n=I(this).entries;x(arguments.length,1);for(var r=_(e),o=0;o<n.length;o++)if(n[o].key===r)return n[o].value;return null},getAll:function(e){var n=I(this).entries;x(arguments.length,1);for(var r=_(e),o=[],i=0;i<n.length;i++)n[i].key===r&&X(o,n[i].value);return o},has:function(e){for(var n=I(this).entries,r=x(arguments.length,1),o=_(e),i=r<2?void 0:arguments[1],a=void 0===i?i:_(i),l=0;l<n.length;){var u=n[l++];if(u.key===o&&(void 0===a||u.value===a))return!0}return!1},set:function(e,n){var r,o=I(this);x(arguments.length,1);for(var i=o.entries,a=!1,l=_(e),s=_(n),c=0;c<i.length;c++)(r=i[c]).key===l&&(a?ee(i,c--,1):(a=!0,r.value=s));a||X(i,{key:l,value:s}),u||(this.size=i.length),o.updateURL()},sort:function(){var e=I(this);R(e.entries,function(e,n){return e.key>n.key?1:-1}),e.updateURL()},forEach:function(e){for(var n,r=I(this).entries,o=g(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)o((n=r[i++]).value,n.key,this)},keys:function(){return new ef(this,"keys")},values:function(){return new ef(this,"values")},entries:function(){return new ef(this,"entries")}},{enumerable:!0}),c(eh,A,eh.entries,{name:"entries"}),c(eh,"toString",function(){return I(this).serialize()},{enumerable:!0}),u&&f(eh,"size",{get:function(){return I(this).entries.length},configurable:!0,enumerable:!0}),p(ep,M),o({global:!0,constructor:!0,forced:!s},{URLSearchParams:ep}),!s&&v(B)){var em=l(q.has),ey=l(q.set),ev=function(e){if(O(e)){var n,r=e.body;if(w(r)===M)return em(n=e.headers?new B(e.headers):new B,"content-type")||ey(n,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),j(e,{body:P(0,_(r)),headers:P(0,n)})}return e};if(v(F)&&o({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return F(e,arguments.length>1?ev(arguments[1]):{})}}),v(U)){var eb=function(e){return y(this,z),new U(e,arguments.length>1?ev(arguments[1]):{})};z.constructor=eb,eb.prototype=z,o({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:eb})}}e.exports={URLSearchParams:ep,getState:I}},3169:function(e,n,r){"use strict";r(36571)},53020:function(e,n,r){"use strict";r(15469);var o,i=r(54828),a=r(71224),l=r(85046),u=r(72847),s=r(82951),c=r(63966),f=r(52522),d=r(59901),p=r(32565),h=r(84159),m=r(58787),y=r(77332),v=r(7833),b=r(7070).codeAt,g=r(82847),w=r(78435),k=r(15366),O=r(92624),_=r(36571),j=r(79450),P=j.set,S=j.getterFor("URL"),E=_.URLSearchParams,x=_.getState,C=u.URL,R=u.TypeError,A=u.parseInt,M=Math.floor,T=Math.pow,D=c("".charAt),I=c(/./.exec),L=c([].join),V=c(1..toString),N=c([].pop),F=c([].push),U=c("".replace),B=c([].shift),z=c("".split),q=c("".slice),H=c("".toLowerCase),W=c([].unshift),K="Invalid scheme",G="Invalid host",Y="Invalid port",J=/[a-z]/i,X=/[\d+-.a-z]/i,Z=/\d/,Q=/^0x/i,ee=/^[0-7]+$/,et=/^\d+$/,en=/^[\da-f]+$/i,er=/[\0\t\n\r #%/:<>?@[\\\]^|]/,eo=/[\0\t\n\r #/:<>?@[\\\]^|]/,ei=/^[\u0000-\u0020]+/,ea=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,el=/[\t\n\r]/g,eu=function(e){var n,r,o,i,a,l,u,s=z(e,".");if(s.length&&""==s[s.length-1]&&s.length--,(n=s.length)>4)return e;for(o=0,r=[];o<n;o++){if(""==(i=s[o]))return e;if(a=10,i.length>1&&"0"==D(i,0)&&(a=I(Q,i)?16:8,i=q(i,8==a?1:2)),""===i)l=0;else{if(!I(10==a?et:8==a?ee:en,i))return e;l=A(i,a)}F(r,l)}for(o=0;o<n;o++)if(l=r[o],o==n-1){if(l>=T(256,5-n))return null}else if(l>255)return null;for(o=0,u=N(r);o<r.length;o++)u+=r[o]*T(256,3-o);return u},es=function(e){var n,r,o,i,a,l,u,s=[0,0,0,0,0,0,0,0],c=0,f=null,d=0,p=function(){return D(e,d)};if(":"==p()){if(":"!=D(e,1))return;d+=2,f=++c}for(;p();){if(8==c)return;if(":"==p()){if(null!==f)return;d++,f=++c;continue}for(n=r=0;r<4&&I(en,p());)n=16*n+A(p(),16),d++,r++;if("."==p()){if(0==r||(d-=r,c>6))return;for(o=0;p();){if(i=null,o>0){if("."!=p()||!(o<4))return;d++}if(!I(Z,p()))return;for(;I(Z,p());){if(a=A(p(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;d++}s[c]=256*s[c]+i,(2==++o||4==o)&&c++}if(4!=o)return;break}if(":"==p()){if(d++,!p())return}else if(p())return;s[c++]=n}if(null!==f)for(l=c-f,c=7;0!=c&&l>0;)u=s[c],s[c--]=s[f+l-1],s[f+--l]=u;else if(8!=c)return;return s},ec=function(e){for(var n=null,r=1,o=null,i=0,a=0;a<8;a++)0!==e[a]?(i>r&&(n=o,r=i),o=null,i=0):(null===o&&(o=a),++i);return i>r&&(n=o,r=i),n},ef=function(e){var n,r,o,i;if("number"==typeof e){for(r=0,n=[];r<4;r++)W(n,e%256),e=M(e/256);return L(n,".")}if("object"==typeof e){for(r=0,n="",o=ec(e);r<8;r++)(!i||0!==e[r])&&(i&&(i=!1),o===r?(n+=r?":":"::",i=!0):(n+=V(e[r],16),r<7&&(n+=":")));return"["+n+"]"}return e},ed={},ep=m({},ed,{" ":1,'"':1,"<":1,">":1,"`":1}),eh=m({},ep,{"#":1,"?":1,"{":1,"}":1}),em=m({},eh,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ey=function(e,n){var r=b(e,0);return r>32&&r<127&&!h(n,e)?e:encodeURIComponent(e)},ev={ftp:21,file:null,http:80,https:443,ws:80,wss:443},eb=function(e,n){var r;return 2==e.length&&I(J,D(e,0))&&(":"==(r=D(e,1))||!n&&"|"==r)},eg=function(e){var n;return e.length>1&&eb(q(e,0,2))&&(2==e.length||"/"===(n=D(e,2))||"\\"===n||"?"===n||"#"===n)},ew={},ek={},eO={},e_={},ej={},eP={},eS={},eE={},ex={},eC={},eR={},eA={},eM={},eT={},eD={},eI={},eL={},eV={},eN={},eF={},eU={},eB=function(e,n,r){var o,i,a,l=w(e);if(n){if(i=this.parse(l))throw R(i);this.searchParams=null}else{if(void 0!==r&&(o=new eB(r,!0)),i=this.parse(l,null,o))throw R(i);(a=x(new E)).bindURL(this),this.searchParams=a}};eB.prototype={type:"URL",parse:function(e,n,r){var i=n||ew,a=0,l="",u=!1,s=!1,c=!1;for(e=w(e),n||(this.scheme="",this.username="",this.password="",this.host=null,this.port=null,this.path=[],this.query=null,this.fragment=null,this.cannotBeABaseURL=!1,e=U(e,ei,""),e=U(e,ea,"$1")),f=y(e=U(e,el,""));a<=f.length;){switch(d=f[a],i){case ew:if(d&&I(J,d))l+=H(d),i=ek;else{if(n)return K;i=eO;continue}break;case ek:if(d&&(I(X,d)||"+"==d||"-"==d||"."==d))l+=H(d);
1else if(":"==d){if(n&&(this.isSpecial()!=h(ev,l)||"file"==l&&(this.includesCredentials()||null!==this.port)||"file"==this.scheme&&!this.host))return;if(this.scheme=l,n){this.isSpecial()&&ev[this.scheme]==this.port&&(this.port=null);return}l="","file"==this.scheme?i=eT:this.isSpecial()&&r&&r.scheme==this.scheme?i=e_:this.isSpecial()?i=eE:"/"==f[a+1]?(i=ej,a++):(this.cannotBeABaseURL=!0,F(this.path,""),i=eN)}else{if(n)return K;l="",i=eO,a=0;continue}break;case eO:if(!r||r.cannotBeABaseURL&&"#"!=d)return K;if(r.cannotBeABaseURL&&"#"==d){this.scheme=r.scheme,this.path=v(r.path),this.query=r.query,this.fragment="",this.cannotBeABaseURL=!0,i=eU;break}i="file"==r.scheme?eT:eP;continue;case e_:if("/"==d&&"/"==f[a+1])i=ex,a++;else{i=eP;continue}break;case ej:if("/"==d){i=eC;break}i=eV;continue;case eP:if(this.scheme=r.scheme,d==o)this.username=r.username,this.password=r.password,this.host=r.host,this.port=r.port,this.path=v(r.path),this.query=r.query;else if("/"==d||"\\"==d&&this.isSpecial())i=eS;else if("?"==d)this.username=r.username,this.password=r.password,this.host=r.host,this.port=r.port,this.path=v(r.path),this.query="",i=eF;else if("#"==d)this.username=r.username,this.password=r.password,this.host=r.host,this.port=r.port,this.path=v(r.path),this.query=r.query,this.fragment="",i=eU;else{this.username=r.username,this.password=r.password,this.host=r.host,this.port=r.port,this.path=v(r.path),this.path.length--,i=eV;continue}break;case eS:if(this.isSpecial()&&("/"==d||"\\"==d))i=ex;else if("/"==d)i=eC;else{this.username=r.username,this.password=r.password,this.host=r.host,this.port=r.port,i=eV;continue}break;case eE:if(i=ex,"/"!=d||"/"!=D(l,a+1))continue;a++;break;case ex:if("/"!=d&&"\\"!=d){i=eC;continue}break;case eC:if("@"==d){u&&(l="%40"+l),u=!0,p=y(l);for(var f,d,p,m,b,g,k=0;k<p.length;k++){var O=p[k];if(":"==O&&!c){c=!0;continue}var _=ey(O,em);c?this.password+=_:this.username+=_}l=""}else if(d==o||"/"==d||"?"==d||"#"==d||"\\"==d&&this.isSpecial()){if(u&&""==l)return"Invalid authority";a-=y(l).length+1,l="",i=eR}else l+=d;break;case eR:case eA:if(n&&"file"==this.scheme){i=eI;continue}if(":"!=d||s){if(d==o||"/"==d||"?"==d||"#"==d||"\\"==d&&this.isSpecial()){if(this.isSpecial()&&""==l)return G;if(n&&""==l&&(this.includesCredentials()||null!==this.port))return;if(m=this.parseHost(l))return m;if(l="",i=eL,n)return;continue}"["==d?s=!0:"]"==d&&(s=!1),l+=d}else{if(""==l)return G;if(m=this.parseHost(l))return m;if(l="",i=eM,n==eA)return}break;case eM:if(I(Z,d))l+=d;else{if(!(d==o||"/"==d||"?"==d||"#"==d||"\\"==d&&this.isSpecial())&&!n)return Y;if(""!=l){var j=A(l,10);if(j>65535)return Y;this.port=this.isSpecial()&&j===ev[this.scheme]?null:j,l=""}if(n)return;i=eL;continue}break;case eT:if(this.scheme="file","/"==d||"\\"==d)i=eD;else if(r&&"file"==r.scheme){if(d==o)this.host=r.host,this.path=v(r.path),this.query=r.query;else if("?"==d)this.host=r.host,this.path=v(r.path),this.query="",i=eF;else if("#"==d)this.host=r.host,this.path=v(r.path),this.query=r.query,this.fragment="",i=eU;else{eg(L(v(f,a),""))||(this.host=r.host,this.path=v(r.path),this.shortenPath()),i=eV;continue}}else{i=eV;continue}break;case eD:if("/"==d||"\\"==d){i=eI;break}r&&"file"==r.scheme&&!eg(L(v(f,a),""))&&(eb(r.path[0],!0)?F(this.path,r.path[0]):this.host=r.host),i=eV;continue;case eI:if(d==o||"/"==d||"\\"==d||"?"==d||"#"==d){if(!n&&eb(l))i=eV;else if(""==l){if(this.host="",n)return;i=eL}else{if(m=this.parseHost(l))return m;if("localhost"==this.host&&(this.host=""),n)return;l="",i=eL}continue}l+=d;break;case eL:if(this.isSpecial()){if(i=eV,"/"!=d&&"\\"!=d)continue}else if(n||"?"!=d){if(n||"#"!=d){if(d!=o&&(i=eV,"/"!=d))continue}else this.fragment="",i=eU}else this.query="",i=eF;break;case eV:if(d==o||"/"==d||"\\"==d&&this.isSpecial()||!n&&("?"==d||"#"==d)){if(".."===(b=H(b=l))||"%2e."===b||".%2e"===b||"%2e%2e"===b?(this.shortenPath(),"/"==d||"\\"==d&&this.isSpecial()||F(this.path,"")):"."===(g=l)||"%2e"===H(g)?"/"==d||"\\"==d&&this.isSpecial()||F(this.path,""):("file"==this.scheme&&!this.path.length&&eb(l)&&(this.host&&(this.host=""),l=D(l,0)+":"),F(this.path,l)),l="","file"==this.scheme&&(d==o||"?"==d||"#"==d))for(;this.path.length>1&&""===this.path[0];)B(this.path);"?"==d?(this.query="",i=eF):"#"==d&&(this.fragment="",i=eU)}else l+=ey(d,eh);break;case eN:"?"==d?(this.query="",i=eF):"#"==d?(this.fragment="",i=eU):d!=o&&(this.path[0]+=ey(d,ed));break;case eF:n||"#"!=d?d!=o&&("'"==d&&this.isSpecial()?this.query+="%27":"#"==d?this.query+="%23":this.query+=ey(d,ed)):(this.fragment="",i=eU);break;case eU:d!=o&&(this.fragment+=ey(d,ep))}a++}},parseHost:function(e){var n,r,o;
1if("["==D(e,0)){if("]"!=D(e,e.length-1)||!(n=es(q(e,1,-1))))return G;this.host=n}else if(this.isSpecial()){if(I(er,e=g(e))||null===(n=eu(e)))return G;this.host=n}else{if(I(eo,e))return G;for(o=0,n="",r=y(e);o<r.length;o++)n+=ey(r[o],ed);this.host=n}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return h(ev,this.scheme)},shortenPath:function(){var e=this.path,n=e.length;n&&("file"!=this.scheme||1!=n||!eb(e[0],!0))&&e.length--},serialize:function(){var e=this.scheme,n=this.username,r=this.password,o=this.host,i=this.port,a=this.path,l=this.query,u=this.fragment,s=e+":";return null!==o?(s+="//",this.includesCredentials()&&(s+=n+(r?":"+r:"")+"@"),s+=ef(o),null!==i&&(s+=":"+i)):"file"==e&&(s+="//"),s+=this.cannotBeABaseURL?a[0]:a.length?"/"+L(a,"/"):"",null!==l&&(s+="?"+l),null!==u&&(s+="#"+u),s},setHref:function(e){var n=this.parse(e);if(n)throw R(n);this.searchParams.update()},getOrigin:function(){var e=this.scheme,n=this.port;if("blob"==e)try{return new ez(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ef(this.host)+(null!==n?":"+n:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(w(e)+":",ew)},getUsername:function(){return this.username},setUsername:function(e){var n=y(w(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<n.length;r++)this.username+=ey(n[r],em)}},getPassword:function(){return this.password},setPassword:function(e){var n=y(w(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<n.length;r++)this.password+=ey(n[r],em)}},getHost:function(){var e=this.host,n=this.port;return null===e?"":null===n?ef(e):ef(e)+":"+n},setHost:function(e){this.cannotBeABaseURL||this.parse(e,eR)},getHostname:function(){var e=this.host;return null===e?"":ef(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,eA)},getPort:function(){var e=this.port;return null===e?"":w(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=w(e))?this.port=null:this.parse(e,eM))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+L(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,eL))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=w(e))?this.query=null:("?"==D(e,0)&&(e=q(e,1)),this.query="",this.parse(e,eF)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){if(""==(e=w(e))){this.fragment=null;return}"#"==D(e,0)&&(e=q(e,1)),this.fragment="",this.parse(e,eU)},update:function(){this.query=this.searchParams.serialize()||null}};var ez=function(e){var n=p(this,eq),r=O(arguments.length,1)>1?arguments[1]:void 0,o=P(n,new eB(e,!1,r));a||(n.href=o.serialize(),n.origin=o.getOrigin(),n.protocol=o.getProtocol(),n.username=o.getUsername(),n.password=o.getPassword(),n.host=o.getHost(),n.hostname=o.getHostname(),n.port=o.getPort(),n.pathname=o.getPathname(),n.search=o.getSearch(),n.searchParams=o.getSearchParams(),n.hash=o.getHash())},eq=ez.prototype,eH=function(e,n){return{get:function(){return S(this)[e]()},set:n&&function(e){return S(this)[n](e)},configurable:!0,enumerable:!0}};if(a&&(d(eq,"href",eH("serialize","setHref")),d(eq,"origin",eH("getOrigin")),d(eq,"protocol",eH("getProtocol","setProtocol")),d(eq,"username",eH("getUsername","setUsername")),d(eq,"password",eH("getPassword","setPassword")),d(eq,"host",eH("getHost","setHost")),d(eq,"hostname",eH("getHostname","setHostname")),d(eq,"port",eH("getPort","setPort")),d(eq,"pathname",eH("getPathname","setPathname")),d(eq,"search",eH("getSearch","setSearch")),d(eq,"searchParams",eH("getSearchParams")),d(eq,"hash",eH("getHash","setHash"))),f(eq,"toJSON",function(){return S(this).serialize()},{enumerable:!0}),f(eq,"toString",function(){return S(this).serialize()},{enumerable:!0}),C){var eW=C.createObjectURL,eK=C.revokeObjectURL;eW&&f(ez,"createObjectURL",s(eW,C)),eK&&f(ez,"revokeObjectURL",s(eK,C))}k(ez,"URL"),i({global:!0,constructor:!0,forced:!l,sham:!a},{URL:ez})},32889:function(e,n,r){"use strict";r(53020)},12580:function(e){var n;n=function(){"use strict";function e(n){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}
1function n(e,r){return(n=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,r)}function r(e,o,i){return(r=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?function(e,r,o){var i=[null];i.push.apply(i,r);var a=new(Function.bind.apply(e,i));return o&&n(a,o.prototype),a}:Reflect.construct).apply(null,arguments)}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return i(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}var a,l=Object.hasOwnProperty,u=Object.setPrototypeOf,s=Object.isFrozen,c=Object.getPrototypeOf,f=Object.getOwnPropertyDescriptor,d=Object.freeze,p=Object.seal,h=Object.create,m="undefined"!=typeof Reflect&&Reflect,y=m.apply,v=m.construct;y||(y=function(e,n,r){return e.apply(n,r)}),d||(d=function(e){return e}),p||(p=function(e){return e}),v||(v=function(e,n){return r(e,o(n))});var b=C(Array.prototype.forEach),g=C(Array.prototype.pop),w=C(Array.prototype.push),k=C(String.prototype.toLowerCase),O=C(String.prototype.toString),_=C(String.prototype.match),j=C(String.prototype.replace),P=C(String.prototype.indexOf),S=C(String.prototype.trim),E=C(RegExp.prototype.test),x=(a=TypeError,function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return v(a,n)});function C(e){return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return y(e,n,o)}}function R(e,n,r){r=null!==(o=r)&&void 0!==o?o:k,u&&u(e,null);for(var o,i=n.length;i--;){var a=n[i];if("string"==typeof a){var l=r(a);l!==a&&(s(n)||(n[i]=l),a=l)}e[a]=!0}return e}function A(e){var n,r=h(null);for(n in e)!0===y(l,e,[n])&&(r[n]=e[n]);return r}function M(e,n){for(;null!==e;){var r=f(e,n);if(r){if(r.get)return C(r.get);if("function"==typeof r.value)return C(r.value)}e=c(e)}return function(e){return console.warn("fallback value for",e),null}}var T=d(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),D=d(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),I=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=d(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),V=d(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),N=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=d(["#text"]),U=d(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
1spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),B=d(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z=d(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),q=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=p(/<%[\w\W]*|[\w\W]*%>/gm),K=p(/\${[\w\W]*}/gm),G=p(/^data-[\-\w.\u00B7-\uFFFF]/),Y=p(/^aria-[\-\w]+$/),J=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=p(/^(?:\w+script|data):/i),Z=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=p(/^html$/i),ee=function(n,r){if("object"!==e(n)||"function"!=typeof n.createPolicy)return null;var o=null,i="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(i)&&(o=r.currentScript.getAttribute(i));var a="dompurify"+(o?"#"+o:"");try{return n.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};return function n(){var r,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,l=function(e){return n(e)};if(l.version="2.4.7",l.removed=[],!a||!a.document||9!==a.document.nodeType)return l.isSupported=!1,l;var u=a.document,s=a.document,c=a.DocumentFragment,f=a.HTMLTemplateElement,p=a.Node,h=a.Element,m=a.NodeFilter,y=a.NamedNodeMap,v=void 0===y?a.NamedNodeMap||a.MozNamedAttrMap:y,C=a.HTMLFormElement,et=a.DOMParser,en=a.trustedTypes,er=h.prototype,eo=M(er,"cloneNode"),ei=M(er,"nextSibling"),ea=M(er,"childNodes"),el=M(er,"parentNode");if("function"==typeof f){var eu=s.createElement("template");eu.content&&eu.content.ownerDocument&&(s=eu.content.ownerDocument)}var es=ee(en,u),ec=es?es.createHTML(""):"",ef=s,ed=ef.implementation,ep=ef.createNodeIterator,eh=ef.createDocumentFragment,em=ef.getElementsByTagName,ey=u.importNode,ev={};try{ev=A(s).documentMode?s.documentMode:{}}catch(e){}var eb={};l.isSupported="function"==typeof el&&ed&&void 0!==ed.createHTMLDocument&&9!==ev;var eg=J,ew=null,ek=R({},[].concat(o(T),o(D),o(I),o(V),o(F))),eO=null,e_=R({}
1,[].concat(o(U),o(B),o(z),o(q))),ej=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}})),eP=null,eS=null,eE=!0,ex=!0,eC=!1,eR=!0,eA=!1,eM=!1,eT=!1,eD=!1,eI=!1,eL=!1,eV=!1,eN=!0,eF=!1,eU=!0,eB=!1,ez={},eq=null,eH=R({},["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"]),eW=null,eK=R({},["audio","video","img","source","image","track"]),eG=null,eY=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),e$="http://www.w3.org/1998/Math/MathML",eJ="http://www.w3.org/2000/svg",eX="http://www.w3.org/1999/xhtml",eZ=eX,eQ=!1,e0=null,e1=R({},[e$,eJ,eX],O),e2=["application/xhtml+xml","text/html"],e4=null,e6=s.createElement("form"),e5=function(e){return e instanceof RegExp||e instanceof Function},e3=function(n){e4&&e4===n||(n&&"object"===e(n)||(n={}),n=A(n),i="application/xhtml+xml"===(r=r=-1===e2.indexOf(n.PARSER_MEDIA_TYPE)?"text/html":n.PARSER_MEDIA_TYPE)?O:k,ew="ALLOWED_TAGS"in n?R({},n.ALLOWED_TAGS,i):ek,eO="ALLOWED_ATTR"in n?R({},n.ALLOWED_ATTR,i):e_,e0="ALLOWED_NAMESPACES"in n?R({},n.ALLOWED_NAMESPACES,O):e1,eG="ADD_URI_SAFE_ATTR"in n?R(A(eY),n.ADD_URI_SAFE_ATTR,i):eY,eW="ADD_DATA_URI_TAGS"in n?R(A(eK),n.ADD_DATA_URI_TAGS,i):eK,eq="FORBID_CONTENTS"in n?R({},n.FORBID_CONTENTS,i):eH,eP="FORBID_TAGS"in n?R({},n.FORBID_TAGS,i):{},eS="FORBID_ATTR"in n?R({},n.FORBID_ATTR,i):{},ez="USE_PROFILES"in n&&n.USE_PROFILES,eE=!1!==n.ALLOW_ARIA_ATTR,ex=!1!==n.ALLOW_DATA_ATTR,eC=n.ALLOW_UNKNOWN_PROTOCOLS||!1,eR=!1!==n.ALLOW_SELF_CLOSE_IN_ATTR,eA=n.SAFE_FOR_TEMPLATES||!1,eM=n.WHOLE_DOCUMENT||!1,eI=n.RETURN_DOM||!1,eL=n.RETURN_DOM_FRAGMENT||!1,eV=n.RETURN_TRUSTED_TYPE||!1,eD=n.FORCE_BODY||!1,eN=!1!==n.SANITIZE_DOM,eF=n.SANITIZE_NAMED_PROPS||!1,eU=!1!==n.KEEP_CONTENT,eB=n.IN_PLACE||!1,eg=n.ALLOWED_URI_REGEXP||eg,eZ=n.NAMESPACE||eX,ej=n.CUSTOM_ELEMENT_HANDLING||{},n.CUSTOM_ELEMENT_HANDLING&&e5(n.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ej.tagNameCheck=n.CUSTOM_ELEMENT_HANDLING.tagNameCheck),n.CUSTOM_ELEMENT_HANDLING&&e5(n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ej.attributeNameCheck=n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),n.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ej.allowCustomizedBuiltInElements=n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eA&&(ex=!1),eL&&(eI=!0),ez&&(ew=R({},o(F)),eO=[],!0===ez.html&&(R(ew,T),R(eO,U)),!0===ez.svg&&(R(ew,D),R(eO,B),R(eO,q)),!0===ez.svgFilters&&(R(ew,I),R(eO,B),R(eO,q)),!0===ez.mathMl&&(R(ew,V),R(eO,z),R(eO,q))),n.ADD_TAGS&&(ew===ek&&(ew=A(ew)),R(ew,n.ADD_TAGS,i)),n.ADD_ATTR&&(eO===e_&&(eO=A(eO)),R(eO,n.ADD_ATTR,i)),n.ADD_URI_SAFE_ATTR&&R(eG,n.ADD_URI_SAFE_ATTR,i),n.FORBID_CONTENTS&&(eq===eH&&(eq=A(eq)),R(eq,n.FORBID_CONTENTS,i)),eU&&(ew["#text"]=!0),eM&&R(ew,["html","head","body"]),ew.table&&(R(ew,["tbody"]),delete eP.tbody),d&&d(n),e4=n)},e9=R({},["mi","mo","mn","ms","mtext"]),e8=R({},["foreignobject","desc","title","annotation-xml"]),e7=R({},["title","style","font","a","script"]),te=R({},D);R(te,I),R(te,L);var tt=R({},V);R(tt,N);var tn=function(e){var n=el(e);n&&n.tagName||(n={namespaceURI:eZ,tagName:"template"});var o=k(e.tagName),i=k(n.tagName);return!!e0[e.namespaceURI]&&(e.namespaceURI===eJ?n.namespaceURI===eX?"svg"===o:n.namespaceURI===e$?"svg"===o&&("annotation-xml"===i||e9[i]):!!te[o]:e.namespaceURI===e$?n.namespaceURI===eX?"math"===o:n.namespaceURI===eJ?"math"===o&&e8[i]:!!tt[o]:e.namespaceURI===eX?(n.namespaceURI!==eJ||!!e8[i])&&(n.namespaceURI!==e$||!!e9[i])&&!tt[o]&&(e7[o]||!te[o]):"application/xhtml+xml"===r&&!!e0[e.namespaceURI])},tr=function(e){w(l.removed,{element:e});try{e.parentNode.removeChild(e)}catch(n){try{e.outerHTML=ec}catch(n){e.remove()}}},to=function(e,n){try{w(l.removed,{attribute:n.getAttributeNode(e),from:n})}catch(e){w(l.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!eO[e]){if(eI||eL)try{tr(n)}catch(e){}else try{n.setAttribute(e,"")}catch(e){}}},ti=function(e){if(eD)e="<remove></remove>"+e;else{var n,o,i=_(e,/^[\r\n\t ]+/);o=i&&i[0]}
1"application/xhtml+xml"===r&&eZ===eX&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var a=es?es.createHTML(e):e;if(eZ===eX)try{n=new et().parseFromString(a,r)}catch(e){}if(!n||!n.documentElement){n=ed.createDocument(eZ,"template",null);try{n.documentElement.innerHTML=eQ?ec:a}catch(e){}}var l=n.body||n.documentElement;return(e&&o&&l.insertBefore(s.createTextNode(o),l.childNodes[0]||null),eZ===eX)?em.call(n,eM?"html":"body")[0]:eM?n.documentElement:l},ta=function(e){return ep.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT,null,!1)},tl=function(n){return"object"===e(p)?n instanceof p:n&&"object"===e(n)&&"number"==typeof n.nodeType&&"string"==typeof n.nodeName},tu=function(e,n,r){eb[e]&&b(eb[e],function(e){e.call(l,n,r,e4)})},ts=function(e){if(tu("beforeSanitizeElements",e,null),e instanceof C&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof v)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)||E(/[\u0080-\uFFFF]/,e.nodeName))return tr(e),!0;var n,r=i(e.nodeName);if(tu("uponSanitizeElement",e,{tagName:r,allowedTags:ew}),e.hasChildNodes()&&!tl(e.firstElementChild)&&(!tl(e.content)||!tl(e.content.firstElementChild))&&E(/<[/\w]/g,e.innerHTML)&&E(/<[/\w]/g,e.textContent)||"select"===r&&E(/<template/i,e.innerHTML))return tr(e),!0;if(!ew[r]||eP[r]){if(!eP[r]&&tf(r)&&(ej.tagNameCheck instanceof RegExp&&E(ej.tagNameCheck,r)||ej.tagNameCheck instanceof Function&&ej.tagNameCheck(r)))return!1;if(eU&&!eq[r]){var o=el(e)||e.parentNode,a=ea(e)||e.childNodes;if(a&&o)for(var u=a.length,s=u-1;s>=0;--s)o.insertBefore(eo(a[s],!0),ei(e))}return tr(e),!0}return e instanceof h&&!tn(e)||("noscript"===r||"noembed"===r||"noframes"===r)&&E(/<\/no(script|embed|frames)/i,e.innerHTML)?(tr(e),!0):(eA&&3===e.nodeType&&(n=j(n=e.textContent,H," "),n=j(n,W," "),n=j(n,K," "),e.textContent!==n&&(w(l.removed,{element:e.cloneNode()}),e.textContent=n)),tu("afterSanitizeElements",e,null),!1)},tc=function(e,n,r){if(eN&&("id"===n||"name"===n)&&(r in s||r in e6))return!1;if(ex&&!eS[n]&&E(G,n));else if(eE&&E(Y,n));else if(!eO[n]||eS[n]){if(!(tf(e)&&(ej.tagNameCheck instanceof RegExp&&E(ej.tagNameCheck,e)||ej.tagNameCheck instanceof Function&&ej.tagNameCheck(e))&&(ej.attributeNameCheck instanceof RegExp&&E(ej.attributeNameCheck,n)||ej.attributeNameCheck instanceof Function&&ej.attributeNameCheck(n))||"is"===n&&ej.allowCustomizedBuiltInElements&&(ej.tagNameCheck instanceof RegExp&&E(ej.tagNameCheck,r)||ej.tagNameCheck instanceof Function&&ej.tagNameCheck(r))))return!1}else if(eG[n]);else if(E(eg,j(r,Z,"")));else if(("src"===n||"xlink:href"===n||"href"===n)&&"script"!==e&&0===P(r,"data:")&&eW[e]);else if(eC&&!E(X,j(r,Z,"")));else if(r)return!1;return!0},tf=function(e){return e.indexOf("-")>0},td=function(n){tu("beforeSanitizeAttributes",n,null);var r,o,a,u,s=n.attributes;if(s){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eO};for(u=s.length;u--;){var f=(r=s[u]).name,d=r.namespaceURI;if(o="value"===f?r.value:S(r.value),a=i(f),c.attrName=a,c.attrValue=o,c.keepAttr=!0,c.forceKeepAttr=void 0,tu("uponSanitizeAttribute",n,c),o=c.attrValue,!c.forceKeepAttr&&(to(f,n),c.keepAttr)){if(!eR&&E(/\/>/i,o)){to(f,n);continue}eA&&(o=j(o,H," "),o=j(o,W," "),o=j(o,K," "));var p=i(n.nodeName);if(tc(p,a,o)){if(eF&&("id"===a||"name"===a)&&(to(f,n),o="user-content-"+o),es&&"object"===e(en)&&"function"==typeof en.getAttributeType){if(d);else switch(en.getAttributeType(p,a)){case"TrustedHTML":o=es.createHTML(o);break;case"TrustedScriptURL":o=es.createScriptURL(o)}}try{d?n.setAttributeNS(d,f,o):n.setAttribute(f,o),g(l.removed)}catch(e){}}}}tu("afterSanitizeAttributes",n,null)}},tp=function e(n){var r,o=ta(n);for(tu("beforeSanitizeShadowDOM",n,null);r=o.nextNode();)tu("uponSanitizeShadowNode",r,null),ts(r)||(r.content instanceof c&&e(r.content),td(r));tu("afterSanitizeShadowDOM",n,null)};return l.sanitize=function(n){var r,o,s,f,d,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((eQ=!n)&&(n="<!-->
1"),"string"!=typeof n&&!tl(n)){if("function"==typeof n.toString){if("string"!=typeof(n=n.toString()))throw x("dirty is not a string, aborting")}else throw x("toString is not a function")}if(!l.isSupported){if("object"===e(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof n)return a.toStaticHTML(n);if(tl(n))return a.toStaticHTML(n.outerHTML)}return n}if(eT||e3(h),l.removed=[],"string"==typeof n&&(eB=!1),eB){if(n.nodeName){var m=i(n.nodeName);if(!ew[m]||eP[m])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(n instanceof p)1===(o=(r=ti("<!---->")).ownerDocument.importNode(n,!0)).nodeType&&"BODY"===o.nodeName?r=o:"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!eI&&!eA&&!eM&&-1===n.indexOf("<"))return es&&eV?es.createHTML(n):n;if(!(r=ti(n)))return eI?null:eV?ec:""}r&&eD&&tr(r.firstChild);for(var y=ta(eB?n:r);s=y.nextNode();)3===s.nodeType&&s===f||ts(s)||(s.content instanceof c&&tp(s.content),td(s),f=s);if(f=null,eB)return n;if(eI){if(eL)for(d=eh.call(r.ownerDocument);r.firstChild;)d.appendChild(r.firstChild);else d=r;return(eO.shadowroot||eO.shadowrootmod)&&(d=ey.call(u,d,!0)),d}var v=eM?r.outerHTML:r.innerHTML;return eM&&ew["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&E(Q,r.ownerDocument.doctype.name)&&(v="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+v),eA&&(v=j(v,H," "),v=j(v,W," "),v=j(v,K," ")),es&&eV?es.createHTML(v):v},l.setConfig=function(e){e3(e),eT=!0},l.clearConfig=function(){e4=null,eT=!1},l.isValidAttribute=function(e,n,r){return e4||e3({}),tc(i(e),i(n),r)},l.addHook=function(e,n){"function"==typeof n&&(eb[e]=eb[e]||[],w(eb[e],n))},l.removeHook=function(e){if(eb[e])return g(eb[e])},l.removeHooks=function(e){eb[e]&&(eb[e]=[])},l.removeAllHooks=function(){eb={}},l}()},e.exports=n()},23867:function(e,n,r){"use strict";var o=r(19016),i=r(16057),a=r(77190),l=r(75817),u=r(83413),s=r(83746),c=r(39681),f=r(3161),d=r(86861);function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var h=p(o),m=p(i),y=p(a),v=p(l),b=p(u),g=p(s),w=p(c),k=p(f),O=p(d);function _(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function j(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?_(Object(r),!0).forEach(function(n){k.default(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var P={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,n){console&&console[e]&&console[e].apply(console,n)}},S=new(function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m.default(this,e),this.init(n,r)}return y.default(e,[{key:"init",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||P,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,n,r,o){return o&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[n](e))}},{key:"create",value:function(n){return new e(this.logger,j(j({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return(n=n||this.options).prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}()),E=function(){function e(){m.default(this,e),this.observers={}}return y.default(e,[{key:"on",value:function(e,n){var r=this;return e.split(" ").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(n)}),this}}
vendor: 4,486 bytes, line 1
1,{key:"off",value:function(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(function(e){return e!==n})}}},{key:"emit",value:function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(n){n.apply(n,[e].concat(r))})}}]),e}();function x(){var e,n,r=new Promise(function(r,o){e=r,n=o});return r.resolve=e,r.reject=n,r}function C(e){return null==e?"":""+e}function R(e,n,r){function o(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var a="string"!=typeof n?[].concat(n):n.split(".");a.length>1;){if(i())return{};var l=o(a.shift());!e[l]&&r&&(e[l]=new r),e=Object.prototype.hasOwnProperty.call(e,l)?e[l]:{}}return i()?{}:{obj:e,k:o(a.shift())}}function A(e,n,r){var o=R(e,n,Object);o.obj[o.k]=r}function M(e,n){var r=R(e,n),o=r.obj,i=r.k;if(o)return o[i]}function T(e,n,r){var o=M(e,r);return void 0!==o?o:M(n,r)}function D(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var I={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function L(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return I[e]}):e}var V="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,N=[" ",",","?","!",";"];function F(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function U(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?F(Object(r),!0).forEach(function(n){k.default(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var B=function(e){b.default(o,e);var n,r=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=w.default(o);return e=n?Reflect.construct(r,arguments,w.default(this).constructor):r.apply(this,arguments),g.default(this,e)});function o(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return m.default(this,o),n=r.call(this),V&&E.call(v.default(n)),n.data=e||{},n.options=i,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return y.default(o,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure,l=[e,n];r&&"string"!=typeof r&&(l=l.concat(r)),r&&"string"==typeof r&&(l=l.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(l=e.split("."));var u=M(this.data,l);return u||!a||"string"!=typeof r?u:function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(n){if(n[r])return n[r];for(var i=r.split(o),a=n,l=0;l<i.length;++l){if(!a||"string"==typeof a[i[l]]&&l+1<i.length)return;if(void 0===a[i[l]]){for(var u=2,s=i.slice(l,l+u).join(o),c=a[s];void 0===c&&i.length>l+u;)u++,c=a[s=i.slice(l,l+u).join(o)];if(void 0===c)return;if(null===c)return null;if(r.endsWith(s)){if("string"==typeof c)return c;if(s&&"string"==typeof c[s])return c[s]}var f=i.slice(l+u).join(o);if(f)return e(c,f,o);return}a=a[i[l]]}return a}}(this.data&&this.data[e]&&this.data[e][n],r,i)}},{key:"addResource",value:function(e,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=".");var l=[e,n];r&&(l=l.concat(a?r.split(a):r)),e.indexOf(".")>-1&&(l=e.split("."),o=n,n=l[1]),this.addNamespaces(n),A(this.data,l,o),i.silent||this.emit
1("added",e,n,r,o)}},{key:"addResources",value:function(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in r)("string"==typeof r[i]||"[object Array]"===Object.prototype.toString.apply(r[i]))&&this.addResource(e,n,i,r[i],{silent:!0});o.silent||this.emit("added",e,n,r)}},{key:"addResourceBundle",value:function(e,n,r,o,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},l=[e,n];e.indexOf(".")>-1&&(l=e.split("."),o=r,r=n,n=l[1]),this.addNamespaces(n);var u=M(this.data,l)||{};o?function e(n,r,o){for(var i in r)"__proto__"!==i&&"constructor"!==i&&(i in n?"string"==typeof n[i]||n[i]instanceof String||"string"==typeof r[i]||r[i]instanceof String?o&&(n[i]=r[i]):e(n[i],r[i],o):n[i]=r[i]);return n}(u,r,i):u=U(U({},u),r),A(this.data,l,u),a.silent||this.emit("added",e,n,r)}},{key:"removeResourceBundle",value:function(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}},{key:"hasResourceBundle",value:function(e,n){return void 0!==this.getResource(e,n)}},{key:"getResourceBundle",value:function(e,n){return(n||(n=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?U(U({},{}),this.getResource(e,n)):this.getResource(e,n)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(function(e){return n[e]&&Object.keys(n[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),o}(E),z={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,r,o,i){var a=this;return e.forEach(function(e){a.processors[e]&&(n=a.processors[e].process(n,r,o,i))}),n}};function q(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function H(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?q(Object(r),!0).forEach(function(n){k.default(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var W={},K=function(e){b.default(o,e);var n,r=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=w.default(o);return e=n?Reflect.construct(r,arguments,w.default(this).constructor):r.apply(this,arguments),g.default(this,e)});function o(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return m.default(this,o),n=r.call(this),V&&E.call(v.default(n)),!function(e,n,r){e.forEach(function(e){n[e]&&(r[e]=n[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],e,v.default(n)),n.options=i,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=S.create("translator"),n}return y.default(o,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var r=this.resolve(e,n);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,n){var r=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=n.ns||this.options.defaultNS||[],a=r&&e.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!function(e,n,r){n=n||"",r=r||"";var o=N.filter(function(e){return 0>n.indexOf(e)&&0>r.indexOf(e)});if(0===o.length)return!0;var i=new RegExp("(".concat(o.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),a=!i.test(e);if(!a){var l=e.indexOf(r);l>0&&!i.test(e.substring(0,l))&&(a=!0)}return a}(e,r,o);if(a&&!l){var u=e.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:e,namespaces:i};var s=e.split(r);(r!==o||r===o&&this.options.ns.indexOf(s[0])>-1)&&(i=s.shift()),e=s.join(o)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,n,r){var i=this;if("object"!==h.default(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var a=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,l=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,u=this.extractFromKey(e[e.length-1],n),s=u.key,c=u.namespaces,f=c[c.length-1],d=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var m=n.nsSeparator||this.options.nsSeparator;return a?{res:"".concat(f).concat(m).concat(s),usedKey:s,exactUsedKey:s,usedLng:d,usedNS:f}:"".concat(f).concat(m).concat(s)}return a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:f}:s}var y=this.resolve(e,n),v=y&&y.res,b=y&&y.usedKey||s,g=y&&y.exactUsedKey||s,w=Object.prototype.toString.apply(v),k=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject,_="string"!=typeof v&&"boolean"!=typeof v&&"number"!=typeof v;if(O&&v&&_&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(w)&&!("string"==typeof k&&"[object Array]"===w)){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var j=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,v,H(H({},n),{},{ns:c})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");return a?(y.res=j,y):j}if(l){var P="[object Array]"===w,S=P?[]:{},E=P?g:b;for(var x in v)if(Object.prototype.hasOwnProperty.call(v,x)){var C="".concat(E).concat(l).concat(x);S[x]=this.translate(C,H(H({},n),{joinArrays:!1,ns:c})),S[x]===C&&(S[x]=v[x])}v=S}}else if(O&&"string"==typeof k&&"[object Array]"===w)(v=v.join(k))&&(v=this.extendTranslation(v,e,n,r));else{var R=!1,A=!1,M=void 0!==n.count&&"string"!=typeof n.count,T=o.hasDefaultValue(n),D=M?this.pluralResolver.getSuffix(d,n.count,n):"",I=n["defaultValue".concat(D)]||n.defaultValue;!this.isValidLookup(v)&&T&&(R=!0,v=I),this.isValidLookup(v)||(A=!0,v=s);var L=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&A?void 0:v,V=T&&I!==v&&this.options.updateMissing;if(A||R||V){if(this.logger.log(V?"updateKey":"missingKey",d,f,s,V?I:v),l){var N=this.resolve(s,H(H({},n),{},{keySeparator:!1}));N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var F=[],U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&U&&U[0])for(var B=0;B<U.length;B++)F.push(U[B]);else"all"===this.options.saveMissingTo?F=this.languageUtils.toResolveHierarchy(n.lng||this.language):F.push(n.lng||this.language);var z=function(e,r,o){var a=T&&o!==v?o:L;i.options.missingKeyHandler?i.options.missingKeyHandler(e,f,r,a,V,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,f,r,a,V,n),i.emit("missingKey",e,f,r,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&M?F.forEach(function(e){i.pluralResolver.getSuffixes(e,n).forEac
vendor: 14,901 bytes, line 1
1h(function(r){z([e],s+r,n["defaultValue".concat(r)]||I)})}):z(F,s,I))}v=this.extendTranslation(v,e,n,y,r),A&&v===s&&this.options.appendNamespaceToMissingKey&&(v="".concat(f,":").concat(s)),(A||R)&&this.options.parseMissingKeyHandler&&(v="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(f,":").concat(s):s,R?v:void 0):this.options.parseMissingKeyHandler(v))}return a?(y.res=v,y):v}},{key:"extendTranslation",value:function(e,n,r,o,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,H(H({},this.options.interpolation.defaultVariables),r),o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(H(H({},r),{interpolation:H(H({},this.options.interpolation),r.interpolation)}));var l,u="string"==typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(u){var s=e.match(this.interpolator.nestingRegexp);l=s&&s.length}var c=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(c=H(H({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,r.lng||this.language,r),u){var f=e.match(this.interpolator.nestingRegexp);l<(f&&f.length)&&(r.nest=!1)}!1!==r.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,o=Array(e),l=0;l<e;l++)o[l]=arguments[l];return i&&i[0]===o[0]&&!r.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(o[0]," in key: ").concat(n[0])),null):a.translate.apply(a,o.concat([n]))},r)),r.interpolation&&this.interpolator.reset()}var d=r.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==r.applyPostProcessor&&(e=z.handle(p,e,n,this.options&&this.options.postProcessPassResolved?H({i18nResolved:o},r):r,this)),e}},{key:"resolve",value:function(e){var n,r,o,i,a,l=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!l.isValidLookup(n)){var s=l.extractFromKey(e,u),c=s.key;r=c;var f=s.namespaces;l.options.fallbackNS&&(f=f.concat(l.options.fallbackNS));var d=void 0!==u.count&&"string"!=typeof u.count,p=d&&!u.ordinal&&0===u.count&&l.pluralResolver.shouldUseIntlApi(),h=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,m=u.lngs?u.lngs:l.languageUtils.toResolveHierarchy(u.lng||l.language,u.fallbackLng);f.forEach(function(e){l.isValidLookup(n)||(a=e,!W["".concat(m[0],"-").concat(e)]&&l.utils&&l.utils.hasLoadedNamespace&&!l.utils.hasLoadedNamespace(a)&&(W["".concat(m[0],"-").concat(e)]=!0,l.logger.warn('key "'.concat(r,'" for languages "').concat(m.join(", "),'" won\'t get resolved as namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(function(r){if(!l.isValidLookup(n)){i=r;var a,s=[c];if(l.i18nFormat&&l.i18nFormat.addLookupKeys)l.i18nFormat.addLookupKeys(s,c,r,e,u);else{d&&(f=l.pluralResolver.getSuffix(r,u.count,u));var f,m="".concat(l.options.pluralSeparator,"zero");if(d&&(s.push(c+f),p&&s.push(c+m)),h){var y="".concat(c).concat(l.options.contextSeparator).concat(u.context);s.push(y),d&&(s.push(y+f),p&&s.push(y+m))}}for(;a=s.pop();)l.isValidLookup(n)||(o=a,n=l.getResource(r,e,a,u))}}))})}}),{res:n,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:a}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,r,o):this.resourceStore.getResource(e,n,r,o)}}],[{key:"hasDefaultValue",value:function(e){var n="defaultValue";for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&void 0!==e[r])return!0;return!1}}]),o}(E);function G(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Y=function(){function e(n){m.default(this,e),this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=S.create("languageUtils")}return y.default(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var n=e.split("-");return 2===n.length?null:(n.pop(),"x"===n[n.length-1].toLowerCase())?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var n=e.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=G(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=G(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=G(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var n,r=this;return e?(e.forEach(function(e){if(!n){var o=r.formatLanguageCode(e);(!r.options.supportedLngs||r.isSupportedCode(o))&&(n=o)}}),!n&&this.options.supportedLngs&&e.forEach(function(e){if(!n){var o=r.getLanguagePartFromCode(e);if(r.isSupportedCode(o))return n=o;n=r.options.supportedLngs.find(function(e){if(e===o||!(0>e.indexOf("-")&&0>o.indexOf("-"))&&0===e.indexOf(o))return e})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(e,n){if(!e)return[];if("function"==typeof e&&(e=e(n)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!n)return e.default||[];var r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],a=function(e){e&&(r.isSupportedCode(e)?i.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):"string"==typeof e&&a(this.formatLanguageCode(e)),o.forEach(function(e){0>i.indexOf(e)&&a(r.formatLanguageCode(e))}),i}}]),e}(),J=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],X={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Z=["v1","v2","v3"],Q={zero:0,one:1,two:2,few:3,many:4,other:5},ee=function(){function e(n){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m.default(this,e),this.languageUtils=n,this.options=o,this.logger=S.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(r={},J.forEach(function(e){e.lngs.forEach(function(n){r[n]={numbers:e.nr,plurals:X[e.fc]}})}),r)}return y.default(e,[{key:"addRule",value:function(e,n){this.rules[e]=n}},{key:"getRule",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:n.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map(function(e){return"".concat(n).concat(e)})}},{key:"getSuffixes",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRule(e,r);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(e,n){return Q[e]-Q[n]}).map(function(e){return"".concat(n.options.prepend).concat(e)}):o.numbers.map(function(o){return n.getSuffix(e,o,r)}):[]}},{key:"getSuffix",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.getRule(e,r);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(n)):this.getSuffixRetroCompatible(o,n):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,n){var r=this,o=e.noAbs?e.plurals(n):e.plurals(Math.abs(n)),i=e.numbers[o];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return r.options.prepend&&i.toString()?r.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!Z.includes(this.options.compatibilityJSON)}}]),e}();function et(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function en(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?et(Object(r),!0).forEach(function(n){k.default(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):et(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var er=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m.default(this,e),this.logger=S.create("interpolator"),this.options=n,this.format=n.interpolation&&n.interpolation.format||function(e){return e},this.init(n)}return y.default(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=void 0!==n.escape?n.escape:L,this.escapeValue=void 0===n.escapeValue||n.escapeValue,this.useRawValueToEscape=void 0!==n.useRawValueToEscape&&n.useRawValueToEscape,this.prefix=n.prefix?D(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?D(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?D(n.nestingPrefix):n.nestingPrefixEscaped||D("$t("),this.nestingSuffix=n.nestingSuffix?D(n.nestingSuffix):n.nestingSuffixEscaped||D(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=void 0!==n.alwaysFormat&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix
vendor: 5,085 bytes, line 1
1);this.regexp=RegExp(e,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(r,"g")}},{key:"interpolate",value:function(e,n,r,o){var i,a,l,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var f=function(e){if(0>e.indexOf(u.formatSeparator)){var i=T(n,s,e);return u.alwaysFormat?u.format(i,void 0,r,en(en(en({},o),n),{},{interpolationkey:e})):i}var a=e.split(u.formatSeparator),l=a.shift().trim(),c=a.join(u.formatSeparator).trim();return u.format(T(n,s,l),c,r,en(en(en({},o),n),{},{interpolationkey:l}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?c(u.escape(e)):c(e)}}].forEach(function(n){for(l=0;i=n.regex.exec(e);){var r=i[1].trim();if(void 0===(a=f(r))){if("function"==typeof d){var s=d(e,i,o);a="string"==typeof s?s:""}else if(o&&Object.prototype.hasOwnProperty.call(o,r))a="";else if(p){a=i[0];continue}else u.logger.warn("missed to pass in variable ".concat(r," for interpolating ").concat(e)),a=""}else"string"==typeof a||u.useRawValueToEscape||(a=C(a));var c=n.safeValue(a);if(e=e.replace(i[0],c),p?(n.regex.lastIndex+=a.length,n.regex.lastIndex-=i[0].length):n.regex.lastIndex=0,++l>=u.maxReplaces)break}}),e}},{key:"nest",value:function(e,n){var r,o,i,a=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function u(e,n){var r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;var o=e.split(new RegExp("".concat(r,"[ ]*{"))),a="{".concat(o[1]);e=o[0];var l=(a=this.interpolate(a,i)).match(/'/g),u=a.match(/"/g);(l&&l.length%2==0&&!u||u.length%2!=0)&&(a=a.replace(/'/g,'"'));try{i=JSON.parse(a),n&&(i=en(en({},n),i))}catch(n){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),n),"".concat(e).concat(r).concat(a)}return delete i.defaultValue,e}for(;r=this.nestingRegexp.exec(e);){var s=[];(i=(i=en({},l)).replace&&"string"!=typeof i.replace?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;var c=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(e){return e.trim()});r[1]=f.shift(),s=f,c=!0}if((o=n(u.call(this,r[1].trim(),i),i))&&r[0]===e&&"string"!=typeof o)return o;"string"!=typeof o&&(o=C(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),o=""),c&&(o=s.reduce(function(e,n){return a.format(e,n,l.lng,en(en({},l),{},{interpolationkey:r[1].trim()}))},o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),e}();function eo(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function ei(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?eo(Object(r),!0).forEach(function(n){k.default(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ea(e){var n={};return function(r,o,i){var a=o+JSON.stringify(i),l=n[a];return l||(l=e(o,i),n[a]=l),l(r)}}var el=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m.default(this,e),this.logger=S.create("formatter"),this.options=n,this.formats={number:ea(function(e,n){var r=new Intl.NumberFormat(e,ei({},n));return function(e){return r.format(e)}}),currency:ea(function(e,n){var r=new Intl.NumberFormat(e,ei(ei({},n),{},{style:"currency"}));return function(e){return r.format(e)}}),datetime:ea(function(e,n){var r=new Intl.DateTimeFormat(e,ei({},n));return function(e){return r.format(e)}}),relativetime:ea(function(e,n){var r=new Intl.RelativeTimeFormat(e,ei({},n));return function(e){return r.format(e,n.range||"day")}}),list:ea(function(e,n){var r=new Intl.ListFormat(e,ei({},n));return function(e){return r.format(e)}})},this.init(n)}return y.default(e,[{key:"init",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=n.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}},{key:"add",value:function(e,n){this.formats[e.toLowerCase().trim()]=n}},{key:"addCached",value:function(e,n){this.formats[e.toLowerCase().trim()]=ea(n)}},{key:"format",value:function(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return n.split(this.formatSeparator).reduce(function(e,n){var a=function(e){var n=e.toLowerCase().trim(),r
1={};if(e.indexOf("(")>-1){var o=e.split("(");n=o[0].toLowerCase().trim();var i=o[1].substring(0,o[1].length-1);"currency"===n&&0>i.indexOf(":")?r.currency||(r.currency=i.trim()):"relativetime"===n&&0>i.indexOf(":")?r.range||(r.range=i.trim()):i.split(";").forEach(function(e){if(e){var n=e.split(":"),o=O.default(n),i=o[0],a=o.slice(1).join(":").trim().replace(/^'+|'+$/g,"");r[i.trim()]||(r[i.trim()]=a),"false"===a&&(r[i.trim()]=!1),"true"===a&&(r[i.trim()]=!0),isNaN(a)||(r[i.trim()]=parseInt(a,10))}})}return{formatName:n,formatOptions:r}}(n),l=a.formatName,u=a.formatOptions;if(o.formats[l]){var s=e;try{var c=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},f=c.locale||c.lng||i.locale||i.lng||r;s=o.formats[l](e,f,ei(ei(ei({},u),i),c))}catch(e){o.logger.warn(e)}return s}return o.logger.warn("there was no format function for ".concat(l)),e},e)}}]),e}();function eu(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function es(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?eu(Object(r),!0).forEach(function(n){k.default(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var ec=function(e){b.default(o,e);var n,r=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=w.default(o);return e=n?Reflect.construct(r,arguments,w.default(this).constructor):r.apply(this,arguments),g.default(this,e)});function o(e,n,i){var a,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return m.default(this,o),a=r.call(this),V&&E.call(v.default(a)),a.backend=e,a.store=n,a.services=i,a.languageUtils=i.languageUtils,a.options=l,a.logger=S.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=l.maxParallelReads||10,a.readingCalls=0,a.maxRetries=l.maxRetries>=0?l.maxRetries:5,a.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(i,l.backend,l),a}return y.default(o,[{key:"queueLoad",value:function(e,n,r,o){var i=this,a={},l={},u={},s={};return e.forEach(function(e){var o=!0;n.forEach(function(n){var u="".concat(e,"|").concat(n);!r.reload&&i.store.hasResourceBundle(e,n)?i.state[u]=2:i.state[u]<0||(1===i.state[u]?void 0===l[u]&&(l[u]=!0):(i.state[u]=1,o=!1,void 0===l[u]&&(l[u]=!0),void 0===a[u]&&(a[u]=!0),void 0===s[n]&&(s[n]=!0)))}),o||(u[e]=!0)}),(Object.keys(a).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(l),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(s)}}},{key:"loaded",value:function(e,n,r){var o=e.split("|"),i=o[0],a=o[1];n&&this.emit("failedLoading",i,a,n),r&&this.store.addResourceBundle(i,a,r),this.state[e]=n?-1:2;var l={};this.queue.forEach(function(r){var o,u,s,c;(s=(u=R(r.loaded,[i],Object)).obj)[c=u.k]=s[c]||[],o||s[c].push(a),void 0!==r.pending[e]&&(delete r.pending[e],r.pendingCount--),n&&r.errors.push(n),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(function(e){l[e]||(l[e]={});var n=r.loaded[e];n.length&&n.forEach(function(n){void 0===l[e][n]&&(l[e][n]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!e.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:i,wait:a,callback:l});return}this.readingCalls++;var u=function(u,s){if(o.readingCalls--,o.waitingReads.length>0){var c=o.waitingReads.shift();o.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}if(u&&s&&i<o.maxRetries){setTimeout(function(){o.read.call(o,e,n,r,i+1,2*a,l)},a);return}l(u,s)},s=this.backend[r].bind(this.backend);if(2===s.length){try{var c=s(e,n);c&&"function"==typeof c.then?c.then(function(e){return u(null,e)}).catch(u):u(null,c)}catch(e){u(e)}return}return s(e,n,u)}},{key:"prepareLoading",value:function(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof n&&(n=[n]);var a=this.queueLoad(e,n,o,i);if(!a.toLoad.length)return a.pending.length||i(),null;
1a.toLoad.forEach(function(e){r.loadOne(e)})}},{key:"load",value:function(e,n,r){this.prepareLoading(e,n,{},r)}},{key:"reload",value:function(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}},{key:"loadOne",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.split("|"),i=o[0],a=o[1];this.read(i,a,"read",void 0,void 0,function(o,l){o&&n.logger.warn("".concat(r,"loading namespace ").concat(a," for language ").concat(i," failed"),o),!o&&l&&n.logger.log("".concat(r,"loaded namespace ").concat(a," for language ").concat(i),l),n.loaded(e,o,l)})}},{key:"saveMissing",value:function(e,n,r,o,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=r&&""!==r){if(this.backend&&this.backend.create){var u,s=es(es({},a),{},{isUpdate:i}),c=this.backend.create.bind(this.backend);if(c.length<6)try{(u=5===c.length?c(e,n,r,o,s):c(e,n,r,o))&&"function"==typeof u.then?u.then(function(e){return l(null,e)}).catch(l):l(null,u)}catch(e){l(e)}else c(e,n,r,o,l,s)}e&&e[0]&&this.store.addResource(e[0],n,r,o)}}}]),o}(E);function ef(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var n={};if("object"===h.default(e[1])&&(n=e[1]),"string"==typeof e[1]&&(n.defaultValue=e[1]),"string"==typeof e[2]&&(n.tDescription=e[2]),"object"===h.default(e[2])||"object"===h.default(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){n[e]=r[e]})}return n},interpolation:{escapeValue:!0,format:function(e,n,r,o){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function ed(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ep(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function eh(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ep(Object(r),!0).forEach(function(n){k.default(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ep(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function em(){}var ey=function(e){b.default(o,e);var n,r=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=w.default(o);return e=n?Reflect.construct(r,arguments,w.default(this).constructor):r.apply(this,arguments),g.default(this,e)});function o(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(m.default(this,o),e=r.call(this),V&&E.call(v.default(e)),e.options=ed(n),e.services={},e.logger=S,e.modules={external:[]},!function(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEac
vendor: 8,087 bytes, line 1
1h(function(n){"function"==typeof e[n]&&(e[n]=e[n].bind(e))})}(v.default(e)),i&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,i),g.default(e,v.default(e));setTimeout(function(){e.init(n,i)},0)}return e}return y.default(o,[{key:"init",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"==typeof n&&(r=n,n={}),!n.defaultNS&&!1!==n.defaultNS&&n.ns&&("string"==typeof n.ns?n.defaultNS=n.ns:0>n.ns.indexOf("translation")&&(n.defaultNS=n.ns[0]));var o=ef();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options=eh(eh(eh({},o),this.options),ed(n)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=eh(eh({},o.interpolation),this.options.interpolation)),void 0!==n.keySeparator&&(this.options.userDefinedKeySeparator=n.keySeparator),void 0!==n.nsSeparator&&(this.options.userDefinedNsSeparator=n.nsSeparator),!this.options.isClone){this.modules.logger?S.init(i(this.modules.logger),this.options):S.init(null,this.options),this.modules.formatter?a=this.modules.formatter:"undefined"!=typeof Intl&&(a=el);var a,l=new Y(this.options);this.store=new B(this.options.resources,this.options);var u=this.services;u.logger=S,u.resourceStore=this.store,u.languageUtils=l,u.pluralResolver=new ee(l,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(u.formatter=i(a),u.formatter.init(u,this.options),this.options.interpolation.format=u.formatter.format.bind(u.formatter)),u.interpolator=new er(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new ec(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];e.emit.apply(e,[n].concat(o))}),this.modules.languageDetector&&(u.languageDetector=i(this.modules.languageDetector),u.languageDetector.init&&u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=i(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new K(this.services,this.options),this.translator.on("*",function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];e.emit.apply(e,[n].concat(o))}),this.modules.external.forEach(function(n){n.init&&n.init(e)})}if(this.format=this.options.interpolation.format,r||(r=em),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(n){e[n]=function(){var r;return(r=e.store)[n].apply(r,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(n){e[n]=function(){var r;return(r=e.store)[n].apply(r,arguments),e}});var c=x(),f=function(){var n=function(n,o){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(o),r(n,o)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return n(null,e.t.bind(e));e.changeLanguage(e.options.lng,n)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),c}},{key:"loadResources",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:em,o=r,i="string"==typeof e?e:this.language;if("function"==typeof e&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return o();var a=[],l=function(e){e&&n.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>a.indexOf(e)&&a.push(e)})};i?l(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return l(e)}),this.options.preload&&this.options.preload.forEach(function(e){return l(e)}),this.services.backendConnector.load(a,this.options.ns,function(e){e||n.resolvedLanguage||!n.language||n.setResolvedLanguage(n.language),o(e)})}else o(null)}},{key:"reloadResources",value:function(e,n,r){var o=x();return e||(e=this.languages),n||(n=this.options.ns),r||(r=em),this.services.backendConnector.reload(e,n,function(e){o.resolve(),r(e)}),o}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&z.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var n=0;n<this.languages.length;n++){var r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}},{key:"changeLanguage",value:function(e,n){var r=this;this.isLanguageChangingTo=e;var o=x();this.emit("languageChanging",e);var i=function(e){r.language=e,r.languages=r.services.languageUtils.toResolveHierarchy(e),r.resolvedLanguage=void 0,r.setResolvedLanguage(e)},a=function(e,a){a?(i(a),r.translator.changeLanguage(a),r.isLanguageChangingTo=void 0,r.emit("languageChanged",a),r.logger.log("languageChanged",a)):r.isLanguageChangingTo=void 0,o.resolve(function(){return r.t.apply(r,arguments)}),n&&n(e,function(){return r.t.apply(r,arguments)})},l=function(n){e||n||!r.services.languageDetector||(n=[]);var o="string"==typeof n?n:r.services.languageUtils.getBestMatchFromCodes(n);o&&(r.language||i(o),r.translator.language||r.translator.changeLanguage(o),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage&&r.services.languageDetector.cacheUserLanguage(o)),r.loadResources(o,function(e){a(e,o)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e):l(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(e,n,r){var o=this,i=function e(n,i){if("object"!==h.default(i)){for(var a,l,u=arguments.length,s=Array(u>2?u-2:0),c=2;c<u;c++)s[c-2]=arguments[c];a=o.options.overloadTranslationOptionHandler([n,i].concat(s))}else a=eh({},i);a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,a.keyPrefix=a.keyPrefix||r||e.keyPrefix;var f=o.options.keySeparator||".";return l=a.keyPrefix&&Array.isArray(n)?n.map(function(e){return"".concat(a.keyPrefix).concat(f).concat(e)}):a.keyPrefix?"".concat(a.keyPrefix).concat(f).concat(n):n,o.t(l,a)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=n,i.keyPrefix=r,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
1if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var o=this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===o.toLowerCase())return!0;var l=function(e,r){var o=n.services.backendConnector.state["".concat(e,"|").concat(r)];return -1===o||2===o};if(r.precheck){var u=r.precheck(this,l);if(void 0!==u)return u}return!!(this.hasResourceBundle(o,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(o,e)&&(!i||l(a,e)))}},{key:"loadNamespaces",value:function(e,n){var r=this,o=x();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>r.options.ns.indexOf(e)&&r.options.ns.push(e)}),this.loadResources(function(e){o.resolve(),n&&n(e)}),o):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function(e,n){var r=x();"string"==typeof e&&(e=[e]);var o=this.options.preload||[],i=e.filter(function(e){return 0>o.indexOf(e)});return i.length?(this.options.preload=o.concat(i),this.loadResources(function(e){r.resolve(),n&&n(e)}),r):(n&&n(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new Y(ef())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:em,i=eh(eh(eh({},this.options),n),{isClone:!0}),a=new o(i);return(void 0!==n.debug||void 0!==n.prefix)&&(a.logger=a.logger.clone(n)),["store","services","language"].forEach(function(n){a[n]=e[n]}),a.services=eh({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new K(a.services,a.options),a.translator.on("*",function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];a.emit.apply(a,[e].concat(r))}),a.init(i,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),o}(E);k.default(ey,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new ey(e,n)});var ev=ey.createInstance();ev.createInstance=ey.createInstance,e.exports=ev},35111:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"NIL",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(n,"v1",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"v4",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"v5",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(n,"version",{enumerable:!0,get:function(){return s.default}});var o=p(r(36039)),i=p(r(28132)),a=p(r(46061)),l=p(r(23554)),u=p(r(63692)),s=p(r(42885)),c=p(r(85383)),f=p(r(95656)),d=p(r(72751));function p(e){return e&&e.__esModule?e:{default:e}}},74047:function(e,n){"use strict";function r(e){return(e+64>>>9<<4)+14+1}function o(e,n){let r=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(r>>16)<<16|65535&r}function i(e,n,r,i,a,l){var u;return o((u=o(o(n,e),o(i,l)))<<a|u>>>32-a,r)}function a(e,n,r,o,a,l,u){return i(n&r|~n&o,e,n,a,l,u)}function l(e,n,r,o,a,l,u){return i(n&o|r&~o,e,n,a,l,u)}function u(e,n,r,o,a,l,u){return i(n^r^o,e,n,a,l,u)}function s(e,n,r,o,a,l,u){return i(r^(n|~o),e,n,a,l,u)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){if("string"==typeof e){let n=unescape(encodeURIComponent(e));e=new Uint8Array(n.length);for(let r=0;r<n.length;++r)e[r]=n.charCodeAt(r)}return function(e){let n=[],r=32*e.length,o="0123456789abcdef";for(let i=0;i<r;i+=8){let r=e[i>>5]>>>i%32&255,a=parseInt(o.charAt(r>>>4&15)+o.charAt(15&r),16);n.push(a)}return n}(function(e,n){e[n>>5]|=128<<n%32,e[r(n)-1]=n;let i=1732584193,c=-271733879,f=-1732584194,d=271733878;for(let n=0;n<e.length;n+=16){let r=i,p=c,h=f,m=d;i=a(i,c,f,d,e[n],7,-680876936),d=a(d,i,c,f,e[n+1],12,-389564586),f=a(f,d,i,c,e[n+2],17,606105819),c=a(c,f,d,i,e[n+3],22,-1044525330),i=a(i,c,f,d,e[n+4],7,-176418897),d=a(d,i,c,f,e[n+5],12,1200080426),f=a(f,d,i,c,e[n+6],17,-1473231341),c=a(c,f,d,i,e[n+7],22,-45705983),i=a(i,c,f,d,e[n+8],7,1770035416),d=a(d,i,c,f,e[n+9],12,-1958414417),f=a(f,d,i,c,e[n+10],17,-42063),c=a(c,f,d,i,e[n+11],22,-1990404162),i=a(i,c,f,d,e[n+12],7,1804603682),d=a(d,i,c,f,e[n+13],12,-40341101),f=a(f,d,i,c,e[n+14],17,-1502002290),c=a(c,f,d,i,e[n+15],22,1236535329),i=l(i,c,f,d,e[n+1],5,-165796510),d=l(d,i,c,f,e[n+6],9,-1069501632),f=l(f,d,i,c,e[n+11],14,643717713),c=l(c,f,d,i,e[n],20,-373897302),i=l(i,c,f,d,e[n+5],5,-701558691),d=l(d,i,c,f,e[n+10],9,38016083),f=l(f,d,i,c,e[n+15],14,-660478335),c=l(c,f,d,i,e[n+4],20,-405537848),i=l(i,c,f,d,e[n+9],5,568446438),d=l(d,i,c,f,e[n+14],9,-1019803690),f=l(f,d,i,c,e[n+3],14,-187363961),c=l(c,f,d,i,e[n+8],20,1163531501),i=l(i,c,f,d,e[n+13],5,-1444681467),d=l(d,i,c,f,e[n+2],9,-51403784),f=l(f,d,i,c,e[n+7],14,1735328473),c=l(c,f,d,i,e[n+12],20,-1926607734),i=u(i,c,f,d,e[n+5],4,-378558),d=u(d,i,c,f,e[n+8],11,-2022574463),f=u(f,d,i,c,e[n+11],16,1839030562),c=u(c,f,d,i,e[n+14],23,-35309556),i=u(i,c,f,d,e[n+1],4,-1530992060),d=u(d,i,c,f,e[n+4],11,1272893353),f=u(f,d,i,c,e[n+7],16,-155497632),c=u(c,f,d,i,e[n+10],23,-1094730640),i=u(i,c,f,d,e[n+13],4,681279174),d=u(d,i,c,f,e[n],11,-358537222),f=u(f,d,i,c,e[n+3],16,-722521979),c=u(c,f,d,i,e[n+6],23,76029189),i=u(i,c,f,d,e[n+9],4,-640364487),d=u(d,i,c,f,e[n+12],11,-421815835),f=u(f,d,i,c,e[n+15],16,530742520),c=u(c,f,d,i,e[n+2],23,-995338651),i=s(i,c,f,d,e[n],6,-198630844),d=s(d,i,c,f,e[n+7],10,1126891415),f=s(f,d,i,c,e[n+14],15,-1416354905),c=s(c,f,d,i,e[n+5],21,-57434055),i=s(i,c,f,d,e[n+12],
16,1700485571),d=s(d,i,c,f,e[n+3],10,-1894986606),f=s(f,d,i,c,e[n+10],15,-1051523),c=s(c,f,d,i,e[n+1],21,-2054922799),i=s(i,c,f,d,e[n+8],6,1873313359),d=s(d,i,c,f,e[n+15],10,-30611744),f=s(f,d,i,c,e[n+6],15,-1560198380),c=s(c,f,d,i,e[n+13],21,1309151649),i=s(i,c,f,d,e[n+4],6,-145523070),d=s(d,i,c,f,e[n+11],10,-1120210379),f=s(f,d,i,c,e[n+2],15,718787259),c=s(c,f,d,i,e[n+9],21,-343485551),i=o(i,r),c=o(c,p),f=o(f,h),d=o(d,m)}return[i,c,f,d]}(function(e){if(0===e.length)return[];let n=8*e.length,o=new Uint32Array(r(n));for(let r=0;r<n;r+=8)o[r>>5]|=(255&e[r/8])<<r%32;return o}(e),8*e.length))}},82547:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;let r="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);n.default={randomUUID:r}},63692:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default="00000000-0000-0000-0000-000000000000"},72751:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=r(85383))&&o.__esModule?o:{default:o};n.default=function(e){let n;if(!(0,i.default)(e))throw TypeError("Invalid UUID");let r=new Uint8Array(16);return r[0]=(n=parseInt(e.slice(0,8),16))>>>24,r[1]=n>>>16&255,r[2]=n>>>8&255,r[3]=255&n,r[4]=(n=parseInt(e.slice(9,13),16))>>>8,r[5]=255&n,r[6]=(n=parseInt(e.slice(14,18),16))>>>8,r[7]=255&n,r[8]=(n=parseInt(e.slice(19,23),16))>>>8,r[9]=255&n,r[10]=(n=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=n/4294967296&255,r[12]=n>>>24&255,r[13]=n>>>16&255,r[14]=n>>>8&255,r[15]=255&n,r}},74767:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},55011:function(e,n){"use strict";let r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)};let o=new Uint8Array(16)},77634:function(e,n){"use strict";function r(e,n){return e<<n|e>>>32-n}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){let n=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){let n=unescape(encodeURIComponent(e));e=[];for(let r=0;r<n.length;++r)e.push(n.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let i=Math.ceil((e.length/4+2)/16),a=Array(i);for(let n=0;n<i;++n){let r=new Uint32Array(16);for(let o=0;o<16;++o)r[o]=e[64*n+4*o]<<24|e[64*n+4*o+1]<<16|e[64*n+4*o+2]<<8|e[64*n+4*o+3];a[n]=r}a[i-1][14]=(e.length-1)*8/4294967296,a[i-1][14]=Math.floor(a[i-1][14]),a[i-1][15]=(e.length-1)*8&4294967295;for(let e=0;e<i;++e){let i=new Uint32Array(80);for(let n=0;n<16;++n)i[n]=a[e][n];for(let e=16;e<80;++e)i[e]=r(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let l=o[0],u=o[1],s=o[2],c=o[3],f=o[4];for(let e=0;e<80;++e){let o=Math.floor(e/20),a=r(l,5)+function(e,n,r,o){switch(e){case 0:return n&r^~n&o;case 1:case 3:return n^r^o;case 2:return n&r^n&o^r&o}}(o,u,s,c)+f+n[o]+i[e]>>>0;f=c,c=s,s=r(u,30)>>>0,u=l,l=a}o[0]=o[0]+l>>>0,o[1]=o[1]+u>>>0,o[2]=o[2]+s>>>0,o[3]=o[3]+c>>>0,o[4]=o[4]+f>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]}},95656:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.unsafeStringify=l;var o,i=(o=r(85383))&&o.__esModule?o:{default:o};let a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));function l(e,n=0){return(a[e[n+0]]+a[e[n+1]]+a[e[n+2]]+a[e[n+3]]+"-"+a[e[n+4]]+a[e[n+5]]+"-"+a[e[n+6]]+a[e[n+7]]+"-"+a[e[n+8]]+a[e[n+9]]+"-"+a[e[n+10]]+a[e[n+11]]+a[e[n+12]]+a[e[n+13]]+a[e[n+14]]+a[e[n+15]]).toLowerCase()}n.default=function(e,n=0){let r=l(e,n);if(!(0,i.default)(r))throw TypeError("Stringified UUID is invali
1d");return r}},36039:function(e,n,r){"use strict";let o,i;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,l=(a=r(55011))&&a.__esModule?a:{default:a},u=r(95656);let s=0,c=0;n.default=function(e,n,r){let a=n&&r||0,f=n||Array(16),d=(e=e||{}).node||o,p=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==p){let n=e.random||(e.rng||l.default)();null==d&&(d=o=[1|n[0],n[1],n[2],n[3],n[4],n[5]]),null==p&&(p=i=(n[6]<<8|n[7])&16383)}let h=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:c+1,y=h-s+(m-c)/1e4;if(y<0&&void 0===e.clockseq&&(p=p+1&16383),(y<0||h>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,c=m,i=p;let v=((268435455&(h+=122192928e5))*1e4+m)%4294967296;f[a++]=v>>>24&255,f[a++]=v>>>16&255,f[a++]=v>>>8&255,f[a++]=255&v;let b=h/4294967296*1e4&268435455;f[a++]=b>>>8&255,f[a++]=255&b,f[a++]=b>>>24&15|16,f[a++]=b>>>16&255,f[a++]=p>>>8|128,f[a++]=255&p;for(let e=0;e<6;++e)f[a+e]=d[e];return n||(0,u.unsafeStringify)(f)}},28132:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(90758)),i=a(r(74047));function a(e){return e&&e.__esModule?e:{default:e}}let l=(0,o.default)("v3",48,i.default);n.default=l},90758:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.URL=n.DNS=void 0,n.default=function(e,n,r){function o(e,o,l,u){var s;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let n=[];for(let r=0;r<e.length;++r)n.push(e.charCodeAt(r));return n}(e)),"string"==typeof o&&(o=(0,a.default)(o)),(null===(s=o)||void 0===s?void 0:s.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(o),c.set(e,o.length),(c=r(c))[6]=15&c[6]|n,c[8]=63&c[8]|128,l){u=u||0;for(let e=0;e<16;++e)l[u+e]=c[e];return l}return(0,i.unsafeStringify)(c)}try{o.name=e}catch(e){}return o.DNS=l,o.URL=u,o};var o,i=r(95656),a=(o=r(72751))&&o.__esModule?o:{default:o};let l="6ba7b810-9dad-11d1-80b4-00c04fd430c8";n.DNS=l;let u="6ba7b811-9dad-11d1-80b4-00c04fd430c8";n.URL=u},46061:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=l(r(82547)),i=l(r(55011)),a=r(95656);function l(e){return e&&e.__esModule?e:{default:e}}n.default=function(e,n,r){if(o.default.randomUUID&&!n&&!e)return o.default.randomUUID();let l=(e=e||{}).random||(e.rng||i.default)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,n){r=r||0;for(let e=0;e<16;++e)n[r+e]=l[e];return n}return(0,a.unsafeStringify)(l)}},23554:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(90758)),i=a(r(77634));function a(e){return e&&e.__esModule?e:{default:e}}let l=(0,o.default)("v5",80,i.default);n.default=l},85383:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=r(74767))&&o.__esModule?o:{default:o};n.default=function(e){return"string"==typeof e&&i.default.test(e)}},42885:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=r(85383))&&o.__esModule?o:{default:o};n.default=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},27293:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(6765),r(12443),r(11102),r(17943),r(15469),r(1542),r(26944),r(46144),r(96192),r(5746),r(34078),r(57184),r(6588),r(59012),r(17223),r(12551),r(97172),"undefined"==typeof window||void 0===window.document||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var n=this;do{if(n.matches(e))return n;n=n.parentElement||n.parentNode}while(null!==n&&1===n.nodeType);return null})),function(e,n){if("undefined"!=typeof document){"defineProperty"in Object&&function(){try{return Object.defineProperty({},"test",{value:42}),!0}catch(e){return!1}}()||(i=Object.defineProperty,a=Object.prototype.hasOwnProperty.call(Object.prototype,"__defineGetter__"),l="Getters & setters cannot be defined on this javascript engine",u="A property cannot both have accessors and be writable or have a value",Object.defineProperty=function(e,n,r){if(i&&(e===window||e===document||e===Element.prototype||e instanceof Element))return i(e,n,r);if(null===e||!(e instanceof Object||"object"===o(e)))throw TypeError("Object.defineProperty called on non-object");
1if(!(r instanceof Object))throw TypeError("Property description must be an object");var s=String(n),c="value"in r||"writable"in r,f="get"in r&&o(r.get),d="set"in r&&o(r.set);if(f){if("function"!==f)throw TypeError("Getter must be a function");if(!a)throw TypeError(l);if(c)throw TypeError(u);Object.__defineGetter__.call(e,s,r.get)}else e[s]=r.value;if(d){if("function"!==d)throw TypeError("Setter must be a function");if(!a)throw TypeError(l);if(c)throw TypeError(u);Object.__defineSetter__.call(e,s,r.set)}return"value"in r&&(e[s]=r.value),e});var r,i,a,l,u,s,c=function(){var e=!0,r=function(n,r,o,i){Object.defineProperty?Object.defineProperty(n,r,{configurable:!1===e||!!i,get:o}):n.__defineGetter__(r,o)};try{r({},"support")}catch(n){e=!1}return function(e,i){var a=this,l=[],u={},s=0,c=0,f=function(e){r(a,e,function(){return p(),l[e]},!1)},d=function(){if(s>=c)for(;c<s;++c)f(c)},p=function(){var n,r,a=arguments,c=/\s+/;if(a.length){for(r=0;r<a.length;++r)if(c.test(a[r]))throw(n=SyntaxError('String "'+a[r]+'" contains an invalid character')).code=5,n.name="InvalidCharacterError",n}for(""===(l="object"===o(e[i])?(""+e[i].baseVal).replace(/^\s+|\s+$/g,"").split(c):(""+e[i]).replace(/^\s+|\s+$/g,"").split(c))[0]&&(l=[]),u={},r=0;r<l.length;++r)u[l[r]]=!0;s=l.length,d()};return p(),r(a,"length",function(){return p(),s}),a.toLocaleString=a.toString=function(){return p(),l.join(" ")},a.item=function(e){return p(),l[e]},a.contains=function(e){return p(),!!u[e]},a.add=function(){p.apply(a,n=arguments);for(var n,r,c=0,f=n.length;c<f;++c)u[r=n[c]]||(l.push(r),u[r]=!0);s!==l.length&&(s=l.length>>>0,"object"===o(e[i])?e[i].baseVal=l.join(" "):e[i]=l.join(" "),d())},a.remove=function(){p.apply(a,n=arguments);for(var n,r={},c=0,f=[];c<n.length;++c)r[n[c]]=!0,delete u[n[c]];for(c=0;c<l.length;++c)r[l[c]]||f.push(l[c]);l=f,s=f.length>>>0,"object"===o(e[i])?e[i].baseVal=l.join(" "):e[i]=l.join(" "),d()},a.toggle=function(e,r){return(p.apply(a,[e]),n!==r)?r?(a.add(e),!0):(a.remove(e),!1):u[e]?(a.remove(e),!1):(a.add(e),!0)},a}}();!("DOMTokenList"in e&&(!("classList"in(s=document.createElement("x")))||!s.classList.toggle("x",!1)&&!s.className))&&((!("DOMTokenList"in e&&e.DOMTokenList)||document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg")&&!(document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList))&&(e.DOMTokenList=c),"classList"in(r=document.createElement("span"))&&(r.classList.toggle("x",!1),r.classList.contains("x")&&(r.classList.constructor.prototype.toggle=function(e){var r=arguments[1];if(n===r){var o=!this.contains(e);return this[o?"add":"remove"](e),o}return this[(r=!!r)?"add":"remove"](e),r})),function(){var e=document.createElement("span");if("classList"in e&&(e.classList.add("a","b"),!e.classList.contains("b"))){var n=e.classList.constructor.prototype.add;e.classList.constructor.prototype.add=function(){for(var e=arguments,r=arguments.length,o=0;o<r;o++)n.call(this,e[o])}}}(),function(){var e=document.createElement("span");if("classList"in e&&(e.classList.add("a"),e.classList.add("b"),e.classList.remove("a","b"),e.classList.contains("b"))){var n=e.classList.constructor.prototype.remove;e.classList.constructor.prototype.remove=function(){for(var e=arguments,r=arguments.length,o=0;o<r;o++)n.call(this,e[o])}}}())}}("object"===("undefined"==typeof window?"undefined":o(window))&&window||"object"===("undefined"==typeof self?"undefined":o(self))&&self||"object"===(void 0===r.g?"undefined":o(r.g))&&r.g||{})},16812:function(e,n,r){"use strict";r(25322),r(27293)},32835:function(e,n,r){"use strict";r(26944),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var o,i,a=c(r(76635)),l=c(r(44098)),u=c(r(88264)),s=c(r(29811));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){var n=function(e,n){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==f(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===f(n)?n:String(n)}var p=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"addProvider",value:function(e,r,o){n.providers[e]=n.providers[e]||{},n.providers[e][r]=o}},{key:"addProviders",value:function(e,r){n.providers[e]=a.default.merge(n.providers[e],r)}},{key:"getProvider",value:function(e,r){if(n.providers[e]&&n.providers[e][r])return n.providers[e][r]}},{key:"getProviders",value:function(e){if(n.providers[e])return n.providers[e]}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=p,o="providers",i={address:l.default,auth:u.default,storage:s.default},(o=d(o))in p?Object.defineProperty(p,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):p[o]=i},22512:function(e,n,r){"use strict";r(26944),r(18036),r(11102),r(17943),r(15469),r(1542),r(30902),r(34078),r(12083),r(5746),Object.defineProperty(n,"__esModule",{value:!0}),n.AddressProvider=void 0,r(97172),r(76381),r(43001),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var o,i=(o=r(76635))&&o.__esModule?o:{default:o},a=r(38388);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function s(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==l(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===l(n)?n:String(n)}(o.key),o)}}var c=function(){var e,n;function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,r),this.beforeMergeOptions(e),this.options=i.default.merge({},this.defaultOptions,e)}return n=[{key:"name",get:function(){return"address"}},{key:"displayName",get:function(){return"Address"}}],e=[{key:"beforeMergeOptions",value:function(){}},{key:"defaultOptions",get:function(){return{}}},{key:"queryProperty",get:function(){return"query"}},{key:"responseProperty",get:function(){return null}},{key:"displayValueProperty",get:function(){return null}},{key:"serialize",value:function(e){return i.default.toPairs(e).map(function(e){var n=function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,u=[],s=!0,c=!1;try{for(a=(r=r.call(e)).next;
1!(s=(o=a.call(r)).done)&&(u.push(o.value),2!==u.length);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return u}}(e,2)||function(e,n){if(e){if("string"==typeof e)return u(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],o=n[1];return"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(o))}).join("&")}},{key:"getRequestOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i.default.merge({},this.options,e)}},{key:"getRequestUrl",value:function(){throw arguments.length>0&&void 0!==arguments[0]&&arguments[0],Error("Method AddressProvider#getRequestUrl(options) is abstract.")}},{key:"makeRequest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a.GlobalFormio.makeStaticRequest(this.getRequestUrl(e),"GET",null,{noToken:!0})}},{key:"search",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRequestOptions(r);return(o.params=o.params||{})[this.queryProperty]=e,this.makeRequest(o).then(function(e){return n.responseProperty?i.default.get(e,n.responseProperty,[]):e})}},{key:"getDisplayValue",value:function(e){return this.displayValueProperty?i.default.get(e,this.displayValueProperty,""):String(e)}}],s(r.prototype,e),n&&s(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}();n.AddressProvider=c},94435:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(17223),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.AzureAddressProvider=void 0,r(27846),r(9473),r(22818);var u=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(c,e);var n,r,u,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);return e=n?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c),s.apply(this,arguments)}return u=[{key:"name",get:function(){return"azure"}},{key:"displayName",get:function(){return"Azure Maps"}}],r=[{key:"defaultOptions",get:function(){return{params:{"api-version":"1.0",typeahead:"true"}}}},{key:"responseProperty",get:function(){return"results"}},{key:"displayValueProperty",get:function(){return"address.freeformAddress"}},{key:"getRequestUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return"https://atlas.microsoft.com/search/address/json?".concat(this.serialize(n))}}],i(c.prototype,r),u&&i(c,u),Object.defineProperty(c,"prototype",{writable:!1}),c}(r(22512).AddressProvider);n.AzureAddressProvider=u},74987:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=u(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.CustomAddressProvider=void 0,r(43001),r(27846),r(9473),r(22818);var s=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(f,e);var n,r,s,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=u(f);return e=n?Reflect.construct(r,arguments,u(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),c.apply(this,arguments)}return s=[{key:"name",get:function(){return"custom"}},{key:"displayName",get:function(){return"Custom"}}],r=[{key:"queryProperty",get:function(){return this.options.queryProperty||a(u(f.prototype),"queryProperty",this)}},{key:"responseProperty",get:function(){return this.options.responseProperty||a(u(f.prototype),"responseProperty",this)}},{key:"displayValueProperty",get:function(){return this.options.displayValueProperty||a(u(f.prototype),"dis
1playValueProperty",this)}},{key:"getRequestUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.url;return"".concat(r,"?").concat(this.serialize(n))}}],i(f.prototype,r),s&&i(f,s),Object.defineProperty(f,"prototype",{writable:!1}),f}(r(22512).AddressProvider);n.CustomAddressProvider=s},50940:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.GoogleAddressProvider=void 0,r(50703),r(88455),r(17223),r(32334),r(92100),r(27846),r(9473),r(22818);var i=r(38388),a=s(r(76635)),l=r(22512),u=s(r(18947));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function f(e,n){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&f(e,n)}(p,e);var n,r,l,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=d(p);return e=n?Reflect.construct(r,arguments,d(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){var e,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p),(n=s.call(this,r)).setAutocompleteOptions();var o="https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&callback=googleMapsCallback";return null!==(e=r.params)&&void 0!==e&&e.key&&(o+="&key=".concat(r.params.key)),i.GlobalFormio.requireLibrary(n.getLibraryName(),"google.maps.places",o),n}return l=[{key:"name",get:function(){return"google"}},{key:"displayName",get:function(){return"Google Maps"}}],r=[{key:"displayValueProperty",get:function(){return"formattedPlace"}},{key:"alternativeDisplayValueProperty",get:function(){return"formatted_address"}},{key:"autocompleteOptions",get:function(){return this._autocompleteOptions},set:function(e){this._autocompleteOptions=e}},{key:"setAutocompleteOptions",value:function(){var e=a.default.get(this.options,"params.autocompleteOptions",{});a.default.isObject(e)||(e={}),this.addRequiredProviderOptions(e),this.autocompleteOptions=e}},{key:"beforeMergeOptions",value:function(e){this.convertRegionToAutocompleteOption(e)}},{key:"getLibraryName",value:function(){return"googleMaps"}},{key:"convertRegionToAutocompleteOption",value:function(e){var n=a.default.get(e,"params.region","");if(n&&!a.default.has(e,"params.autocompleteOptions")){n=n.toUpperCase().trim();var r={UK:"GB"};r[n]&&(n=r[n]),a.default.set(e,"params.autocompleteOptions.componentRestrictions.country",[n])}}},{key:"getRequiredAddressProperties",value:function(){return["address_components","formatted_address","geometry","place_id","plus_code","types"]}},{key:"addRequiredProviderOptions",value:function(e){var n=this.getRequiredAddressProperties();a.default.isArray(e.fields)&&e.fields.length>0&&e.fields.forEach(function(e){n.some(function(n){return e===n})||n.push(e)}),e.fields=n}},{key:"filterPlace",value:function(e){e=e||{};var n={};return this.autocompleteOptions&&this.autocompleteOptions.fields.forEach(function(r){e[r]&&(n[r]=e[r])}),n}},{key:"attachAutocomplete",value:function(e,n,r){var o=this;i.GlobalFormio.libraryReady(this.getLibraryName()).then(function(){var i=new google.maps.places.Autocomplete(e,o.autocompleteOptions);i.addListener("place_changed",function(){var l=o.filterPlace(i.getPlace());l.formattedPlace=a.default.get(i,"gm_accessors_.place.se.formattedPrediction",l[o.alternativeDisplayValueProperty]),r(l,e,n)})})}},{key:"search",value:function(){return u.default.resolve()}},{key:"makeRequest",value:function(){return u.default.resolve()}},{key:"getDisplayValue",value:function(e){var n=a.default.has(e,this.displayValueProperty)?this.displayValueProperty:this.alternativeDisplayValueProperty;return a.default.get(e,n,"")}}],c(p.prototype,r),l&&c(p,l),Object.defineProperty(p,"prototype",{writable:!1}),p}(l.AddressProvider);n.GoogleAddressProvider=p},64702:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}
1function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(17223),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.NominatimAddressProvider=void 0,r(27846),r(9473),r(22818);var u=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(c,e);var n,r,u,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);return e=n?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c),s.apply(this,arguments)}return u=[{key:"name",get:function(){return"nominatim"}},{key:"displayName",get:function(){return"OpenStreetMap Nominatim"}}],r=[{key:"defaultOptions",get:function(){return{params:{addressdetails:"1",format:"json"}}}},{key:"queryProperty",get:function(){return"q"}},{key:"displayValueProperty",get:function(){return"display_name"}},{key:"getRequestUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return"https://nominatim.openstreetmap.org/search?".concat(this.serialize(n))}}],i(c.prototype,r),u&&i(c,u),Object.defineProperty(c,"prototype",{writable:!1}),c}(r(22512).AddressProvider);n.NominatimAddressProvider=u},44098:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(18997),r(24956),r(6765),r(12443),r(17223),r(92884),r(26944),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(34078);var i,a=r(94435),l=r(74987),u=r(50940),s=r(64702);function c(e,n,r){var i;return(i=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"===o(i)?i:String(i))in e)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var f=(c(i={},a.AzureAddressProvider.name,a.AzureAddressProvider),c(i,l.CustomAddressProvider.name,l.CustomAddressProvider),c(i,u.GoogleAddressProvider.name,u.GoogleAddressProvider),c(i,s.NominatimAddressProvider.name,s.NominatimAddressProvider),i);n.default=f},88264:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={}},90420:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=((o=r(32835))&&o.__esModule?o:{default:o}).default;n.default=i},63814:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(34078);var o,i=(o=r(18947))&&o.__esModule?o:{default:o};n.default=function(e,n){return function(r,o){return new i.default(function(i,a){var l=new XMLHttpRequest;l.onerror=function(e){e.networkError=!0,a(e)},l.onabort=function(e){e.networkError=!0,a(e)},l.onload=function(){if(l.status>=200&&l.status<300){var e=l.getResponseHeader("Content-Type")||r.type;i(new File([l.response],r.name,{type:e}))}else a(l.response||"Unable to process file")},l.onabort=a,l.open("POST",n.url);var u=e.getToken();u&&l.setRequestHeader("x-jwt-token",u),l.responseType="arraybuffer";var s=new FormData;s.append("file",r),s.append("processorOptions",JSON.stringify(n.options||{})),s.append("options",JSON.stringify(o||{})),l.send(s)})}}},81991:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(50703),r(34078);var o,i=(o=r(6743))&&o.__esModule?o:{default:o},a=function(e){return{uploadFile:function(n,r,o,a,l,u,s,c,f,d){return i.default.upload(e,"azure",function(e,r){return e.openAndSetHeaders("PUT",r.url),e.setRequestHeader("Content-Type",n.type),e.setRequestHeader("x-ms-blob-type","BlockBlob"),n},n,r,o,a,c,f,d).then(function(){return{storage:"azure",name:i.default.path([o,r]),size:n.size,type:n.type,groupPermissions:c,groupId:f}})}
1,downloadFile:function(n){return e.makeRequest("file","".concat(e.formUrl,"/storage/azure?name=").concat(i.default.trim(n.name)),"GET")}}};a.title="Azure File Services",n.default=a},66469:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=r(18947))&&o.__esModule?o:{default:o},a=function(){return{title:"Base64",name:"base64",uploadFile:function(e,n){var r=this,o=new FileReader;return new i.default(function(i,a){o.onload=function(r){i({storage:"base64",name:n,url:r.target.result,size:e.size,type:e.type})},o.onerror=function(){return a(r)},o.readAsDataURL(e)})},downloadFile:function(e){return i.default.resolve(e)}}};a.title="Base64",n.default=a},50192:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001);var o,i=(o=r(18947))&&o.__esModule?o:{default:o},a=r(6743),l=function(e){return{uploadFile:function(n,r,o,l,u,s,c,f,d,p){return new i.default(function(i,u){var s=new XMLHttpRequest;"function"==typeof l&&(s.upload.onprogress=l),"function"==typeof p&&p(function(){return s.abort()});var c=new FormData;c.append("name",r),c.append("dir",o),c.append("file",n),s.onerror=function(e){e.networkError=!0,u(e)},s.onload=function(){if(s.status>=200&&s.status<300){var e=JSON.parse(s.response);e.storage="googledrive",e.size=n.size,e.type=n.type,e.groupId=d,e.groupPermissions=f,i(e)}else u(s.response||"Unable to upload file")},s.onabort=u,s.open("POST","".concat(e.formUrl,"/storage/gdrive")),(0,a.setXhrHeaders)(e,s);var h=e.getToken();h&&s.setRequestHeader("x-jwt-token",h),s.send(c)})},downloadFile:function(n){var r=e.getToken();return n.url="".concat(e.formUrl,"/storage/gdrive?fileId=").concat(n.id,"&fileName=").concat(n.originalName).concat(r?"&x-jwt-token=".concat(r):""),i.default.resolve(n)}}};l.title="Google Drive",n.default=l},29811:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=c(r(66469)),i=c(r(23374)),a=c(r(81991)),l=c(r(5246)),u=c(r(22738)),s=c(r(50192));function c(e){return e&&e.__esModule?e:{default:e}}var f={base64:o.default,s3:i.default,url:l.default,azure:a.default,indexeddb:u.default,googledrive:s.default};n.default=f},22738:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(34078);var o,i=r(35111),a=(o=r(18947))&&o.__esModule?o:{default:o},l=function(){return{title:"indexedDB",name:"indexeddb",uploadFile:function(e,n,r,o,l,u){var s=this;if(!("indexedDB"in window)){console.log("This browser doesn't support IndexedDB");return}return new a.default(function(e){var n=indexedDB.open(u.indexeddb,3);n.onsuccess=function(n){e(n.target.result)},n.onupgradeneeded=function(e){e.target.result.createObjectStore(u.indexeddbTable)}}).then(function(n){var r=new FileReader;return new a.default(function(o,a){r.onload=function(){var r=new Blob([e],{type:e.type}),a=(0,i.v4)(r),s={id:a,data:r,name:e.name,size:e.size,type:e.type,url:l},c=n.transaction([u.indexeddbTable],"readwrite");c.objectStore(u.indexeddbTable).put(s,a).onerror=function(e){console.log("error storing data"),console.error(e)},c.oncomplete=function(){o({storage:"indexeddb",name:e.name,size:e.size,type:e.type,url:l,id:a})}},r.onerror=function(){return a(s)},r.readAsDataURL(e)})})},downloadFile:function(e,n){var r=this;return new a.default(function(e){indexedDB.open(n.indexeddb,3).onsuccess=function(n){e(n.target.result)}}).then(function(o){return new a.default(function(i,a){var l=o.transaction([n.indexeddbTable],"readonly"),u=l.objectStore(n.indexeddbTable).get(e.id);u.onsuccess=function(){l.oncomplete=function(){var n=u.result,o=new File([u.result.data],e.name,{type:u.result.type}),l=new FileReader;l.onload=function(r){n.url=r.target.result,n.storage=e.storage,i(n)},l.onerror=function(){return a(r)},l.readAsDataURL(o)}},u.onerror=function(){return a(r)}})})},deleteFile:function(e,n){var r=this;return new a.default(function(e){indexedDB.open(n.indexeddb,3).onsuccess=function(n){e(n.target.result)}}).then(function(o){return new a.default(function(i,a){var l=o.transaction([n.indexeddbTable],"readwrite"),u=l.objectStore(n.indexeddbTable).delete(e.id);u.onsuccess=function(){l.oncomplete=function(){i(u.result)}},u.onerror=function(){return a(r)}})})}}};l.title="IndexedDB",n.default=l},23374:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(50703);var o=a(r(18947)),i=a(r(6743));
1function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return{uploadFile:function(n,r,o,a,l,u,s,c,f,d){return i.default.upload(e,"s3",function(e,a){if(a.data.fileName=r,a.data.key=i.default.path([a.data.key,o,r]),a.signed)return e.openAndSetHeaders("PUT",a.signed),e.setRequestHeader("Content-Type",n.type),n;var l=new FormData;for(var u in a.data)l.append(u,a.data[u]);return l.append("file",n),e.openAndSetHeaders("POST",a.url),l},n,r,o,a,c,f,d).then(function(e){return{storage:"s3",name:r,bucket:e.bucket,key:e.data.key,url:i.default.path([e.url,e.data.key]),acl:e.data.acl,size:n.size,type:n.type}})},downloadFile:function(n){return"public-read"!==n.acl?e.makeRequest("file","".concat(e.formUrl,"/storage/s3?bucket=").concat(i.default.trim(n.bucket),"&key=").concat(i.default.trim(n.key)),"GET"):o.default.resolve(n)}}};l.title="S3",n.default=l},94523:function(e,n,r){"use strict";r(26944),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.getFormioUploadAdapterPlugin=void 0,r(34078),r(17223),r(3192),r(42237),r(43001),r(18997),r(24956),r(6765),r(12443),r(92884);var o,i=r(9494),a=(o=r(18947))&&o.__esModule?o:{default:o};function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=function(){var e;function n(e,r,o){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n),this.loader=e,this.fileService=r,this.component=o}return e=[{key:"upload",value:function(){var e=this;return this.loader.file.then(function(n){return new a.default(function(r,o){var a,l=e.component.component,u=l.uploadStorage,s=l.uploadUrl,c=l.uploadOptions,f=l.uploadDir,d=l.fileKey,p=[u,n,(0,i.uniqueName)(n.name),f||"",function(n){return e.onUploadProgress(n)},s,c,d,null,null],h=(a=e.fileService).uploadFile.apply(a,p.concat([function(){return e.component.emit("fileUploadingStart",h)}])).then(function(n){return e.fileService.downloadFile(n)}).then(function(e){return r({default:e.url})}).catch(function(e){console.warn("An Error occured while uploading file",e),o(e)}).finally(function(){e.component.emit("fileUploadingEnd",h)})})})}},{key:"abort",value:function(){}},{key:"onUploadProgress",value:function(e){e.lengthComputable&&(this.loader.uploadTotal=e.total,this.loader.uploaded=e.loaded)}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==l(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===l(n)?n:String(n)}(o.key),o)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.getFormioUploadAdapterPlugin=function(e,n){return function(r){r.plugins.get("FileRepository").createUploadAdapter=function(r){return new u(r,e,n)}}}},5246:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(18997),r(24956),r(6765),r(12443),r(17223),r(92884),r(26944),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),r(69446),r(34078);var i,a=(i=r(18947))&&i.__esModule?i:{default:i};function l(e,n,r){var i;return(i=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"===o(i)?i:String(i))in e)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var u=function(e){var n=function(n,r,o,i,l,u,s){return new a.default(function(a,c){var f=new XMLHttpRequest,d="string"==typeof i,p=new FormData;if("function"==typeof u&&(f.upload.onprogress=u),"function"==typeof s&&s(function(){return f.abort()}),!d)for(var h in i)p.append(h,i[h]);f.onload=function(){if(f.status>=200&&f.status<300){var e={};try{e=(e="string"==typeof f.response?JSON.parse(f.response):{})&&e.data?e.data:e}catch(n){e={}}var o=e.hasOwnProperty("url")?e.url:"".concat(f.responseURL,"/").concat(r);o&&"/"===o[0]&&(o="".concat(n).concat(o)),a({url:o,data:e})}else c(f.response||"Unable to upload file")},f.onerror=function(){return c(f)},f.onabort=function(){return c(f)};var m=n+(n.indexOf("?")>-1?"&":"?");for(var y in o)m+="".concat(y,"=").concat(o[y],"&");"&"===m[m.length-1]&&(m=m.substr(0,m.length-1)),f.open("POST",m),d&&f.setRequestHeader("Content-Type","application/json");var v=e.getToken();if(v&&f.setRequestHeader("x-jwt-token",v),l){var b="string"==typeof l?JSON.parse(l):l;for(var g in b)if("headers"===g){var w=b.headers;for(var k in w)f.setRequestHeader(k,w[k])}else f[g]=b[g]}f.send(d?i:p)})};return{title:"Url",name:"url",uploadFile:function(r,o,i,a,u,s,c,f,d,p){var h=function(f){var d;return n(u,o,{baseUrl:encodeURIComponent(e.projectUrl),project:f?f.project:"",form:f?f._id:""},(l(d={},c,r),l(d,"name",o),l(d,"dir",i),d),s,a,p).then(function(n){return n.data=n.data||{},n.data.baseUrl=e.projectUrl,n.data.project=f?f.project:"",n.data.form=f?f._id:"",{storage:"url",name:o,url:n.url,size:r.size,type:r.type,data:n.data}})};return r.private&&e.formId?e.loadForm().then(function(e){return h(e)}):h()},deleteFile:function(e){return new a.default(function(n,r){var o=new XMLHttpRequest;o.open("DELETE",e.url,!0),o.onload=function(){o.status>=200&&o.status<300?n("File deleted"):r(o.response||"Unable to delete file")},o.send(null)})},downloadFile:function(r){return r.private?(e.submissionId&&r.data&&(r.data.submission=e.submissionId),n(r.url,r.name,{},JSON.stringify(r)).then(function(e){return e.data})):a.default.resolve(r)}}};u.title="Url",n.default=u},6743:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.setXhrHeaders=n.default=void 0,r(97172),r(76381),r(35968),r(17223),r(50703),r(43001);var o=a(r(18947)),i=a(r(5648));
1function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e,n){var r=e.options.headers;if(r){var o={"Content-Disposition":!0,Authorization:!0};for(var i in r)o[i]&&n.setRequestHeader(i,r[i])}};n.setXhrHeaders=l;var u={trim:function(e){return(0,i.default)(e,"/")},path:function(e){return e.filter(function(e){return!!e}).map(u.trim).join("/")},upload:function(e,n,r,i,a,s,c,f,d,p){return new o.default(function(o,h){var m=new XMLHttpRequest;m.onerror=function(e){e.networkError=!0,h(e)},m.onabort=h,m.onload=function(){if(m.status>=200&&m.status<300){var n=JSON.parse(m.response),i=new XMLHttpRequest;"function"==typeof c&&(i.upload.onprogress=c),"function"==typeof p&&p(function(){return i.abort()}),i.openAndSetHeaders=function(){i.open.apply(i,arguments),l(e,i)},i.onerror=function(e){e.networkError=!0,h(e)},i.onabort=function(e){e.networkError=!0,h(e)},i.onload=function(){i.status>=200&&i.status<300?o(n):h(i.response||"Unable to upload file")},i.onabort=h,i.send(r(i,n))}else h(m.response||"Unable to sign file")},m.open("POST","".concat(e.formUrl,"/storage/").concat(n)),m.setRequestHeader("Accept","application/json"),m.setRequestHeader("Content-Type","application/json; charset=UTF-8");var y=e.getToken();y&&m.setRequestHeader("x-jwt-token",y),m.send(JSON.stringify({name:u.path([s,a]),size:i.size,type:i.type,groupPermissions:f,groupId:d}))})}};n.default=u},538:function(e,n,r){"use strict";r(26944),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var o=a(r(8159)),i=a(r(76635));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"templates",get:function(){return n._templates||(n._templates=o.default),n._templates}},{key:"addTemplate",value:function(e,r){n.templates[e]=r}},{key:"extendTemplate",value:function(e,r){n.templates[e]=i.default.merge({},n.templates[e],r)}},{key:"setTemplate",value:function(e,r){n.addTemplate(e,r)}},{key:"current",get:function(){return n._current?n._current:n.defaultTemplates},set:function(e){var r=n.current;n._current=i.default.merge({},r,e)}},{key:"defaultTemplates",get:function(){return n.templates.bootstrap}},{key:"framework",get:function(){return n._framework},set:function(e){n.templates.hasOwnProperty(e)&&(n._framework=e,n._current=n.templates[e])}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==l(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===l(n)?n:String(n)}(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=u},38447:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";if(Array.prototype.join,e.mode.autocomplete){for(var o in r+='\n <div class="address-autocomplete-container">\n <input\n ref="'+(null==(n=e.ref.searchInput)?"":n)+'"\n ',e.inputAttributes)r+="\n "+(null==(n=o)?"":n)+'="'+(null==(n=e.inputAttributes[o])?"":n)+'"\n ';r+='\n value="'+(null==(n=e.displayValue)?"":n)+'"\n autocomplete="off"\n aria-label="'+(null==(n=e.t("autocomplete"))?"":n)+'"\n >\n ',e.component.disableClearIcon||(r+='\n <i\n class="address-autocomplete-remove-value-icon fa fa-times"\n tabindex="'+(null==(n=e.inputAttributes.tabindex)?"":n)+'"\n ref="'+(null==(n=e.ref.removeValueIcon)?"":n)+'"\n ></i>\n '),r+="\n </div>\n"}
vendor: 4,183 bytes, line 1
1return r+="\n",e.self.manualModeEnabled&&(r+='\n <div class="form-check checkbox">\n <label class="form-check-label">\n <input\n ref="'+(null==(n=e.ref.modeSwitcher)?"":n)+'"\n type="checkbox"\n class="form-check-input"\n tabindex="'+(null==(n=e.inputAttributes.tabindex)?"":n)+'"\n ',e.mode.manual&&(r+="checked=true"),r+="\n ",e.disabled&&(r+="disabled=true"),r+="\n >\n <span>"+(null==(n=e.component.switchToManualModeLabel)?"":n)+"</span>\n </label>\n </div>\n"),r+="\n",e.self.manualMode&&(r+='\n <div ref="'+(null==(n=e.nestedKey)?"":n)+'">\n '+(null==(n=e.children)?"":n)+"\n </div>\n"),r+="\n"}},15922:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div ref="value">',e.displayValue?r+=null==(n=e.displayValue)?"":n:r+="-",r+="</div>\n"}},12620:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(38447)),i=a(r(15922));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},12363:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+="<div\n ",e.attrs)r+="\n "+(null==(n=o)?"":n)+'="'+(null==(n=e.attrs[o])?"":n)+'"\n ';return r+="\n>\n "+(null==(n=e.message)?"":n)+"\n ",e.options.vpat&&(r+='\n <span class="sr-only" id="hotkey-i-'+(null==(n=e.form._id)?"":n)+'">'+(null==(n=e.t("errorListHotkey"))?"":n)+"</span>\n "),r+="\n</div>\n"}},56104:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(12363))&&o.__esModule?o:{default:o}).default};n.default=i},48111:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="formio builder row formbuilder">\n <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n '+(null==(n=e.sidebar)?"":n)+'\n </div>\n <div class="col-xs-8 col-sm-9 col-md-10 formarea" ref="form">\n '+(null==(n=e.form)?"":n)+"\n </div>\n</div>\n"}},72700:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(48111))&&o.__esModule?o:{default:o}).default};n.default=i},29111:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="builder-component" ref="dragComponent" tabindex="-1">\n ',e.disableBuilderActions||(r+='\n <div class="component-btn-group" data-noattach="true">\n <div\n role="button"\n aria-label="Remove button. Click to remove component from the form"\n tabindex="-1"\n class="btn btn-xxs btn-danger component-settings-button component-settings-button-remove"\n ref="removeComponent"\n >\n <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'"></i>\n </div>\n <div\n role="button"\n aria-label="Copy button. Click to copy component"\n tabindex="-1"\n class="btn btn-xxs btn-default component-settings-button component-settings-button-copy"\n ref="copyComponent"\n >\n <i class="'+(null==(n=e.iconClass("copy"))?"":n)+'"></i>\n </div>\n <div\n role="button"\n aria-label="Paste below button. Click to paste component below the current component"\n tabindex="-1"\n class="btn btn-xxs btn-default component-settings-button component-settings-button-paste"\n ref="pasteComponent"\n >\n <i class="'+(null==(n=e.iconClass("save"))?"":n)+'"></i>\n </div>\n <div\n role="button"\n aria-label="Edit json button. Click to edit json of the current component"\n tabindex="-1"\n class="btn btn-xxs btn-default component-settings-button component-settings-button-edit-json" \n ref="editJson"\n >\n <i class="'+(null==(n=e.iconClass("wrench"))?"":n)+'"></i>\n </div>\n <div\n role="button"\n aria-label="Move button"\n tabindex="-1"\n class="btn btn-x
1xs btn-default component-settings-button component-settings-button-move"\n ref="moveComponent"\n >\n <i class="'+(null==(n=e.iconClass("move"))?"":n)+'"></i>\n </div>\n <div\n role="button"\n aria-label="Edit button. Click to open component settings modal window"\n tabindex="-1"\n class="btn btn-xxs btn-secondary component-settings-button component-settings-button-edit"\n ref="editComponent"\n >\n <i class="'+(null==(n=e.iconClass("cog"))?"":n)+'"></i>\n </div>\n </div>\n '),r+="\n "+(null==(n=e.html)?"":n)+"\n</div>\n"}},36147:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(29111))&&o.__esModule?o:{default:o}).default};n.default=i},28150:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="builder-components drag-container formio-builder-'+(null==(n=e.type)?"":n)+'" ref="'+(null==(n=e.key)?"":n)+'-container">\n '+(null==(n=e.html)?"":n)+"\n</div>\n"}},11249:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(28150))&&o.__esModule?o:{default:o}).default};n.default=i},88461:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="row">\n <div class="col col-sm-6">\n <p class="lead">'+(null==(n=e.t(e.componentInfo.title,{_userInput:!0}))?"":n)+" "+(null==(n=e.t("Component"))?"":n)+"</p>\n </div>\n ",e.helplinks&&(r+='\n <div class="col col-sm-6">\n <div class="float-right" style="margin-right: 20px; margin-top: 10px">\n <a href="'+(null==(n=e.t(e.helplinks+e.componentInfo.documentation))?"":n)+'" target="_blank" rel="noopener noreferrer">\n <i class="'+(null==(n=e.iconClass("new-window"))?"":n)+'"></i> '+(null==(n=e.t("Help"))?"":n)+"\n </a>\n </div>\n </div>\n "),r+='\n</div>\n<div class="row">\n <div class="col component-edit-tabs ',e.preview?r+="col-sm-6":r+="col-sm-12",r+='">\n <div ref="editForm">\n '+(null==(n=e.editForm)?"":n)+"\n </div>\n ",e.preview||(r+='\n <div style="margin-top: 10px;">\n <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(n=e.t("Save"))?"":n)+'</button>\n <button class="btn btn-secondary" style="margin-right: 10px;" ref="cancelButton">'+(null==(n=e.t("Cancel"))?"":n)+'</button>\n <button class="btn btn-danger" ref="removeButton">'+(null==(n=e.t("Remove"))?"":n)+"</button>\n </div>\n "),r+="\n </div>\n ",e.preview&&(r+='\n <div class="col col-sm-6">\n <div class="card panel preview-panel">\n <div class="card-header">\n <h4 class="card-title mb-0">'+(null==(n=e.t("Preview"))?"":n)+'</h4>\n </div>\n <div class="card-body">\n <div class="component-preview" ref="preview">\n '+(null==(n=e.preview)?"":n)+"\n </div>\n </div>\n </div>\n ",e.componentInfo.help&&(r+='\n <div class="card card-body bg-light formio-settings-help">\n '+(null==(n=e.t(e.componentInfo.help))?"":n)+"\n </div>\n "),r+='\n <div style="margin-top: 10px;">\n <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(n=e.t("Save"))?"":n)+'</button>\n <button class="btn btn-secondary" style="margin-right: 10px;" ref="cancelButton">'+(null==(n=e.t("Cancel"))?"":n)+'</button>\n <button class="btn btn-danger" ref="removeButton">'+(null==(n=e.t("Remove"))?"":n)+"</button>\n </div>\n </div>\n "),r+="\n</div>\n"}},98078:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(88461))&&o.__esModule?o:{default:o}).default};n.default=i},73780:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div\n class="drag-and-drop-alert alert alert-info no-drag"\n style="text-align:center;"\n role="alert"\n data-noattach="true"\n data-position="'+(null==(n=e.position)?"":n)+'"\n>\n '+(null==(n=e.t("Drag and Drop a form component"))?"":n)+"\n</div>\n"}},73391:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(73780))&&o.__esModule?o:{default:o}).default};n.default=i},63427:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div id="'+(null==(n=e.groupId)?"":n)+'" class="accordion builder-sidebar'+(n=e.scrollEnabled?" builder-sidebar_scroll":"")+'" ref="sidebar">\n <input class="form-control builder-sidebar_search" type="search" ref="sidebar-search" placeholder="'+(null==(n=e.t("Search f
1ield(s)"))?"":n)+'" />\n <div ref="sidebar-groups">\n ',e.groups.forEach(function(e){r+="\n "+(null==(n=e)?"":n)+"\n "}),r+="\n </div>\n</div>\n"}},38453:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(63427))&&o.__esModule?o:{default:o}).default};n.default=i},16063:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="card form-builder-panel" ref="group-panel-'+(null==(n=e.groupKey)?"":n)+'">\n <div class="card-header form-builder-group-header" id="heading-'+(null==(n=e.groupKey)?"":n)+'">\n <h5 class="mb-0 mt-0">\n <button\n class="btn btn-block builder-group-button"\n type="button"\n data-toggle="collapse"\n data-target="#group-'+(null==(n=e.groupKey)?"":n)+'"\n data-parent="#'+(null==(n=e.groupId)?"":n)+'"\n aria-expanded="'+(null==(n=e.group.default)?"":n)+'"\n aria-controls="group-'+(null==(n=e.groupKey)?"":n)+'"\n ref="sidebar-anchor"\n >\n '+(null==(n=e.t(e.group.title,{_userInput:!0}))?"":n)+'\n </button>\n </h5>\n </div>\n <div\n id="group-'+(null==(n=e.groupKey)?"":n)+'"\n class="collapse '+(n=e.group.default?" show":"")+'"\n data-parent="#'+(null==(n=e.groupId)?"":n)+'"\n data-default="'+(null==(n=e.group.default)?"":n)+'"\n aria-labelledby="heading-'+(null==(n=e.groupKey)?"":n)+'"\n ref="sidebar-group"\n >\n <div id="group-container-'+(null==(n=e.groupKey)?"":n)+'" class="card-body no-drop p-2" ref="sidebar-container">\n ',e.group.componentOrder.length||e.subgroups.length?(r+="\n ",e.group.componentOrder&&e.group.componentOrder.forEach(function(o){r+='\n <span\n ref="sidebar-component"\n data-group="'+(null==(n=e.groupKey)?"":n)+'"\n data-key="'+(null==(n=e.group.components[o].key)?"":n)+'"\n data-type="'+(null==(n=e.group.components[o].schema.type)?"":n)+'"\n class="btn btn-primary btn-sm btn-block formcomponent drag-copy"\n tabindex="'+(n=e.keyboardActionsEnabled?0:-1)+'"\n >\n ',e.group.components[o].icon&&(r+='\n <i class="'+(null==(n=e.iconClass(e.group.components[o].icon))?"":n)+'" style="margin-right: 5px;"></i>\n '),r+="\n "+(null==(n=e.t(e.group.components[o].title,{_userInput:!0}))?"":n)+"\n </span>\n "}),r+="\n "+(null==(n=e.subgroups.join(""))?"":n)+"\n "):r+="\n <div>"+(null==(n=e.t("No Matches Found"))?"":n)+"</div>\n ",r+="\n </div>\n </div>\n</div>\n"}},97550:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(16063))&&o.__esModule?o:{default:o}).default};n.default=i},49980:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="formio builder row formbuilder">\n <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n '+(null==(n=e.sidebar)?"":n)+'\n </div>\n <div class="col-xs-8 col-sm-9 col-md-10 formarea">\n <ol class="breadcrumb wizard-pages">\n ',e.pages.forEach(function(o,i){r+='\n <li id="'+(null==(n=o.key)?"":n)+'">\n <span title="'+(null==(n=o.title)?"":n)+'" class="mr-2 badge ',i===e.self.page?r+="badge-primary":r+="badge-info",r+=' wizard-page-label" ref="gotoPage">'+(null==(n=o.title)?"":n)+"</span>\n </li>\n "}),r+='\n <li class="wizard-add-page">\n <span title="'+(null==(n=e.t("Create Page"))?"":n)+'" class="mr-2 badge badge-success wizard-page-label" ref="addPage">\n <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t("Page"))?"":n)+'\n </span>\n </li>\n </ol>\n <div ref="form">\n '+(null==(n=e.form)?"":n)+"\n </div>\n </div>\n</div>\n"}},12155:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(49980))&&o.__esModule?o:{default:o}).default};n.default=i},98517:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+="<"+(null==(n=e.input.type)?"":n)+'\n ref="button"\n ',e.input.attr)r+="\n "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n ';return r+="\n ",e.component.description&&(r+='\n aria-describedby="d-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n '),r+="\n>
1\n",e.component.leftIcon&&(r+='<span class="'+(null==(n=e.component.leftIcon)?"":n)+'"></span> '),r+="\n"+(null==(n=e.input.content)?"":n)+"\n",e.component.tooltip&&(r+='\n <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n'),r+="\n",e.component.rightIcon&&(r+=' <span class="'+(null==(n=e.component.rightIcon)?"":n)+'"></span>'),r+="\n</"+(null==(n=e.input.type)?"":n)+'>\n<div ref="buttonMessageContainer">\n <span class="help-block" ref="buttonMessage"></span>\n</div>\n'}},48175:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return"\n"}},90860:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(98517)),i=a(r(48175));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},96576:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+='<div class="form-check checkbox">\n <label class="'+(null==(n=e.input.labelClass)?"":n)+' form-check-label">\n <'+(null==(n=e.input.type)?"":n)+'\n ref="input"\n ',e.input.attr)r+="\n "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n ';return r+="\n ",e.checked&&(r+="checked=true"),r+='\n aria-required="'+(null==(n=e.component.validate.required)?"":n)+'"\n ',e.component.description&&(r+='\n aria-describedby="d-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n '),r+="\n >\n ",e.self.labelIsHidden()||(r+="<span>"+(null==(n=e.input.label)?"":n)+"</span>"),r+="\n "+(null==(n=e.input.content)?"":n)+"\n </"+(null==(n=e.input.type)?"":n)+">\n </label>\n ",e.component.tooltip&&(r+='\n <i ref="tooltip" tabindex="0" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n '),r+="\n</div>\n"}},53798:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<label class="'+(null==(n=e.input.labelClass)?"":n)+'">\n '+(null==(n=e.input.content)?"":n)+"\n ",e.self.labelIsHidden()||(r+="<span>"+(null==(n=e.input.label)?"":n)+"</span>"),r+='\n</label>\n<div ref="value">',e.checked?r+="True":r+="False",r+="</div>\n"}},47282:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(96576)),i=a(r(53798));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},34930:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.component.columns.forEach(function(o,i){r+='\n<div class="\n col-'+(null==(n=o.size)?"":n)+"-"+(null==(n=o.currentWidth)?"":n)+"\n col-"+(null==(n=o.size)?"":n)+"-offset-"+(null==(n=o.offset)?"":n)+"\n col-"+(null==(n=o.size)?"":n)+"-push-"+(null==(n=o.push)?"":n)+"\n col-"+(null==(n=o.size)?"":n)+"-pull-"+(null==(n=o.pull)?"":n)+'\n " ref="'+(null==(n=e.columnKey)?"":n)+'">\n '+(null==(n=e.columnComponents[i])?"":n)+"\n</div>\n"}),r+="\n"}},56213:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(34930))&&o.__esModule?o:{default:o}).default};n.default=i},22761:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div id="'+(null==(n=e.id)?"":n)+'" class="'+(null==(n=e.classes)?"":n)+'"',e.styles&&(r+=' styles="'+(null==(n=e.styles)?"":n)+'"'),r+=' ref="component">\n ',e.visible&&(r+="\n "+(null==(n=e.children)?"":n)+'\n <div ref="messageContainer" class="formio-errors invalid-feedback"></div>\n '),r+="\n</div>\n"}},17169:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(22761))&&o.__esModule?o:{default:o}).default};n.default=i},79498:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="formio-component-modal-wrapper formio-component-modal-wrapper-'+(null==(n=e.component.type)?"":n)+'" ref="componentModalWrapper">
1\n <div ref="openModalWrapper"></div>\n <div class="formio-dialog formio-dialog-theme-default component-rendering-hidden" ref="modalWrapper">\n <div class="formio-dialog-overlay" ref="modalOverlay"></div>\n <div class="formio-dialog-content" aria-labelledby="ml-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'" ',e.self.isIE()||(r+=' role="dialog" '),r+=' ref="modalContents">\n <label class="sr-only" id="ml-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'">'+(null==(n=e.t(e.component.label))?"":n)+(n=e.self.isIE()?", dialog":"")+"</label>\n ",e.options.vpat?r+='\n <button class="formio-dialog-close float-right" title="Close" aria-label="Close button. Click to get back to the form" ref="modalCloseButton"></button>\n ':r+='\n <button class="formio-dialog-close float-right btn btn-secondary btn-sm" aria-label="Close button. Click to get back to the form" ref="modalClose"></button>\n ',r+='\n <div ref="modalContents">\n ',e.visible&&(r+="\n "+(null==(n=e.children)?"":n)+"\n "),r+='\n <div class="formio-dialog-buttons">\n ',e.options.vpat&&(r+='\n <button class="btn btn-secondary formio-dialog-button" aria-label="Cancel button. Click to cancel the changes and get back to the form." ref="modalClose">'+(null==(n=e.t("Cancel"))?"":n)+"</button>\n "),r+='\n <button class="btn btn-success formio-dialog-button" ref="modalSave" aria-label="Save button. Click to save the changes and get back to the form.">'+(null==(n=e.t("Save"))?"":n)+'</button>\n </div>\n </div>\n </div>\n <span class="sr-only" ref="modalLiveRegion" aria-live="assertive"></span>\n </div>\n</div>\n'}},21144:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(79498))&&o.__esModule?o:{default:o}).default};n.default=i},35483:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return""+(null==(n=e.children.join(""))?"":n)+"\n"}},15570:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(35483))&&o.__esModule?o:{default:o}).default};n.default=i},92308:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div ref="'+(null==(n=e.nestedKey)?"":n)+'">\n '+(null==(n=e.children)?"":n)+"\n</div>\n"}},49483:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(92308))&&o.__esModule?o:{default:o}).default};n.default=i},40170:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={"border-default":"","formio-tab-panel-active":"active","formio-tab-link-active":"active","formio-tab-link-container-active":"active","formio-form-error":"formio-error-wrapper has-message","formio-form-alert":"alert alert-danger","formio-label-error":"","formio-input-error":"","formio-alert-danger":"alert alert-danger","formio-alert-success":"alert alert-success","formio-alert-warning":"alert alert-warning","formio-modal-cancel-button":"btn btn-danger formio-dialog-button","formio-modal-confirm-button":"btn btn-primary formio-dialog-button"}},28408:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table datagrid-table table-bordered\n '+(n=e.component.striped?"table-striped":"")+"\n "+(n=e.component.hover?"table-hover":"")+"\n "+(n=e.component.condensed?"table-sm":"")+'\n " ',e.component.layoutFixed&&(r+='style="table-layout: fixed;"'),r+=">\n ",e.hasHeader&&(r+="\n <thead>\n <tr>\n ",e.component.reorder&&(r+="<th></th>"),r+="\n ",e.columns.forEach(function(o){r+='\n <th class="'+(n=o.validate&&o.validate.required?"field-required":"")+'">\n '+(null==(n=o.hideLabel?"":e.t(o.label||o.title,{_userInput:!0}))?"":n)+"\n ",o.tooltip&&(r+=' <i ref="tooltip" tabindex="0" data-title="'+(null==(n=o.tooltip)?"":n)+'" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>'),r+="\n </th>\n "}),r+="\n ",e.hasExtraColumn&&(r+='\n <th>
1\n <span class="sr-only">'+(null==(n=e.t("Add/Remove"))?"":n)+"</span>\n ",!e.builder&&e.hasAddButton&&e.hasTopSubmit&&(r+='\n <button class="btn btn-primary formio-button-add-row" ref="'+(null==(n=e.datagridKey)?"":n)+'-addRow" tabindex="'+(null==(n=e.tabIndex)?"":n)+'">\n <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i>'+(null==(n=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":n)+"\n </button>\n "),r+="\n </th>\n "),r+="\n </tr>\n </thead>\n "),r+='\n <tbody ref="'+(null==(n=e.datagridKey)?"":n)+'-tbody" data-key="'+(null==(n=e.datagridKey)?"":n)+'">\n ',e.rows.forEach(function(o,i){r+="\n ",e.hasGroups&&e.groups[i]&&(r+='\n <tr ref="'+(null==(n=e.datagridKey)?"":n)+'-group-header" class="datagrid-group-header'+(n=e.hasToggle?" clickable":"")+'">\n <td\n ref="'+(null==(n=e.datagridKey)?"":n)+'-group-label"\n colspan="'+(null==(n=e.numColumns)?"":n)+'"\n class="datagrid-group-label">'+(null==(n=e.groups[i].label)?"":n)+"</td>\n </tr>\n "),r+='\n <tr ref="'+(null==(n=e.datagridKey)?"":n)+'-row">\n ',e.component.reorder&&(r+='\n <td class="col-md-1">\n <button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="'+(null==(n=e.datagridKey)?"":n)+'"></button>\n </td>\n '),r+="\n ",e.columns.forEach(function(i){r+='\n <td ref="'+(null==(n=e.datagridKey)?"":n)+'" ',i.key&&i.overlay&&i.overlay.width&&(r+=' style="width: '+(n=i.overlay.width+"px")+'"'),r+=" >\n "+(null==(n=o[i.key])?"":n)+"\n </td>\n "}),r+="\n ",e.hasExtraColumn&&(r+="\n ",e.hasRemoveButtons&&(r+='\n <td class="col-md-1">\n <button type="button" class="btn btn-secondary formio-button-remove-row" ref="'+(null==(n=e.datagridKey)?"":n)+'-removeRow" tabindex="'+(null==(n=e.tabIndex)?"":n)+'" aria-label="'+(null==(n=e.t("remove"))?"":n)+'">\n <i class="'+(null==(n=e.iconClass("remove-circle"))?"":n)+'"></i>\n </button>\n </td>\n '),r+="\n ",e.canAddColumn&&(r+='\n <td ref="'+(null==(n=e.key)?"":n)+'-container" class="col-md-3">\n '+(null==(n=e.placeholder)?"":n)+"\n </td>\n "),r+="\n "),r+="\n </tr>\n "}),r+="\n </tbody>\n ",!e.builder&&e.hasAddButton&&e.hasBottomSubmit&&(r+='\n <tfoot>\n <tr>\n <td colspan="'+(null==(n=e.component.layoutFixed?e.numColumns:e.numColumns+1)?"":n)+'">\n <button class="btn btn-primary formio-button-add-row" ref="'+(null==(n=e.datagridKey)?"":n)+'-addRow" tabindex="'+(null==(n=e.tabIndex)?"":n)+'">\n <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":n)+"\n </button>\n </td>\n </tr>\n </tfoot>\n "),r+="\n</table>\n"}},12453:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table datagrid-table table-bordered\n '+(n=e.component.striped?"table-striped":"")+"\n "+(n=e.component.hover?"table-hover":"")+"\n "+(n=e.component.condensed?"table-sm":"")+'\n ">\n ',e.hasHeader&&(r+="\n <thead>\n <tr>\n ",e.columns.forEach(function(o){r+='\n <th class="'+(n=o.validate&&o.validate.required?"field-required":"")+'">\n '+(null==(n=o.hideLabel?"":e.t(o.label||o.title,{_userInput:!0}))?"":n)+"\n ",o.tooltip&&(r+=' <i ref="tooltip" tabindex="0" data-title="'+(null==(n=o.tooltip)?"":n)+'" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>'),r+="\n </th>\n "}),r+="\n </tr>\n </thead>\n "),r+="\n <tbody>\n ",e.rows.forEach(function(o){r+="\n <tr>\n ",e.columns.forEach(function(i){r+='\n <td ref="'+(null==(n=e.datagridKey)?"":n)+'">\n '+(null==(n=o[i.key])?"":n)+"\n </td>\n "}),r+="\n </tr>\n "}),r+="\n </tbody>\n</table>\n"}},84746:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;
vendor: 14,818 bytes, line 1
1var o=a(r(28408)),i=a(r(12453));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},39174:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="row" role="group"\n ',e.component.hideLabel?r+='\n aria-label="'+(null==(n=e.component.label)?"":n)+'"\n ':r+='\n aria-labelledby="l-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n ',r+="\n ",e.component.description&&(r+='\n aria-describedby="d-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n '),r+="\n >\n ",e.dayFirst&&e.showDay&&(r+='\n <div class="col col-xs-3">\n ',e.component.hideInputLabels||(r+='\n <label for="'+(null==(n=e.component.key)?"":n)+'-day" class="',e.component.fields.day.required&&(r+="field-required"),r+='">'+(null==(n=e.t("Day"))?"":n)+"</label>\n "),r+="\n <div>"+(null==(n=e.day)?"":n)+"</div>\n </div>\n "),r+="\n ",e.showMonth&&(r+='\n <div class="col col-xs-4">\n ',e.component.hideInputLabels||(r+='\n <label for="'+(null==(n=e.component.key)?"":n)+'-month" class="',e.component.fields.month.required&&(r+="field-required"),r+='">'+(null==(n=e.t("Month"))?"":n)+"</label>\n "),r+="\n <div>"+(null==(n=e.month)?"":n)+"</div>\n </div>\n "),r+="\n ",!e.dayFirst&&e.showDay&&(r+='\n <div class="col col-xs-3">\n ',e.component.hideInputLabels||(r+='\n <label for="'+(null==(n=e.component.key)?"":n)+'-day" class="',e.component.fields.day.required&&(r+="field-required"),r+='">'+(null==(n=e.t("Day"))?"":n)+"</label>\n "),r+="\n <div>"+(null==(n=e.day)?"":n)+"</div>\n </div>\n "),r+="\n ",e.showYear&&(r+='\n <div class="col col-xs-5">\n ',e.component.hideInputLabels||(r+='\n <label for="'+(null==(n=e.component.key)?"":n)+'-year" class="',e.component.fields.year.required&&(r+="field-required"),r+='">'+(null==(n=e.t("Year"))?"":n)+"</label>\n "),r+="\n <div>"+(null==(n=e.year)?"":n)+"</div>\n </div>\n "),r+='\n</div>\n<input name="ctx.data[day]" type="hidden" class="form-control" lang="en" value="" ref="input">\n'}},79524:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(39174))&&o.__esModule?o:{default:o}).default};n.default=i},13591:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return'<div class="formio-dialog formio-dialog-theme-default component-settings">\n <div class="formio-dialog-overlay" ref="dialogOverlay"></div>\n <div class="formio-dialog-content" ref="dialogContents" role="dialog">\n <div ref="dialogContents"></div>\n <button class="formio-dialog-close float-right btn-sm" aria-label="Close modal window." ref="dialogClose"></button>\n </div>\n</div>\n'}},44597:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(13591))&&o.__esModule?o:{default:o}).default};n.default=i},37504:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<ul class="editgrid-listgroup list-group\n '+(n=e.component.striped?"table-striped":"")+"\n "+(n=e.component.bordered?"table-bordered":"")+"\n "+(n=e.component.hover?"table-hover":"")+"\n "+(n=e.component.condensed?"table-sm":"")+'\n ">\n ',e.header&&(r+='\n <li class="list-group-item list-group-header">\n '+(null==(n=e.header)?"":n)+"\n </li>\n "),r+="\n ",e.rows.forEach(function(o,i){r+='\n <li class="list-group-item" ref="'+(null==(n=e.ref.row)?"":n)+'">\n '+(null==(n=o)?"":n)+"\n ",e.openRows[i]&&!e.readOnly&&(r+='\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="'+(null==(n=e.ref.saveRow)?"":n)+'">'+(null==(n=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":n)+"</button>\n ",e.component.removeRow&&(r+='\n <button class="btn btn-danger" ref="'+(null==(n=e.ref.cancelRow)?"":n)+'">'+(null==(n=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":n)+"</button>\n "),r+="\n </div>\n "),r+='\n <div class="has-error">\n <div class="editgrid-row-error">\n '+(null==(n=e.errors[i])?"":n)+"\n </div>\n </div>\n </li>\n "}),r+="\n ",e.footer&&(r+='\n <li class="list-group-item list-group-footer">\n '+(null==(n=e.footer)?"":n)+"\n </li>\n "),r+="\n</ul>\n",!e.readOnly&&e.hasAddButton&&(r+='\n<button class="btn btn-primary" ref="'+(null==(n=e.ref.addRow)?"":n)+'">\n <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":n)+"\n</button>\n"),r+="\n"}},75971:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<ul class="editgrid-listgroup list-group\n '+(n=e.component.striped?"table-striped":"")+"\n "+(n=e.component.bordered?"table-bordered":"")+"\n "+(n=e.component.hover?"table-hover":"")+"\n "+(n=e.component.condensed?"table-sm":"")+'\n ">\n ',e.header&&(r+='\n <li class="list-group-item list-group-header">\n '+(null==(n=e.header)?"":n)+"\n </li>\n "),r+="\n ",e.rows.forEach(function(o,i){r+='\n <li class="list-group-item" ref="'+(null==(n=e.ref.row)?"":n)+'">\n '+(null==(n=o)?"":n)+"\n ",e.openRows[i]&&!e.readOnly&&(r+='\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="'+(null==(n=e.ref.saveRow)?"":n)+'">'+(null==(n=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":n)+"</button>\n ",e.component.removeRow&&(r+='\n <button class="btn btn-danger" ref="'+(null==(n=e.ref.cancelRow)?"":n)+'">'+(null==(n=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":n)+"</button>\n "),r+="\n </div>\n "),r+='\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n '+(null==(n=e.errors[i])?"":n)+"\n </div>\n </div>\n </li>\n "}),r+="\n ",e.footer&&(r+='\n <li class="list-group-item list-group-footer">\n '+(null==(n=e.footer)?"":n)+"\n </li>\n "),r+="\n</ul>\n"}},38324:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(37504)),i=a(r(75971));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},78586:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="editgrid-table-container">\n <div class="table-responsive">\n <table class="table\n '+(n=e.component.striped?"table-striped":"")+"\n "+(n=e.component.bordered?"table-bordered":"")+"\n "+(n=e.component.hover?"table-hover":"")+"\n "+(n=e.component.condensed?"table-sm":"")+'\n ">\n ',e.header&&(r+='\n <thead class="editgrid-table-head">\n '+(null==(n=e.header)?"":n)+"\n </thead>\n "),r+='\n <tbody class="editgrid-table-body">\n ',e.rows.forEach(function(o,i){r+='\n <tr ref="'+(null==(n=e.ref.row)?"":n)+'">\n '+(null==(n=o)?"":n)+"\n ",e.openRows[i]&&!e.readOnly&&(r+='\n <td class="editgrid-table-column">\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="'+(null==(n=e.ref.saveRow)?"":n)+'">'+(null==(n=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":n)+"</button>\n ",e.component.removeRow&&(r+='\n <button class="btn btn-danger" ref="'+(null==(n=e.ref.cancelRow)?"":n)+'">'+(null==(n=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":n)+"</button>\n "),r+="\n </div>\n </td>\n "),r+="\n ",e.errors[i]&&(r+='\n <td class="editgrid-table-column">\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n '+(null==(n=e.errors[i])?"":n)+"\n </div>\n </div>\n </td>\n "),r+="\n </tr>\n "}),r+="\n </tbody>\n ",e.footer&&(r+="\n <tfoot>\n <tr>\n "+(null==(n=e.footer)?"":n)+"\n </tr>\n <tfoot>\n "),r+="\n </table>\n </div>\n</div>\n",!e.readOnly&&e.hasAddButton&&(r+='\n<button class="btn btn-primary" ref="'+(null==(n=e.ref.addRow)?"":n)+'">\n <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i>\n '+(null==(n=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":n)+"\n</button>\n"),r+="\n"}},52843:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="editgrid-table-container">\n <div class="table-responsive">\n <table class="table\n '+(n=e.component.striped?"table-striped":"")+"\n "+(n=e.component.bordered?"table-bordered":"")+"\n "+(n=e.component.hover?"table-hover":"")+"\n "+(n=e.component.condensed?"table-sm":"")+'\n ">\n ',e.header&&(r+='\n <thead class="editgrid-table-head">\n '+(null==(n=e.header)?"":n)+"\n </thead>\n "),r+='\n <tbody class="editgrid-table-body">\n ',e.rows.forEach(function(o,i){r+='\n <tr ref="'+(null==(n=e.ref.row)?"":n)+'">\n '+(null==(n=o)?"":n)+"\n ",e.openRows[i]&&!e.readOnly&&(r+='\n <td class="editgrid-table-column">\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="'+(null==(n=e.ref.saveRow)?"":n)+'">'+(null==(n=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":n)+"</button>\n ",e.component.removeRow&&(r+='\n <button class="btn btn-danger" ref="'+(null==(n=e.ref.cancelRow)?"":n)+'">'+(null==(n=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":n)+"</button>\n "),r+="\n </div>\n </td>\n "),r+="\n ",e.errors[i]&&(r+='\n <td class="editgrid-table-column">\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n '+(null==(n=e.errors[i])?"":n)+"\n </div>\n </div>\n </td>\n "),r+="\n </tr>\n "}),r+="\n </tbody>\n ",e.footer&&(r+="\n <tfoot>\n <tr>\n "+(null==(n=e.footer)?"":n)+"\n </tr>\n <tfoot>\n "),r+="\n </table>\n </div>\n</div>\n"}},1963:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(78586)),i=a(r(52843));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},56921:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+="<p>"+(null==(n=e.t("error"))?"":n)+"\n ",e.options.vpat&&(r+='\n <span ref="errorTooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+'" tabindex="0"></span>\n '),r+="\n</p>\n<ul>\n ",e.errors.forEach(function(e){r+='\n <li>\n <span\n data-component-key = "'+(null==(n=e.keyOrPath)?"":n)+'"\n ref = "errorRef"\n tabIndex = "0"\n role="link"\n >\n '+(null==(n=e.message)?"":n)+"\n </span>\n </li>\n "}),r+="\n</ul>\n"}},34890:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(56921))&&o.__esModule?o:{default:o}).default};n.default=i},23194:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="field-wrapper\n '+(n=e.isRightPosition?"field-wrapper--reverse":"")+'">\n ',e.label.hidden||(r+='\n <div class="field-label\n '+(n=e.isRightAlign?"field-label--right":"")+'"\n style="'+(null==(n=e.labelStyles)?"":n)+'">\n '+(null==(n=e.labelMarkup)?"":n)+"\n </div>\n "),r+="\n\n ",e.label.hidden&&e.label.className&&e.component.validate.required&&(r+='\n <div class="field-label\n '+(n=e.isRightAlign?"field-label--right":"")+'"\n style="'+(null==(n=e.labelStyles)?"":n)+'">\n <label class="'+(null==(n=e.label.className)?"":n)+'"></label>\n </div>\n '),r+='\n\n <div class="field-content" style="'+(null==(n=e.contentStyles)?"":n)+'">\n '+(null==(n=e.element)?"":n)+"\n </div>\n</div>\n\n",e.component.description&&(r+='\n <div class="form-text text-muted">'+(null==(n=e.t(e.component.description,{_userInput:!0}))?"":n)+"</div>\n"),r+="\n"}},17970:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.label.hidden||"bottom"===e.label.labelPosition||(r+="\n "+(null==(n=e.labelMarkup)?"":n)+"\n"),r+="\n\n",e.label.hidden&&e.label.className&&e.component.validate.required&&(r+='\n <label class="'+(null==(n=e.label.className)?"":n)+'"></label>\n'),r+="\n\n"+(null==(n=e.element)?"":n)+"\n\n",e.label.hidden||"bottom"!==e.label.labelPosition||(r+="\n "+(null==(n=e.labelMarkup)?"":n)+"\n"),r+="\n",e.component.description&&(r+='\n <div id="d-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'" class="form-text text-muted">'+(null==(n=e.t(e.component.description,{_userInput:!0}))?"":n)+"</div>\n"),r+="\n"}},38612:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(17970)),i=a(r(23194));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,align:i.default};n.default=l},74325:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+="<fieldset>\n ",e.component.legend&&(r+='\n <legend ref="header" class="'+(n=e.component.collapsible?"formio-clickable":"")+'">\n '+(null==(n=e.t(e.component.legend,{_userInput:!0}))?"":n)+"\n ",e.component.tooltip&&(r+='\n <i ref="tooltip" tabindex="0" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n '),r+="\n </legend>\n "),r+="\n ",e.collapsed||(r+='\n <div class="fieldset-body" ref="'+(null==(n=e.nestedKey)?"":n)+'">\n '+(null==(n=e.children)?"":n)+"\n </div>\n "),r+="\n</fieldset>\n"}},12918:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(74325))&&o.__esModule?o:{default:o}).default};n.default=i},95260:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.options.vpat&&(r+='\n <span tabindex="-1" class="sr-only" id="invisible-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"></span>\n'),r+="\n",e.self.imageUpload?(r+="\n <div>
1\n ",e.files.forEach(function(o){r+='\n <div>\n <span>\n <img ref="fileImage" src="" alt="'+(null==(n=o.originalName||o.name)?"":n)+'" style="width:'+(null==(n=e.component.imageSize)?"":n)+'px">\n ',e.disabled||(r+='\n <i tabindex="0" class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="removeLink"></i>\n '),r+="\n </span>\n </div>\n "}),r+="\n </div>\n"):(r+="\n ",e.options.vpat&&(r+="\n <div>"+(null==(n=e.component.filePattern&&"*"!==e.component.filePattern?e.t("Allowed file types: ")+e.component.filePattern:"Any file types are allowed")?"":n)+"</div>\n "),r+='\n <ul class="list-group list-group-striped">\n <li class="list-group-item list-group-header hidden-xs hidden-sm">\n <div class="row">\n ',e.disabled||(r+='\n <div class="col-md-1"></div>\n '),r+='\n <div class="col-md-',e.self.hasTypes?r+="7":r+="9",r+='"><strong>'+(null==(n=e.t("File Name"))?"":n)+'</strong></div>\n <div class="col-md-2"><strong>'+(null==(n=e.t("Size"))?"":n)+"</strong></div>\n ",e.self.hasTypes&&(r+='\n <div class="col-md-2"><strong>'+(null==(n=e.t("Type"))?"":n)+"</strong></div>\n "),r+="\n </div>\n </li>\n ",e.files.forEach(function(o){r+='\n <li class="list-group-item">\n <div class="row">\n ',e.disabled||(r+='\n <div class="col-md-1"><i tabindex="0" class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="removeLink"></i></div>\n '),r+='\n <div class="col-md-',e.self.hasTypes?r+="7":r+="9",r+='">\n ',e.component.uploadOnly?r+="\n "+(null==(n=o.originalName||o.name)?"":n)+"\n ":r+='\n <a href="'+(null==(n=o.url||"#")?"":n)+'" target="_blank" ref="fileLink">\n <span class="sr-only">'+(null==(n=e.t("Press to open "))?"":n)+"</span>"+(null==(n=o.originalName||o.name)?"":n)+"\n </a>\n ",r+='\n </div>\n <div class="col-md-2">'+(null==(n=e.fileSize(o.size))?"":n)+"</div>\n ",e.self.hasTypes&&!e.disabled&&(r+='\n <div class="col-md-2">\n <select class="file-type" ref="fileType">\n ',e.component.fileTypes.map(function(i){r+='\n <option class="test" value="'+(null==(n=i.value)?"":n)+'" ',i.label===o.fileType&&(r+='selected="selected"'),r+=">"+(null==(n=e.t(i.label))?"":n)+"</option>\n "}),r+="\n </select>\n </div>\n "),r+="\n ",e.self.hasTypes&&e.disabled&&(r+='\n <div class="col-md-2">'+(null==(n=o.fileType)?"":n)+"</div>\n "),r+="\n </div>\n </li>\n "}),r+="\n </ul>\n"),r+="\n",e.disabled||!e.component.multiple&&e.files.length||(r+="\n ",e.self.useWebViewCamera?r+='\n <div class="fileSelector">\n <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(n=e.t("Gallery"))?"":n)+'</button>\n <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(n=e.t("Camera"))?"":n)+"</button>\n </div>\n ":e.self.cameraMode?r+='\n <div class="video-container">\n <video class="video" autoplay="true" ref="videoPlayer" tabindex="-1"></video>\n </div>\n <button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> '+(null==(n=e.t("Take Picture"))?"":n)+'</button>\n <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(n=e.t("Switch to file upload"))?"":n)+"</button>\n ":(r+='\n <div class="fileSelector" ref="fileDrop" '+(n=e.fileDropHidden?"hidden":"")+'>\n <i class="'+(null==(n=e.iconClass("cloud-upload"))?"":n)+'"></i> '+(null==(n=e.t("Drop files to attach,"))?"":n)+"\n ",e.self.imageUpload&&e.component.webcam&&(r+='\n <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(n=e.t("use camera"))?"":n)+"</a>\n "),r+="\n "+(null==(n=e.t("or"))?"":n)+'\n <a href="#" ref="fileBrowse" class="browse">
1\n '+(null==(n=e.t("browse"))?"":n)+'\n <span class="sr-only">\n '+(null==(n=e.t("Browse to attach file for "+e.component.label+". "+(e.component.description?e.component.description+". ":"")+(e.component.filePattern&&"*"!==e.component.filePattern?e.t("Allowed file types: ")+e.component.filePattern:"Any file types are allowed")))?"":n)+'\n </span>\n </a>\n <div ref="fileProcessingLoader" class="loader-wrapper">\n <div class="loader text-center"></div>\n </div>\n </div>\n '),r+="\n"),r+="\n",e.statuses.forEach(function(o){r+='\n <div class="file '+(n="error"===e.statuses.status?" has-error":"")+'">\n <div class="row">\n <div class="fileName col-form-label col-sm-10">'+(null==(n=o.originalName)?"":n)+'\n <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="fileStatusRemove">\n <span class="sr-only">'+(null==(n=e.t("Remove button. Press to remove "+o.originalName))?"":n)+'</span>\n <span class="sr-only">'+(null==(n=o.message?o.message.replace(";","."):"")?"":n)+'</span>\n </i>\n </div>\n <div class="fileSize col-form-label col-sm-2 text-right">'+(null==(n=e.fileSize(o.size))?"":n)+'</div>\n </div>\n <div class="row">\n <div class="col-sm-12">\n ',"progress"===o.status?r+='\n <div class="progress">\n <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(n=o.progress)?"":n)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(n=o.progress)?"":n)+'%">\n <span class="sr-only">'+(null==(n=o.progress)?"":n)+"% "+(null==(n=e.t("Complete"))?"":n)+"</span>\n </div>\n </div>\n ":"error"===o.status?r+='\n <div class="alert alert-danger bg-'+(null==(n=o.status)?"":n)+'">'+(null==(n=e.t(o.message))?"":n)+"</div>\n ":r+='\n <div class="bg-'+(null==(n=o.status)?"":n)+'">'+(null==(n=e.t(o.message))?"":n)+"</div>\n ",r+="\n </div>\n </div>\n </div>\n"}),r+="\n",(!e.component.storage||e.support.hasWarning)&&(r+='\n <div class="alert alert-warning">\n ',e.component.storage||(r+="\n <p>"+(null==(n=e.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":n)+"</p>\n "),r+="\n ",e.support.filereader||(r+="\n <p>"+(null==(n=e.t("File API & FileReader API not supported."))?"":n)+"</p>\n "),r+="\n ",e.support.formdata||(r+="\n <p>"+(null==(n=e.t("XHR2's FormData is not supported."))?"":n)+"</p>\n "),r+="\n ",e.support.progress||(r+="\n <p>"+(null==(n=e.t("XHR2's upload progress isn't supported."))?"":n)+"</p>\n "),r+="\n </div>\n"),r+="\n"}},75555:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(95260))&&o.__esModule?o:{default:o}).default};n.default=i},36108:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+="<"+(null==(n=e.tag)?"":n)+' class="formio-component-htmlelement '+(null==(n=e.component.className)?"":n)+'" ref="html"\n ',e.attrs.forEach(function(e){r+="\n "+(null==(n=e.attr)?"":n)+'="'+(null==(n=e.value)?"":n)+'"\n '}),r+="\n>"+(null==(n=e.t(e.content))?"":n),e.singleTags&&-1!==e.singleTags.indexOf(e.tag)||(r+="</"+(null==(n=e.tag)?"":n)+">"),r+="\n"}},3590:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(36108))&&o.__esModule?o:{default:o}).default};n.default=i},26665:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<i ref="'+(null==(n=e.ref)?"":n)+'" class="'+(null==(n=e.className)?"":n)+'" style="'+(null==(n=e.styles)?"":n)+'">'+(null==(n=e.content)?"":n)+"</i>\n"}},67248:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(26665))&&o.__esModule?o:{default:o}).default};n.default=i},48452:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(43001),n.default=function(e,n,r){if("fa"===e)switch(n){case"save":n="download";break;case"zoom-in":n="search-plus";break;case"zoom-out":n="search-minus";break;case"question-sign":n="question-circle";break;case"remove-circle":n="times-circle-o";break;case"new-window":n="window-restore";break;case"move":n="arrows";break;case"time":n="clock-o"}return r?"".concat(e," ").concat(e,"-").concat(n," ").concat(e,"-spin"):"".concat(e," ").concat(e,"-").concat(n)}},64649:function(e,n,r){"use strict";r(26944),r(24646),r(35968),r(77762),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(59012),r(17223),r(12551),r(18997),r(24956),r(6765),r(12443),r(92884);var o=em(r(12620)),i=em(r(72700)),a=em(r(36147)),l=em(r(11249)),u=em(r(98078)),s=em(r(73391)),c=em(r(38453)),f=em(r(97550)),d=em(r(12155)),p=em(r(90860)),h=em(r(47282)),m=em(r(56213)),y=em(r(17169)),v=em(r(21144)),b=em(r(15570)),g=em(r(1003)),w=em(r(49483)),k=em(r(84746)),O=em(r(79524)),_=em(r(44597)),j=em(r(38324)),P=em(r(1963)),S=em(r(38612)),E=em(r(12918)),x=em(r(75555)),C=em(r(3590)),R=em(r(67248)),A=em(r(48452)),M=em(r(33871)),T=em(r(70381)),D=em(r(86004)),I=em(r(48979)),L=em(r(37380)),V=em(r(63033)),N=em(r(23525)),F=em(r(15445)),U=em(r(90589)),B=em(r(35008)),z=em(r(17241)),q=em(r(51996)),H=em(r(50887)),W=em(r(44703)),K=em(r(50407)),G=em(r(5188
11)),Y=em(r(73666)),J=em(r(18398)),X=em(r(27181)),Z=em(r(43616)),Q=em(r(86057)),ee=em(r(27005)),et=em(r(77917)),en=em(r(74014)),er=em(r(94538)),eo=em(r(33370)),ei=em(r(51176)),ea=em(r(41874)),el=em(r(93278)),eu=em(r(35289)),es=em(r(83677)),ec=em(r(21194)),ef=em(r(80454)),ed=em(r(40170)),ep=em(r(34890)),eh=em(r(56104));function em(e){return e&&e.__esModule?e:{default:e}}function ey(e){return(ey="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ev(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function eb(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ev(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=function(e){var n=function(e,n){if("object"!==ey(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==ey(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===ey(n)?n:String(n)}(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ev(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var eg=eb(eb({transform:function(e,n){return n&&"class"===e&&this.cssClasses.hasOwnProperty(n.toString())?this.cssClasses[n.toString()]:n},defaultIconset:"fa",iconClass:A.default,cssClasses:ed.default,address:o.default,builder:i.default,builderComponent:a.default,builderComponents:l.default,builderEditForm:u.default,builderPlaceholder:s.default,builderSidebar:c.default,builderSidebarGroup:f.default,builderWizard:d.default,button:p.default,checkbox:h.default,columns:m.default,component:y.default,componentModal:v.default,components:b.default,tableComponents:g.default,container:w.default,datagrid:k.default,day:O.default,dialog:_.default,editgrid:j.default,editgridTable:P.default,field:S.default,fieldset:E.default,file:x.default,html:C.default,icon:R.default,input:M.default,label:T.default,loader:D.default,loading:I.default,map:L.default,message:V.default,modaledit:F.default,modaldialog:N.default,modalPreview:U.default,multipleMasksInput:B.default,multiValueRow:z.default,multiValueTable:q.default,panel:H.default,pdf:W.default,pdfBuilder:K.default,pdfBuilderUpload:G.default,radio:Y.default,resourceAdd:J.default,select:X.default,selectOption:Z.default,signature:Q.default,survey:ee.default,tab:et.default,table:en.default,tree:er.default},eo.default),{},{webform:ei.default,well:ea.default,wizard:el.default,wizardHeader:eu.default,wizardHeaderClassic:es.default,wizardHeaderVertical:ec.default,wizardNav:ef.default,errorsList:ep.default,alert:eh.default});n.default=eg},13011:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";if(Array.prototype.join,(e.prefix||e.suffix)&&(r+='\n<div class="input-group">\n '),r+="\n ",e.prefix&&(r+='\n <div class="input-group-prepend" ref="prefix">
1\n <span class="input-group-text">\n ',e.prefix instanceof HTMLElement?r+="\n "+(null==(n=e.t(e.prefix.outerHTML,{_userInput:!0}))?"":n)+"\n ":r+="\n "+(null==(n=e.t(e.prefix,{_userInput:!0}))?"":n)+"\n ",r+="\n </span>\n </div>\n "),r+="\n ",!e.component.editor&&!e.component.wysiwyg){for(var o in r+="\n <"+(null==(n=e.input.type)?"":n)+'\n ref="'+(null==(n=e.input.ref?e.input.ref:"input")?"":n)+'"\n ',e.input.attr)r+="\n "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n ';r+='\n id="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n aria-labelledby="l-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+" ",e.component.description&&(r+="d-"+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)),r+='"\n aria-required="'+(null==(n="input"!==e.input.ref&&e.input.ref?e.component.fields&&e.component.fields[e.input.ref]&&e.component.fields[e.input.ref].required||!1:e.component.validate.required)?"":n)+'"\n >'+(null==(n=e.input.content)?"":n)+"</"+(null==(n=e.input.type)?"":n)+">\n ",e.hasValueMaskInput&&(r+='\n <input ref="valueMaskInput" />\n '),r+="\n"}return r+="\n",(e.component.editor||e.component.wysiwyg)&&(r+='\n <div ref="input"></div>\n'),r+="\n","datetime"===e.component.type&&(r+='\n<span aria-live="assertive" id="'+(null==(n=e.instance.id)?"":n)+'-liveRegion" class="sr-only" ref="liveRegion"></span>\n'),r+="\n",e.suffix&&(r+='\n <div class="input-group-append" ref="suffix">\n <span class="input-group-text">\n ',e.suffix instanceof HTMLElement?r+="\n "+(null==(n=e.t(e.suffix.outerHTML,{_userInput:!0}))?"":n)+"\n ":r+="\n "+(null==(n=e.t(e.suffix,{_userInput:!0}))?"":n)+"\n ",r+="\n </span>\n </div>\n"),r+="\n",(e.prefix||e.suffix)&&(r+="\n </div>\n"),r+="\n",(e.component.showCharCount||e.component.showWordCount)&&(r+='\n<div class="form-text '+(n=e.component.description?"pull-right":"text-right")+'">\n ',e.component.showCharCount&&(r+='\n <span class="text-muted" ref="charcount" aria-live="polite"></span>\n '),r+="\n ",e.component.showWordCount&&(r+='\n <span class="text-muted" ref="wordcount" aria-live="polite"></span>\n '),r+="\n</div>\n"),r+="\n"}},87117:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div ref="value">',e.value?r+=null==(n=e.value)?"":n:r+="-",r+="</div>\n"}},33871:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(13011)),i=a(r(87117));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},51925:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<label\n ref="label"\n class="col-form-label '+(null==(n=e.label.className)?"":n)+'"\n for="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n id="l-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n>\n '+(null==(n=e.t(e.component.label,{_userInput:!0}))?"":n)+"\n ",("number"===e.component.type||"phoneNumber"===e.component.type||"currency"===e.component.type)&&(r+='\n <span class="sr-only">, '+(null==(n=e.t("numeric only"))?"":n)+",</span>\n "),r+="\n ",e.component.tooltip&&(r+='\n <i ref="tooltip" tabindex="0" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n '),r+="\n</label>\n"}},70381:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(51925))&&o.__esModule?o:{default:o}).default};n.default=i},1415:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return'<div class="formio-loader">\n <div class="loader-wrapper">\n <div class="loader text-center"></div>\n </div> \n</div>\n'}},86004:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(1415))&&o.__esModule?o:{default:o}).default};n.default=i},86629:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return"Loading...\n"}},48979:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(86629))&&o.__esModule?o:{default:o}).default};n.default=i},92951:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div id="'+(null==(n=e.mapId)?"":n)+'" style="min-height: 300px; height: calc(100vh - 600px);" ref="gmapElement"></div>\n'}},37380:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(92951))&&o.__esModule?o:{default:o}).default};n.default=i},6758:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div id="e-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.key)?"":n)+'" class="form-text '+(null==(n=e.level||"error")?"":n)+'">'+(null==(n=e.message)?"":n)+"</div>\n"}},63033:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(6758))&&o.__esModule?o:{default:o}).default};n.default=i},55770:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<label id="l-'+(null==(n=e.component.key)?"":n)+'" class="control-label '+(null==(n=e.label.className)?"":n)+'">\n '+(null==(n=e.t(e.component.label,{_userInput:!0}))?"":n)+'<span ref="modalLabelValue" class="sr-only">. '+(null==(n="signature"===e.component.type?e.self.getValueAsString(e.previewText):e.previewText)?"":n)+'</span>\n</label><br>
1\n<span class="sr-only" ref="modalPreviewLiveRegion" aria-live="assertive"></span>\n<button\n lang="en"\n class="btn btn-light btn-md open-modal-button form-control '+(null==(n=e.openModalBtnClasses||"")?"":n)+'"\n ref="openModal"\n aria-labelledby="l-'+(null==(n=e.component.key)?"":n)+'"\n>\n '+(null==(n=e.previewText)?"":n)+'\n</button>\n<div class="formio-errors invalid-feedback">\n '+(null==(n=e.messages)?"":n)+"\n</div>\n"}},90589:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(55770))&&o.__esModule?o:{default:o}).default};n.default=i},91761:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="formio-dialog formio-dialog-theme-default formio-modaledit-dialog">\n <div ref="overlay" class="formio-dialog-overlay"></div>\n <div ref="content" class="formio-modaledit-content">\n <button\n ref="close"\n type="button"\n role="button"\n class="btn btn-primary btn-xs formio-modaledit-close">\n '+(null==(n=e.t("Close"))?"":n)+'\n </button>\n <div ref="inner" class="reset-margins"></div>\n </div>\n</div>\n'}},23525:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(91761))&&o.__esModule?o:{default:o}).default};n.default=i},55668:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div ref="container" class="formio-modaledit-view-container">\n <button\n ref="edit"\n type="button"\n role="button"\n class="btn btn-xxs btn-warning formio-modaledit-edit">\n <i class="'+(null==(n=e.iconClass("edit"))?"":n)+'"></i>\n </button>\n <div ref="input" class="modaledit-view-inner reset-margins">'+(null==(n=e.content)?"":n)+"</div>\n</div>\n"}},15445:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(55668))&&o.__esModule?o:{default:o}).default};n.default=i},7015:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<tr ref="row">\n <td>\n '+(null==(n=e.element)?"":n)+"\n </td>\n ",e.disabled||(r+='\n <td>\n <button type="button" class="btn btn-secondary" ref="removeRow">\n <i class="'+(null==(n=e.iconClass("remove-circle"))?"":n)+'"></i>\n </button>\n </td>\n '),r+="\n</tr>\n"}},17241:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(7015))&&o.__esModule?o:{default:o}).default};n.default=i},63649:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table table-bordered">\n <tbody>\n '+(null==(n=e.rows)?"":n)+"\n ",e.disabled||(r+='\n <tr>\n <td colspan="2">\n <button class="btn btn-primary formio-button-add-another" ref="addButton"><i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.addAnother,{_userInput:!0}))?"":n)+"</button>\n </td>\n </tr>\n "),r+="\n </tbody>\n</table>\n"}},51996:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(63649))&&o.__esModule?o:{default:o}).default};n.default=i},65403:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+='<div\n class="input-group formio-multiple-mask-container"\n ref="'+(null==(n=e.input.ref?e.input.ref:"input")?"":n)+'"\n>\n <select\n class="form-control formio-multiple-mask-select"\n id="'+(null==(n=e.key)?"":n)+'-mask"\n ref="select"\n ',e.input.attr.disabled&&(r+="disabled"),r+=">\n ",e.selectOptions.forEach(function(e){r+='\n <option value="'+(null==(n=e.value)?"":n)+'">'+(null==(n=e.label)?"":n)+"</option>\n "}),r+='\n </select>\n <input\n ref="mask"\n ',e.input.attr)r+="\n "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n ';return r+="\n >\n</div>\n"}},35008:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(65403))&&o.__esModule?o:{default:o}).default};n.default=i},75617:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="mb-2 card border">\n ',(!e.component.hideLabel||e.builder||e.component.collapsible||e.component.tooltip)&&(r+='\n
1<div class="card-header '+(null==(n=e.transform("class","bg-"+e.component.theme))?"":n)+'"\n ',e.component.collapsible&&(r+='\n tabindex="0"\n '),r+='\n role="button"\n aria-expanded="'+(null==(n=!e.component.collapsible||!e.collapsed)?"":n)+'"\n aria-controls="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n ref="header"\n >\n <span class="mb-0 card-title ',e.component.theme&&"default"!==e.component.theme&&(r+="text-light"),r+='">\n ',e.component.collapsible&&(r+='\n <i class="formio-collapse-icon '+(null==(n=e.iconClass(e.collapsed?"plus-square-o":"minus-square-o"))?"":n)+' text-muted" data-title="Collapse Panel"></i>\n '),r+="\n ",(!e.component.hideLabel||e.builder)&&(r+="\n "+(null==(n=e.t(e.component.title,{_userInput:!0}))?"":n)+"\n "),r+="\n ",e.component.tooltip&&(r+='\n <i ref="tooltip" tabindex="0" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n '),r+="\n </span>\n </div>\n "),r+="\n ",(!e.collapsed||e.builder)&&(r+='\n <div class="card-body" ref="'+(null==(n=e.nestedKey)?"":n)+'" id="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'">\n '+(null==(n=e.children)?"":n)+"\n </div>\n "),r+="\n</div>\n"}},50887:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(75617))&&o.__esModule?o:{default:o}).default};n.default=i},92945:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="'+(null==(n=e.classes)?"":n)+'" ref="webform">\n <span data-noattach="true" ref="zoomIn" style="position:absolute;right:10px;top:10px;cursor:pointer;" class="btn btn-default btn-secondary no-disable">\n <i class="'+(null==(n=e.iconClass("zoom-in"))?"":n)+'"></i>\n </span>\n <span data-noattach="true" ref="zoomOut" style="position:absolute;right:10px;top:60px;cursor:pointer;" class="btn btn-default btn-secondary no-disable">\n <i class="'+(null==(n=e.iconClass("zoom-out"))?"":n)+'"></i>\n </span>\n <div data-noattach="true" ref="iframeContainer"></div>\n '+(null==(n=e.submitButton)?"":n)+"\n</div>\n"}},44703:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(92945))&&o.__esModule?o:{default:o}).default};n.default=i},61611:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="formio builder row formbuilder">\n <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n '+(null==(n=e.sidebar)?"":n)+'\n </div>\n <div class="col-xs-8 col-sm-9 col-md-10 formarea" ref="form">\n <div class="formio-drop-zone" ref="iframeDropzone"></div>\n '+(null==(n=e.form)?"":n)+"\n </div>\n</div>\n"}},50407:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(61611))&&o.__esModule?o:{default:o}).default};n.default=i},16925:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="pdf-upload formio-component-file">\n <h3 class="label">'+(null==(n=e.t("Upload a PDF File"))?"":n)+'</h3>\n <input type="file" style="opacity: 0; position: absolute;" tabindex="-1" accept=".pdf" ref="hiddenFileInputElement">\n <div class="fileSelector" ref="fileDrop">\n <span ref="dragDropText">\n <i class="'+(null==(n=e.iconClass("cloud-upload"))?"":n)+'"></i>'+(null==(n=e.t("Drop pdf to start, or"))?"":n)+' <a href="#" ref="fileBrowse" class="browse">'+(null==(n=e.t("browse"))?"":n)+'</a>\n </span>\n <div class="progress pdf-progress" ref="uploadProgressWrapper" style="display:none;">\n <div class="progress-bar" ref="uploadProgress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>\n </div>\n </div>\n <div class="alert alert-danger" ref="uploadError">\n\n </div>\n</div>\n\n'}},51881:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(16925))&&o.__esModule?o:{default:o}).default};n.default=i},58657:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div\n class="form-radio radio"\n ref="radioGroup"\n role="'+(n="selectboxes"===e.component.type?"group":"radiogroup")+'"\n aria-required="'+(null==(n=e.input.component.validate.required)?"":n)+'"\n aria-labelledby="l-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n ',e.component.description&&(r+='\n aria-describedby="d-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n '),r+="\n>
1\n ",e.values.forEach(function(o,i){for(var a in r+='\n <div class="'+(null==(n=e.input.attr.type)?"":n)+" "+(n=e.component.optionsLabelPosition&&"right"!==e.component.optionsLabelPosition?"pl-0":"")+" form-check"+(n=e.inline?"-inline":"")+'" ref="wrapper">\n <label class="form-check-label label-position-'+(null==(n=e.component.optionsLabelPosition)?"":n)+'" for="'+(null==(n=e.instance.root&&e.instance.root.id)?"":n)+"-"+(null==(n=e.id)?"":n)+"-"+(null==(n=e.row)?"":n)+"-"+(null==(n="object"==typeof o.value?o.value+"-"+i:o.value)?"":n)+'">\n ',("left"===e.component.optionsLabelPosition||"top"===e.component.optionsLabelPosition)&&(r+="\n <span>"+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+"</span>\n "),r+="\n <"+(null==(n=e.input.type)?"":n)+'\n ref="input"\n ',e.input.attr)r+="\n "+(null==(n=a)?"":n)+'="'+(null==(n=e.input.attr[a])?"":n)+'"\n ';r+='\n value="'+(null==(n=o.value)?"":n)+'"\n ',e.value&&(e.value===o.value||"object"==typeof e.value&&e.value.hasOwnProperty(o.value)&&e.value[o.value])&&(r+="\n checked=true\n "),r+="\n ",o.disabled&&(r+="\n disabled=true\n "),r+='\n id="'+(null==(n=e.instance.root&&e.instance.root.id)?"":n)+"-"+(null==(n=e.id)?"":n)+"-"+(null==(n=e.row)?"":n)+"-"+(null==(n="object"==typeof o.value?o.value+"-"+i:o.value)?"":n)+'"\n role="'+(n="selectboxes"===e.component.type?"checkbox":"radio")+'"\n >\n ',e.component.optionsLabelPosition&&"right"!==e.component.optionsLabelPosition&&"bottom"!==e.component.optionsLabelPosition||(r+="\n <span>"+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+"</span>\n "),r+="\n </label>\n </div>\n "}),r+="\n</div>\n"}},45724:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n="";Array.prototype.join,n+='<div ref="value">\n ';var r=e.values.filter(function(n){return e.value===n.value||"object"==typeof e.value&&e.value.hasOwnProperty(n.value)&&e.value[n.value]}).map(function(n){return e.t(n.label,{_userInput:!0})}).join(", ");return n+("\n "+(null==r?"":r))+"\n </div>\n"}},73666:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(58657)),i=a(r(45724));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},6035:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<table class="table table-bordered">\n <tbody>\n <tr>\n <td>\n '+(null==(n=e.element)?"":n)+'\n </td>\n </tr>\n <tr>\n <td colspan="2">\n <button class="btn btn-primary formio-button-add-resource" ref="addResource">\n <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i>\n '+(null==(n=e.t(e.component.addResourceLabel||"Add Resource",{_userInput:!0}))?"":n)+"\n </button>\n </td>\n </tr>\n </tbody>\n</table>\n"}},18398:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(6035))&&o.__esModule?o:{default:o}).default};n.default=i},96557:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+='<select\n ref="'+(null==(n=e.input.ref?e.input.ref:"selectContainer")?"":n)+'"\n '+(n=e.input.multiple?"multiple":"")+"\n ",e.input.attr)r+="\n "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n ';return r+="\n ",e.input.attr.id||(r+='\n id="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n '),r+="\n ",e.component.description&&(r+='\n aria-describedby="d-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n '),r+='\n aria-required="'+(null==(n="selectContainer"!==e.input.ref&&e.input.ref?e.component.fields[e.input.ref].required:e.input.component.validate.required)?"":n)+'"\n>'+(null==(n=e.selectOptions)?"":n)+'</select>\n<input type="text"\n class="formio-select-autocomplete-input"\n ref="autocompleteInput"\n ',e.input.attr.autocomplete&&(r+='\n autocomplete="'+(null==(n=e.input.attr.autocomplete)?"":n)+'"\n '),r+='\n tabindex="-1"\n aria-label="'+(null==(n=e.t("autocomplete"))?"":n)+'"\n/>\n'}}
vendor: 4,597 bytes, line 1
1,55665:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div ref="value">',e.value?r+=null==(n=e.self.itemValueForHTMLMode(e.value))?"":n:r+="-",r+="</div>\n"}},27181:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(96557)),i=a(r(55665));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},22296:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";for(var o in Array.prototype.join,r+="<option "+(n=e.selected?'selected="selected"':"")+"\n value='"+(null==(n=e.useId?e.id:e.option.value)?"":n)+"'\n ",e.attrs)r+="\n "+(null==(n=o)?"":n)+'="'+(null==(n=e.attrs[o])?"":n)+'"\n ';return r+("\n >\n "+(null==(n=e.t(e.option.label,{_userInput:!0}))?"":n))+"\n</option>\n"}},176:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.selected&&(r+=null==(n=e.t(e.option.label,{_userInput:!0}))?"":n),r+="\n"}},43616:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(22296)),i=a(r(176));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},75322:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+=(null==(n=e.element)?"":n)+'\n<div\n class="signature-pad-body"\n style="width: '+(null==(n=e.component.width)?"":n)+";height: "+(null==(n=e.component.height)?"":n)+';padding:0;margin:0;"\n tabindex="'+(null==(n=e.component.tabindex||0)?"":n)+'"\n ref="padBody"\n>\n <a class="btn btn-sm btn-light signature-pad-refresh" ref="refresh">\n <i class="'+(null==(n=e.iconClass("refresh"))?"":n)+'"></i>\n </a>\n <canvas class="signature-pad-canvas" style="display: none;" height="'+(null==(n=e.component.height)?"":n)+'" ref="canvas"></canvas>\n ',e.required&&(r+='\n <span class="form-control-feedback text-danger">\n <i class="'+(null==(n=e.iconClass("asterisk"))?"":n)+'"></i>\n </span>\n '),r+='\n <img style="width: 100%;display: inherit;" ref="signatureImage">\n</div>\n',e.component.footer&&(r+='\n <div class="signature-pad-footer">\n '+(null==(n=e.t(e.component.footer,{_userInput:!0}))?"":n)+"\n </div>\n"),r+="\n"}},16533:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return'<img style="width: 100%;" ref="signatureImage">\n'}},86057:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(75322)),i=a(r(16533));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},31799:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table table-striped table-bordered" aria-labelledby="l-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'">\n <thead>\n <tr>\n <th></th>\n ',e.component.values.forEach(function(o){r+='\n <th style="text-align: center;">\n '+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+"\n ",o.tooltip&&(r+='\n <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>\n '),r+="\n </th>\n "}),r+="\n </tr>\n </thead>\n <tbody>\n ",e.component.questions.forEach(function(o){r+="\n <tr>\n <td>\n "+(null==(n=e.t(o.label))?"":n)+"\n ",o.tooltip&&(r+='\n <i ref="tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>\n '),r+="\n </td>\n ",e.component.values.forEach(function(i){r+='\n <td style="text-align: center;">\n <input type="radio" name="'+(null==(n=e.self.getInputName(o))?"":n)+'" value="'+(null==(n=i.value)?"":n)+'" id="'+(null==(n=e.key)?"":n)+"-"+(null==(n=o.value)?"":n)+"-"+(null==(n=i.value)?"":n)+'" ref="input">\n </td>\n '}),r+="\n </tr>\n "}),r+="\n </tbody>\n</table>\n"}},45955:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table table-striped table-bordered">\n <tbody>\n ',e.component.questions.forEach(function(o){r+="\n <tr>\n <th>"+(null==(n=e.t(o.label))?"":n)+"</th>\n <td>
1\n ",e.component.values.forEach(function(i){r+="\n ",e.value&&e.value.hasOwnProperty(o.value)&&e.value[o.value]===i.value&&(r+="\n "+(null==(n=e.t(i.label))?"":n)+"\n "),r+="\n "}),r+="\n </td>\n </tr>\n "}),r+="\n </tbody>\n</table>\n"}},27005:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(31799)),i=a(r(45955));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},91349:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.component.components.forEach(function(o,i){r+='\n <div class="mb-2 card border">\n <div class="card-header bg-default">\n <h4 class="mb-0 card-title">'+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+'</h4>\n </div>\n <div\n class="card-body"\n ref="'+(null==(n=e.tabKey)?"":n)+'"\n >\n '+(null==(n=e.tabComponents[i])?"":n)+"\n </div>\n </div>\n"}),r+="\n"}},81729:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="card'+(n=e.component.verticalLayout?" card-vertical":"")+'">\n <div class="card-header">\n <ul class="nav nav-tabs card-header-tabs'+(n=e.component.verticalLayout?" nav-tabs-vertical":"")+'" role="tablist">\n ',e.component.components.forEach(function(o,i){r+='\n <li class="nav-item'+(n=e.currentTab===i?" active":"")+'" role="tab" ref="'+(null==(n=e.tabLikey)?"":n)+'">\n <a\n class="nav-link'+(n=e.currentTab===i?" active":"")+(n=e.component.verticalLayout?" nav-link-vertical":"")+'"\n href="#'+(null==(n=o.key)?"":n)+'"\n ref="'+(null==(n=e.tabLinkKey)?"":n)+'"\n >\n '+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+"\n </a>\n </li>\n "}),r+="\n </ul>\n </div>\n ",e.component.components.forEach(function(o,i){r+='\n <div\n role="tabpanel"\n class="card-body tab-pane'+(n=e.currentTab===i?" active":"")+'"\n style="display: '+(n=e.currentTab===i?"block":"none")+'"\n ref="'+(null==(n=e.tabKey)?"":n)+'"\n >\n '+(null==(n=e.tabComponents[i])?"":n)+"\n </div>\n "}),r+="\n</div>\n"}},77917:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(91349)),i=a(r(81729));function a(e){return e&&e.__esModule?e:{default:e}}var l={flat:o.default,form:i.default};n.default=l},85456:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table\n '+(n=e.component.striped?"table-striped":"")+"\n "+(n=e.component.bordered?"table-bordered":"")+"\n "+(n=e.component.hover?"table-hover":"")+"\n "+(n=e.component.condensed?"table-sm":"")+'\n ">\n <caption class="sr-only">'+(null==(n=e.t(e.component.label))?"":n)+"</caption>\n ",e.component.header&&e.component.header.length>0&&(r+="\n <thead>\n <tr>\n ",e.component.header.forEach(function(o){r+="\n <th>"+(null==(n=e.t(o))?"":n)+"</th>\n "}),r+="\n </tr>\n </thead>\n "),r+="\n <tbody>\n ",e.tableComponents.forEach(function(o,i){r+='\n <tr ref="row-'+(null==(n=e.id)?"":n)+'">\n ',o.forEach(function(o,a){r+='\n <td ref="'+(null==(n=e.tableKey)?"":n)+"-"+(null==(n=i)?"":n)+'"',e.cellClassName&&(r+=' class="'+(null==(n=e.cellClassName)?"":n)+'"'),r+=">"+(null==(n=o)?"":n)+"</td>\n "}),r+="\n </tr>\n "}),r+="\n </tbody>\n</table>\n"}},74014:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(85456))&&o.__esModule?o:{default:o}).default};n.default=i},31570:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.children.forEach(function(e){r+='\n <td class="editgrid-table-column">\n '+(null==(n=e)?"":n)+"\n </td>\n"}),r+="\n"}},1003:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(31570))&&o.__esModule?o:{default:o}).default};n.default=i},296:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,e.node.isRoot?r+='\n <div ref="root" class="list-group-item">
1\n':r+='\n <li ref="node" class="list-group-item col-sm-12 tree__level tree__level_'+(n=e.odd?"odd":"even")+'">\n',r+="\n ",e.content&&(r+='\n <div ref="content" class="tree__node-content">\n '+(null==(n=e.content)?"":n)+"\n </div>\n "),r+="\n ",e.childNodes&&e.childNodes.length&&(r+='\n <ul ref="childNodes" class="tree__node-children list-group row">\n '+(null==(n=e.childNodes.join(""))?"":n)+"\n </ul>\n "),r+="\n",e.node.isRoot?r+="\n </div>\n":r+="\n </li>\n",r+="\n"}},94538:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(296))&&o.__esModule?o:{default:o}).default};n.default=i},72893:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="node-edit">\n <div ref="nodeEdit">'+(null==(n=e.children)?"":n)+"</div>\n ",e.readOnly||(r+='\n <div class="node-actions">\n <button ref="saveNode" class="btn btn-primary saveNode">'+(null==(n=e.t("Save"))?"":n)+'</button>\n <button ref="cancelNode" class="btn btn-danger cancelNode">'+(null==(n=e.t("Cancel"))?"":n)+"</button>\n </div>\n "),r+="\n</div>\n"}},33370:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(r(72893));function i(e){return e&&e.__esModule?e:{default:e}}var a={treeView:{form:i(r(84730)).default},treeEdit:{form:o.default}};n.default=a},84730:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="row">\n ',e.values.forEach(function(e){r+='\n <div class="col-sm-2">\n '+(null==(n=e)?"":n)+"\n </div>\n "}),r+='\n <div class="col-sm-3">\n <div class="btn-group pull-right">\n ',e.node.hasChildren&&(r+='\n <button ref="toggleNode" class="btn btn-default btn-sm toggleNode">'+(null==(n=e.t(e.node.collapsed?"Expand":"Collapse"))?"":n)+"</button>\n "),r+="\n ",e.readOnly||(r+='\n <button ref="addChild" class="btn btn-default btn-sm addChild">'+(null==(n=e.t("Add"))?"":n)+'</button>\n <button ref="editNode" class="btn btn-default btn-sm editNode">'+(null==(n=e.t("Edit"))?"":n)+'</button>\n <button ref="removeNode" class="btn btn-danger btn-sm removeNode">'+(null==(n=e.t("Delete"))?"":n)+"</button>\n ",e.node.revertAvailable&&(r+='\n <button ref="revertNode" class="btn btn-danger btn-sm revertNode">'+(null==(n=e.t("Revert"))?"":n)+"</button>\n "),r+="\n "),r+="\n </div>\n </div>\n</div>\n"}},12180:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="text-muted text-center p-2">'+(null==(n=e.t(e.component.title,{_userInput:!0}))?"":n)+"</div>\n"}},56100:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="'+(null==(n=e.classes)?"":n)+'" ref="webform" novalidate>'+(null==(n=e.children)?"":n)+"</div>\n"}},51176:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(56100)),i=a(r(12180));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,builder:i.default};n.default=l},67430:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="card card-body bg-light mb-3">\n <div ref="'+(null==(n=e.nestedKey)?"":n)+'">\n '+(null==(n=e.children)?"":n)+"\n </div>\n</div>\n"}},41874:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(67430))&&o.__esModule?o:{default:o}).default};n.default=i},48483:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<div class="text-muted text-center p-2">'+(null==(n=e.t(e.component.title,{_userInput:!0}))?"":n)+"</div>\n"}},79892:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="'+(null==(n=e.className)?"":n)+'">\n <div style="position: relative;">\n ',"wizardHeaderVertical"===e.wizardHeaderType?(r+='\n <div class="row">\n ',"right"!==e.wizardHeaderLocation&&(r+='\n <div class="col-sm-2">\n '+(null==(n=e.wizardHeader)?"":n)+"\n </div>\n "),r+='\n <div class="wizard-page col-sm-10" ref="'+(null==(n=e.wizardKey)?"":n)+'">\n '+(null==(n=e.components)?"":n)+"\n </div>\n ","right"===e.wizardHeaderLocation&&(r+='\n <div class="col-sm-2">\n '+(null==(n=e.wizardHeader)?"":n)+"\n </div>\n "),r+='\n </div>\n <div class="col-sm-offset-2 col-sm-10 '+(n="right"===e.wizardHeaderLocation?"col-sm-offset-0 col-md-offset-0":"")+'">
1\n '+(null==(n=e.wizardNav)?"":n)+"\n </div>\n "):r+="\n "+(null==(n=e.wizardHeader)?"":n)+'\n <div class="wizard-page" ref="'+(null==(n=e.wizardKey)?"":n)+'">\n '+(null==(n=e.components)?"":n)+"\n </div>\n "+(null==(n=e.wizardNav)?"":n)+"\n ",r+="\n </div>\n</div>\n"}},93278:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(79892)),i=a(r(48483));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,builder:i.default};n.default=l},51799:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<nav aria-label="Wizard navigation" id="'+(null==(n=e.wizardKey)?"":n)+'-header" ref="'+(null==(n=e.wizardKey)?"":n)+'-header">\n <ul class="pagination" role="tablist">\n ',e.panels.forEach(function(o,i){r+='\n <li class="page-item'+(n=e.currentPage===i?" active":"")+'" style="cursor: pointer;">\n <button tabindex="0" data-index="'+(null==(n=i)?"":n)+'" role="tab" class="page-link" ref="'+(null==(n=e.wizardKey)?"":n)+'-link">\n '+(null==(n=e.t(o.title,{_userInput:!0}))?"":n)+"\n ",o.tooltip&&e.currentPage===i&&(r+='\n <i ref="'+(null==(n=e.wizardKey)?"":n)+'-tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>\n '),r+="\n </button>\n </li>\n "}),r+="\n </ul>\n</nav>\n"}},35289:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(51799))&&o.__esModule?o:{default:o}).default};n.default=i},18355:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<nav aria-label="navigation" id="'+(null==(n=e.wizardKey)?"":n)+'-header">\n <div class="classic-pagination row justify-content-center" style="border-bottom:0;">\n ',e.panels.forEach(function(o,i){r+='\n <div class="classic-pagination-page col-xs-12 col-sm-6 col-md-3\n '+(n=e.currentPage<i?" disabled":"")+"\n "+(n=e.currentPage===i?" active":"")+"\n "+(n=e.currentPage>i?" complete":"")+'">\n <div class="text-center classic-pagination-title">'+(null==(n=e.t(o.title,{_userInput:!0}))?"":n)+"</div>\n ",e.panels.length>1&&(r+='\n <div class="progress"><div class="progress-bar"></div></div>\n '),r+=' \n <span ref="'+(null==(n=e.wizardKey)?"":n)+'-link" class="classic-pagination-dot"></span>\n </div>\n '}),r+="\n </div>\n</nav>\n"}},83677:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(18355))&&o.__esModule?o:{default:o}).default};n.default=i},24860:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<nav aria-label="navigation" id="'+(null==(n=e.wizardKey)?"":n)+'-header">\n <ul class="pagination flex-column">\n ',e.panels.forEach(function(o,i){r+='\n <li class="col-xs-12 page-item'+(n=e.currentPage===i?" active":"")+'" style="cursor: pointer;">
1\n <span class="page-link" ref="'+(null==(n=e.wizardKey)?"":n)+'-link" style="margin-left: 0px;">\n '+(null==(n=e.t(o.title,{_userInput:!0}))?"":n)+"\n ",o.tooltip&&e.currentPage===i&&(r+='\n <i ref="'+(null==(n=e.wizardKey)?"":n)+'-tooltip" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>\n '),r+="\n </span>\n </li>\n "}),r+="\n </ul>\n</nav>\n"}},21194:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(24860))&&o.__esModule?o:{default:o}).default};n.default=i},40100:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<ul class="formio-wizard-nav-container list-inline" id="'+(null==(n=e.wizardKey)?"":n)+'-nav">\n ',e.buttonOrder.forEach(function(o){r+="\n ","cancel"===o&&e.buttons.cancel&&(r+='\n <li>\n <button class="btn btn-secondary btn-wizard-nav-cancel" ref="'+(null==(n=e.wizardKey)?"":n)+'-cancel" aria-label="'+(null==(n=e.t("cancelButtonAriaLabel"))?"":n)+'">'+(null==(n=e.t("cancel"))?"":n)+"</button>\n </li>\n "),r+="\n ","previous"===o&&e.buttons.previous&&(r+='\n <li>\n <button class="btn btn-primary btn-wizard-nav-previous" ref="'+(null==(n=e.wizardKey)?"":n)+'-previous" aria-label="'+(null==(n=e.t("previousButtonAriaLabel"))?"":n)+'">'+(null==(n=e.t("previous"))?"":n)+"</button>\n </li>\n "),r+="\n ","next"===o&&e.buttons.next&&(r+='\n <li>\n <button class="btn btn-primary btn-wizard-nav-next" ref="'+(null==(n=e.wizardKey)?"":n)+'-next" aria-label="'+(null==(n=e.t("nextButtonAriaLabel"))?"":n)+'">'+(null==(n=e.t("next"))?"":n)+"</button>\n </li>\n "),r+="\n ","submit"===o&&e.buttons.submit&&(r+="\n <li>\n ",e.disableWizardSubmit?r+='\n <button disabled class="btn btn-primary btn-wizard-nav-submit" ref="'+(null==(n=e.wizardKey)?"":n)+'-submit" aria-label="'+(null==(n=e.t("submit"))?"":n)+' button. Click to submit the form">'+(null==(n=e.t("submit"))?"":n)+"</button>\n ":r+='\n <button class="btn btn-primary btn-wizard-nav-submit" ref="'+(null==(n=e.wizardKey)?"":n)+'-submit" aria-label="'+(null==(n=e.t("submit"))?"":n)+' button. Click to submit the form">'+(null==(n=e.t("submit"))?"":n)+"</button>\n ",r+="\n </li>\n "),r+="\n "}),r+="\n</ul>\n"}},80454:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(40100))&&o.__esModule?o:{default:o}).default};n.default=i},78065:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div id="'+(null==(n=e.groupId)?"":n)+'" class="accordion builder-sidebar'+(n=e.scrollEnabled?" builder-sidebar_scroll":"")+'" ref="sidebar" role="tablist">\n <input class="form-control builder-sidebar_search" type="search" ref="sidebar-search" placeholder="Search field(s)" />\n ',e.groups.forEach(function(e){r+="\n "+(null==(n=e)?"":n)+"\n "}),r+="\n</div>\n"}},24896:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(78065))&&o.__esModule?o:{default:o}).default};n.default=i},96818:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="card form-builder-panel" ref="group-panel-'+(null==(n=e.groupKey)?"":n)+'">\n <div class="card-header form-builder-group-header" id="heading-'+(null==(n=e.groupKey)?"":n)+'">\n <h5 class="mb-0 mt-0 d-grid">\n <button\n class="btn builder-group-button"\n type="button"\n data-toggle="collapse"\n data-target="#group-'+(null==(n=e.groupKey)?"":n)+'"\n data-parent="#'+(null==(n=e.groupId)?"":n)+'"\n aria-expanded="'+(null==(n=e.group.default)?"":n)+'"\n aria-controls="group-'+(null==(n=e.groupKey)?"":n)+'"\n ref="sidebar-anchor"\n >\n '+(null==(n=e.t(e.group.title,{_userInput:!0}))?"":n)+'\n </button>\n </h5>\n </div>\n <div\n id="group-'+(null==(n=e.groupKey)?"":n)+'"\n class="collapse '+(n=e.group.default?" show":"")+'"\n data-parent="#'+(null==(n=e.groupId)?"":n)+'"\n data-default="'+(null==(n=e.group.default)?"":n)+'"\n aria-labelledby="heading-'+(null==(n=e.groupKey)?"":n)+'"\n ref="sidebar-group"\n >\n <div id="group-container-'+(null==(n=e.groupKey)?"":n)+'" class="d-grid gap-1 no-drop p-2 w-100" ref="sidebar-container">\n ',e.group.componentOrder.length||e.subgroups.length?(r+="\n ",e.group.componentOrder&&e.group.componentOrder.forEach(function(o){r+='\n <sp
1an\n data-group="'+(null==(n=e.groupKey)?"":n)+'"\n data-key="'+(null==(n=e.group.components[o].key)?"":n)+'"\n data-type="'+(null==(n=e.group.components[o].schema.type)?"":n)+'"\n class="btn btn-primary btn-sm formcomponent drag-copy m-0"\n >\n ',e.group.components[o].icon&&(r+='\n <i class="'+(null==(n=e.iconClass(e.group.components[o].icon))?"":n)+'" style="margin-right: 5px;"></i>\n '),r+="\n "+(null==(n=e.t(e.group.components[o].title,{_userInput:!0}))?"":n)+"\n </span>\n "}),r+="\n "+(null==(n=e.subgroups.join(""))?"":n)+"\n "):r+="\n <div>"+(null==(n=e.t("No Matches Found"))?"":n)+"</div>\n ",r+="\n </div>\n </div>\n</div>\n"}},31741:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(96818))&&o.__esModule?o:{default:o}).default};n.default=i},4154:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="formio builder row formbuilder">\n <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n '+(null==(n=e.sidebar)?"":n)+'\n </div>\n <div class="col-xs-8 col-sm-9 col-md-10 formarea">\n <ol class="breadcrumb wizard-pages">\n ',e.pages.forEach(function(o,i){r+='\n <li>\n <span title="'+(null==(n=o.title)?"":n)+'" class="me-2 badge ',i===e.self.page?r+="bg-primary":r+="bg-info",r+=' wizard-page-label" ref="gotoPage">'+(null==(n=o.title)?"":n)+"</span>\n </li>\n "}),r+='\n <li class="wizard-add-page">\n <span title="'+(null==(n=e.t("Create Page"))?"":n)+'" class="me-2 badge bg-success wizard-page-label" ref="addPage">\n <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t("Page"))?"":n)+'\n </span>\n </li>\n </ol>\n <div ref="form">\n '+(null==(n=e.form)?"":n)+"\n </div>\n </div>\n</div>\n"}},77814:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(4154))&&o.__esModule?o:{default:o}).default};n.default=i},81779:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div class="formio-component-modal-wrapper formio-component-modal-wrapper-'+(null==(n=e.component.type)?"":n)+'" ref="componentModalWrapper">\n <div ref="openModalWrapper"></div>\n <div class="formio-dialog formio-dialog-theme-default component-rendering-hidden" ref="modalWrapper">\n <div class="formio-dialog-overlay" ref="modalOverlay"></div>\n <div class="formio-dialog-content" aria-labelledby="ml-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'" ',e.self.isIE()||(r+=' role="dialog" '),r+=' ref="modalContents">\n <label class="visually-hidden" id="ml-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'">'+(null==(n=e.t(e.component.label))?"":n)+(n=e.self.isIE()?", dialog":"")+"</label>\n ",e.options.vpat?r+='\n <button class="formio-dialog-close float-end" title="Close" aria-label="Close button. Click to get back to the form" ref="modalCloseButton"></button>\n ':r+='\n <button class="formio-dialog-close float-end btn btn-secondary btn-sm" aria-label="Close button. Click to get back to the form" ref="modalClose"></button>\n ',r+='\n <div ref="modalContents">\n ',e.visible&&(r+="\n "+(null==(n=e.children)?"":n)+"\n "),r+='\n <div class="formio-dialog-buttons">\n ',e.options.vpat&&(r+='\n <button class="btn btn-secondary formio-dialog-button" aria-label="Cancel button. Click to cancel the changes and get back to the form." ref="modalClose">'+(null==(n=e.t("Cancel"))?"":n)+"</button>\n "),r+='\n <button class="btn btn-success formio-dialog-button" ref="modalSave" aria-label="Save button. Click to save the changes and get back to the form.">'+(null==(n=e.t("Save"))?"":n)+'</button>\n </div>\n </div>\n </div>\n <span class="visually-hidden" ref="modalLiveRegion" aria-l
1ive="assertive"></span>\n </div>\n</div>\n'}},96039:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(81779))&&o.__esModule?o:{default:o}).default};n.default=i},20709:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={"form-group":"formio-form-group"}},84433:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table datagrid-table table-bordered\n '+(n=e.component.striped?"table-striped":"")+"\n "+(n=e.component.hover?"table-hover":"")+"\n "+(n=e.component.condensed?"table-sm":"")+'\n " ',e.component.layoutFixed&&(r+='style="table-layout: fixed;"'),r+=">\n ",e.hasHeader&&(r+="\n <thead>\n <tr>\n ",e.component.reorder&&(r+="<th></th>"),r+="\n ",e.columns.forEach(function(o){r+='\n <th class="'+(n=o.validate&&o.validate.required?"field-required":"")+'">\n '+(null==(n=o.hideLabel?"":e.t(o.label||o.title,{_userInput:!0}))?"":n)+"\n ",o.tooltip&&(r+=' <i ref="tooltip" tabindex="0" data-title="'+(null==(n=o.tooltip)?"":n)+'" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=o.tooltip)?"":n)+'"></i>'),r+="\n </th>\n "}),r+="\n ",e.hasExtraColumn&&(r+='\n <th>\n <span class="visually-hidden">'+(null==(n=e.t("Add/Remove"))?"":n)+"</span>\n ",!e.builder&&e.hasAddButton&&e.hasTopSubmit&&(r+='\n <button class="btn btn-primary formio-button-add-row" ref="'+(null==(n=e.datagridKey)?"":n)+'-addRow" tabindex="'+(null==(n=e.tabIndex)?"":n)+'">\n <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i>'+(null==(n=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":n)+"\n </button>\n "),r+="\n </th>\n "),r+="\n </tr>\n </thead>\n "),r+='\n <tbody ref="'+(null==(n=e.datagridKey)?"":n)+'-tbody" data-key="'+(null==(n=e.datagridKey)?"":n)+'">\n ',e.rows.forEach(function(o,i){r+="\n ",e.hasGroups&&e.groups[i]&&(r+='\n <tr ref="'+(null==(n=e.datagridKey)?"":n)+'-group-header" class="datagrid-group-header'+(n=e.hasToggle?" clickable":"")+'">\n <td\n ref="'+(null==(n=e.datagridKey)?"":n)+'-group-label"\n colspan="'+(null==(n=e.numColumns)?"":n)+'"\n class="datagrid-group-label">'+(null==(n=e.groups[i].label)?"":n)+"</td>\n </tr>\n "),r+='\n <tr ref="'+(null==(n=e.datagridKey)?"":n)+'-row">\n ',e.component.reorder&&(r+='\n <td>\n <button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="'+(null==(n=e.datagridKey)?"":n)+'"></button>\n </td>\n '),r+="\n ",e.columns.forEach(function(i){r+='\n <td ref="'+(null==(n=e.datagridKey)?"":n)+'" ',i.key&&i.overlay&&i.overlay.width&&(r+=' style="width: '+(n=i.overlay.width+"px")+'"'),r+=" >\n "+(null==(n=o[i.key])?"":n)+"\n </td>\n "}),r+="\n ",e.hasExtraColumn&&(r+="\n ",e.hasRemoveButtons&&(r+='\n <td>\n <button type="button" class="btn btn-secondary formio-button-remove-row" ref="'+(null==(n=e.datagridKey)?"":n)+'-removeRow" tabindex="'+(null==(n=e.tabIndex)?"":n)+'" aria-label="'+(null==(n=e.t("remove"))?"":n)+'">\n <i class="'+(null==(n=e.iconClass("remove-circle"))?"":n)+'"></i>\n </button>\n </td>\n '),r+="\n ",e.canAddColumn&&(r+='\n <td ref="'+(null==(n=e.key)?"":n)+'-container">\n '+(null==(n=e.placeholder)?"":n)+"\n </td>\n "),r+="\n "),r+="\n </tr>\n "}),r+="\n </tbody>\n ",!e.builder&&e.hasAddButton&&e.hasBottomSubmit&&(r+='\n <tfoot>\n <tr>\n <td colspan="'+(null==(n=e.component.layoutFixed?e.numColumns:e.numColumns+1)?"":n)+'">\n <button class="btn btn-primary formio-button-add-row" ref="'+(null==(n=e.datagridKey)?"":n)+'-addRow" tabindex="'+(null==(n=e.tabIndex)?"":n)+'">\n <i class="'+(null==(n=e.iconClass("plus"))?"":n)+'"></i> '+(null==(n=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":n)+"\n </button>\n </td>\n </tr>\n </tfoot>\n "),r+="\n</table>\n"}},12770:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(84433))&&o.__esModule?o:{default:o}).default};n.default=i},43272:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return'<div class="formio-dialog formio-dialog-theme-default component-settings">\n <div class="formio-dialog-overlay" ref="dialogOverlay"></div>\n <div class="formio-dialog-content" ref="dialogContents" role="dialog">\n <div ref="dialogContents"></div>\n <button class="formio-dialog-close float-end btn-sm" aria-label="Close modal window." ref="dialogClose"></button>\n </div>\n</div>\n'}},76290:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(43272))&&o.__esModule?o:{default:o}).default};n.default=i},54782:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";
vendor: 4,322 bytes, line 1
1return Array.prototype.join,e.options.vpat&&(r+='\n <span tabindex="-1" class="visually-hidden" id="invisible-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"></span>\n'),r+="\n",e.self.imageUpload?(r+="\n <div>\n ",e.files.forEach(function(o){r+='\n <div>\n <span>\n <img ref="fileImage" src="" alt="'+(null==(n=o.originalName||o.name)?"":n)+'" style="width:'+(null==(n=e.component.imageSize)?"":n)+'px">\n ',e.disabled||(r+='\n <i tabindex="0" class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="removeLink"></i>\n '),r+="\n </span>\n </div>\n "}),r+="\n </div>\n"):(r+="\n ",e.options.vpat&&(r+="\n <div>"+(null==(n=e.component.filePattern&&"*"!==e.component.filePattern?e.t("Allowed file types: ")+e.component.filePattern:"Any file types are allowed")?"":n)+"</div>\n "),r+='\n <ul class="list-group list-group-striped">\n <li class="list-group-item list-group-header hidden-xs hidden-sm">\n <div class="row">\n ',e.disabled||(r+='\n <div class="col-md-1"></div>\n '),r+='\n <div class="col-md-',e.self.hasTypes?r+="7":r+="9",r+='"><strong>'+(null==(n=e.t("File Name"))?"":n)+'</strong></div>\n <div class="col-md-2"><strong>'+(null==(n=e.t("Size"))?"":n)+"</strong></div>\n ",e.self.hasTypes&&(r+='\n <div class="col-md-2"><strong>'+(null==(n=e.t("Type"))?"":n)+"</strong></div>\n "),r+="\n </div>\n </li>\n ",e.files.forEach(function(o){r+='\n <li class="list-group-item">\n <div class="row">\n ',e.disabled||(r+='\n <div class="col-md-1"><i tabindex="0" class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="removeLink"></i></div>\n '),r+='\n <div class="col-md-',e.self.hasTypes?r+="7":r+="9",r+='">\n ',e.component.uploadOnly?r+="\n "+(null==(n=o.originalName||o.name)?"":n)+"\n ":r+='\n <a href="'+(null==(n=o.url||"#")?"":n)+'" target="_blank" ref="fileLink">\n <span class="visually-hidden">'+(null==(n=e.t("Press to open "))?"":n)+"</span>"+(null==(n=o.originalName||o.name)?"":n)+"\n </a>\n ",r+='\n </div>\n <div class="col-md-2">'+(null==(n=e.fileSize(o.size))?"":n)+"</div>\n ",e.self.hasTypes&&!e.disabled&&(r+='\n <div class="col-md-2">\n <select class="file-type" ref="fileType">\n ',e.component.fileTypes.map(function(i){r+='\n <option class="test" value="'+(null==(n=i.value)?"":n)+'" ',i.label===o.fileType&&(r+='selected="selected"'),r+=">"+(null==(n=e.t(i.label))?"":n)+"</option>\n "}),r+="\n </select>\n </div>\n "),r+="\n ",e.self.hasTypes&&e.disabled&&(r+='\n <div class="col-md-2">'+(null==(n=o.fileType)?"":n)+"</div>\n "),r+="\n </div>\n </li>\n "}),r+="\n </ul>\n"),r+="\n",e.disabled||!e.component.multiple&&e.files.length||(r+="\n ",e.self.useWebViewCamera?r+='\n <div class="fileSelector">\n <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(n=e.t("Gallery"))?"":n)+'</button>\n <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(n=e.t("Camera"))?"":n)+"</button>\n </div>\n ":e.self.cameraMode?r+='\n <div class="video-container">\n <video class="video" autoplay="true" ref="videoPlayer" tabindex="-1"></video>\n </div>\n <button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> '+(null==(n=e.t("Take Picture"))?"":n)+'</button>\n <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(n=e.t("Switch to file upload"))?"":n)+"</button>\n ":(r+='\n <div class="fileSelector" ref="fileDrop" '+(n=e.fileDropHidden?"hidden":"")+'>\n <i class="'+(null==(n=e.iconClass("cloud-upload"))?"":n)+'"></i> '+(null==(n=e.t("Drop files to attach,"))?"":n)+"\n ",e.self.imageUpload&&e.component.webcam&&(r+='\n <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(n=e.t("use camera"))?"":n)+"</a>\n "),r+="\n "+(null==(n=e.t("or"))?"":n)+'\n <a href="#" ref="fileBrowse" class="browse">
1\n '+(null==(n=e.t("browse"))?"":n)+'\n <span class="visually-hidden">\n '+(null==(n=e.t("Browse to attach file for "+e.component.label+". "+(e.component.description?e.component.description+". ":"")+(e.component.filePattern&&"*"!==e.component.filePattern?e.t("Allowed file types: ")+e.component.filePattern:"Any file types are allowed")))?"":n)+'\n </span>\n </a>\n <div ref="fileProcessingLoader" class="loader-wrapper">\n <div class="loader text-center"></div>\n </div>\n </div>\n '),r+="\n"),r+="\n",e.statuses.forEach(function(o){r+='\n <div class="file '+(n="error"===e.statuses.status?" has-error":"")+'">\n <div class="row">\n <div class="fileName col-form-label col-sm-10">'+(null==(n=o.originalName)?"":n)+'\n <i class="'+(null==(n=e.iconClass("remove"))?"":n)+'" ref="fileStatusRemove">\n <span class="visually-hidden">'+(null==(n=e.t("Remove button. Press to remove "+o.originalName))?"":n)+'</span>\n <span class="visually-hidden">'+(null==(n=o.message?o.message.replace(";","."):"")?"":n)+'</span>\n </i>\n </div>\n <div class="fileSize col-form-label col-sm-2 text-end">'+(null==(n=e.fileSize(o.size))?"":n)+'</div>\n </div>\n <div class="row">\n <div class="col-sm-12">\n ',"progress"===o.status?r+='\n <div class="progress">\n <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(n=o.progress)?"":n)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(n=o.progress)?"":n)+'%">\n <span class="visually-hidden">'+(null==(n=o.progress)?"":n)+"% "+(null==(n=e.t("Complete"))?"":n)+"</span>\n </div>\n </div>\n ":"error"===o.status?r+='\n <div class="alert alert-danger bg-'+(null==(n=o.status)?"":n)+'">'+(null==(n=e.t(o.message))?"":n)+"</div>\n ":r+='\n <div class="bg-'+(null==(n=o.status)?"":n)+'">'+(null==(n=e.t(o.message))?"":n)+"</div>\n ",r+="\n </div>\n </div>\n </div>\n"}),r+="\n",(!e.component.storage||e.support.hasWarning)&&(r+='\n <div class="alert alert-warning">\n ',e.component.storage||(r+="\n <p>"+(null==(n=e.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":n)+"</p>\n "),r+="\n ",e.support.filereader||(r+="\n <p>"+(null==(n=e.t("File API & FileReader API not supported."))?"":n)+"</p>\n "),r+="\n ",e.support.formdata||(r+="\n <p>"+(null==(n=e.t("XHR2's FormData is not supported."))?"":n)+"</p>\n "),r+="\n ",e.support.progress||(r+="\n <p>"+(null==(n=e.t("XHR2's upload progress isn't supported."))?"":n)+"</p>\n "),r+="\n </div>\n"),r+="\n"}},69727:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(54782))&&o.__esModule?o:{default:o}).default};n.default=i},87041:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(59012),r(17223),r(12551);var o=v(r(24896)),i=v(r(31741)),a=v(r(77814)),l=v(r(96039)),u=v(r(12770)),s=v(r(76290)),c=v(r(69727)),f=v(r(19771)),d=v(r(27855)),p=v(r(44580)),h=v(r(45793)),m=v(r(80398)),y=v(r(20709));function v(e){return e&&e.__esModule?e:{default:e}}var b={transform:function(e,n){return n&&"class"===e&&this.cssClasses.hasOwnProperty(n.toString())?this.cssClasses[n.toString()]:n},builderSidebar:o.default,builderSidebarGroup:i.default,builderWizard:a.default,componentModal:l.default,datagrid:u.default,dialog:s.default,file:c.default,input:f.default,label:d.default,modalPreview:p.default,radio:h.default,table:m.default,cssClasses:y.default};n.default=b},11883:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";if(Array.prototype.join,(e.prefix||e.suffix)&&(r+='\n<div class="input-group">\n '),r+="\n ",e.prefix&&(r+='\n <div class="input-group-text" ref="prefix">\n ',e.prefix instanceof HTMLElement?r+="\n "+(null==(n=e.t(e.prefix.outerHTML,{_userInput:!0}))?"":n)+"\n ":r+="\n "+(null==(n=e.t(e.prefix,{_userInput:!0}
vendor: 4,223 bytes, line 1
1))?"":n)+"\n ",r+="\n </div>\n "),r+="\n ",!e.component.editor&&!e.component.wysiwyg){for(var o in r+="\n <"+(null==(n=e.input.type)?"":n)+'\n ref="'+(null==(n=e.input.ref?e.input.ref:"input")?"":n)+'"\n ',e.input.attr)r+="\n "+(null==(n=o)?"":n)+'="'+(null==(n=e.input.attr[o])?"":n)+'"\n ';r+='\n id="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n aria-labelledby="l-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+" ",e.component.description&&(r+="d-"+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)),r+='"\n aria-required="'+(null==(n="input"!==e.input.ref&&e.input.ref?e.component.fields&&e.component.fields[e.input.ref]&&e.component.fields[e.input.ref].required||!1:e.component.validate.required)?"":n)+'"\n >'+(null==(n=e.input.content)?"":n)+"</"+(null==(n=e.input.type)?"":n)+">\n ",e.hasValueMaskInput&&(r+='\n <input ref="valueMaskInput" />\n '),r+="\n"}return r+="\n",(e.component.editor||e.component.wysiwyg)&&(r+='\n <div ref="input"></div>\n'),r+="\n","datetime"===e.component.type&&(r+='\n<span aria-live="assertive" id="'+(null==(n=e.instance.id)?"":n)+'-liveRegion" class="visually-hidden" ref="liveRegion"></span>\n'),r+="\n",e.suffix&&(r+='\n <div class="input-group-text" ref="suffix">\n ',e.suffix instanceof HTMLElement?r+="\n "+(null==(n=e.t(e.suffix.outerHTML,{_userInput:!0}))?"":n)+"\n ":r+="\n "+(null==(n=e.t(e.suffix,{_userInput:!0}))?"":n)+"\n ",r+="\n </div>\n"),r+="\n",(e.prefix||e.suffix)&&(r+="\n </div>\n"),r+="\n",(e.component.showCharCount||e.component.showWordCount)&&(r+='\n<div class="form-text {{ctx.component.description ? float-end : text-end">\n ',e.component.showCharCount&&(r+='\n <span class="text-muted" ref="charcount" aria-live="polite"></span>\n '),r+="\n ",e.component.showWordCount&&(r+='\n <span class="text-muted" ref="wordcount" aria-live="polite"></span>\n '),r+="\n</div>\n"),r+="\n"}},24155:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div ref="value">',e.value?r+=null==(n=e.value)?"":n:r+="-",r+="</div>\n"}},19771:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(11883)),i=a(r(24155));function a(e){return e&&e.__esModule?e:{default:e}}var l={form:o.default,html:i.default};n.default=l},38717:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<label\n ref="label"\n class="col-form-label '+(null==(n=e.label.className)?"":n)+'"\n for="'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n id="l-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n>\n '+(null==(n=e.t(e.component.label,{_userInput:!0}))?"":n)+"\n ",("number"===e.component.type||"phoneNumber"===e.component.type||"currency"===e.component.type)&&(r+='\n <span class="visually-hidden">, '+(null==(n=e.t("numeric only"))?"":n)+",</span>\n "),r+="\n ",e.component.tooltip&&(r+='\n <i ref="tooltip" tabindex="0" class="'+(null==(n=e.iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.component.tooltip)?"":n)+'"></i>\n '),r+="\n</label>\n"}},27855:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(38717))&&o.__esModule?o:{default:o}).default};n.default=i},12314:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return'<label id="l-'+(null==(n=e.component.key)?"":n)+'" class="control-label '+(null==(n=e.label.className)?"":n)+'">\n '+(null==(n=e.t(e.component.label,{_userInput:!0}))?"":n)+'<span ref="modalLabelValue" class="visually-hidden">. '+(null==(n="signature"===e.component.type?e.self.getValueAsString(e.previewText):e.previewText)?"":n)+'</span>\n</label><br>\n<span class="visually-hidden" ref="modalPreviewLiveRegion" aria-live="assertive"></span>\n<button\n lang="en"\n class="btn btn-light btn-md open-modal-button form-control '+(null==(n=e.openModalBtnClasses||"")?"":n)+'"\n ref="openM
1odal"\n aria-labelledby="l-'+(null==(n=e.component.key)?"":n)+'"\n>\n '+(null==(n=e.previewText)?"":n)+'\n</button>\n<div class="formio-errors invalid-feedback">\n '+(null==(n=e.messages)?"":n)+"\n</div>\n"}},44580:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(12314))&&o.__esModule?o:{default:o}).default};n.default=i},79463:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<div\n class="form-radio radio"\n ref="radioGroup"\n role="'+(n="selectboxes"===e.component.type?"group":"radiogroup")+'"\n aria-required="'+(null==(n=e.input.component.validate.required)?"":n)+'"\n aria-labelledby="l-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n ',e.component.description&&(r+='\n aria-describedby="d-'+(null==(n=e.instance.id)?"":n)+"-"+(null==(n=e.component.key)?"":n)+'"\n '),r+="\n>\n ",e.values.forEach(function(o){for(var i in r+='\n <div class="'+(null==(n=e.input.attr.type)?"":n)+" "+(null==(n=e.component.optionsLabelPosition&&"right"!==e.component.optionsLabelPosition?ps-0:"")?"":n)+" form-check"+(n=e.inline?"-inline":"")+'" ref="wrapper">\n <label class="form-check-label label-position-'+(null==(n=e.component.optionsLabelPosition)?"":n)+'" for="'+(null==(n=e.instance.root&&e.instance.root.id)?"":n)+"-"+(null==(n=e.id)?"":n)+"-"+(null==(n=e.row)?"":n)+"-"+(null==(n=o.value)?"":n)+'">\n ',("left"===e.component.optionsLabelPosition||"top"===e.component.optionsLabelPosition)&&(r+="\n <span>"+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+"</span>\n "),r+="\n <"+(null==(n=e.input.type)?"":n)+'\n ref="input"\n ',e.input.attr)r+="\n "+(null==(n=i)?"":n)+'="'+(null==(n=e.input.attr[i])?"":n)+'"\n ';r+='\n value="'+(null==(n=o.value)?"":n)+'"\n ',e.value&&(e.value===o.value||"object"==typeof e.value&&e.value.hasOwnProperty(o.value)&&e.value[o.value])&&(r+="\n checked=true\n "),r+="\n ",o.disabled&&(r+="\n disabled=true\n "),r+='\n id="'+(null==(n=e.instance.root&&e.instance.root.id)?"":n)+"-"+(null==(n=e.id)?"":n)+"-"+(null==(n=e.row)?"":n)+"-"+(null==(n=o.value)?"":n)+'"\n role="'+(n="selectboxes"===e.component.type?"checkbox":"radio")+'"\n >\n ',e.component.optionsLabelPosition&&"right"!==e.component.optionsLabelPosition&&"bottom"!==e.component.optionsLabelPosition||(r+="\n <span>"+(null==(n=e.t(o.label,{_userInput:!0}))?"":n)+"</span>\n "),r+="\n </label>\n </div>\n "}),r+="\n</div>\n"}},45793:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(79463))&&o.__esModule?o:{default:o}).default};n.default=i},21960:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table\n '+(n=e.component.striped?"table-striped":"")+"\n "+(n=e.component.bordered?"table-bordered":"")+"\n "+(n=e.component.hover?"table-hover":"")+"\n "+(n=e.component.condensed?"table-sm":"")+'\n ">\n <caption class="visually-hidden">'+(null==(n=e.t(e.component.label))?"":n)+"</caption>\n ",e.component.header&&e.component.header.length>0&&(r+="\n <thead>\n <tr>\n ",e.component.header.forEach(function(o){r+="\n <th>"+(null==(n=e.t(o))?"":n)+"</th>\n "}),r+="\n </tr>\n </thead>\n "),r+="\n <tbody>\n ",e.tableComponents.forEach(function(o,i){r+='\n <tr ref="row-'+(null==(n=e.id)?"":n)+'">\n ',o.forEach(function(o,a){r+='\n <td ref="'+(null==(n=e.tableKey)?"":n)+"-"+(null==(n=i)?"":n)+'"',e.cellClassName&&(r+=' class="'+(null==(n=e.cellClassName)?"":n)+'"'),r+=">"+(null==(n=o)?"":n)+"</td>\n "}),r+="\n </tr>\n "}),r+="\n </tbody>\n</table>\n"}},80398:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i={form:((o=r(21960))&&o.__esModule?o:{default:o}).default};n.default=i}
vendor: 4,511 bytes, line 1
1,8159:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=u(r(64649)),i=u(r(87041)),a=u(r(40114)),l=u(r(75530));function u(e){return e&&e.__esModule?e:{default:e}}var s={bootstrap:o.default,bootstrap3:a.default.templates.bootstrap3,bootstrap5:i.default,semantic:l.default.templates.semantic};n.default=s},4600:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={unsavedRowsError:"Please save all rows before proceeding.",invalidRowsError:"Please correct invalid rows before proceeding.",invalidRowError:"Invalid row. Please correct it or delete.",alertMessageWithLabel:"{{label}}: {{message}}",alertMessage:"{{message}}",complete:"Submission Complete",error:"Please fix the following errors before submitting.",errorListHotkey:"Press Ctrl + Alt + X to go back to the error list.",errorsListNavigationMessage:"Click to navigate to the field with following error.",submitError:"Please check the form and correct all errors before submitting.",required:"{{field}} is required",unique:"{{field}} must be unique",array:"{{field}} must be an array",array_nonempty:"{{field}} must be a non-empty array",nonarray:"{{field}} must not be an array",select:"{{field}} contains an invalid selection",pattern:"{{field}} does not match the pattern {{pattern}}",minLength:"{{field}} must have at least {{length}} characters.",maxLength:"{{field}} must have no more than {{length}} characters.",minWords:"{{field}} must have at least {{length}} words.",maxWords:"{{field}} must have no more than {{length}} words.",min:"{{field}} cannot be less than {{min}}.",max:"{{field}} cannot be greater than {{max}}.",maxDate:"{{field}} should not contain date after {{- maxDate}}",minDate:"{{field}} should not contain date before {{- minDate}}",maxYear:"{{field}} should not contain year greater than {{maxYear}}",minYear:"{{field}} should not contain year less than {{minYear}}",invalid_email:"{{field}} must be a valid email.",invalid_url:"{{field}} must be a valid url.",invalid_regex:"{{field}} does not match the pattern {{regex}}.",invalid_date:"{{field}} is not a valid date.",invalid_day:"{{field}} is not a valid day.",mask:"{{field}} does not match the mask.",valueIsNotAvailable:"{{ field }} is an invalid value.",stripe:"{{stripe}}",month:"Month",day:"Day",year:"Year",january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December",next:"Next",previous:"Previous",cancel:"Cancel",submit:"Submit Form",confirmCancel:"Are you sure you want to cancel?",saveDraftInstanceError:"Cannot save draft because there is no formio instance.",saveDraftAuthError:"Cannot save draft unless a user is authenticated.",restoreDraftInstanceError:"Cannot restore draft because there is no formio instance.",time:"Invalid time",cancelButtonAriaLabel:"Cancel button. Click to reset the form",previousButtonAriaLabel:"Previous button. Click to go back to the previous tab",nextButtonAriaLabel:"Next button. Click to go to the next tab",submitButtonAriaLabel:"Submit Form button. Click to submit the form"}},12832:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),n.ZP=void 0,r(43001),r(9473),r(75162),r(5746),r(27846),r(22818);var i,a=(i=r(18631))&&i.__esModule?i:{default:i};function l(e,n,r){return(n=u(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function s(){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=d(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}
1function c(e,n){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function f(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}a.default.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var e=this.passedElement.placeholderOption;return!!e&&e.text}var n=this.config,r=n.placeholder,o=n.placeholderValue,i=this.passedElement.element.dataset;if(r){if(o)return o;if(i.placeholder)return i.placeholder}return!1};var p={BACK_KEY:46,DELETE_KEY:8,TAB_KEY:9,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},h=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&c(e,n)}(a,e);var n,r,i=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=d(a);return e=n?Reflect.construct(r,arguments,d(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return f(e)}(this,e)});function a(){var e;!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,a);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r)))._onTabKey=e._onTabKey.bind(f(e)),e.isDirectionUsing=!1,e.shouldOpenDropDown=!0,e}return r=[{key:"_onTouchEnd",value:function(e){var n=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(n)&&((n===this.containerOuter.element||n===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&(this.input.focus(),this.showDropdown())),e.stopPropagation()),this._wasTap=!0}},{key:"_handleButtonAction",value:function(e,n){if(!this._isSelectOneElement)return s(d(a.prototype),"_handleButtonAction",this).call(this,e,n);e&&n&&this.config.removeItems&&this.config.removeItemButton&&s(d(a.prototype),"_handleButtonAction",this).call(this,e,n)}},{key:"_onEnterKey",value:function(e){"choices__button"===e.event.target.className&&(this.shouldOpenDropDown=!1),s(d(a.prototype),"_onEnterKey",this).call(this,e)}},{key:"_onDirectionKey",value:function(){for(var e,n,r=this,o=arguments.length,i=Array(o),l=0;l<o;l++)i[l]=arguments[l];if(!this._isSelectOneElement)return(e=s(d(a.prototype),"_onDirectionKey",this)).call.apply(e,[this].concat(i));this.isDirectionUsing=!0,(n=s(d(a.prototype),"_onDirectionKey",this)).call.apply(n,[this].concat(i)),this.onSelectValue.apply(this,i),clearTimeout(this.timeout),this.timeout=setTimeout(function(){r.isDirectionUsing=!1},250)}},{key:"_onTabKey",value:function(e){var n=e.activeItems;e.hasActiveDropdown&&this._selectHighlightedChoice(n)}},{key:"_selectHighlightedChoice",value:function(e){var n=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));n&&this._handleChoiceAction(e,n),event.preventDefault()}},{key:"_onKeyDown",value:function(e){if(!this._isSelectOneElement)return s(d(a.prototype),"_onKeyDown",this).call(this,e);var n,r=e.target,o=e.keyCode,i=e.ctrlKey,u=e.metaKey;if(r===this.input.element||this.containerOuter.element.contains(r)){var c=this._store.activeItems,f=this.input.isFocussed,h=this.dropdown.isActive,m=this.itemList.hasChildren,y=String.fromCharCode(o),v=p.BACK_KEY,b=p.DELETE_KEY,g=p.TAB_KEY,w=p.ENTER_KEY,k=p.A_KEY,O=p.ESC_KEY,_=p.UP_KEY,j=p.DOWN_KEY,P=p.PAGE_UP_KEY,S=p.PAGE_DOWN_KEY;if(!h&&!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(y)){var E=this.input.element.value;this.input.element.value=E?"".concat(E).concat(y):y,this.showDropdown()}var x=(l(n={},k,this._onAKey),l(n,g,this._onTabKey),l(n,w,this._onEnterKey),l(n,O,this._onEscapeKey),l(n,_,this._onDirectionKey),l(n,P,this._onDirectionKey),l(n,j,this._onDirectionKey),l(n,S,this._onDirectionKey),l(n,b,this._onDeleteKey),l(n,v,this._onDeleteKey),n);x[o]&&x[o]({event:e,target:r,keyCode:o,metaKey:u,activeItems:c,hasFocusedInput:f,hasActiveDropdown:h,hasItems:m,hasCtrlDownKeyPressed:i||u})}}},{key:"onSelectValue",value:function(e){var n=e.event,r=e.activeItems;e.hasActiveDropdown?this._selectHighlightedChoice(r):this._isSelectOneElement&&(this.showDropdown(),n.preventDefault())}},{key:"showDropdown",value:function(){var e;if(!this.shouldOpenDropDown){this.shouldOpenDropDown=!0;return}for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];(e=s(d(a.prototype),"showDropdown",this)).call.apply(e,[this].concat(r))}},{key:"hideDropdown",value:function(){var e;if(!this.isDirectionUsing){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];(e=s(d(a.prototype),"hideDropdown",this)).call.apply(e,[this].concat(r))}}},{key:"_onBlur",value:function(){var e;if(!this._isScrollingOnIe){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];(e=s(d(a.prototype),"_onBlur",this)).call.apply(e,[this].concat(r))}}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(a.prototype,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(a.default);n.ZP=h},80993:function(e,n,r){"use strict";r(12083),r(30902),r(34078),r(27846),r(9473),r(15264),r(26944),Object.defineProperty(n,"__esModule",{value:!0}
1),n.default=void 0,r(17943),r(17223),r(1542),r(43001),r(5746),r(6588),r(76381),r(50703),r(35968),r(18036),r(88455),r(32334),r(24646),r(6765),r(12443),r(11102),r(15469);var o=a(r(76635)),i=a(r(9839));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,n,r){return(l=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&u(i,r.prototype),i}:Reflect.construct.bind()).apply(null,arguments)}function u(e,n){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return c(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var d={noeval:!1,protectedEval:!1,cache:{},templateSettings:{evaluate:/\{%([\s\S]+?)%\}/g,interpolate:/\{\{([\s\S]+?)\}\}/g,escape:/\{\{\{([\s\S]+?)\}\}\}/g},evaluator:function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return d.noeval?(console.warn("No evaluations allowed for this renderer."),o.default.noop):("object"===f(r[0])&&(r=o.default.keys(r[0])),l(Function,s(r).concat([e])))},template:function(e,n){if(n=n||(0,i.default)(e),d.cache[n])return d.cache[n];try{return e=e.replace(/ctx\./g,""),d.cache[n]=o.default.template(e,d.templateSettings)}catch(n){console.warn("Error while processing template",n,e)}},interpolate:function(e,n,r){var i,a=o.default.isObject(r)?r:{noeval:r};if("function"==typeof e)try{return e(n)}catch(e){return console.warn("Error interpolating template",e,n),e.message}if(e=String(e),d.noeval||a.noeval)return e.replace(/({{\s*(.*?)\s*}})/g,function(e,r,i){for(var l=i.split("||").map(function(e){return e.trim()}),u="",s="",c=0;c<l.length&&(s=l[c],!(u=o.default.get(n,s)));c++);return a.data&&o.default.set(a.data,s,u),u});if("function"==typeof(i=d.template(e)))try{return n.component&&n.component.filter===e&&!n.options.building&&(n.data=o.default.mapValues(n.data,function(e){return o.default.isString(e)?encodeURIComponent(e):e})),i(n)}catch(r){return console.warn("Error interpolating template",r,e,n),r.message}return i},evaluate:function(e,n){return Array.isArray(n)?e.apply(void 0,s(n)):e(n)}};d.registerEvaluator=function(e){Object.keys(e).forEach(function(n){d[n]=e[n]})},n.default=d},65319:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(28121),r(76381),r(17943),r(17223),r(1542),r(88455),r(32334),r(43001);var o,i=(o=r(76635))&&o.__esModule?o:{default:o},a=r(9494);n.default={uniquify:function(e,n){var r=!1,o={};return(0,a.eachComponent)(e,function(e){if(o[e.key]=!0,["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree)return!0},!0),(0,a.eachComponent)([n],function(e){if(e.key){var n=(0,a.uniqueKey)(o,e.key);if(n!==e.key&&(e.key=n,r=!0),o[n]=!0,["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree)return!0}},!0),r},additionalShortcuts:{button:["Enter","Esc"]},getAlphaShortcuts:function(){return i.default.range("A".charCodeAt(),"Z".charCodeAt()+1).map(function(e){return String.fromCharCode(e)})},getAdditionalShortcuts:function(e){return this.additionalShortcuts[e]||[]},getBindedShortcuts:function(e,n){var r=[];return(0,a.eachComponent)(e,function(e){e!==n&&(e.shortcut&&r.push(e.shortcut),e.values&&e.values.forEac
1h(function(e){e.shortcut&&r.push(e.shortcut)}))},!0),r},getAvailableShortcuts:function(e,n){return n?[""].concat(i.default.difference(this.getAlphaShortcuts().concat(this.getAdditionalShortcuts(n.type)),this.getBindedShortcuts(e.components,n))).map(function(e){return{label:e,value:e}}):[]}}},15033:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.CALENDAR_ERROR_MESSAGES=void 0,n.checkInvalidDate=function(e,n,r,a){var c=(0,o.default)(e,n,!0),f=c.isValid();if(f){if(f&&-1===e.indexOf("_")){var d=s(c,n[0],a,r);if(!d.result)return u(d.message,d.result)}}else{var p=e.match(/[^a-z0-9_]/gi),h=RegExp(p.join("|"),"gi"),m=e.replace(/_*/gi,"").split(h),y=n[1]?n[1].split(h):n[0].split(h),v=i.default.findIndex(y,function(e,n){return 1===e.length&&n===y.length-1});if(m[i.default.findIndex(y,function(e){return e.match(/yyyy/gi)})]/1e3<1||m[0].length!==y[0].length)return u(l.INVALID,!1);var b=m.map(function(e,n){var r=e;return e||n!==v?e||(r="01"):r="AM",p[n]&&(r="".concat(r).concat(p[n])),r}),g=(0,o.default)(b.join(""),n,!0);if(!g.isValid())return u(l.INVALID,!1);var w=s(g,n[0],a,r);return w.result?u(l.INCOMPLETE,!1):u(w.message,w.result)}return u("",!0)},n.lessOrGreater=s,r(5746),r(45009),r(41126),r(12551),r(97172),r(57184),r(6588),r(98595),r(76381),r(43001),r(69446);var o=a(r(89868)),i=a(r(76635));function a(e){return e&&e.__esModule?e:{default:e}}var l={INVALID:"You entered the Invalid Date",INCOMPLETE:"You entered an incomplete date.",greater:function(e,n){return"The entered date is greater than ".concat(e.format(n))},less:function(e,n){return"The entered date is less than ".concat(e.format(n))}};function u(e,n){return{message:e,result:n}}function s(e,n,r,i){var a="",u=!0;if(r&&e.isValid()){var s=(0,o.default)(r,n);e>s&&(a=l.greater(s,n),u=!1)}if(i&&e.isValid()){var c=(0,o.default)(i,n);e<c&&(a=l.less(c,n),u=!1)}return{message:a,result:u}}n.CALENDAR_ERROR_MESSAGES=l},57664:function(e,n,r){"use strict";r(26944),r(24646),r(35968),r(77762),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(92100),r(17223),r(18997),r(24956),r(6765),r(12443),r(92884);var o,i=(o=r(76635))&&o.__esModule?o:{default:o};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function u(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?l(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=c(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,c(o.key),o)}}function c(e){var n=function(e,n){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==a(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===a(n)?n:String(n)}var f=function(){var e,n;function r(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,r)}return n=[{key:"operatorKey",get:function(){return""}},{key:"displayedName",get:function(){return""}},{key:"requireValue",get:function(){return!0}}],e=[{key:"execute",value:function(e){return!0}},{key:"getResult",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.value;return i.default.isArray(r)?i.default.some(r,function(r){return e.execute(u(u({},n),{},{value:r}))}):this.execute(n)}}],s(r.prototype,e),n&&s(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}();n.default=f},22986:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(24646),r(35968),r(77762),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(27846),r(9473),r(22818);var i=l(r(57664)),a=l(r(89868));
1function l(e){return e&&e.__esModule?e:{default:e}}function u(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function s(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?u(Object(r),!0).forEach(function(n){var o,i;o=n,i=r[n],(o=f(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function d(e,n){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&d(e,n)}(u,e);var n,r,i,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=p(u);return e=n?Reflect.construct(r,arguments,p(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function u(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,u),l.apply(this,arguments)}return i=[{key:"operatorKey",get:function(){return"dateGreaterThan"}},{key:"displayedName",get:function(){return"Greater Than"}}],r=[{key:"getFormattedDates",value:function(e){var n=e.value,r=e.comparedValue,o=e.conditionTriggerComponent,i=o?o.getValidationFormat:null;return{date:i?(0,a.default)(n,o.getValidationFormat()):(0,a.default)(n),comparedDate:i?(0,a.default)(r,o.getValidationFormat()):(0,a.default)(r)}}},{key:"execute",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"isAfter",r=e.value,o=e.instance,i=e.conditionComponentPath;if(!r)return!1;var a=null;if(o&&o.root&&(a=o.root.getComponent(i)),a&&a.isPartialDay&&a.isPartialDay(r))return!1;var l=this.getFormattedDates(s(s({},e),{},{conditionTriggerComponent:a})),u=l.date,c=l.comparedDate;return u[n](c)}}],c(u.prototype,r),i&&c(u,i),Object.defineProperty(u,"prototype",{writable:!1}),u}(i.default);n.default=h},62273:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=u(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(27846),r(9473),r(22818);var s,c=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(f,e);var n,r,s,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=u(f);return e=n?Reflect.construct(r,arguments,u(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),c.apply(this,arguments)}return s=[{key:"operatorKey",get:function(){return"dateGreaterThanOrEqual"}},{key:"displayedName",get:function(){return"Greater Than Or Equal To"}}],r=[{key:"execute",value:function(e){return a(u(f.prototype),"execute",this).call(this,e,"isSameOrAfter")}}],i(f.prototype,r),s&&i(f,s),Object.defineProperty(f,"prototype",{writable:!1}),f}(((s=r(22986))&&s.__esModule?s:{default:s}).default);n.default=c},4227:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=u(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(27846),r(9473),r(22818);var s,c=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(f,e);var n,r,s,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=u(f);return e=n?Reflect.construct(r,arguments,u(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),c.apply(this,arguments)}return s=[{key:"operatorKey",get:function(){return"dateLessThan"}},{key:"displayedName",get:function(){return"Less Than"}}],r=[{key:"execute",value:function(e){return a(u(f.prototype),"execute",this).call(this,e,"isBefore")}}],i(f.prototype,r),s&&i(f,s),Object.defineProperty(f,"prototype",{writable:!1}),f}(((s=r(22986))&&s.__esModule?s:{default:s}).default);n.default=c},85651:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=u(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(27846),r(9473),r(22818);var s,c=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(f,e);var n,r,s,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=u(f);return e=n?Reflect.construct(r,arguments,u(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),c.apply(this,arguments)}return s=[{key:"operatorKey",get:function(){return"dateLessThanOrEqual"}},{key:"displayedName",get:function(){return"Less Than Or Equal To"}}],r=[{key:"execute",value:function(e){return a(u(f.prototype),"execute",this).call(this,e,"isSameOrBefore")}}],i(f.prototype,r),s&&i(f,s),Object.defineProperty(f,"prototype",{writable:!1}),f}(((s=r(22986))&&s.__esModule?s:{default:s}).default);n.default=c},37643:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(209),r(27846),r(9473),r(22818);var i=l(r(57664)),a=l(r(76635));
1function l(e){return e&&e.__esModule?e:{default:e}}function u(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(f,e);var n,r,i,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(f);return e=n?Reflect.construct(r,arguments,c(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),l.apply(this,arguments)}return i=[{key:"operatorKey",get:function(){return"endsWith"}},{key:"displayedName",get:function(){return"Ends With"}}],r=[{key:"execute",value:function(e){var n=e.value,r=e.comparedValue;return a.default.endsWith(n,r)}}],u(f.prototype,r),i&&u(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(i.default);n.default=f},52494:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(27846),r(9473),r(22818);var i=l(r(57664)),a=l(r(76635));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(f,e);var n,r,i,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(f);return e=n?Reflect.construct(r,arguments,c(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),l.apply(this,arguments)}return i=[{key:"operatorKey",get:function(){return"greaterThan"}},{key:"displayedName",get:function(){return"Greater Than"}}],r=[{key:"execute",value:function(e){var n=e.value,r=e.comparedValue;return a.default.isNumber(n)&&n>r}}],u(f.prototype,r),i&&u(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(i.default);n.default=f},4099:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(27846),r(9473),r(22818);var i=l(r(57664)),a=l(r(76635));
1function l(e){return e&&e.__esModule?e:{default:e}}function u(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(f,e);var n,r,i,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(f);return e=n?Reflect.construct(r,arguments,c(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),l.apply(this,arguments)}return i=[{key:"operatorKey",get:function(){return"greaterThanOrEqual"}},{key:"displayedName",get:function(){return"Greater Than Or Equal To"}}],r=[{key:"execute",value:function(e){var n=e.value,r=e.comparedValue;return a.default.isNumber(n)&&(n>r||a.default.isEqual(n,r))}}],u(f.prototype,r),i&&u(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(i.default);n.default=f},47037:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(28121),r(83972),r(27846),r(9473),r(22818);var i=l(r(57664)),a=l(r(76635));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(f,e);var n,r,i,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(f);return e=n?Reflect.construct(r,arguments,c(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),l.apply(this,arguments)}return i=[{key:"operatorKey",get:function(){return"includes"}},{key:"displayedName",get:function(){return"Includes"}}],r=[{key:"execute",value:function(e){var n=e.value,r=e.comparedValue;return a.default.includes(n,r)}}],u(f.prototype,r),i&&u(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(i.default);n.default=f},78777:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=u(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(27846),r(9473),r(22818);var s,c=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(f,e);var n,r,s,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=u(f);return e=n?Reflect.construct(r,arguments,u(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),c.apply(this,arguments)}return s=[{key:"operatorKey",get:function(){return"isDateEqual"}},{key:"displayedName",get:function(){return"Is Equal To"}}],r=[{key:"execute",value:function(e){return a(u(f.prototype),"execute",this).call(this,e,"isSame")}}],i(f.prototype,r),s&&i(f,s),Object.defineProperty(f,"prototype",{writable:!1}),f}(((s=r(22986))&&s.__esModule?s:{default:s}).default);n.default=c},66067:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(27846),r(9473),r(22818);var i=l(r(57664)),a=l(r(76635));
1function l(e){return e&&e.__esModule?e:{default:e}}function u(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(f,e);var n,r,i,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(f);return e=n?Reflect.construct(r,arguments,c(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),l.apply(this,arguments)}return i=[{key:"operatorKey",get:function(){return"isEmpty"}},{key:"displayedName",get:function(){return"Is Empty"}},{key:"requireValue",get:function(){return!1}}],r=[{key:"execute",value:function(e){var n=e.value,r=e.instance,o=e.conditionComponentPath,i=a.default.isEmpty(n);if(r&&r.root){var l=r.root.getComponent(o);return l?l.isEmpty():i}return i}},{key:"getResult",value:function(e){return this.execute(e)}}],u(f.prototype,r),i&&u(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(i.default);n.default=f},91327:function(e,n,r){"use strict";r(17223),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(27846),r(9473),r(22818);var o=a(r(57664)),i=a(r(76635));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==l(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===l(n)?n:String(n)}(o.key),o)}}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(f,e);var n,r,o,a=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(f);return e=n?Reflect.construct(r,arguments,c(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===l(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),a.apply(this,arguments)}return o=[{key:"operatorKey",get:function(){return"isEqual"}},{key:"displayedName",get:function(){return"Is Equal To"}}],r=[{key:"execute",value:function(e){var n=e.value,r=e.comparedValue;if(n&&r&&l(n)!==l(r)&&i.default.isString(r))try{r=JSON.parse(r)}catch(e){}return i.default.isObject(n)&&r&&i.default.isString(r)?n[r]:i.default.isEqual(n,r)}}
1],u(f.prototype,r),o&&u(f,o),Object.defineProperty(f,"prototype",{writable:!1}),f}(o.default);n.default=f},61527:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=u(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(27846),r(9473),r(22818);var s,c=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(f,e);var n,r,s,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=u(f);return e=n?Reflect.construct(r,arguments,u(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),c.apply(this,arguments)}return s=[{key:"operatorKey",get:function(){return"isNotDateEqual"}},{key:"displayedName",get:function(){return"Is Not Equal To"}}],r=[{key:"execute",value:function(e){return!a(u(f.prototype),"execute",this).call(this,e,"isSame")}}],i(f.prototype,r),s&&i(f,s),Object.defineProperty(f,"prototype",{writable:!1}),f}(((s=r(22986))&&s.__esModule?s:{default:s}).default);n.default=c},62254:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=u(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(27846),r(9473),r(22818);var s,c=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(f,e);var n,r,s,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=u(f);return e=n?Reflect.construct(r,arguments,u(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),c.apply(this,arguments)}return s=[{key:"operatorKey",get:function(){return"isNotEmpty"}},{key:"displayedName",get:function(){return"Is Not Empty"}}],r=[{key:"getResult",value:function(e){return!a(u(f.prototype),"getResult",this).call(this,e)}}],i(f.prototype,r),s&&i(f,s),Object.defineProperty(f,"prototype",{writable:!1}),f}(((s=r(66067))&&s.__esModule?s:{default:s}).default);n.default=c},65501:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(27846),r(9473),r(22818);var i=l(r(57664)),a=l(r(76635));
1function l(e){return e&&e.__esModule?e:{default:e}}function u(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(f,e);var n,r,i,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(f);return e=n?Reflect.construct(r,arguments,c(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),l.apply(this,arguments)}return i=[{key:"operatorKey",get:function(){return"isNotEqual"}},{key:"displayedName",get:function(){return"Is Not Equal To"}}],r=[{key:"execute",value:function(e){var n=e.value,r=e.comparedValue;return!a.default.isEqual(n,r)}}],u(f.prototype,r),i&&u(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(i.default);n.default=f},96636:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(27846),r(9473),r(22818);var i=l(r(57664)),a=l(r(76635));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(f,e);var n,r,i,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(f);return e=n?Reflect.construct(r,arguments,c(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),l.apply(this,arguments)}return i=[{key:"operatorKey",get:function(){return"lessThan"}},{key:"displayedName",get:function(){return"Less Than"}}],r=[{key:"execute",value:function(e){var n=e.value,r=e.comparedValue;return a.default.isNumber(n)&&n<r}}],u(f.prototype,r),i&&u(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(i.default);n.default=f},45176:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(27846),r(9473),r(22818);var i=l(r(57664)),a=l(r(76635));
1function l(e){return e&&e.__esModule?e:{default:e}}function u(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(f,e);var n,r,i,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(f);return e=n?Reflect.construct(r,arguments,c(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),l.apply(this,arguments)}return i=[{key:"operatorKey",get:function(){return"lessThanOrEqual"}},{key:"displayedName",get:function(){return"Less Than Or Equal To"}}],r=[{key:"execute",value:function(e){var n=e.value,r=e.comparedValue;return a.default.isNumber(n)&&(n<r||a.default.isEqual(n,r))}}],u(f.prototype,r),i&&u(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(i.default);n.default=f},66834:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=u(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(27846),r(9473),r(22818);var s,c=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(f,e);var n,r,s,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=u(f);return e=n?Reflect.construct(r,arguments,u(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),c.apply(this,arguments)}return s=[{key:"operatorKey",get:function(){return"notIncludes"}},{key:"displayedName",get:function(){return"Not Includes"}}],r=[{key:"execute",value:function(e){return!a(u(f.prototype),"execute",this).call(this,e)}}],i(f.prototype,r),s&&i(f,s),Object.defineProperty(f,"prototype",{writable:!1}),f}(((s=r(47037))&&s.__esModule?s:{default:s}).default);n.default=c},83878:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(36686),r(27846),r(9473),r(22818);var i=l(r(57664)),a=l(r(76635));
1function l(e){return e&&e.__esModule?e:{default:e}}function u(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(f,e);var n,r,i,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(f);return e=n?Reflect.construct(r,arguments,c(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),l.apply(this,arguments)}return i=[{key:"operatorKey",get:function(){return"startsWith"}},{key:"displayedName",get:function(){return"Starts With"}}],r=[{key:"execute",value:function(e){var n=e.value,r=e.comparedValue;return a.default.startsWith(n,r)}}],u(f.prototype,r),i&&u(f,i),Object.defineProperty(f,"prototype",{writable:!1}),f}(i.default);n.default=f},25122:function(e,n,r){"use strict";r(26944),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var o,i=_(r(65501)),a=_(r(66067)),l=_(r(62254)),u=_(r(96636)),s=_(r(52494)),c=_(r(91327)),f=_(r(22986)),d=_(r(4227)),p=_(r(47037)),h=_(r(83878)),m=_(r(66834)),y=_(r(37643)),v=_(r(62273)),b=_(r(85651)),g=_(r(45176)),w=_(r(4099)),k=_(r(78777)),O=_(r(61527));function _(e){return e&&e.__esModule?e:{default:e}}function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,n,r){var o;return(o=function(e,n){if("object"!==j(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==j(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"===j(o)?o:String(o))in e)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var S=(P(o={},"".concat(i.default.operatorKey),i.default),P(o,"".concat(c.default.operatorKey),c.default),P(o,"".concat(a.default.operatorKey),a.default),P(o,"".concat(l.default.operatorKey),l.default),P(o,"".concat(u.default.operatorKey),u.default),P(o,"".concat(s.default.operatorKey),s.default),P(o,"".concat(f.default.operatorKey),f.default),P(o,"".concat(d.default.operatorKey),d.default),P(o,"".concat(p.default.operatorKey),p.default),P(o,"".concat(h.default.operatorKey),h.default),P(o,"".concat(y.default.operatorKey),y.default),P(o,"".concat(m.default.operatorKey),m.default),P(o,"".concat(v.default.operatorKey),v.default),P(o,"".concat(b.default.operatorKey),b.default),P(o,"".concat(g.default.operatorKey),g.default),P(o,"".concat(w.default.operatorKey),w.default),P(o,"".concat(k.default.operatorKey),k.default),P(o,"".concat(O.default.operatorKey),O.default),o);n.default=S},57853:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.applyFormChanges=function(e,n){var r=[];
1return n.forEach(function(n){var a=!1;switch(n.op){case"add":var l=n.component;O(e.components,n.container,null,function(r){n.container||(r=e),O(e.components,n.key,null,function(n,r){l=n,_(e.components,r)}),a=!0,(0,o.default)(r,n.path).splice(n.index,0,l)});break;case"remove":O(e.components,n.key,null,function(n,r){a=!0,(0,o.default)(e.components,r).key!==n.key&&r.pop(),_(e.components,r)});break;case"edit":O(e.components,n.key,null,function(l,u){a=!0;try{var s=(0,o.default)(e.components,u),c=(0,y.applyPatch)(l,n.patches).newDocument;s.key!==c.key&&u.pop(),(0,i.default)(e.components,u,c)}catch(e){r.push(n)}})}a||r.push(n)}),{form:e,failed:r}},n.eachComponent=g,n.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},n.findComponent=O,n.findComponents=function(e,n){return console.warn("formio.js/utils findComponents is deprecated. Use searchComponents instead."),k(e,n)},n.flattenComponents=function(e,n){var r={};return g(e,function(e,n){r[n]=e},n),r},n.formatAsCurrency=function(e){var n=j(e);if((0,c.default)(n))return"";var r=(0,p.default)(n,2).toString().split(".");return r[0]=(0,h.default)(Array.from(r[0]).reverse(),3).reverse().map(function(e){return e.reverse().join("")}).join(","),r[1]=(0,m.default)(r[1],2,"0"),r.join(".")},n.generateFormChange=function(e,n){var r;switch(e){case"add":r={op:"add",key:n.component.key,container:n.parent.key,path:n.path,index:n.index,component:n.component};break;case"edit":(r={op:"edit",key:n.originalComponent.key,patches:(0,y.compare)(n.originalComponent,n.component)}).patches.length||(r=null);break;case"remove":r={op:"remove",key:n.component.key}}return r},n.getComponent=function(e,n,r){var o;return g(e,function(e,r){if(r===n||e.path===n)return o=e,!0},r),o},n.getStrings=function(e){var n=["label","title","legend","tooltip","description","placeholder","prefix","suffix","errorLabel","content","html"],r=[];return g(e.components,function(e){if(n.forEach(function(n){e.hasOwnProperty(n)&&e[n]&&r.push({key:e.key,type:e.type,property:n,string:e[n]})}),(!e.dataSrc||"values"===e.dataSrc)&&e.hasOwnProperty("values")&&Array.isArray(e.values)&&e.values.length&&e.values.forEach(function(n,o){r.push({key:e.key,property:"value[".concat(o,"].label"),string:e.values[o].label})}),"day"===e.type&&(["day","month","year","Day","Month","Year","january","february","march","april","may","june","july","august","september","october","november","december"].forEach(function(n){r.push({key:e.key,property:"day",string:n})}),e.fields.day.placeholder&&r.push({key:e.key,property:"fields.day.placeholder",string:e.fields.day.placeholder}),e.fields.month.placeholder&&r.push({key:e.key,property:"fields.month.placeholder",string:e.fields.month.placeholder}),e.fields.year.placeholder&&r.push({key:e.key,property:"fields.year.placeholder",string:e.fields.year.placeholder})),"editgrid"===e.type){var o=e.addAnother||"Add Another";e.addAnother&&r.push({key:e.key,property:"addAnother",string:o})}"select"===e.type&&["loading...","Type to search"].forEach(function(n){r.push({key:e.key,property:"select",string:n})})},!0),r},n.getValue=function(e,n){return function e(r){if(!(0,d.default)(r))return null;if((0,a.default)(r,n))return v.default.get(r,n);var o=null;return(0,u.default)(r,function(n){var r=e(n);if(!(0,f.default)(r))return o=r,!1}),o}(e.data)},n.hasCondition=function(e){return!!(e.customConditional||e.conditional&&(e.conditional.when||v.default.some(e.conditional.conditions||[],function(e){return e.component&&e.operator})||e.conditional.json||e.conditional.condition))},n.isLayoutComponent=function(e){return!!(e.columns&&Array.isArray(e.columns)||e.rows&&Array.isArray(e.rows)||e.components&&Array.isArray(e.components))},n.matchComponent=w,n.parseFloatExt=j,n.removeComponent=_,n.searchComponents=k,r(18036),r(88455),r(17223),r(32334),r(43001),r(69446),r(28121),r(30902),r(92782),r(92100),r(87425),r(5746),r(6588),r(59012),r(12551),r(97172),r(76381),r(99304),r(12083),r(15469),r(17943),r(1542);var o=b(r(72579)),i=b(r(16765)),a=b(r(93352)),l=b(r(38696)),u=b(r(15253)),s=b(r(85505)),c=b(r(16951)),f=b(r(1842)),d=b(r(97030)),p=b(r(68015)),h=b(r(93586)),m=b(r(68804)),y=r(76468),v=b(r(76635));
1function b(e){return e&&e.__esModule?e:{default:e}}function g(e,n,r,o,i,a){if(e){if(o=o||"",a){if(e.noRecurse){delete e.noRecurse;return}e.noRecurse=!0}e.forEach(function(a){if(a){var u=a.columns&&Array.isArray(a.columns),s=a.rows&&Array.isArray(a.rows),c=a.components&&Array.isArray(a.components),f=!1,d=a.key?o?"".concat(o,".").concat(a.key):a.key:"";i&&(a.parent=(0,l.default)(i),delete a.parent.components,delete a.parent.componentMap,delete a.parent.columns,delete a.parent.rows);var p=u||s||c&&!a.input||["htmlelement","content"].indexOf(a.type)>-1;(r||a.tree||!p)&&(f=n(a,d,e));var h=function(){return a.key&&!["panel","table","well","columns","fieldset","tabs","form"].includes(a.type)&&(["datagrid","container","editgrid","address","dynamicWizard","datatable","tagpad"].includes(a.type)||a.tree)?d:a.key&&"form"===a.type?"".concat(d,".data"):o};!f&&(u?a.columns.forEach(function(e){return g(e.components,n,r,h(),i?a:null)},!0):s?a.rows.forEach(function(e){Array.isArray(e)&&e.forEach(function(e){return g(e.components,n,r,h(),i?a:null)},!0)}):c&&g(a.components,n,r,h(),i?a:null,!0))}}),e.noRecurse&&delete e.noRecurse}}function w(e,n){if((0,s.default)(n))return e.key===n||e.path===n;var r=!1;return(0,u.default)(n,function(n,i){if(!(r=(0,o.default)(e,i)===n))return!1}),r}function k(e,n){var r=[];return g(e,function(e){w(e,n)&&r.push(e)},!0),r}function O(e,n,r,o){if(e){if(r=r||[],!n)return o(e);e.forEach(function(i,a){var l=r.slice();l.push(a),i&&(i.hasOwnProperty("columns")&&Array.isArray(i.columns)&&(l.push("columns"),i.columns.forEach(function(e,r){var i=l.slice();i.push(r),i.push("components"),O(e.components,n,i,o)})),i.hasOwnProperty("rows")&&Array.isArray(i.rows)&&(l.push("rows"),i.rows.forEach(function(e,r){var i=l.slice();i.push(r),e.forEach(function(e,r){var a=i.slice();a.push(r),a.push("components"),O(e.components,n,a,o)})})),i.hasOwnProperty("components")&&Array.isArray(i.components)&&(l.push("components"),O(i.components,n,l,o)),i.key===n&&o(i,l,e))})}}function _(e,n){var r=n.pop();0!==n.length&&(e=(0,o.default)(e,n)),e.splice(r,1)}function j(e){return parseFloat((0,s.default)(e)?e.replace(/[^\de.+-]/gi,""):e)}},28948:function(e,n,r){"use strict";r(92370),r(26944),r(77762),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(6765),r(12443),r(17223),r(11102),r(17943),r(15469),r(1542);var o=function(e,n){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var r=i(void 0);if(r&&r.has(e))return r.get(e);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var s=l?Object.getOwnPropertyDescriptor(e,u):null;s&&(s.get||s.set)?Object.defineProperty(o,u,s):o[u]=e[u]}return o.default=e,r&&r.set(e,o),o}(r(9494));function i(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:n})(e)}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}(void 0===r.g?"undefined":a(r.g))==="object"&&(r.g.FormioUtils=o),n.default=o},28625:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.lodashOperators=void 0,n.lodashOperators=["chunk","compact","concat","difference","differenceBy","differenceWith","drop","dropRight","dropRightWhile","dropWhile","findIndex","findLastIndex","first","flatten","flatten
1Deep","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","countBy","every","filter","find","findLast","flatMap","flatMapDeep","flatMapDepth","groupBy","includes","invokeMap","keyBy","map","orderBy","partition","reduce","reduceRight","reject","sample","sampleSize","shuffle","size","some","sortBy","now","flip","negate","overArgs","partial","partialRight","rearg","rest","spread","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","add","ceil","divide","floor","max","maxBy","mean","meanBy","min","minBy","multiply","round","subtract","sum","sumBy","clamp","inRange","random","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","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","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"]},9494:function(e,n,r){"use strict";r(6765),r(12443),r(11102),r(15469),r(12083),r(26944),r(24646),Object.defineProperty(n,"__esModule",{value:!0});var o={evaluate:!0,getRandomComponentId:!0,getPropertyValue:!0,getElementRect:!0,boolValue:!0,isMongoId:!0,checkCalculated:!0,checkSimpleConditional:!0,getComponentActualValue:!0,checkCustomConditional:!0,checkJsonConditional:!0,checkCondition:!0,checkTrigger:!0,setActionProperty:!0,unescapeHTML:!0,convertStringToHTMLElement:!0,uniqueName:!0,guid:!0,getDateSetting:!0,isValidDate:!0,currentTimezone:!0,offsetDate:!0,zonesLoaded:!0,shouldLoadZones:!0,loadZones:!0,momentDate:!0,formatDate:!0,formatOffset:!0,getLocaleDateFormatInfo:!0,convertFormatToFlatpickr:!0,convertFormatToMoment:!0,convertFormatToMask:!0,getInputMask:!0,unmaskValue:!0,matchInputMask:!0,getNumberSeparators:!0,getNumberDecimalLimit:!0,getCurrencyAffixes:!0,fieldData:!0,delay:!0,iterateKey:!0,uniqueKey:!0,bootstrapVersion:!0,unfold:!0,firstNonNil:!0,withSwitch:!0,observeOverload:!0,getContextComponents:!0,getContextButtons:!0,translateHTMLTemplate:!0,sanitize:!0,fastCloneDeep:!0,interpolate:!0,isInputComponent:!0,getArrayFromComponentPath:!0,hasInvalidComponent:!0,getStringFromComponentPath:!0,round:!0,getIEBrowserVersion:!0,getBrowserInfo:!0,getComponentPathWithoutIndicies:!0,getComponentPath:!0,getDataParentComponent:!0,isPromise:!0,isInsideScopingComponent:!0,getFocusableElements:!0,_:!0,jsonLogic:!0,moment:!0,Evaluator:!0,ConditionOperators:!0};Object.defineProperty(n,"ConditionOperators",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(n,"Evaluator",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(n,"_",{enumerable:!0,get:function(){return i.default}}),n.boolValue=function(e){return i.default.isBoolean(e)?e:i.default.isString(e)?"true"===e.toLowerCase():!!e},n.bootstrapVersion=function(e){return e.bootstrap?e.bootstrap:"function"==typeof $&&"function"==typeof $().collapse?parseInt($.fn.collapse.Constructor.VERSION.split(".")[0],10):0},n.checkCalculated=function(e,n,r){e.calculateValue&&i.default.set(r,e.key,k(e.calculateValue,{value:void 0,data:n?n.data:r,row:r,util:this,component:e},"value"))},n.checkCondition=function(e,n,r,o,a){var l=e.customConditional,u=e.conditional;return l?P(e,l,n,r,o,"show",!0,a):u&&(u.when||i.default.some(u.conditions||[],function(e){return e.component&&e.operator}))?(n=E(e,n,a),_(e,u,n,r,a)):!u||!u.json||S(e,u.json,n,r,o,!0)},n.checkCustomConditional=P,n.checkJsonConditional=S,n.checkSimpleConditional=_,n.checkTrigger=function(e,n,r,o,i,a){if(!n[n.type])return!1;switch(n.type){case"simple":return r=E(e,r,a,n.simple),_(e,n.simple,r,o,a);case"javascript":return P(e,n.javascript,r,o,i,"result",!1,a);case"json":return S(e,n.json,r,o,i,!1)}return!1},n.convertFormatToFlatpickr=function(e){return e.replace(/Z/g,"").replace(/y/g,"Y").replace("YYYY","Y").replace("YY","y").replace("MMMM","F").replace(/M/g,"n").replace("nnn","M").replace("nn","m").replace(/d/g,"j").replace(/jj/g,"d").replace("EEEE","l").replace("EEE","D").replace("HH","H").replace("hh","G").replace("mm","i").replace("ss","S").replace(/a/g,"K")},n.convertFormatToMask=function(e){return e.replace(/M{4}/g,"MM").replace(/M{3}/g,"***").replace(/e/g,"Q").replace(/[ydhmsHMG]/g,"9").replace(/a/g,"AA")},n.convertFormatToMoment=T,n.convertStringToHTMLElement=function(e,n){return new window.DOMParser().parseFromString(e,"text/html").body.querySelector(n)},n.currentTimezone=C,n.delay=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];var a=setTimeout.apply(void 0,[e,n].concat(o));function l(){clearTimeout(a)}function u(){return l(),e.apply(void 0,o)}return u.timer=a,u.cancel=l,u},n.evaluate=k,n.fastCloneDeep=function(e){return e?JSON.parse(JSON.stringify(e)):e},n.fieldData=function(e,n){if(!e)return"";if(!n||!n.key)return e;if(n.key.includes(".")){for(var r=e,o=n.key.split("."),i="",a=0;a<o.length;a++){if(i=o[a],r.hasOwnProperty("_id")&&(r=r.data),!r.hasOwnProperty(i))return;i===o[o.length-1]&&n.multiple&&!Array.isArray(r[i])&&(r[i]=[r[i]]),r=r[i]}return r}return(n.multiple&&!Array.isArray(e[n.key])&&(e[n.key]=[e[n.key]]),"checkbox"===n.type&&"radio"===n.inputType)?e[n.name]===n.value:e[n.key]},n.firstNonNil=void 0,n.formatDate=function(e,n,r,o,i){var a=(0,u.default)(n,i||void 0);if(o===C())return r.match(/\s(z$|z\s)/)?(M(e),u.default.zonesLoaded)?a.tz(o).format(T(r)):a.format(T(r.replace(/\s(z$|z\s)/,""))):a.format(T(r));if("UTC"===o){var l=R(a.toDate(),"UTC");return"".concat((0,u.default)(l.date).format(T(r))," UTC")}return(M(e),u.default.zonesLoaded&&o)?a.tz(o).format("".concat(T(r)," z")):a.format(T(r))}
vendor: 5,161 bytes, line 1
1,n.formatOffset=function(e,n,r,o,i){if(i===C())return n(r,o);if("UTC"===i)return"".concat(n(R(r,"UTC").date,o)," UTC");if(M(e),!u.default.zonesLoaded)return n(r,o);var a=R(r,i);return"".concat(n(a.date,o)," ").concat(a.abbr)},n.getArrayFromComponentPath=function(e){return e&&i.default.isString(e)?e.replace(/[[\]]/g,".").replace(/\.\./g,".").replace(/(^\.)|(\.$)/g,"").split(".").map(function(e){return i.default.defaultTo(i.default.toNumber(e),e)}):i.default.isArray(e)?e:[e]},n.getBrowserInfo=N,n.getComponentActualValue=j,n.getComponentPath=F,n.getComponentPathWithoutIndicies=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/\[\d+\]/,"")},n.getContextButtons=function(e){var n=[];return e.utils.eachComponent(e.instance.options.editForm.components,function(e){"button"===e.type&&n.push({label:"".concat(e.key," (").concat(e.label,")"),value:e.key})}),n},n.getContextComponents=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=[];return e.utils.eachComponent(e.instance.options.editForm.components,function(a,l){var u=!n||!a.tree;a.key!==e.data.key&&u&&!i.default.includes(r,a.type)&&o.push({label:"".concat(a.label||a.key," (").concat(l,")"),value:l})}),o},n.getCurrencyAffixes=function(e){var n=e.currency,r=e.decimalLimit,o=e.decimalSeparator,i=e.lang,a="(.*)?".concat(100..toLocaleString(i));r&&(a+="".concat("."===o?"\\.":o).concat(0..toLocaleString(i),"{").concat(r,"}")),a+="(.*)?";var l=100..toLocaleString(i,{style:"currency",currency:void 0===n?"USD":n,useGrouping:!0,maximumFractionDigits:r||0,minimumFractionDigits:r||0}).replace(".",o).match(new RegExp(a));return{prefix:(null==l?void 0:l[1])||"",suffix:(null==l?void 0:l[2])||""}},n.getDataParentComponent=U,n.getDateSetting=function(e){if(i.default.isNil(e)||i.default.isNaN(e)||""===e)return null;if(e instanceof Date)return e;if("function"==typeof e.toDate)return e.isValid()?e.toDate():null;var n="string"!=typeof e||-1===e.indexOf("moment(")?(0,u.default)(e):null;if(n&&n.isValid())return n.toDate();n=null;try{var r=h.default.evaluator("return ".concat(e,";"),"moment")(u.default);"string"==typeof r?n=(0,u.default)(r):"function"==typeof r.toDate?n=(0,u.default)(r.toDate().toUTCString()):r instanceof Date&&(n=(0,u.default)(r))}catch(e){return null}return n&&n.isValid()?n.toDate():null},n.getElementRect=function(e){var n=window.getComputedStyle(e,null);return{x:O(n,"left"),y:O(n,"top"),width:O(n,"width"),height:O(n,"height")}},n.getFocusableElements=function(e){return e.querySelectorAll("button:not([disabled]), input:not([disabled]), select:not([disabled]),\n textarea:not([disabled]), button:not([disabled]), [href]")},n.getIEBrowserVersion=function(){var e=N(),n=e.ie,r=e.version;return n?r:null},n.getInputMask=function(e,n){if(e instanceof Array)return e;var r=[];r.numeric=!0;for(var o=0;o<e.length;o++)switch(e[o]){case"9":r.push(/\d/);break;case"A":r.numeric=!1,r.push(/[a-zA-Z]/);break;case"a":r.numeric=!1,r.push(/[a-z]/);break;case"*":r.numeric=!1,r.push(/[a-zA-Z0-9]/);break;case n:r.numeric=!1,r.push(" ");break;default:r.numeric=!1,r.push(e[o])}return r},n.getLocaleDateFormatInfo=function(e){var n={},r=new Date(2017,11,21).toLocaleDateString(e);return n.dayFirst="21"===r.slice(0,2),n},n.getNumberDecimalLimit=function(e,n){if(i.default.has(e,"decimalLimit"))return i.default.get(e,"decimalLimit");var r=n||20,o=i.default.get(e,"validate.step","any");if("any"!==o){var a=o.toString().split(".");a.length>1&&(r=a[1].length)}return r},n.getNumberSeparators=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",n=12345.6789.toLocaleString(e).match(/..(.)...(.)../);return n?{delimiter:n.length>1?n[1]:",",decimalSeparator:n.length>2?n[2]:"."}:{delimiter:",",decimalSeparator:"."}},n.getPropertyValue=O,n.getRandomComponentId=function(){return"e".concat(Math.random().toString(36).substring(7))},n.getStringFromComponentPath=function(e){if(!i.default.isArray(e))return e;var n="";return e.forEach(function(e,r){i.default.isNumber(e)?n+="[".concat(e,"]"):n+=0===r?e:".".concat(e)}),n},n.guid=x,n.hasInvalidComponent=function e(n){return n.getComponents().some(function(n){return i.default.isArray(n.components)?e(n):n.error})},n.interpolate=void 0,n.isInputComponent=function(e){if(!1===e.input||!0===e.input)return e.input;switch(e.type){case"htmlelement":case"content":case"columns":case"fieldset":case"panel":case"table":case"tabs":case"well":case"button":return!1;default:return!0}},n.isInsideScopingComponent=function e(n){var r=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!r&&null!=n&&n.hasScopedChildren)return!0;var o=U(n);return null!=o&&!!o.hasScopedChildren||null!=o&&!!o.parent&&e(o.parent,!1)},n.isMongoId=function(e){return e.toString().match(/^[0-9a-fA-F]{24}$/)},n.isPromise=function(e){return e&&e.then&&"function"==typeof e.then&&"[object Promise]"===Object.prototype.toString.call(e)},n.isValidDate=function(e){return i.default.isDate(e)&&!i.default.isNaN(e.getDate())},n.iterateKey=D,Object.defineProperty(n,"jsonLogic",{enumerable:!0,get:function(){return l.default}}),n.loadZones=M,n.matchInputMask=function(e,n){if(!n)return!0;
1if(e.length>n.length)return!1;for(var r=0;r<n.length;r++){var o=e[r]||"",a=n[r];if(!(i.default.isRegExp(a)&&a.test(o)||a===o))return!1}return!0},Object.defineProperty(n,"moment",{enumerable:!0,get:function(){return u.default}}),n.momentDate=function(e,n,r){var o=(0,u.default)(e);return r&&("UTC"===r&&(r="Etc/UTC"),(r!==C()||n&&n.match(/\s(z$|z\s)/))&&u.default.zonesLoaded)?o.tz(r):o},n.observeOverload=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.limit,o=void 0===r?50:r,i=n.delay,a=void 0===i?500:i,l=0,u=0,s=function(){return l=0};return function(){if(0!==u&&(clearTimeout(u),u=0),u=setTimeout(s,a),(l+=1)>=o)return clearTimeout(u),s(),e()}},n.offsetDate=R,n.round=function(e,n){return i.default.isNumber(e)?e.toFixed(n):e},n.sanitize=function(e,n){if("function"!=typeof d.default.sanitize)return e;var r={ADD_ATTR:["ref","target"],USE_PROFILES:{html:!0}};return n.sanitizeConfig&&Array.isArray(n.sanitizeConfig.addAttr)&&n.sanitizeConfig.addAttr.length>0&&n.sanitizeConfig.addAttr.forEach(function(e){r.ADD_ATTR.push(e)}),n.sanitizeConfig&&Array.isArray(n.sanitizeConfig.addTags)&&n.sanitizeConfig.addTags.length>0&&(r.ADD_TAGS=n.sanitizeConfig.addTags),n.sanitizeConfig&&Array.isArray(n.sanitizeConfig.allowedTags)&&n.sanitizeConfig.allowedTags.length>0&&(r.ALLOWED_TAGS=n.sanitizeConfig.allowedTags),n.sanitizeConfig&&Array.isArray(n.sanitizeConfig.allowedAttrs)&&n.sanitizeConfig.allowedAttrs.length>0&&(r.ALLOWED_ATTR=n.sanitizeConfig.allowedAttrs),n.sanitizeConfig&&n.sanitizeConfig.allowedUriRegex&&(r.ALLOWED_URI_REGEXP=n.sanitizeConfig.allowedUriRegex),n.sanitizeConfig&&Array.isArray(n.sanitizeConfig.addUriSafeAttr)&&n.sanitizeConfig.addUriSafeAttr.length>0&&(r.ADD_URI_SAFE_ATTR=n.sanitizeConfig.addUriSafeAttr),d.default.sanitize(e,r)},n.setActionProperty=function(e,n,r,o,a,l){var u=n.property.value;switch(n.property.type){case"boolean":var s=i.default.get(e,u,!1).toString(),c=n.state.toString();s!==c&&i.default.set(e,u,"true"===c);break;case"string":var f={data:a,row:o,component:e,result:r},d=n.property.component?n[n.property.component]:n.text,p=i.default.get(e,u,""),m=l&&l.interpolate?l.interpolate(d,f):h.default.interpolate(d,f);m!==p&&i.default.set(e,u,m)}return e},n.shouldLoadZones=A,n.translateHTMLTemplate=function(e,n){if(!/<[^>]*>/.test(e))return n(e);var r=document.createElement("div");return(r.innerHTML=e,r.innerText&&r.children.length)?(function e(n,r){var o,i=n.children.length&&(function(e){if(Array.isArray(e))return v(e)}(o=n.children)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,n){if(e){if("string"==typeof e)return v(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,void 0)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i&&i.every(function(e){return 0===e.children.length&&V.some(function(n){return e.nodeName===n})});!i||a?n.innerHTML=function e(n,r){if(!n.innerText)return n.innerHTML;var o=n.innerText.replace(h.default.templateSettings.interpolate,"").replace(/\s\s+/g," ").trim(),i=r(o);if(o===i)return n.innerHTML;var a=n.innerHTML.match(/<a[^>]*>(.*?)<\/a>/g);if(!a||!a.length)return n.innerText.replace(o,i);if(1===a.length&&a[0].length===n.innerHTML.length)return n.innerHTML.replace(o,i);var l=a.map(function(n){var o=document.createElement("a");return o.innerHTML=n,e(o,r)});return"".concat(i," (").concat(l.join(", "),")")}(n,r):i.forEach(function(n){return e(n,r)})}(r,n),r.innerHTML):e},n.unescapeHTML=function(e){return"undefined"!=typeof window&&"DOMParser"in window?new window.DOMParser().parseFromString(e,"text/html").documentElement.textContent:e},n.unfold=I,n.uniqueKey=function(e,n){for(var r=n;e.hasOwnProperty(r);)r=D(r);return r},n.uniqueName=function(e,n,r){(n=n||"{{fileName}}-{{guid}}").includes("{{guid}}")||(n="".concat(n,"-{{guid}}"));var o=e.split("."),a=o.slice(0,o.length-1).join("."),l=o.length>1?".".concat(i.default.last(o)):"";return r=Object.assign(r||{},{fileName:a=a.substr(0,100),guid:x()}),"".concat(h.default.interpolate(n,r)).concat(l).replace(/[^0-9a-zA-Z.\-_ ]/g,"-")},n.unmaskValue=function(e,n,r){if(!n||!e||e.length>n.length)return e;for(var o=e.split(""),a=0;a<n.length;a++){var l=e[a]||"",u=n[a];i.default.isRegExp(u)||l!==u||(o[a]="")}return o.join("").replace(r,"")},n.withSwitch=function(e,n){var r=e,o=n;return[function(){return r},function(){var e=r;r=o,o=e}]},n.zonesLoaded=function(){return u.default.zonesLoaded}
1,r(88455),r(17223),r(32334),r(96255),r(5746),r(6588),r(69446),r(17943),r(1542),r(59012),r(12551),r(87425),r(45009),r(18036),r(28121),r(83972),r(76381),r(92100),r(73985),r(43001),r(36686),r(97172),r(30902),r(45343),r(34078),r(41126),r(75162),r(92884),r(28818),r(62089),r(50703),r(89610);var i=y(r(76635)),a=y(r(4547)),l=y(r(42330)),u=y(r(72428)),s=y(r(26216)),c=r(28625),f=y(r(18947)),d=y(r(12580)),p=r(57853);Object.keys(p).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(o,e))&&(e in n&&n[e]===p[e]||Object.defineProperty(n,e,{enumerable:!0,get:function(){return p[e]}}))});var h=y(r(80993)),m=y(r(25122));function y(e){return e&&e.__esModule?e:{default:e}}function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var g=h.default.interpolate;n.interpolate=g;var w=(0,a.default)({Promise:f.default}).fetch;function k(e,n,r,o){var a=null,u=n.component?n.component:{key:"unknown"};!n.form&&n.instance&&(n.form=i.default.get(n.instance,"root._form",{}));var s=u.key;if("string"==typeof e){r&&(e+=";return ".concat(r)),o&&(e=e.replace(/({{\s+(.*)\s+}})/,function(e,r,o){return 0===o.indexOf("data.")?i.default.get(n.data,o.replace("data.","")):0===o.indexOf("row.")?i.default.get(n.row,o.replace("row.","")):i.default.get(n.data,o)}));try{e=h.default.evaluator(e,n),n=i.default.values(n)}catch(n){console.warn("An error occured within the custom function for ".concat(s),n),a=null,e=!1}}if("function"==typeof e)try{a=h.default.evaluate(e,n)}catch(e){a=null,console.warn("An error occured within custom function for ".concat(s),e)}else if("object"===b(e))try{a=l.default.apply(e,n)}catch(e){a=null,console.warn("An error occured within custom function for ".concat(s),e)}else e&&console.warn("Unknown function type for ".concat(s));return a}function O(e,n){var r=e.getPropertyValue(n);return parseFloat(r=r?r.replace(/[^0-9.]/g,""):"0")}function _(e,n,r,o,a){if(n.when){var l=j(n.when,o,r),u=String(n.eq),s=String(n.show);return i.default.isObject(l)&&i.default.has(l,n.eq)?String(l[n.eq])===s:Array.isArray(l)&&l.map(String).includes(u)?"true"===s:String(l)===u==("true"===s)}var c=n.conditions,f=void 0===c?[]:c,d=n.conjunction,p=n.show;if(!f.length)return!0;var h=i.default.map(f,function(n){var i=n.value,l=n.operator,u=n.component;if(!u)return!0;var s=j(u,o,r),c=m.default[l];return!c||new c().getResult({value:s,comparedValue:i,instance:a,component:e,conditionComponentPath:u})}),y=!1;return y=(void 0===d?"all":d)==="any"?i.default.some(h,function(e){return!!e}):i.default.every(h,function(e){return!!e}),void 0===p||p?y:!y}function j(e,n,r){var o=null;return r&&(o=(0,p.getValue)({data:r},e)),n&&i.default.isNil(o)&&(o=(0,p.getValue)({data:n},e)),(i.default.isNil(o)||i.default.isObject(o)&&i.default.isEmpty(o))&&(o=""),o}function P(e,n,r,o,i,a,l,u){"string"==typeof n&&(n="var ".concat(a," = true; ").concat(n,"; return ").concat(a,";"));var s=u&&u.evaluate?u.evaluate(n,{row:r,data:o,form:i}):k(n,{row:r,data:o,form:i});return null===s?l:s}function S(e,n,r,o,a,u){try{return l.default.apply(n,{data:o,row:r,form:a,_:i.default})}catch(n){return console.warn("An error occurred in jsonLogic advanced condition for ".concat(e.key),n),u}}function E(e,n,r,o){var a,l,u,s=o||e.conditional;!r&&((a=r=i.default.cloneDeep(e)).path=F(a),(l=U(a))&&"object"===b(l)&&(l.path=F(l)));var c=U(r),f=c?F(c):null,d=s.when||!s.conditions?null===(u=s.when)||void 0===u?void 0:u.startsWith(f):i.default.some(s.conditions,function(e){return e.component.startsWith(f)});if(c&&d){var p={};i.default.set(p,f,n),n=p}return n}function x(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=16*Math.random()|0;return("x"===e?n:3&n|8).toString(16)})}function C(){return u.default.currentTimezone||(u.default.currentTimezone=s.default.determine().name()),u.default.currentTimezone}function R(e,n){if("UTC"===n)return{date:new Date(e.getTime()+6e4*e.getTimezoneOffset()),abbr:"UTC"};var r=(0,u.default)(e).tz(n);return{date:new Date(e.getTime()+(r.utcOffset()+e.getTimezoneOffset())*6e4),abbr:r.format("z")}}function A(e){return e!==C()&&"UTC"!==e}function M(e,n){return n&&!A(n)?new f.default(i.default.noop):u.default.zonesPromise?u.default.zonesPromise:u.default.zonesPromise=w(e).then(function(e){return e.json().then(function(e){if(u.default.tz.load(e),u.default.zonesLoaded=!0,document&&document.createEvent&&document.body&&document.body.dispatchEvent){var n=document.createEvent("Event");n.initEvent("zonesLoaded",!0,!0),document.body.dispatchEvent(n)}})})}function T(e){return e.replace(/y/g,"Y").replace(/d/g,"D").replace(/E/g,"d").replace(/a/g,"A").replace(/U/g,"X")}function D(e){return e.match(/(\d+)$/)?e.replace(/(\d+)$/,function(e){return Number(e)+1}):"".concat(e,"1")}function I(e){return"function"==typeof e?e():e}
1c.lodashOperators.forEach(function(e){return l.default.add_operation("_".concat(e),i.default[e])}),l.default.add_operation("getDate",function(e){return(0,u.default)(e).toISOString()}),l.default.add_operation("relativeMinDate",function(e){return(0,u.default)().subtract(e,"days").toISOString()}),l.default.add_operation("relativeMaxDate",function(e){return(0,u.default)().add(e,"days").toISOString()});var L=i.default.flow([i.default.partialRight(i.default.map,I),i.default.partialRight(i.default.find,function(e){return!i.default.isUndefined(e)})]);n.firstNonNil=L;var V=["#text","A","B","EM","I","SMALL","STRONG","SUB","SUP","INS","DEL","MARK","CODE"];function N(){var e={};if("undefined"==typeof window)return e;var n=window.navigator.userAgent.toLowerCase(),r=/(edge|edg)\/([\w.]+)/.exec(n)||/(opr)[/]([\w.]+)/.exec(n)||/(yabrowser)[ /]([\w.]+)/.exec(n)||/(chrome)[ /]([\w.]+)/.exec(n)||/(iemobile)[/]([\w.]+)/.exec(n)||/(version)(applewebkit)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(n)||/(webkit)[ /]([\w.]+).*(version)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(n)||/(webkit)[ /]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(n)||0>n.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[],o={browser:r[5]||r[3]||r[1]||"",version:r[4]||r[2]||"0"};return o.browser&&(e[o.browser]=!0,e.version=parseInt(o.version,10)),(e.chrome||e.opr||e.safari||e.edg||e.yabrowser)&&(e.isWebkit=!0),(e.rv||e.iemobile)&&(e.ie=!0),e.edg&&(e.edge=!0),e.opr&&(e.opera=!0),e}function F(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e&&e.key&&(null==e?void 0:null===(n=e._form)||void 0===n?void 0:n.display)!=="wizard"?(r=e.isInputComponent||!0===e.input?"".concat(e.key).concat(r?".":"").concat(r):r,F(e.parent,r)):r}function U(e){if(e){var n=e.parent;return n&&(n.isInputComponent||n.input)?n:U(n)}}},42501:function(e,n,r){"use strict";r(26944),r(24646),r(35968),r(77762),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var o,i=(o=r(27077))&&o.__esModule?o:{default:o};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function u(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?l(Object(r),!0).forEach(function(n){s(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s(e,n,r){return(n=c(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function c(e){var n=function(e,n){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==a(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===a(n)?n:String(n)}var f=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"addRule",value:function(e,r){n.rules[e]=r}},{key:"addRules",value:function(e){n.rules=u(u({},n.rules),e)}},{key:"getRule",value:function(e){return n.rules[e]}},{key:"getRules",value:function(){return n.rules}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,c(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=f,s(f,"rules",i.default)},80726:function(e,n,r){"use strict";var o=r(34406);r(26944),r(11102),r(17943),r(15469),r(1542),r(30902),r(34078),r(12083),Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ValidationChecker=void 0,r(92100),r(17223),r(5746),r(57184),r(52315),r(43001),r(41126),r(12551),r(59012),r(18036),r(35968),r(28121),r(83972),r(97172),r(76381),r(87425),r(16433),r(92884),r(24646),r(28818),r(50703),r(45009),r(6588),r(88455),r(32334),r(89945),r(18997),r(24956),r(6765),r(12443);var i=d(r(76635)),a=r(9494),l=d(r(89868)),u=d(r(18947)),s=d(r(4547)),c=r(15033),f=d(r(42501));
1function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,n){if(e){if("string"==typeof e)return y(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,n)}}function y(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}var v=(0,s.default)({Promise:u.default}),b=v.fetch,g=v.Headers,w=v.Request,k=function(){var e;function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n),this.config=i.default.defaults(e,n.config),this.validators={required:{key:"validate.required",method:"validateRequired",hasLabel:!0,message:function(e){return e.t(e.errorMessage("required"),{field:e.errorLabel,data:e.data})},check:function(e,n,r){if(!(0,a.boolValue)(n)||e.isValueHidden())return!0;var o=e.validators.some(function(e){return"calendar"===e});return!r&&o&&e.widget.enteredDate?!this.validators.calendar.check.call(this,e,n,r):!e.isEmpty(r)}},onlyAvailableItems:{key:"validate.onlyAvailableItems",method:"validateValueAvailability",hasLabel:!0,message:function(e){return e.t(e.errorMessage("valueIsNotAvailable"),{field:e.errorLabel,data:e.data})},check:function(e,n){return!(0,a.boolValue)(n)}},unique:{key:"validate.unique",hasLabel:!0,message:function(e){return e.t(e.errorMessage("unique"),{field:e.errorLabel,data:e.data})},check:function(e,n,r){var o=this;return!!(!(0,a.boolValue)(n)||!r||i.default.isObjectLike(r)&&i.default.isEmpty(r))||!this.config.db||new u.default(function(n){var l,u=o.config.form,s=o.config.submission,c="data.".concat(e.path),f=function(e,n,r){var o=r.split(/\[\d+\]?./),a=o.length>1,l=r;if(a){l=o.shift();var u={};i.default.reduce(o,function(n,r,a){var l=a===o.length-1,s=i.default.get(u,n,u),c="$elemMatch['".concat(r,"']");return i.default.set(s,c,l?e:{}),n?"".concat(n,".").concat(c):c},""),n[l]=u}else n[l]=e},d={form:u._id},p={};i.default.isString(r)?e.component.dbIndex?f(r,d,c):"email"===e.component.type||"textfield"===e.component.type&&(null===(l=e.component.validate)||void 0===l?void 0:l.pattern)==="[A-Za-z0-9]+"?(f(r,d,c),p={collation:{locale:"en",strength:2}}):f({$regex:new RegExp("^".concat((0,a.escapeRegExCharacters)(r),"$")),$options:"i"},d,c):i.default.isPlainObject(r)&&r.address&&r.address.address_components&&r.address.place_id?f({$regex:new RegExp("^".concat((0,a.escapeRegExCharacters)(r.address.place_id),"$")),$options:"i"},d,"".concat(c,".address.place_id")):i.default.isArray(r)?f({$all:r},d,c):(i.default.isObject(r)||i.default.isNumber(r))&&f({$eq:r},d,c),d.deleted={$eq:null},d.state="submitted";var h=function(r,o){return r?n(!1):o?s._id&&o._id.toString()===s._id?void n(!0):(e.conflictId=o._id.toString(),n(!1)):n(!0)};o.config.db.findOne(d,null,p,function(e,n){if(!e||!p.collation)return h(e,n);delete d[c],f({$regex:new RegExp("^".concat((0,a.escapeRegExCharacters)(r),"$")),$options:"i"},d,c),o.config.db.findOne(d,h)})}).catch(function(){return!1})}},multiple:{key:"validate.multiple",hasLabel:!0,message:function(e){var n=(0,a.boolValue)(e.component.multiple)||Array.isArray(e.emptyValue),r=e.component.validate.required;return e.t(e.errorMessage(n?r?"array_nonempty":"array":"nonarray"),{field:e.errorLabel,data:e.data})},check:function(e,n,r){if(!e.validateMultiple())return!0;var o=(0,a.boolValue)(n),l=Array.isArray(e.emptyValue),u=Array.isArray(r),s=e.component.validate.required;return o?u?!s||!!r.length:!!i.default.isNil(r)&&!s:l||!u}},select:{key:"validate.select",hasLabel:!0,message:function(e){return e.t(e.errorMessage("select"),{field:e.errorLabel,data:e.data})},check:function(e,n,r,o,l,u,s){if(!(0,a.boolValue)(n)||!r||i.default.isEmpty(r)||!s)return!0;var c=e.component,f={url:n,qs:{},headers:{}};if(i.default.isBoolean(f.url)){if(f.url=!!f.url,!f.url||"url"!==c.dataSrc||!c.data.url||!c.searchField)return!0;f.url=c.data.url,f.qs[c.searchField]=r,c.filter&&(f.url+=(f.url.includes("?")?"&":"?")+c.filter),c.selectFields&&(f.qs.select=c.selectFields)}return!f.url||(f.url=(0,a.interpolate)(f.url,{data:e.data}),f.url+=(f.url.includes("?")?"&":"?")+i.default.chain(f.qs).map(function(e,n){return"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(e))}).join("&").value(),c.data&&c.data.headers&&i.default.each(c.data.headers,function(e){e.key&&(f.headers[e.key]=e.value)}),c.authenticate&&this.config.token&&(f.headers["x-jwt-token"]=this.config.token),b(new w(f.url,{headers:new g(f.headers)})).then(function(e){return!!e.ok&&e.json()}).then(function(e){return e&&e.length}
1).catch(function(){return!1}))}},min:{key:"validate.min",hasLabel:!0,message:function(e,n){return e.t(e.errorMessage("min"),{field:e.errorLabel,min:parseFloat(n),data:e.data})},check:function(e,n,r){var o=parseFloat(n),i=parseFloat(r);return!!(Number.isNaN(o)||Number.isNaN(i))||i>=o}},max:{key:"validate.max",hasLabel:!0,message:function(e,n){return e.t(e.errorMessage("max"),{field:e.errorLabel,max:parseFloat(n),data:e.data})},check:function(e,n,r){var o=parseFloat(n),i=parseFloat(r);return!!(Number.isNaN(o)||Number.isNaN(i))||i<=o}},minSelectedCount:{key:"validate.minSelectedCount",message:function(e,n){return e.component.minSelectedCountMessage?e.component.minSelectedCountMessage:e.t(e.errorMessage("minSelectedCount"),{minCount:parseFloat(n),data:e.data})},check:function(e,n,r){var o=parseFloat(n);if(!o)return!0;var i=Object.keys(r).reduce(function(e,n){return r[n]&&e++,e},0);return!i||i>=o}},maxSelectedCount:{key:"validate.maxSelectedCount",message:function(e,n){return e.component.maxSelectedCountMessage?e.component.maxSelectedCountMessage:e.t(e.errorMessage("maxSelectedCount"),{minCount:parseFloat(n),data:e.data})},check:function(e,n,r){var o=parseFloat(n);return!o||Object.keys(r).reduce(function(e,n){return r[n]&&e++,e},0)<=o}},minLength:{key:"validate.minLength",hasLabel:!0,message:function(e,n){return e.t(e.errorMessage("minLength"),{field:e.errorLabel,length:n,data:e.data})},check:function(e,n,r){var o=parseInt(n,10);return!!(!r||!o||"string"!=typeof r||e.isEmpty(r))||r.length>=o}},maxLength:{key:"validate.maxLength",hasLabel:!0,message:function(e,n){return e.t(e.errorMessage("maxLength"),{field:e.errorLabel,length:n,data:e.data})},check:function(e,n,r){var o=parseInt(n,10);return!o||"string"!=typeof r||r.length<=o}},maxWords:{key:"validate.maxWords",hasLabel:!0,message:function(e,n){return e.t(e.errorMessage("maxWords"),{field:e.errorLabel,length:n,data:e.data})},check:function(e,n,r){var o=parseInt(n,10);return!o||"string"!=typeof r||r.trim().split(/\s+/).length<=o}},minWords:{key:"validate.minWords",hasLabel:!0,message:function(e,n){return e.t(e.errorMessage("minWords"),{field:e.errorLabel,length:n,data:e.data})},check:function(e,n,r){var o=parseInt(n,10);return!o||!r||"string"!=typeof r||r.trim().split(/\s+/).length>=o}},email:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_email"),{field:e.errorLabel,data:e.data})},check:function(e,n,r){return!r||/^(([^<>()[\]\\.,;:\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(r)}},url:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_url"),{field:e.errorLabel,data:e.data})}
1,check:function(e,n,r){return!r||/^(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(r)&&!/^(([^<>()[\]\\.,;:\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(r)}},date:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_date"),{field:e.errorLabel,data:e.data})},check:function(e,n,r){return!r||"Invalid date"!==r&&"Invalid Date"!==r&&("string"==typeof r&&(r=new Date(r)),r instanceof Date==!0&&"Invalid Date"!==r.toString())}},day:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_day"),{field:e.errorLabel,data:e.data})},check:function(e,n,r){if(!r)return!0;var o,i=function(e){if(Array.isArray(e))return e}(o=e.dayFirst?[0,1,2]:[1,0,2])||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,u=[],s=!0,c=!1;try{for(a=(r=r.call(e)).next;!(s=(o=a.call(r)).done)&&(u.push(o.value),3!==u.length);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return u}}(o,3)||m(o,3)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=i[0],l=i[1],u=i[2],s=r.split("/").map(function(e){return parseInt(e,10)}),c=s[a],f=s[l],d=s[u],p=function(e,n){switch(e){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:return 31;case 4:case 6:case 9:case 11:return 30;case 2:return n%400&&(!(n%100)||n%4)?28:29}}(f,d);return!(c<0)&&!(c>p)&&!(f<0)&&!(f>12)&&!(d<0)&&!(d>9999)}},pattern:{key:"validate.pattern",hasLabel:!0,message:function(e,n){return e.t(i.default.get(e,"component.validate.patternMessage",e.errorMessage("pattern")),{field:e.errorLabel,pattern:n,data:e.data})},check:function(e,n,r){return!!e.isEmpty(r)||!n||new RegExp("^".concat(n,"$")).test(r)}},json:{key:"validate.json",check:function(e,n,r,o,i,a){if(!n)return!0;var l=e.evaluate(n,{data:o,row:a,rowIndex:i,input:r});return null===l||l}},mask:{key:"inputMask",hasLabel:!0,message:function(e){return e.t(e.errorMessage("mask"),{field:e.errorLabel,data:e.data})},check:function(e,n,r){var o;if(e.isMultipleMasksField){var i=r?r.maskName:void 0,l=e.getMaskByName(i);l&&(o=l),r=r?r.value:r}else o=n;return o=o?(0,a.getInputMask)(o):null,!r||!o||!!e.skipMaskValidation||(o=o.map(function(n){return n===e.placeholderChar?" ":n}),(0,a.matchInputMask)(r,o))}},custom:{key:"validate.custom",message:function(e){return e.t(e.errorMessage("custom"),{field:e.errorLabel,data:e.data})},check:function(e,n,r,o,i,a){if(!n)return!0;var l=e.evaluate(n,{valid:!0,data:o,rowIndex:i,row:a,input:r},"valid",!0);return null===l||l}},maxDate:{key:"maxDate",hasLabel:!0,message:function(e,n){var r=(0,a.getDateSetting)(n);return e.t(e.errorMessage("maxDate"),{field:e.errorLabel,maxDate:(0,l.default)(r).format(e.format)})},check:function(e,n,r){if(e.isPartialDay&&e.isPartialDay(r))return!0;var o=e.getValidationFormat?(0,l.default)(r,e.getValidationFormat()):(0,l.default)(r),u=(0,a.getDateSetting)(n);return!!i.default.isNull(u)||(u.setHours(0,0,0,0),o.isBefore(u)||o.isSame(u))}},minDate:{key:"minDate",hasLabel:!0,message:function(e,n){var r=(0,a.getDateSetting)(n);return e.t(e.errorMessage("minDate"),{field:e.errorLabel,minDate:(0,l.default)(r).format(e.format)})},check:function(e,n,r){if(e.isPartialDay&&e.isPartialDay(r))return!0;var o=e.getValidationFormat?(0,l.default)(r,e.getValidationFormat()):(0,l.default)(r),u=(0,a.getDateSetting)(n);return!!i.default.isNull(u)||(u.setHours(0,0,0,0),o.isAfter(u)||o.isSame(u))}},minYear:{key:"minYear",hasLabel:!0,message:function(e,n){return e.t(e.errorMessage("minYear"),{field:e.errorLabel,minYear:n})},check:function(e,n,r){var o=/\d{4}$/.exec(r);return o=o?o[0]:null,!+n||!+o||+o>=+n}},maxYear:{key:"maxYear",hasLabel:!0,message:function(e,n){return e.t(e.errorMessage("maxYear"),{field:e.errorLabel,maxYear:n})},check:function(e,n,r){var o=/\d{4}$/.exec(r);return o=o?o[0]:null,!+n||!+o||+o<=+n}},calendar:{key:"validate.calendar",messageText:"",hasLabel:!0,message:function(e){return e.t(e.errorMessage(this.validators.calendar.messageText),{field:e.errorLabel,maxDate:(0,l.default)(e.dataValue).format(e.format)})},check:function(e,n,r,o,i){this.validators.calendar.messageText="";var u=e.getWidget(i);if(!u)return!0;var s=u.settings,f=u.enteredDate,d=s.minDate,p=s.maxDate,h=s.format,m=[(0,a.convertFormatToMoment)(h)];if(m[0].match(/M{3,}/g)&&m.push(m[0].replace(/M{3,}/g,"MM")),!r&&f){var y=(0,c.checkInvalidDate)(f,m,d,p),v=y.message,b=y.result;if(!b)return this.validators.calendar.messageText=v,b}if(r&&f)return(0,l.default)(r).format()!==(0,l.default)(f,m,!0).format()&&f.match(/_/gi)?(this.validators.calendar.messageText=c.CALENDAR_ERROR_MESSAGES.INCOMPLETE,!1):(u.enteredDate="",!0)}},time:{key:"validate.time",messageText:"Invalid time",hasLabel:!0,message:function(e){return e.t(e.errorMessage(this.validators.time.messageText),{field:e.errorLabel})},check:function(e,n,r){return!!e.isEmpty(r)||(0,l.default)(r,e.component.format).isValid()}},availableValueProperty:{key:"validate.availableValueProperty",method:"validateValueProperty",messageText:"Invalid Value Property",hasLabel:!0,message:function(e){return e.t(e.errorMessage(this.validators.availableValueProperty.messageText),{field:e.errorLabel})},check:function(e,n,r){return!("url"===e.component.dataSrc&&(i.default.isUndefined(r)||i.default.isObject(r)))}}}}return e=[{key:"checkValidator",value:function(e,n,r,o,i,a,l,s){var c=this,f=null;f=n.method&&"function"==typeof e[n.method]?e[n.method](r,o,i,a,l,s):n.
1check.call(this,e,r,o,i,a,l,s);var d=function(o){return"string"==typeof o?o:!o&&n.message?n.message.call(c,e,r,a,l):""};return s?u.default.resolve(f).then(d):d(f)}},{key:"validate",value:function(e,n,r,o,l,s,c,f,d){if(!f)return!1;var p=this.validators[n],h=i.default.get(d||e.component,p.key,null),m=this.checkValidator(e,p,h,r,o,l,s,c),y=function(o){if(!o)return!1;var u,s={message:(0,a.unescapeHTML)(i.default.get(o,"message",o)),level:"warning"===i.default.get(o,"level")?"warning":"error",path:(0,a.getArrayFromComponentPath)(e.path||""),context:{validator:n,hasLabel:p.hasLabel,setting:h,key:e.key,label:e.label,value:r,index:l,input:null===(u=e.refs.input)||void 0===u?void 0:u[l]}};return"unique"===n&&e.conflictId&&(s.conflictId=e.conflictId),s};return c?u.default.resolve(m).then(y):y(m)}},{key:"checkComponent",value:function(e,n,r){var a,l=this,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(void 0!==o&&"node"===i.default.get(o,"release.name")&&!i.default.defaultTo(e.component.persistent,!0)||!1===e.component.validate)return c?u.default.resolve([]):[];n=n||e.rootValue,r=r||e.data;var f=e.component.multiple&&Array.isArray(e.validationValue)?e.validationValue:[e.validationValue],d=e.conditionallyVisible(),p=[];null!=e&&null!==(a=e.addons)&&void 0!==a&&a.length&&f.forEach(function(n){e.addons.forEach(function(e){e.checkValidity(n)||p.push.apply(p,h(e.errors||[]))})});var m=i.default.get(e,"component.validations"),y=[];if(m&&Array.isArray(m)&&m.length){var v=i.default.chain(m).groupBy(function(e){return e.mode}).value();if(e.calculateCondition){s=!0;var b=i.default.chain(v.ui).filter("active").groupBy(function(e){return e.group||null}).value(),g=b.null||[];delete b.null,g.forEach(function(n){var r=n.condition,o=n.message,i=n.severity;e.calculateCondition(r)||y.push({level:i||"error",message:e.t(o),componentInstance:e})}),i.default.forEach(b,function(n){i.default.forEach(n,function(n){var r=n.condition,o=n.message,i=n.severity;if(!e.calculateCondition(r))return y.push({level:i||"error",message:e.t(o),componentInstance:e}),!1})})}else y=this.checkValidations(e,m,n,r,f,c);e.validators.includes("custom")&&v.js&&i.default.each(v.js,function(o){y.push(i.default.map(f,function(i,a){return l.validate(e,"custom",i,n,a,r,c,d,o)}))}),e.validators.includes("json")&&v.json&&i.default.each(v.json,function(o){y.push(i.default.map(f,function(i,a){return l.validate(e,"json",i,n,a,r,c,d,o)}))})}var w=i.default.get(e,"component.validate.custom"),k=i.default.get(e,"component.validate.customMessage"),O=(0,i.default)(e.validators).chain().map(function(o){return l.validators.hasOwnProperty(o)?"required"!==o||f.length?i.default.map(f,function(i,a){return l.validate(e,o,i,n,a,r,c,d)}):[l.validate(e,o,null,n,0,r,c,d)]:{message:'Validator for "'.concat(o,'" is not defined'),level:"warning",context:{validator:o,key:e.key,label:e.label}}}).flatten().value();e.component.validate=e.component.validate||{},e.component.validate.unique=e.component.unique,O.push(this.validate(e,"unique",e.validationValue,n,0,n,c,d)),e.component.validate.multiple=e.component.multiple,O.push(this.validate(e,"multiple",e.validationValue,n,0,n,c,d)),O.push.apply(O,p),O.push.apply(O,h(y));var _=function(o){return o=(0,i.default)(o).chain().flatten().compact().value(),(k||w)&&i.default.each(o,function(o){o.message=e.t(k||o.message,{field:e.errorLabel,data:n,row:r,error:o}),o.context.hasLabel=!1}),s?o:i.default.reject(o,function(e){return"warning"===e.level})};return c?u.default.all(O).then(_):_(O)}},{key:"checkValidations",value:function(e,n,r,o,i,a){var l=this;return Object.values(n.map(function(n){return l.checkRule(e,n,r,o,i,a)}).reduce(function(e,n){return n?[].concat(h(e),h(n)):e},[]).filter(function(e){return e}).reduce(function(e,n){return e[n.context.validator]=n,e},{}))}},{key:"checkRule",value:function(e,n,r,o,i,a){var l=f.default.getRule(n.rule),u=[];if(l){var s=new l(e,n.settings,this.config);i.map(function(i,l){var c=s.check(i,r,o,a);!0!==c&&u.push({level:n.level||"error",message:e.t(n.message||s.defaultMessage,{settings:n.settings,field:e.errorLabel,data:r,row:o,error:c}),context:{key:e.key,index:l,label:e.label,validator:n.rule}})})}return 0!==u.length&&u}},{key:"check",get:function(){return this.checkComponent}},{key:"get",value:function(){i.default.get.call(this,arguments)}},{key:"each",value:function(){i.default.each.call(this,arguments)}},{key:"has",value:function(){i.default.has.call(this,arguments)}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==p(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==p(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===p(n)?n:String(n)}(o.key),o)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.ValidationChecker=k,k.config={db:null,token:null,form:null,submission:null};var O=new k;n.default=O},58819:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function a(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
1n%2?i(Object(r),!0).forEach(function(n){l(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l(e,n,r){return(n=u(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(24646),r(35968),r(77762),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var s=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"addConjunction",value:function(e,r){n.conjunctions[e]=r}},{key:"addConjunctions",value:function(e){n.conjunctions=a(a({},n.conjunctions),e)}},{key:"getConjunction",value:function(e){return n.conjunctions[e]}},{key:"getConjunctions",value:function(){return n.conjunctions}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=s,l(s,"conjunctions",{})},65801:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function a(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?i(Object(r),!0).forEach(function(n){l(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l(e,n,r){return(n=u(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(24646),r(35968),r(77762),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var s=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"addOperator",value:function(e,r){n.operators[e]=r}},{key:"addOperators",value:function(e){n.operators=a(a({},n.operators),e)}},{key:"getOperator",value:function(e){return n.operators[e]}},{key:"getOperators",value:function(){return n.operators}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=s,l(s,"operators",{})},84567:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function a(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
1n%2?i(Object(r),!0).forEach(function(n){l(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l(e,n,r){return(n=u(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(24646),r(35968),r(77762),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var s=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"addQuickRule",value:function(e,r){n.quickRules[e]=r}},{key:"addQuickRules",value:function(e){n.quickRules=a(a({},n.quickRules),e)}},{key:"getQuickRule",value:function(e){return n.quickRules[e]}},{key:"getQuickRules",value:function(){return n.quickRules}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=s,l(s,"quickRules",{})},81186:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var s=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&i(e,n)}(c,e);var n,r,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);return e=n?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return a(e)}(this,e)});function c(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c);for(var e,n,r,o,i=arguments.length,l=Array(i),f=0;f<i;f++)l[f]=arguments[f];return n=a(e=s.call.apply(s,[this].concat(l))),o="{{error}}",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e,n,r,o){var i=this.settings.custom;if(!i)return!0;var a=this.component.evaluate(i,{valid:!0,data:n,row:r,rowIndex:o,input:e},"valid",!0);return null===a||a}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(c.prototype,r),Object.defineProperty(c,"prototype",{writable:!1}),c}(s)},73850:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function i(e,n){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(59012),r(17223),r(12551),r(18997),r(24956),r(6765),r(12443),r(92884);var s=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&i(e,n)}(c,e);var n,r,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);return e=n?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return a(e)}(this,e)});function c(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c);for(var e,n,r,o,i=arguments.length,l=Array(i),f=0;f<i;f++)l[f]=arguments[f];return n=a(e=s.call.apply(s,[this].concat(l))),o="{{field}} is not a valid date.",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){return!e||"Invalid date"!==e&&"Invalid Date"!==e&&("string"==typeof e&&(e=new Date(e)),e instanceof Date==!0&&"Invalid Date"!==e.toString())}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(c.prototype,r),Object.defineProperty(c,"prototype",{writable:!1}),c}(s)},54887:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(18036),r(11102),r(17943),r(15469),r(1542),r(30902),r(34078),r(12083),r(5746),r(43001),r(76381),r(28818),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var c=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(f,e);var n,r,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=u(f);return e=n?Reflect.construct(r,arguments,u(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return l(e)}(this,e)});function f(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f);for(var e,n,r,o,i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=l(e=c.call.apply(c,[this].concat(a))),o="{{field}} is not a valid day.",(r=s(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){if(!e)return!0;
1if("string"!=typeof e)return!1;var n,r=function(e){if(Array.isArray(e))return e}(n=this.component.dayFirst?[0,1,2]:[1,0,2])||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,a,l,u=[],s=!0,c=!1;try{for(a=(r=r.call(e)).next;!(s=(o=a.call(r)).done)&&(u.push(o.value),3!==u.length);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return u}}(n,3)||function(e,n){if(e){if("string"==typeof e)return i(e,3);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,3)}}(n,3)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=r[0],a=r[1],l=r[2],u=e.split("/").map(function(e){return parseInt(e,10)}),s=u[o],c=u[a],f=u[l],d=function(e,n){switch(e){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:return 31;case 4:case 6:case 9:case 11:return 30;case 2:return n%400&&(!(n%100)||n%4)?28:29}}(c,f);return!(isNaN(s)||s<0||s>d||isNaN(c)||c<0||c>12||isNaN(f)||f<0||f>9999)}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,s(o.key),o)}}(f.prototype,r),Object.defineProperty(f,"prototype",{writable:!1}),f}(c)},39192:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(5746),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var s=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&i(e,n)}(c,e);var n,r,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);return e=n?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return a(e)}(this,e)});function c(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c);for(var e,n,r,o,i=arguments.length,l=Array(i),f=0;f<i;f++)l[f]=arguments[f];return n=a(e=s.call.apply(s,[this].concat(l))),o="{{field}} must be a valid email.",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){return!e||/^(([^<>()[\]\\.,;:\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(e)}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(c.prototype,r),Object.defineProperty(c,"prototype",{writable:!1}),c}(s)},27288:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function i(e,n){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var s=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&i(e,n)}(c,e);var n,r,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);return e=n?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return a(e)}(this,e)});function c(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c);for(var e,n,r,o,i=arguments.length,l=Array(i),f=0;f<i;f++)l[f]=arguments[f];return n=a(e=s.call.apply(s,[this].concat(l))),o="{{error}}",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e,n,r,o){var i=this.settings.json;if(!i)return!0;var a=this.component.evaluate(i,{data:n,row:r,rowIndex:o,input:e});return null===a||a}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(c.prototype,r),Object.defineProperty(c,"prototype",{writable:!1}),c}(s)},45825:function(e,n,r){"use strict";r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var o=r(9494);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e){var n=function(e,n){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==i(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===i(n)?n:String(n)}var c=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(f,e);var n,r,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=u(f);return e=n?Reflect.construct(r,arguments,u(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===i(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return l(e)}(this,e)});function f(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f);for(var e,n,r,o,i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=l(e=c.call.apply(c,[this].concat(a))),o="{{field}} does not match the mask.",(r=s(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){var n;if(this.component.isMultipleMasksField){var r=e?e.maskName:void 0,i=this.component.getMaskByName(r);i&&(n=(0,o.getInputMask)(i)),e=e?e.value:e}else n=(0,o.getInputMask)(this.settings.mask);return!e||!n||(0,o.matchInputMask)(e,n)}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,s(o.key),o)}}(f.prototype,r),Object.defineProperty(f,"prototype",{writable:!1}),f}(c)},98101:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function i(e,n){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(87425),r(16433),r(92884),r(18997),r(24956),r(6765),r(12443),r(17223);var s=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&i(e,n)}(c,e);var n,r,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);return e=n?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return a(e)}(this,e)});function c(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c);for(var e,n,r,o,i=arguments.length,l=Array(i),f=0;f<i;f++)l[f]=arguments[f];return n=a(e=s.call.apply(s,[this].concat(l))),o="{{field}} cannot be greater than {{settings.limit}}.",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){var n=parseFloat(this.settings.limit),r=parseFloat(e);return!!(Number.isNaN(n)||Number.isNaN(r))||r<=n}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(c.prototype,r),Object.defineProperty(c,"prototype",{writable:!1}),c}(s)},25902:function(e,n,r){"use strict";r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var o=r(9494),i=l(r(89868)),a=l(r(76635));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){var n=function(e,n){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==u(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===u(n)?n:String(n)}var p=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(p,e);var n,r,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=f(p);return e=n?Reflect.construct(r,arguments,f(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===u(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return c(e)}(this,e)});function p(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p);for(var e,n,r,o,i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=c(e=l.call.apply(l,[this].concat(a))),o="{{field}} should not contain date after {{settings.dateLimit}}",(r=d(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){if(!e||e===this.settings.dateLimit)return!0;var n=(0,i.default)(e),r=(0,o.getDateSetting)(this.settings.dateLimit);return!!a.default.isNull(r)||(r.setHours(0,0,0,0),n.isBefore(r)||n.isSame(r))}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}(p.prototype,r),Object.defineProperty(p,"prototype",{writable:!1}),p}(p)},50300:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function i(e,n){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(28818),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var s=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&i(e,n)}(c,e);var n,r,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);return e=n?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return a(e)}(this,e)});function c(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c);for(var e,n,r,o,i=arguments.length,l=Array(i),f=0;f<i;f++)l[f]=arguments[f];return n=a(e=s.call.apply(s,[this].concat(l))),o="{{field}} must have no more than {{- settings.length}} characters.",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){var n=parseInt(this.settings.length,10);return!(e&&n&&e.hasOwnProperty("length"))||e.length<=n}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(c.prototype,r),Object.defineProperty(c,"prototype",{writable:!1}),c}(s)},74990:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(28818),r(5746),r(57184),r(50703),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var s=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&i(e,n)}(c,e);var n,r,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);return e=n?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return a(e)}(this,e)});function c(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c);for(var e,n,r,o,i=arguments.length,l=Array(i),f=0;f<i;f++)l[f]=arguments[f];return n=a(e=s.call.apply(s,[this].concat(l))),o="{{field}} must have no more than {{- settings.length}} words.",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){var n=parseInt(this.settings.length,10);return!n||"string"!=typeof e||e.trim().split(/\s+/).length<=n}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(c.prototype,r),Object.defineProperty(c,"prototype",{writable:!1}),c}(s)},94260:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function i(e,n){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(5746),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var s=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&i(e,n)}(c,e);var n,r,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);return e=n?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return a(e)}(this,e)});function c(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c);for(var e,n,r,o,i=arguments.length,l=Array(i),f=0;f<i;f++)l[f]=arguments[f];return n=a(e=s.call.apply(s,[this].concat(l))),o="{{field}} should not contain year greater than {{maxYear}}",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){var n=this.settings,r=/\d{4}$/.exec(e);return r=r?r[0]:null,!+n||!+r||+r<=+n}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(c.prototype,r),Object.defineProperty(c,"prototype",{writable:!1}),c}(s)},92608:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(87425),r(16433),r(92884),r(18997),r(24956),r(6765),r(12443),r(17223);var s=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&i(e,n)}(c,e);var n,r,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);return e=n?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return a(e)}(this,e)});function c(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c);for(var e,n,r,o,i=arguments.length,l=Array(i),f=0;f<i;f++)l[f]=arguments[f];return n=a(e=s.call.apply(s,[this].concat(l))),o="{{field}} cannot be less than {{settings.limit}}.",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){var n=parseFloat(this.settings.limit),r=parseFloat(e);return!!(Number.isNaN(n)||Number.isNaN(r))||r>=n}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(c.prototype,r),Object.defineProperty(c,"prototype",{writable:!1}),c}(s)},44797:function(e,n,r){"use strict";r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var o=r(9494),i=l(r(89868)),a=l(r(76635));
1function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){var n=function(e,n){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==u(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===u(n)?n:String(n)}var p=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(p,e);var n,r,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=f(p);return e=n?Reflect.construct(r,arguments,f(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===u(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return c(e)}(this,e)});function p(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p);for(var e,n,r,o,i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=c(e=l.call.apply(l,[this].concat(a))),o="{{field}} should not contain date before {{settings.dateLimit}}",(r=d(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){if(!e)return!0;var n=(0,i.default)(e),r=(0,o.getDateSetting)(this.settings.dateLimit);return!!a.default.isNull(r)||(r.setHours(0,0,0,0),n.isAfter(r)||n.isSame(r))}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}(p.prototype,r),Object.defineProperty(p,"prototype",{writable:!1}),p}(p)},235:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(28818),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var s=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&i(e,n)}(c,e);var n,r,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);return e=n?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return a(e)}(this,e)});function c(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c);for(var e,n,r,o,i=arguments.length,l=Array(i),f=0;f<i;f++)l[f]=arguments[f];return n=a(e=s.call.apply(s,[this].concat(l))),o="{{field}} must have no more than {{- settings.length}} characters.",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){var n=parseInt(this.settings.length,10);return!!(!n||!e||!e.hasOwnProperty("length")||this.component.isEmpty(e))||e.length>=n}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(c.prototype,r),Object.defineProperty(c,"prototype",{writable:!1}),c}(s)},82826:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function i(e,n){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(28818),r(5746),r(57184),r(50703),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var s=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&i(e,n)}(c,e);var n,r,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);return e=n?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return a(e)}(this,e)});function c(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c);for(var e,n,r,o,i=arguments.length,l=Array(i),f=0;f<i;f++)l[f]=arguments[f];return n=a(e=s.call.apply(s,[this].concat(l))),o="{{field}} must have at least {{- settings.length}} words.",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){var n=parseInt(this.settings.length,10);return!n||!e||"string"!=typeof e||e.trim().split(/\s+/).length>=n}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(c.prototype,r),Object.defineProperty(c,"prototype",{writable:!1}),c}(s)},52996:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(5746),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var s=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&i(e,n)}(c,e);var n,r,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);return e=n?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return a(e)}(this,e)});function c(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c);for(var e,n,r,o,i=arguments.length,l=Array(i),f=0;f<i;f++)l[f]=arguments[f];return n=a(e=s.call.apply(s,[this].concat(l))),o="{{field}} should not contain year less than {{minYear}}",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){var n=this.settings,r=/\d{4}$/.exec(e);return r=r?r[0]:null,!+n||!+r||+r>=+n}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(c.prototype,r),Object.defineProperty(c,"prototype",{writable:!1}),c}(s)},50516:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function i(e,n){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(5746),r(41126),r(12551),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var s=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&i(e,n)}(c,e);var n,r,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);return e=n?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return a(e)}(this,e)});function c(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c);for(var e,n,r,o,i=arguments.length,l=Array(i),f=0;f<i;f++)l[f]=arguments[f];return n=a(e=s.call.apply(s,[this].concat(l))),o="{{field}} does not match the pattern {{settings.pattern}}",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){var n=this.settings.pattern;return!n||new RegExp("^".concat(n,"$")).test(e)}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(c.prototype,r),Object.defineProperty(c,"prototype",{writable:!1}),c}(s)},24305:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var s=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&i(e,n)}(c,e);var n,r,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);return e=n?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return a(e)}(this,e)});function c(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c);for(var e,n,r,o,i=arguments.length,l=Array(i),f=0;f<i;f++)l[f]=arguments[f];return n=a(e=s.call.apply(s,[this].concat(l))),o="{{field}} is required",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){return!this.component.isValueHidden()&&!this.component.isEmpty(e)}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(c.prototype,r),Object.defineProperty(c,"prototype",{writable:!1}),c}(s)},97545:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(26944),r(11102),r(17943),r(15469),r(1542),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884),e.exports=function(){var e;function n(e,r,o){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n),this.component=e,this.settings=r,this.config=o}return e=[{key:"check",value:function(){}}],function(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}()},27880:function(e,n,r){"use strict";r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(35968),r(17223),r(28121),r(83972),r(97172),r(76381),r(18997),r(24956),r(6765),r(12443),r(92884);var o=r(9494),i=u(r(18947)),a=u(r(4547)),l=u(r(76635));
1function u(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,n){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function f(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){var n=function(e,n){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==s(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===s(n)?n:String(n)}var h=(0,a.default)({Promise:i.default}),m=h.fetch,y=h.Headers,v=h.Request,b=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&c(e,n)}(a,e);var n,r,i=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=d(a);return e=n?Reflect.construct(r,arguments,d(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===s(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return f(e)}(this,e)});function a(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,a);for(var e,n,r,o,l=arguments.length,u=Array(l),s=0;s<l;s++)u[s]=arguments[s];return n=f(e=i.call.apply(i,[this].concat(u))),o="{{field}} contains an invalid selection",(r=p(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e,n,r,i){if(!e||l.default.isEmpty(e)||!i)return!0;var a=this.component.component,u={url:this.settings.url,method:"GET",qs:{},json:!0,headers:{}};if(l.default.isBoolean(u.url)){if(u.url=!!u.url,!u.url||"url"!==a.dataSrc||!a.data.url||!a.searchField)return!0;u.url=a.data.url,u.qs[a.searchField]=e,a.filter&&(u.url+=(u.url.includes("?")?"&":"?")+a.filter),a.selectFields&&(u.qs.select=a.selectFields)}return!u.url||(u.url=(0,o.interpolate)(u.url,{data:this.component.data}),u.url+=(u.url.includes("?")?"&":"?")+l.default.chain(u.qs).map(function(e,n){return"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(e))}).join("&").value(),a.data&&a.data.headers&&l.default.each(a.data.headers,function(e){e.key&&(u.headers[e.key]=e.value)}),a.authenticate&&this.config.token&&(u.headers["x-jwt-token"]=this.config.token),m(new v(u.url,{headers:new y(u.headers)})).then(function(e){return!!e.ok&&e.json()}).then(function(e){return e&&e.length}).catch(function(){return!1}))}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,p(o.key),o)}}(a.prototype,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(b)},55092:function(e,n,r){"use strict";r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var o,i=(o=r(89868))&&o.__esModule?o:{default:o};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,n){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function u(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
1function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){var n=function(e,n){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==a(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===a(n)?n:String(n)}var f=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&l(e,n)}(f,e);var n,r,o=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(f);return e=n?Reflect.construct(r,arguments,s(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===a(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return u(e)}(this,e)});function f(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f);for(var e,n,r,i,a=arguments.length,l=Array(a),s=0;s<a;s++)l[s]=arguments[s];return n=u(e=o.call.apply(o,[this].concat(l))),i="{{field}} must contain valid time",(r=c(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,e}return r=[{key:"check",value:function(e){return!!this.component.isEmpty(e)||(0,i.default)(e,this.component.component.format).isValid()}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,c(o.key),o)}}(f.prototype,r),Object.defineProperty(f,"prototype",{writable:!1}),f}(f)},99951:function(e,n,r){"use strict";r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(41126),r(5746),r(12551),r(59012),r(17223),r(18997),r(24956),r(6765),r(12443),r(92884);var o=r(9494),i=l(r(76635)),a=l(r(18947));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,n){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function c(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){var n=function(e,n){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==u(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===u(n)?n:String(n)}var p=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(p,e);var n,r,l=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=f(p);return e=n?Reflect.construct(r,arguments,f(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===u(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return c(e)}(this,e)});function p(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p);for(var e,n,r,o,i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=c(e=l.call.apply(l,[this].concat(a))),o="{{field}} must be unique",(r=d(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}return r=[{key:"check",value:function(e){var n=this;return!!(!e||i.default.isObjectLike(e)&&i.default.isEmpty(e))||!this.config.db||new a.default(function(r){var a=n.config.form,l=n.config.submission,u="data.".concat(n.component.path),s={form:a._id};i.default.isString(e)?s[u]={$regex:new RegExp("^".concat((0,o.escapeRegExCharacters)(e),"$")),$options:"i"}:i.default.isPlainObject(e)&&e.address&&e.address.address_components&&e.address.place_id?s["".concat(u,".address.place_id")]={$regex:new RegExp("^".concat((0,o.escapeRegExCharacters)(e.address.place_id),"$")),$options:"i"}
1:i.default.isArray(e)?s[u]={$all:e}:(i.default.isObject(e)||i.default.isNumber(e))&&(s[u]={$eq:e}),s.deleted={$eq:null},n.config.db.findOne(s,function(e,n){return e?r(!1):n?r(l._id&&n._id.toString()===l._id):r(!0)})}).catch(function(){return!1})}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}(p.prototype,r),Object.defineProperty(p,"prototype",{writable:!1}),p}(p)},85289:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(27846),r(9473),r(22818),r(15264),r(14785),r(11102),r(17943),r(15469),r(1542),r(43001),r(5746),r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var s=r(97545);e.exports=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&i(e,n)}(c,e);var n,r,s=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(c);return e=n?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return a(e)}(this,e)});function c(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,c);for(var e,n,r,o,i=arguments.length,l=Array(i),f=0;f<i;f++)l[f]=arguments[f];return n=a(e=s.call.apply(s,[this].concat(l))),o="{{field}} must be a valid url.",(r=u(r="defaultMessage"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}
1return r=[{key:"check",value:function(e){return!e||/^(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)&&!/^(([^<>()[\]\\.,;:\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(e)}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(c.prototype,r),Object.defineProperty(c,"prototype",{writable:!1}),c}(s)},27077:function(e,n,r){"use strict";var o=r(81186),i=r(73850),a=r(54887),l=r(39192),u=r(27288),s=r(45825),c=r(98101),f=r(25902),d=r(50300),p=r(74990),h=r(92608),m=r(44797),y=r(235),v=r(82826),b=r(50516),g=r(24305),w=r(27880),k=r(99951),O=r(85289),_=r(52996),j=r(94260),P=r(55092);e.exports={custom:o,date:i,day:a,email:l,json:u,mask:s,max:c,maxDate:f,maxLength:d,maxWords:p,min:h,minDate:m,minLength:y,minWords:v,pattern:b,required:g,select:w,unique:k,url:O,minYear:_,maxYear:j,time:P}},65998:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function a(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?i(Object(r),!0).forEach(function(n){l(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l(e,n,r){return(n=u(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(24646),r(35968),r(77762),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var s=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"addTransformer",value:function(e,r){n.transformers[e]=r}},{key:"addTransformers",value:function(e){n.transformers=a(a({},n.transformers),e)}},{key:"getTransformer",value:function(e){return n.transformers[e]}},{key:"getTransformers",value:function(){return n.transformers}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=s,l(s,"transformers",{})},90741:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function a(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
1n%2?i(Object(r),!0).forEach(function(n){l(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l(e,n,r){return(n=u(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function u(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}r(26944),r(24646),r(35968),r(77762),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(18997),r(24956),r(6765),r(12443),r(17223),r(92884);var s=function(){var e;function n(){!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,n)}return e=[{key:"addValueSource",value:function(e,r){n.valueSources[e]=r}},{key:"addValueSources",value:function(e){n.valueSources=a(a({},n.valueSources),e)}},{key:"getValueSource",value:function(e){return n.valueSources[e]}},{key:"getValueSources",value:function(){return n.valueSources}}],function(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=s,l(s,"valueSources",{})},48711:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(26981),r(24646),r(88455),r(32334),r(30534),r(98197),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(5746),r(6588),r(10025),r(59012),r(35968),r(17223),r(43001),r(75162),r(76381),r(45009),r(92100),r(28121),r(83972),r(62089),r(18036),r(12551),r(9473),r(27846),r(22818);var i=r(38388),a=c(r(29771)),l=r(9494),u=c(r(89868)),s=c(r(76635));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?f(Object(r),!0).forEach(function(n){m(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,y(o.key),o)}}function h(e,n,r,o){return(h="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,n,r,o){var i,a=b(e,n);if(a){if((i=Object.getOwnPropertyDescriptor(a,n)).set)return i.set.call(o,r),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(o,n)){if(!i.writable)return!1;i.value=r,Object.defineProperty(o,n,i)}else m(o,n,r);return!0})(e,n,r,o)}function m(e,n,r){return(n=y(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function y(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}function v(){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=b(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function b(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=w(e)););return e}function g(e,n){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}
1function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k="yyyy-MM-dd hh:mm a",O="yyyy-MM-ddTHH:mm:ssZ",_=(0,l.getBrowserInfo)().ie,j=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&g(e,n)}(f,e);var n,r,a,c=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=w(f);return e=n?Reflect.construct(r,arguments,w(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(e,n,r,o){var a;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,f),(a=c.call(this,e,n,r,o)).settings.noCalendar&&(a.settings.format=a.settings.format.replace(/yyyy-MM-dd /g,"")),a.settings.enableTime?a.settings.time_24hr&&(a.settings.format=a.settings.format.replace(/hh:mm a$/g,"HH:mm")):a.settings.format=a.settings.format.replace(/ hh:mm a$/g,""),a.zoneLoading=!1,a.timezonesUrl="".concat(i.GlobalFormio.cdn["moment-timezone"],"/data/packed/latest.json"),a}return r=[{key:"loadZones",value:function(){var e=this,n=this.timezone;return!!this.zoneLoading||!!(!(0,l.zonesLoaded)()&&(0,l.shouldLoadZones)(n))&&(this.zoneLoading=!0,(0,l.loadZones)(this.timezonesUrl,n).then(function(){e.zoneLoading=!1,e.emit("redraw")}),!0)}},{key:"attach",value:function(e){var n,r=this,o=v(w(f.prototype),"attach",this).call(this,e),a=(0,l.getLocaleDateFormatInfo)(this.settings.language);this.defaultFormat={date:a.dayFirst?"d/m/Y ":"m/d/Y ",time:"G:i K"},this.closedOn=0,this.valueFormat="date"===this.settings.saveAs?O:this.settings.dateFormat||O,this.valueMomentFormat=(0,l.convertFormatToMoment)(this.valueFormat);var u=this.settings.readOnly;return this.settings.minDate=u?null:(0,l.getDateSetting)(this.settings.minDate),this.settings.maxDate=u?null:(0,l.getDateSetting)(this.settings.maxDate),this.settings.disable=this.disabledDates,this.settings.disableWeekends&&this.settings.disable.push(this.disableWeekends),this.settings.disableWeekdays&&this.settings.disable.push(this.disableWeekdays),this.settings.disableFunction&&this.settings.disable.push(this.disableFunction),this.settings.wasDefaultValueChanged=!1,this.settings.defaultValue="",this.settings.manualInputValue="",this.settings.isManuallyOverriddenValue=!1,this.settings.currentValue="",this.settings.altFormat=(0,l.convertFormatToFlatpickr)(this.settings.format),this.settings.dateFormat=(0,l.convertFormatToFlatpickr)(this.settings.dateFormat),this.settings.position="auto center",this.settings.onChange=function(){r.settings.allowInput&&(r.settings.isManuallyOverriddenValue&&r.settings.enableTime?r.calendar._input.value=r.settings.manualInputValue:r.settings.manualInputValue="",r.settings.isManuallyOverriddenValue=!1),r.emit("update")},this.settings.onOpen=function(){return r.hook("onCalendarOpen")},this.settings.onClose=function(){r.hook("onCalendarClose"),r.closedOn=Date.now(),r.settings.allowInput&&r.settings.enableTime&&(r.calendar._input.value=r.settings.manualInputValue||r.calendar._input.value,r.settings.isManuallyOverriddenValue=!1,r.emit("update")),r.settings.wasDefaultValueChanged&&(r.calendar._input.value=r.settings.defaultValue,r.settings.wasDefaultValueChanged=!1),r.calendar&&r.emit("blur")},i.GlobalFormio.requireLibrary("flatpickr-css","flatpickr",[{type:"styles",src:"".concat(i.GlobalFormio.cdn["flatpickr-formio"],"/flatpickr.min.css")}],!0),this.component.shortcutButtons&&(this.component.shortcutButtons=this.component.shortcutButtons.filter(function(e){return e.label&&e.onClick})),null!==(n=this.component.shortcutButtons)&&void 0!==n&&n.length&&i.GlobalFormio.requireLibrary("shortcut-buttons-flatpickr-css","ShortcutButtonsPlugin",[{type:"styles",src:"".concat(i.GlobalFormio.cdn["shortcut-buttons-flatpickr"],"/themes/light.min.css")}],!0),o.then(function(){var e;if(null!==(e=r.component.shortcutButtons)&&void 0!==e&&e.length)return i.GlobalFormio.requireLibrary("shortcut-buttons-flatpickr","ShortcutButtonsPlugin","".concat(i.GlobalFormio.cdn["shortcut-buttons-flatpickr"],"/shortcut-buttons-flatpickr.min.js"),!0)}).then(function(e){return i.GlobalFormio.requireLibrary("flatpickr","flatpickr","".concat(i.GlobalFormio.cdn["flatpickr-formio"],"/flatpickr.min.js"),!0).then(function(n){var o;if(null!==(o=r.component.shortcutButtons)&&void 0!==o&&o.length&&e&&r.initShortcutButtonsPlugin(e),r.settings.formatDate=r.getFlatpickrFormatDate(n),r._input){var a=r.settings.locale;if(a&&a.length>=2&&"en"!==a)return i.GlobalFormio.requireLibrary("flatpickr-".concat(a),"flatpickr-".concat(a),"".concat(i.GlobalFormio.cdn["flatpickr-formio"],"/l10n/flatpickr-").concat(a,".js"),!0).then(function(){return r.initFlatpickr(n)});r.initFlatpickr(n)}})}).catch(function(e){console.warn(e)})}},{key:"disableWeekends",get:function(){return function(e){return 0===e.getDay()||6===e.getDay()}}},{key:"disableWeekdays",get:function(){var e=this;return function(n){return!e.disableWeekends(n)}}},{key:"disableFunction",get:function(){var e=this;return function(n){return e.evaluate("return ".concat(e.settings.disableFunction),{date:n})}}},{key:"timezone",get:function(){return this.componentInstance.getTimezone(this.settings)}},{key:"defaultSettings",get:function(){return f.defaultSettings}},{key:"addSuffix",value:function(e){var n=this;return this.addEventListener(e,"click",function(){setTimeout(function(){n.calendar&&(!n.calendar.isOpen&&Date.now()-n.closedOn>200?n.calendar.open():n.calendar.isOpen&&n.calendar.close())},0)}),e}}
vendor: 7,536 bytes, line 1
1,{key:"disabled",set:function(e){(function(e,n,r,o,i){if(!h(e,n,r,o||e)&&i)throw Error("failed to set property")})(w(f.prototype),"disabled",e,this,!0),this.calendar&&(e?this.calendar._input.setAttribute("disabled","disabled"):this.calendar._input.removeAttribute("disabled"),this.calendar.close(),this.calendar.redraw())}},{key:"input",get:function(){return this.calendar?this.calendar.altInput:null}},{key:"disabledDates",get:function(){return this.settings.disabledDates?this.settings.disabledDates.split(",").map(function(e){var n=/\d{4}-\d{2}-\d{2}/g,r=e.match(n);if(r&&r.length)return 1===r.length?e.match(n)[0]:{from:e.match(n)[0],to:e.match(n)[1]}}):[]}},{key:"localeFormat",get:function(){var e="";return this.settings.enableDate&&(e+=this.defaultFormat.date),this.settings.enableTime&&(e+=this.defaultFormat.time),e}},{key:"dateTimeFormat",get:function(){return this.settings.useLocaleSettings?this.localeFormat:(0,l.convertFormatToFlatpickr)(this.dateFormat)}},{key:"dateFormat",get:function(){return s.default.get(this.settings,"format",k)}},{key:"getDateValue",value:function(e,n,r){return r?(0,l.momentDate)(e,this.valueFormat,this.timezone).format((0,l.convertFormatToMoment)(n)):(0,u.default)(e).format((0,l.convertFormatToMoment)(n))}},{key:"getValue",value:function(){if(!this.calendar)return v(w(f.prototype),"getValue",this).call(this);var e=this.calendar.selectedDates;return e&&e.length?e[0]instanceof Date?this.getDateValue(e[0],this.valueFormat,"date"===this.settings.saveAs):"Invalid Date":v(w(f.prototype),"getValue",this).call(this)}},{key:"isValueISO8601",value:function(e){return e&&"string"==typeof e&&e.match(/-[0-9]{2}T[0-9]{2}:/)}},{key:"setValue",value:function(e){var n="text"===this.settings.saveAs;if(!this.calendar)return e=e?(0,l.formatDate)(this.timezonesUrl,e,(0,l.convertFormatToMoment)(this.settings.format),this.timezone,(0,l.convertFormatToMoment)(this.valueMomentFormat)):e,v(w(f.prototype),"setValue",this).call(this,e);var r=this.loadZones();e?n||!this.settings.readOnly||r?this.isValueISO8601(e)?this.calendar.setDate(e,!1):this.calendar.setDate((0,u.default)(e,this.valueMomentFormat).toDate(),!1):this.calendar.setDate((0,l.momentDate)(e,this.valueFormat,this.timezone).format(),!1):this.calendar.clear(!1)}},{key:"getValueAsString",value:function(e,n){var r=n||this.dateFormat,o=this.calendar?this.valueFormat:this.settings.dateFormat;return"text"===this.settings.saveAs&&this.componentInstance.parent&&!this.settings.readOnly?(0,u.default)(e,(0,l.convertFormatToMoment)(o)).format((0,l.convertFormatToMoment)(o)):(0,l.formatDate)(this.timezonesUrl,e,r,this.timezone,(0,l.convertFormatToMoment)(o))}},{key:"setErrorClasses",value:function(e){this.input&&(e?(this.addClass(this.input,"is-invalid"),this.input.setAttribute("aria-invalid","true")):(this.removeClass(this.input,"is-invalid"),this.input.setAttribute("aria-invalid","false")))}},{key:"validationValue",value:function(e){return"string"==typeof e?new Date(e):e.map(function(e){return new Date(e)})}},{key:"isCalendarElement",value:function(e){var n,r,o,i,a;return!!(!e||null!==(n=this.calendar)&&void 0!==n&&null!==(r=n.config)&&void 0!==r&&null!==(o=r.appendTo)&&void 0!==o&&o.contains(e))||(null===(i=this.calendar)||void 0===i?void 0:null===(a=i.calendarContainer)||void 0===a?void 0:a.contains(e))}},{key:"initFlatpickr",value:function(e){var n=this;if(this.calendar=new e(this._input,d(d({},this.settings),{},{disableMobile:!0})),this.calendar.altInput.addEventListener("input",function(e){n.settings.allowInput&&n.settings.currentValue!==e.target.value&&(n.settings.manualInputValue=e.target.value,n.settings.isManuallyOverriddenValue=!0,n.settings.currentValue=e.target.value),""===e.target.value&&n.calendar.selectedDates.length>0?(n.settings.wasDefaultValueChanged=!0,n.settings.defaultValue=e.target.value,n.calendar.clear()):n.settings.wasDefaultValueChanged=!1}),this.settings.readOnly||s.default.some(["MMMM"],function(e){return s.default.includes(n.settings.format,e)})||this.setInputMask(this.calendar._input,(0,l.convertFormatToMask)(this.settings.format)),_){var r=this.calendar._handlers.find(function(e){var r=e.event,o=e.element;return"blur"===r&&o===n.calendar._input});this.calendar._input.removeEventListener("blur",r.handler),this.addEventListener(this.calendar._input,"blur",function(e){var r=n.settings.shadowRoot?n.settings.shadowRoot.activeElement:document.activeElement,o=e.relatedTarget?e.relatedTarget:r;e.target!==n.calendar._input||n.isCalendarElement(o)||n.calendar.setDate(n.calendar._input.value,!0,e.target===n.calendar.altInput?n.calendar.config.altFormat:n.calendar.config.dateFormat)})}this.addEventListener(this.calendar._input,"blur",function(e){var r=n.settings.shadowRoot?n.settings.shadowRoot.activeElement:document.activeElement,o=e.relatedTarget?e.relatedTarget:r;if(_&&!o||n.isCalendarElement(o)){if(!n.calendar.input.value&&n.calendar.config.noCalendar){var i,a,s,c,f=(0,u.default)({hour:null===(i=n.calendar)||void 0===i?void 0:null===(a=i.config)||void 0===a?void 0:a.defaultHour,minute:null===(s=n.calendar)||void 0===s?void 0:null===(c=s.config)||void 0===c?void 0:c.defaultMinute}).toDate();n.calendar.setDate(f,!0,n.settings.format)}}else{var d=n.calendar.input.value,p=d?(0,u.default)(n.calendar.input.value,(0,l.convertFormatToMoment)(n.valueFormat)).toDate():d;n.calendar.setDate(p,!0,n.settings.altFormat)}}),this.addEventListener(this.calendar.altInput,"keydown",function(e){13===e.keyCode&&n.calendar.isOpen&&(n.calendar.close(),e.stopPropagation())}),this.setValue(this.componentValue)}},{key:"initShortcutButtonsPlugin",value:function(e){var n=this;this.settings.plugins=[e({button:this.component.shortcutButtons.map(function(e){return{label:e.label,attributes:e.attribute}}),onClick:function(e){var r=n.component.shortcutButtons[e].onClick,o=n.evaluate(r,{date:new Date},"date");n.calendar.setDate(o,!0)}})]}},{key:"componentValue",get:function(){var e=this.componentInstance.dataValue;return Array.isArray(e)&&(e=e[this.valueIndex]),e}},{key:"getFlatpickrFormatDate",value:function(e){var n=this;return function(r,o){return n.settings.readOnly&&o===n.settings.altFormat?n.loadZones()?e.formatDate(r,o):new Date(n.getValue()).toString()===r.toString()?(0,l.formatOffset)(n.timezonesUrl,e.formatDate.bind(e),new Date(n.componentValue),o,n.timezone):(0,l.formatOffset)(n.timezonesUrl,e.formatDate.bind(e),r,o,n.timezone):e.formatDate(r,o)}}},{key:"destroy",value:function(){v(w(f.prototype),"destroy",this).call(this),this.calendar&&this.calendar.destroy()}}],a=[{key:"defaultSettings",get:function(){return{type:"calendar",altInput:!0,allowInput:!0,clickOpens:!0,enableDate:!0,enableTime:!0,mode:"single",noCalendar:!1,format:k,dateFormat:O,useLocaleSettings:!1,language:"us-en",hourIncrement:1,minuteIncrement:5,time_24hr:!1,saveAs:"date",displayInTimezone:"",timezone:"",disable:[],minDate:"",maxDate:""}}}],r&&p(f.prototype,r),a&&p(f,a),Object.defineProperty(f,"prototype",{writable:!1}),f}(a.default);n.default=j},29771:function(e,n,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r(17223),r(15264),r(14785),r(26944),r(19169),r(77762),r(18997),r(24956),r(6765),r(12443),r(92884),r(11102),r(17943),r(15469),r(1542),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(45343),r(9473),r(27846),r(22818);var i=u(r(76635)),a=u(r(62670)),l=u(r(18947));
1function u(e){return e&&e.__esModule?e:{default:e}}function s(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===o(n)?n:String(n)}(i.key),i)}}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var o=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=d(e)););return e}(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function f(e,n){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&f(e,n)}(p,e);var n,r,a,u=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=d(p);return e=n?Reflect.construct(r,arguments,d(this).constructor):r.apply(this,arguments),function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(e,n,r,o){var a;return!function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}(this,p),(a=u.call(this,e)).valueIndex=o||0,a.componentInstance=r,a.namespace="formio.widget",a.component=n||{},a.settings=i.default.merge({},a.defaultSettings,e||{}),a}return a=[{key:"defaultSettings",get:function(){return{type:"input"}}}],r=[{key:"attach",value:function(e){return this._input=e,l.default.resolve()}},{key:"defaultSettings",get:function(){return{}}},{key:"disabled",set:function(e){e?this._input.setAttribute("disabled","disabled"):this._input.removeAttribute("disabled")}},{key:"input",get:function(){return this._input}},{key:"getValue",value:function(){return this._input.value}},{key:"getValueAsString",value:function(e){return e}},{key:"validationValue",value:function(e){return e}},{key:"addPrefix",value:function(){return null}},{key:"addSuffix",value:function(){return null}},{key:"setValue",value:function(e){this._input.value=e}},{key:"evalContext",value:function(e){return c(d(p.prototype),"evalContext",this).call(this,Object.assign({component:this.component,row:this.componentInstance.data,rowIndex:this.componentInstance.rowIndex,data:this.componentInstance.rootValue,value:this.componentInstance.dataValue,t:this.t.bind(this),submission:this.componentInstance.root?this.componentInstance.root._submission:{data:this.componentInstance.rootValue},form:this.componentInstance.root?this.componentInstance.root._form:{},options:this.options},e))}}],s(p.prototype,r),a&&s(p,a),Object.defineProperty(p,"prototype",{writable:!1}),p}(a.default);n.default=p},1357:function(e,n,r){"use strict";r(26944),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(r(29771)),i=a(r(48711));function a(e){return e&&e.__esModule?e:{default:e}}var l={input:o.default,calendar:i.default};n.default=l},98216:function(e){var n=Array.isArray,r=Object.prototype.toString;e.exports=n||function(e){return!!e&&"[object Array]"==r.call(e)}},14667:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return i}});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function i(e){return null!=e&&(void 0===e?"undefined":o(e))==="object"&&1===e.nodeType&&"object"===o(e.style)&&"object"===o(e.ownerDocument)}},98179:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return w}});var o=/iPhone/i,i=/iPod/i,a=/iPad/i,l=/\biOS-universal(?:.+)Mac\b/i,u=/\bAndroid(?:.+)Mobile\b/i,s=/Android/i,c=/(?:SD4930UR|\bSilk(?:.
1+)Mobile\b)/i,f=/Silk/i,d=/Windows Phone/i,p=/\bWindows(?:.+)ARM\b/i,h=/BlackBerry/i,m=/BB10/i,y=/Opera Mini/i,v=/\b(CriOS|Chrome)(?:.+)Mobile/i,b=/Mobile(?:.+)Firefox\b/i,g=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream};function w(e){var n,r={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?r.userAgent=e:e&&e.userAgent&&(r={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):r={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var w=r.userAgent,k=w.split("[FBAN");void 0!==k[1]&&(w=k[0]),void 0!==(k=w.split("Twitter"))[1]&&(w=k[0]);var O=(n=w,function(e){return e.test(n)}),_={apple:{phone:O(o)&&!O(d),ipod:O(i),tablet:!O(o)&&(O(a)||g(r))&&!O(d),universal:O(l),device:(O(o)||O(i)||O(a)||O(l)||g(r))&&!O(d)},amazon:{phone:O(c),tablet:!O(c)&&O(f),device:O(c)||O(f)},android:{phone:!O(d)&&O(c)||!O(d)&&O(u),tablet:!O(d)&&!O(c)&&!O(u)&&(O(f)||O(s)),device:!O(d)&&(O(c)||O(f)||O(u)||O(s))||O(/\bokhttp\b/i)},windows:{phone:O(d),tablet:O(p),device:O(d)||O(p)},other:{blackberry:O(h),blackberry10:O(m),opera:O(y),firefox:O(b),chrome:O(v),device:O(h)||O(m)||O(y)||O(b)||O(v)},any:!1,phone:!1,tablet:!1};return _.any=_.apple.device||_.android.device||_.windows.device||_.other.device,_.phone=_.apple.phone||_.android.phone||_.windows.phone,_.tablet=_.apple.tablet||_.android.tablet||_.windows.tablet,_}},42330:function(e,n,r){var o,i;void 0!==(i="function"==typeof(o=function(){"use strict";Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},n={"==":function(e,n){return e==n},"===":function(e,n){return e===n},"!=":function(e,n){return e!=n},"!==":function(e,n){return e!==n},">":function(e,n){return e>n},">=":function(e,n){return e>=n},"<":function(e,n,r){return void 0===r?e<n:e<n&&n<r},"<=":function(e,n,r){return void 0===r?e<=n:e<=n&&n<=r},"!!":function(n){return e.truthy(n)},"!":function(n){return!e.truthy(n)},"%":function(e,n){return e%n},log:function(e){return console.log(e),e},in:function(e,n){return!!n&&void 0!==n.indexOf&&-1!==n.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,n,r){if(r<0){var o=String(e).substr(n);return o.substr(0,o.length+r)}return String(e).substr(n,r)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,n){return parseFloat(e,10)+parseFloat(n,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,n){return parseFloat(e,10)*parseFloat(n,10)})},"-":function(e,n){return void 0===n?-e:e-n},"/":function(e,n){return e/n},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,n){return e.concat(n)},[])},var:function(e,n){var r=void 0===n?null:n,o=this;if(void 0===e||""===e||null===e)return o;for(var i=String(e).split("."),a=0;a<i.length;a++)if(null==o||void 0===(o=o[i[a]]))return r;return o},missing:function(){for(var n=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,o=0;o<r.length;o++){var i=r[o],a=e.apply({var:i},this);(null===a||""===a)&&n.push(i)}return n},missing_some:function(n,r){var o=e.apply({missing:r},this);return r.length-o.length>=n?[]:o}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return(!Array.isArray(e)||0!==e.length)&&!!e},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(n){return n[e.get_operator(n)]},e.apply=function(r,o){if(Array.isArray(r))return r.map(function(n){return e.apply(n,o)});if(!e.is_logic(r))return r;var i,a,l,u,s,c=e.get_operator(r),f=r[c];if(Array.isArray(f)||(f=[f]),"if"===c||"?:"==c){for(i=0;i<f.length-1;i+=2)if(e.truthy(e.apply(f[i],o)))return e.apply(f[i+1],o);return f.length===i+1?e.apply(f[i],o):null}if("and"===c){for(i=0;i<f.length&&(a=e.apply(f[i],o),e.truthy(a));i+=1);return a}if("or"===c){for(i=0;i<f.length&&(a=e.apply(f[i],o),!e.truthy(a));i+=1);return a}if("filter"===c)return(u=e.apply(f[0],o),l=f[1],Array.isArray(u))?u.filter(function(n){return e.truthy(e.apply(l,n))}):[];if("map"===c)return(u=e.apply(f[0],o),l=f[1],Array.isArray(u))?u.map(function(n){return e.apply(l,n)}):[];if("reduce"===c)return(u=e.apply(f[0],o),l=f[1],s=void 0!==f[2]?f[2]:null,Array.isArray(u))?u.reduce(function(n,r){return e.apply(l,{current:r,accumulator:n})},s):s;if("all"===c){if(u=e.apply(f[0],o),l=f[1],!Array.isArray(u)||!u.length)return!1;for(i=0;i<u.length;i+=1)if(!e.truthy(e.apply(l,u[i])))return!1;return!0}else if("none"===c){if(u=e.apply(f[0],o),l=f[1],!Array.isArray(u)||!u.length)return!0;for(i=0;i<u.length;i+=1)if(e.truthy(e.apply(l,u[i])))return!1;return!0}else if("some"===c){if(u=e.apply(f[0],o),l=f[1],!Array.isArray(u)||!u.length)return!1;for(i=0;i<u.length;i+=1)if(e.truthy(e.apply(l,u[i])))return!0;return!1}if(f=f.map(function(n){return e.apply(n,o)}),n.hasOwnProperty(c)&&"function"==typeof n[c])return n[c].apply(o,f);if(c.indexOf(".")>0){var d=String(c).split("."),p=n;for(i=0;i<d.length;i++){if(!p.hasOwnProperty(d[i]))throw Error("Unrecognized operation "+c+" (failed at "+d.slice(0,i+1).join(".")+")");p=p[d[i]]}return p.apply(o,f)}throw Error("Unrecognized operation "+c)},e.uses_data=function(n){var r=[];if(e.is_logic(n)){var o=e.get_operator(n),i=n[o];Array.isArray(i)||(i=[i]),"var"===o?r.push(i[0]):i.forEach(function(n){r.push.apply(r,e.uses_data(n))})}return function(e){for(var n=[],r=0,o=e.length;r<o;r++)-1===n.indexOf(e[r])&&n.push(e[r]);return n}(r)},e.add_operation=function(e,r){n[e]=r},e.rm_operation=function(e){delete n[e]},e.rule_like=function(n,r){if(r===n||"@"===r)return!0;
1if("number"===r)return"number"==typeof n;if("string"===r)return"string"==typeof n;if("array"===r)return Array.isArray(n)&&!e.is_logic(n);if(e.is_logic(r)){if(e.is_logic(n)){var o=e.get_operator(r),i=e.get_operator(n);if("@"===o||o===i)return e.rule_like(e.get_values(n,!1),e.get_values(r,!1))}return!1}if(Array.isArray(r)&&Array.isArray(n)){if(r.length!==n.length)return!1;for(var a=0;a<r.length;a+=1)if(!e.rule_like(n[a],r[a]))return!1;return!0}return!1},e})?o.call(n,r,n,e):o)&&(e.exports=i)},26216:function(e,n,r){var o,i,a,l,u,s,c,f,d,p,h,m;(i={DAY:864e5,HOUR:36e5,MINUTE:6e4,SECOND:1e3,BASELINE_YEAR:2014,MAX_SCORE:864e6,AMBIGUITIES:{"America/Denver":["America/Mazatlan"],"America/Chicago":["America/Mexico_City"],"America/Asuncion":["America/Campo_Grande","America/Santiago"],"America/Montevideo":["America/Sao_Paulo","America/Santiago"],"Asia/Beirut":["Asia/Amman","Asia/Jerusalem","Europe/Helsinki","Asia/Damascus","Africa/Cairo","Asia/Gaza","Europe/Minsk","Africa/Windhoek"],"Pacific/Auckland":["Pacific/Fiji"],"America/Los_Angeles":["America/Santa_Isabel"],"America/New_York":["America/Havana"],"America/Halifax":["America/Goose_Bay"],"America/Godthab":["America/Miquelon"],"Asia/Dubai":["Asia/Yerevan"],"Asia/Jakarta":["Asia/Krasnoyarsk"],"Asia/Shanghai":["Asia/Irkutsk","Australia/Perth"],"Australia/Sydney":["Australia/Lord_Howe"],"Asia/Tokyo":["Asia/Yakutsk"],"Asia/Dhaka":["Asia/Omsk"],"Asia/Baku":["Asia/Yerevan"],"Australia/Brisbane":["Asia/Vladivostok"],"Pacific/Noumea":["Asia/Vladivostok"],"Pacific/Majuro":["Asia/Kamchatka","Pacific/Fiji"],"Pacific/Tongatapu":["Pacific/Apia"],"Asia/Baghdad":["Europe/Minsk","Europe/Moscow"],"Asia/Karachi":["Asia/Yekaterinburg"],"Africa/Johannesburg":["Asia/Gaza","Africa/Cairo"]}},a=function(e){var n=-e.getTimezoneOffset();return null!==n?n:0},l=function(){for(var e=[],n=0;n<=11;n++)for(var r=1;r<=28;r++){var o=a(new Date(i.BASELINE_YEAR,n,r));e?e&&e[e.length-1]!==o&&e.push(o):e.push()}return e},u=function(){var e=0,n=l();return n.length>1&&(e=n[0]-n[1]),n.length>3?n[0]+",1,weird":e<0?n[0]+",1":e>0?n[1]+",1,s":n[0]+",0"},s=function(){var e,n;if(Intl&&"undefined"!=typeof Intl&&void 0!==Intl.DateTimeFormat&&void 0!==(e=Intl.DateTimeFormat())&&void 0!==e.resolvedOptions)return(n=e.resolvedOptions().timeZone)&&(n.indexOf("/")>-1||"UTC"===n)?n:void 0},c=function(e){for(var n=new Date(e,0,1,0,0,1,0).getTime(),r=new Date(e,12,31,23,59,59).getTime(),o=n,i=new Date(o).getTimezoneOffset(),a=null,l=null;o<r-864e5;){var u=new Date(o),s=u.getTimezoneOffset();s!==i&&(s<i&&(a=u),s>i&&(l=u),i=s),o+=864e5}return!(!a||!l)&&{s:f(a).getTime(),e:f(l).getTime()}},f=function e(n,r,o){void 0===r&&(r=i.DAY,o=i.HOUR);for(var a=new Date(n.getTime()-r).getTime(),l=n.getTime()+r,u=new Date(a).getTimezoneOffset(),s=a,c=null;s<l-o;){var f=new Date(s);if(f.getTimezoneOffset()!==u){c=f;break}s+=o}return r===i.DAY?e(c,i.HOUR,i.MINUTE):r===i.HOUR?e(c,i.MINUTE,i.SECOND):c},d=function(e,n,r,o){if("N/A"!==r)return r;if("Asia/Beirut"===n){if("Africa/Cairo"===o.name&&13983768e5===e[6].s&&14116788e5===e[6].e||"Asia/Jerusalem"===o.name&&13959648e5===e[6].s&&14118588e5===e[6].e)return 0}else if("America/Santiago"===n){if("America/Asuncion"===o.name&&14124816e5===e[6].s&&1397358e6===e[6].e||"America/Campo_Grande"===o.name&&14136912e5===e[6].s&&13925196e5===e[6].e)return 0}else if("America/Montevideo"===n){if("America/Sao_Paulo"===o.name&&14136876e5===e[6].s&&1392516e6===e[6].e)return 0}else if("Pacific/Auckland"===n&&"Pacific/Fiji"===o.name&&14142456e5===e[6].s&&13961016e5===e[6].e)return 0;return r},p=function(e,n){for(var r={},o=m.olson.dst_rules.zones,a=o.length,l=i.AMBIGUITIES[n],u=0;u<a;u++){var s=o[u],c=function(r){for(var o=0,a=0;a<e.length;a++)if(r.rules[a]&&e[a]&&(!(e[a].s>=r.rules[a].s&&e[a].e<=r.rules[a].e)||(o=0+Math.abs(e[a].s-r.rules[a].s)+Math.abs(r.rules[a].e-e[a].e))>i.MAX_SCORE)){o="N/A";break}return d(e,n,o,r)}(o[u]);"N/A"!==c&&(r[s.name]=c)}for(var f in r)if(r.hasOwnProperty(f)){for(var p=0;p<l.length;p++)if(l[p]===f)return f}return n},h=function(e){var n=function(){for(var e=[],n=0;n<m.olson.dst_rules.years.length;n++){var r=c(m.olson.dst_rules.years[n]);e.push(r)}return e}();return!function(e){for(var n=0;n<e.length;n++)if(!1!==e[n])return!0;return!1}(n)?e:p(n,e)},m={determine:function(e){var n=!1,r=u();return(e||void 0===e)&&(n=s()),n||(n=m.olson.timezones[r],void 0!==i.AMBIGUITIES[n]&&(n=h(n))),{name:function(){return n},using_intl:e||void 0===e,needle:r,offsets:l()}}}).olson=m.olson||{},m.olson.timezones={"-720,0":"Etc/GMT+12","-660,0":"Pacific/Pago_Pago","-660,1,s":"Pacific/Apia","-600,1":"America/Adak","-600,0":"Pacific/Honolulu","-570,0":"Pacific/Marquesas","-540,0":"Pacific/Gambier","-540,1":"America/Anchorage","-480,1":"America/Los_Angeles","-480,0":"Pacific/Pitcairn","-420,0":"America/Phoenix","-420,1":"America/Denver","-360,0":"America/Guatemala","-360,1":"America/Chicago","-360,1,s":"Pacific/Easter","-300,0":"America/Bogota","-300,1":"America/Ne
1w_York","-270,0":"America/Caracas","-240,1":"America/Halifax","-240,0":"America/Santo_Domingo","-240,1,s":"America/Asuncion","-210,1":"America/St_Johns","-180,1":"America/Godthab","-180,0":"America/Buenos_Aires","-180,1,s":"America/Montevideo","-120,0":"America/Noronha","-120,1":"America/Noronha","-60,1":"Atlantic/Azores","-60,0":"Atlantic/Cape_Verde","0,0":"UTC","0,1":"Europe/London","0,1,weird":"Africa/Casablanca","60,1":"Europe/Berlin","60,0":"Africa/Lagos","60,1,weird":"Africa/Casablanca","120,1":"Asia/Beirut","120,1,weird":"Africa/Cairo","120,0":"Africa/Johannesburg","180,0":"Asia/Baghdad","180,1":"Europe/Moscow","210,1":"Asia/Tehran","240,0":"Asia/Dubai","240,1":"Asia/Baku","270,0":"Asia/Kabul","300,1":"Asia/Yekaterinburg","300,0":"Asia/Karachi","330,0":"Asia/Calcutta","345,0":"Asia/Katmandu","360,0":"Asia/Dhaka","360,1":"Asia/Omsk","390,0":"Asia/Rangoon","420,1":"Asia/Krasnoyarsk","420,0":"Asia/Jakarta","480,0":"Asia/Shanghai","480,1":"Asia/Irkutsk","525,0":"Australia/Eucla","525,1,s":"Australia/Eucla","540,1":"Asia/Yakutsk","540,0":"Asia/Tokyo","570,0":"Australia/Darwin","570,1,s":"Australia/Adelaide","600,0":"Australia/Brisbane","600,1":"Asia/Vladivostok","600,1,s":"Australia/Sydney","630,1,s":"Australia/Lord_Howe","660,1":"Asia/Kamchatka","660,0":"Pacific/Noumea","690,0":"Pacific/Norfolk","720,1,s":"Pacific/Auckland","720,0":"Pacific/Majuro","765,1,s":"Pacific/Chatham","780,0":"Pacific/Tongatapu","780,1,s":"Pacific/Apia","840,0":"Pacific/Kiritimati"},m.olson.dst_rules={years:[2008,2009,2010,2011,2012,2013,2014],zones:[{name:"Africa/Cairo",rules:[{e:12199572e5,s:12090744e5},{e:1250802e6,s:1240524e6},{e:12858804e5,s:12840696e5},!1,!1,!1,{e:14116788e5,s:1406844e6}]},{name:"America/Asuncion",rules:[{e:12050316e5,s:12243888e5},{e:12364812e5,s:12558384e5},{e:12709548e5,s:12860784e5},{e:13024044e5,s:1317528e6},{e:1333854e6,s:13495824e5},{e:1364094e6,s:1381032e6},{e:13955436e5,s:14124816e5}]},{name:"America/Campo_Grande",rules:[{e:12032172e5,s:12243888e5},{e:12346668e5,s:12558384e5},{e:12667212e5,s:1287288e6},{e:12981708e5,s:13187376e5},{e:13302252e5,s:1350792e6},{e:136107e7,s:13822416e5},{e:13925196e5,s:14136912e5}]},{name:"America/Goose_Bay",rules:[{e:122559486e4,s:120503526e4},{e:125704446e4,s:123648486e4},{e:128909886e4,s:126853926e4},{e:13205556e5,s:129998886e4},{e:13520052e5,s:13314456e5},{e:13834548e5,s:13628952e5},{e:14149044e5,s:13943448e5}]},{name:"America/Havana",rules:[{e:12249972e5,s:12056436e5},{e:12564468e5,s:12364884e5},{e:12885012e5,s:12685428e5},{e:13211604e5,s:13005972e5},{e:13520052e5,s:13332564e5},{e:13834548e5,s:13628916e5},{e:14149044e5,s:13943412e5}]},{name:"America/Mazatlan",rules:[{e:1225008e6,s:12074724e5},{e:12564576e5,s:1238922e6},{e:1288512e6,s:12703716e5},{e:13199616e5,s:13018212e5},{e:13514112e5,s:13332708e5},{e:13828608e5,s:13653252e5},{e:14143104e5,s:13967748e5}]},{name:"America/Mexico_City",rules:[{e:12250044e5,s:12074688e5},{e:1256454e6,s:12389184e5},{e:12885084e5,s:1270368e6},{e:1319958e6,s:13018176e5},{e:13514076e5,s:13332672e5},{e:13828572e5,s:13653216e5},{e:14143068e5,s:13967712e5}]},{name:"America/Miquelon",rules:[{e:12255984e5,s:12050388e5},{e:1257048e6,s:12364884e5},{e:12891024e5,s:12685428e5},{e:1320552e6,s:12999924e5},{e:13520016e5,s:1331442e6},{e:13834512e5,s:13628916e5},{e:14149008e5,s:13943412e5}]},{name:"America/Santa_Isabel",rules:[{e:12250116e5,s:1207476e6},{e:12564612e5,s:12389256e5},{e:12891204e5,s:12685608e5},{e:132057e7,s:13000104e5},{e:13520196e5,s:133146e7},{e:13834692e5,s:13629096e5},{e:14149188e5,s:13943592e5}]},{name:"America/Santiago",rules:[{e:1206846e6,s:1223784e6},{e:1237086e6,s:12552336e5},{e:127035e7,s:12866832e5},{e:13048236e5,s:13138992e5},{e:13356684e5,s:13465584e5},{e:1367118e6,s:13786128e5},{e:13985676e5,s:14100624e5}]},{name:"America/Sao_Paulo",rules:[{e:12032136e5,s:12243852e5},{e:12346632e5,s:12558348e5},{e:12667176e5,s:12872844e5},{e:12981672e5,s:1318734e6},{e:13302216e5,s:13507884e5},{e:13610664e5,s:1382238e6},{e:1392516e6,s:14136876e5}]},{name:"Asia/Amman",rules:[{e:1225404e6,s:12066552e5},{e:12568536e5,s:12381048e5},{e:12883032e5,s:12695544e5},{e:13197528e5,s:13016088e5},!1,!1,{e:14147064e5,s:13959576e5}]},{name:"Asia/Damascus",rules:[{e:12254868e5,s:120726e7},{e:125685e7,s:12381048e5},{e:12882996e5,s:12701592e5},{e:13197492e5,s:13016088e5},{e:13511988e5,s:13330584e5},{e:13826484e5,s:1364508e6},{e:14147028e5,s:13959576e5}]}
1,{name:"Asia/Dubai",rules:[!1,!1,!1,!1,!1,!1,!1]},{name:"Asia/Gaza",rules:[{e:12199572e5,s:12066552e5},{e:12520152e5,s:12381048e5},{e:1281474e6,s:126964086e4},{e:1312146e6,s:130160886e4},{e:13481784e5,s:13330584e5},{e:13802292e5,s:1364508e6},{e:1414098e6,s:13959576e5}]},{name:"Asia/Irkutsk",rules:[{e:12249576e5,s:12068136e5},{e:12564072e5,s:12382632e5},{e:12884616e5,s:12697128e5},!1,!1,!1,!1]},{name:"Asia/Jerusalem",rules:[{e:12231612e5,s:12066624e5},{e:1254006e6,s:1238112e6},{e:1284246e6,s:12695616e5},{e:131751e7,s:1301616e6},{e:13483548e5,s:13330656e5},{e:13828284e5,s:13645152e5},{e:1414278e6,s:13959648e5}]},{name:"Asia/Kamchatka",rules:[{e:12249432e5,s:12067992e5},{e:12563928e5,s:12382488e5},{e:12884508e5,s:12696984e5},!1,!1,!1,!1]},{name:"Asia/Krasnoyarsk",rules:[{e:12249612e5,s:12068172e5},{e:12564108e5,s:12382668e5},{e:12884652e5,s:12697164e5},!1,!1,!1,!1]},{name:"Asia/Omsk",rules:[{e:12249648e5,s:12068208e5},{e:12564144e5,s:12382704e5},{e:12884688e5,s:126972e7},!1,!1,!1,!1]},{name:"Asia/Vladivostok",rules:[{e:12249504e5,s:12068064e5},{e:12564e8,s:1238256e6},{e:12884544e5,s:12697056e5},!1,!1,!1,!1]},{name:"Asia/Yakutsk",rules:[{e:1224954e6,s:120681e7},{e:12564036e5,s:12382596e5},{e:1288458e6,s:12697092e5},!1,!1,!1,!1]},{name:"Asia/Yekaterinburg",rules:[{e:12249684e5,s:12068244e5},{e:1256418e6,s:1238274e6},{e:12884724e5,s:12697236e5},!1,!1,!1,!1]},{name:"Asia/Yerevan",rules:[{e:1224972e6,s:1206828e6},{e:12564216e5,s:12382776e5},{e:1288476e6,s:12697272e5},{e:13199256e5,s:13011768e5},!1,!1,!1]},{name:"Australia/Lord_Howe",rules:[{e:12074076e5,s:12231342e5},{e:12388572e5,s:12545838e5},{e:12703068e5,s:12860334e5},{e:13017564e5,s:1317483e6},{e:1333206e6,s:13495374e5},{e:13652604e5,s:1380987e6},{e:139671e7,s:14124366e5}]},{name:"Australia/Perth",rules:[{e:12068136e5,s:12249576e5},!1,!1,!1,!1,!1,!1]},{name:"Europe/Helsinki",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Europe/Minsk",rules:[{e:12249792e5,s:12068352e5},{e:12564288e5,s:12382848e5},{e:12884832e5,s:12697344e5},!1,!1,!1,!1]},{name:"Europe/Moscow",rules:[{e:12249756e5,s:12068316e5},{e:12564252e5,s:12382812e5},{e:12884796e5,s:12697308e5},!1,!1,!1,!1]},{name:"Pacific/Apia",rules:[!1,!1,!1,{e:13017528e5,s:13168728e5},{e:13332024e5,s:13489272e5},{e:13652568e5,s:13803768e5},{e:13967064e5,s:14118264e5}]},{name:"Pacific/Fiji",rules:[!1,!1,{e:12696984e5,s:12878424e5},{e:13271544e5,s:1319292e6},{e:1358604e6,s:13507416e5},{e:139005e7,s:1382796e6},{e:14215032e5,s:14148504e5}]},{name:"Europe/London",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Africa/Windhoek",rules:[{e:12207492e5,s:120744e7},{e:12521988e5,s:12388896e5},{e:12836484e5,s:12703392e5},{e:1315098e6,s:13017888e5},{e:13465476e5,s:13332384e5},{e:13779972e5,s:13652928e5},{e:14100516e5,s:13967424e5}]}]},void 0!==e.exports?e.exports=m:null!==r.amdD&&null!=r.amdO?void 0!==(o=(function(){return m}).apply(n,[]))&&(e.exports=o):window.jstz=m},51949:function(e,n,r){"use strict";function o(e){this.message=e}r.r(n),r.d(n,{InvalidTokenError:function(){return a}}),o.prototype=Error(),o.prototype.name="InvalidCharacterError";var i="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var n=String(e).replace(/=+$/,"");if(n.length%4==1)throw new o("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,a=0,l=0,u="";i=n.charAt(l++);~i&&(r=a%4?64*r+i:i,a++%4)&&(u+=String.fromCharCode(255&r>>(-2*a&6))))i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return u};function a(e){this.message=e}a.prototype=Error(),a.prototype.name="InvalidTokenError",n.default=function(e,n){if("string"!=typeof e)throw new a("Invalid token specified");var r=!0===(n=n||{}).header?0:1;try{return JSON.parse(function(e){var n,r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw"Illegal base64url string!"}
vendor: 11,446 bytes, line 1
1try{return n=r,decodeURIComponent(i(n).replace(/(.)/g,function(e,n){var r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return i(r)}}(e.split(".")[r]))}catch(e){throw new a("Invalid token specified: "+e.message)}}},72517:function(e){e.exports=function(e,n){for(var r=-1,o=null==e?0:e.length;++r<o&&!1!==n(e[r],r,e););return e}},81207:function(e){e.exports=function(e,n,r,o){var i=-1,a=null==e?0:e.length;for(o&&a&&(r=e[++i]);++i<a;)r=n(r,e[i],i,e);return r}},8589:function(e,n,r){var o=r(20256)("length");e.exports=o},50217:function(e){e.exports=function(e){return e.split("")}},45981:function(e){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(n)||[]}},60091:function(e,n,r){var o=r(13940),i=r(41225),a=Object.prototype.hasOwnProperty;e.exports=function(e,n,r){var l=e[n];a.call(e,n)&&i(l,r)&&(void 0!==r||n in e)||o(e,n,r)}},67993:function(e,n,r){var o=r(752),i=r(90249);e.exports=function(e,n){return e&&o(n,i(n),e)}},55906:function(e,n,r){var o=r(752),i=r(18582);e.exports=function(e,n){return e&&o(n,i(n),e)}},13940:function(e,n,r){var o=r(83043);e.exports=function(e,n,r){"__proto__"==n&&o?o(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}},14034:function(e){e.exports=function(e,n,r){return e==e&&(void 0!==r&&(e=e<=r?e:r),void 0!==n&&(e=e>=n?e:n)),e}},18874:function(e,n,r){var o=r(86571),i=r(72517),a=r(60091),l=r(67993),u=r(55906),s=r(92175),c=r(51522),f=r(7680),d=r(19987),p=r(13483),h=r(76939),m=r(70940),y=r(99917),v=r(8222),b=r(78725),g=r(86152),w=r(73226),k=r(4714),O=r(29259),_=r(43679),j=r(90249),P=r(18582),S="[object Arguments]",E="[object Function]",x="[object Object]",C={};C[S]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[x]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[E]=C["[object WeakMap]"]=!1,e.exports=function e(n,r,R,A,M,T){var D,I=1&r,L=2&r,V=4&r;if(R&&(D=M?R(n,A,M,T):R(n)),void 0!==D)return D;if(!O(n))return n;var N=g(n);if(N){if(D=y(n),!I)return c(n,D)}else{var F=m(n),U=F==E||"[object GeneratorFunction]"==F;if(w(n))return s(n,I);if(F==x||F==S||U&&!M){if(D=L||U?{}:b(n),!I)return L?d(n,u(D,n)):f(n,l(D,n))}else{if(!C[F])return M?n:{};D=v(n,F,I)}}T||(T=new o);var B=T.get(n);if(B)return B;T.set(n,D),_(n)?n.forEach(function(o){D.add(e(o,r,R,o,n,T))}):k(n)&&n.forEach(function(o,i){D.set(i,e(o,r,R,i,n,T))});var z=V?L?h:p:L?P:j,q=N?void 0:z(n);return i(q||n,function(o,i){q&&(o=n[i=o]),a(D,i,e(o,r,R,i,n,T))}),D}},26874:function(e){e.exports=function(e,n,r){var o=r.length;if(null==e)return!o;for(e=Object(e);o--;){var i=r[o],a=n[i],l=e[i];if(void 0===l&&!(i in e)||!a(l))return!1}return!0}},39413:function(e,n,r){var o=r(29259),i=Object.create,a=function(){function e(){}return function(n){if(!o(n))return{};if(i)return i(n);e.prototype=n;var r=new e;return e.prototype=void 0,r}}();e.exports=a},85246:function(e,n,r){var o=r(45386),i=r(38333),a=r(34893),l=r(50343),u=r(47826),s=r(59950);e.exports=function(e,n,r,c){var f=-1,d=i,p=!0,h=e.length,m=[],y=n.length;if(!h)return m;r&&(n=l(n,u(r))),c?(d=a,p=!1):n.length>=200&&(d=s,p=!1,n=new o(n));t:for(;++f<h;){var v=e[f],b=null==r?v:r(v);if(v=c||0!==v?v:0,p&&b==b){for(var g=y;g--;)if(n[g]===b)continue t;m.push(v)}else d(n,b,c)||m.push(v)}return m}},15308:function(e,n,r){var o=r(55463)();e.exports=o},26548:function(e,n,r){var o=r(15308),i=r(90249);e.exports=function(e,n){return e&&o(e,n,i)}},84134:function(e){e.exports=function(e,n){return e>n}},32726:function(e){var n=Object.prototype.hasOwnProperty;e.exports=function(e,r){return null!=e&&n.call(e,r)}},88390:function(e,n,r){var o=r(45386),i=r(38333),a=r(34893),l=r(50343),u=r(47826),s=r(59950),c=Math.min;e.exports=function(e,n,r){for(var f=r?a:i,d=e[0].length,p=e.length,h=p,m=Array(p),y=1/0,v=[];h--;){var b=e[h];h&&n&&(b=l(b,u(n))),y=c(b.length,y),m[h]=!r&&(n||d>=120&&b.length>=120)?new o(h&&b):void 0}b=e[0];var g=-1,w=m[0];t:for(;++g<d&&v.length<y;){var k=b[g],O=n?n(k):k;if(k=r||0!==k?k:0,!(w?s(w,O):f(v,O,r))){for(h=p;--h;){var _=m[h];if(!(_?s(_,O):f(e[h],O,r)))continue t}w&&w.push(O),v.push(k)}}return v}},5217:function(e,n,r){var o=r(53366),i=r(15125);e.exports=function(e){return i(e)&&"[object ArrayBuffer]"==o(e)}},72097:function(e,n,r){var o=r(53366),i=r(15125);e.exports=function(e){return i(e)&&"[object Date]"==o(e)}},74511:function(e,n,r){var o=r(70940),i=r(15125);e.exports=function(e){return i(e)&&"[object Map]"==o(e)}},24333:function(e,n,r){var o=r(53366),i=r(15125);e.exports=function(e){return i(e)&&"[object RegExp]"==o(e)}},8109:function(e,n,r){var o=r(70940),i=r(15125);e.exports=function(e){return i(e)&&"[object Set]"==o(e)}},18390:function(e,n,r){var o=r(29259),i=r(16001),a=r(62966),l=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return a(e);var n=i(e),r=[];for(var u in e)"constructor"==u&&(n||!l.call(e,u))||r.push(u);return r}},17606:function(e){e.exports=function(e,n){return e<n}},92602:function(e,n,r){var o=r(93759),i=r(95041);e.exports=function(e,n){return o(e,n,function(n,r){return i(e,r)})}},93759:function(e,n,r){var o=r(13324),i=r(82857),a=r(17297);e.exports=function(e,n,r){for(var l=-1,u=n.length,s={};++l<u;){var c=n[l],f=o(e,c);r(f,c)&&i(s,a(c,e),f)}return s}},6435:function(e){e.exports=function(e){return function(n){return null==e?void 0:e[n]}}},39310:function(e){var n=Math.floor;e.exports=function(e,r){var o="";if(!e||r<1||r>9007199254740991)return o;do r%2&&(o+=e),(r=n(r/2))&&(e+=e);while(r);return o}},82857:function(e,n,r){var o=r(60091),i=r(17297),a=r(39045),l=r(29259),u=r(33812);e.exports=function(e,n,r,s){if(!l(e))return e;n=i(n,e);for(var c=-1,f=n.length,d=f-1,p=e;null!=p&&++c<f;){var h=u(n[c]),m=r;if("__proto__"===h||"constructor"===h||"prototype"===h)break;if(c!=d){var y=p[h];void 0===(m=s?s(y,h,p):void 0)&&(m=l(y)?y:a(n[c+1])?[]:{})}o(p,h,m),p=p[h]}return e}},39872:function(e){e.exports=function(e,n,r){var o=-1,i=e.length;n<0&&(n=-n>i?0:i+n),(r=r>i?i:r)<0&&(r+=i),i=n>r?0:r-n>>>0,n>>>=0;for(var a=Array(i);++o<i;)a[o]=e[o+n];return a}},51704:function(e,n,r){var o=r(52153),i=/^\s+/;e.exports=function(e){return e?e.slice(0,o(e)+1).replace(i,""):e}},29078:function(e,n,r){var o=r(17297),i=r(56974),a=r(62721),l=r(33812);e.exports=function(e,n){return n=o(n,e),null==(e=a(e,n))||delete e[l(i(n))]}},50753:function(e,n,r){var o=r(50343);e.exports=function(e,n){return o(n,function(n){return e[n]})}},5642:function(e,n,r){var o=r(93746);e.exports=function(e){return o(e)?e:[]}},89419:function(e,n,r){var o=r(23059);e.exports=function(e){return"function"==typeof e?e:o}},23895:function(e,n,r){var o=r(39872);e.exports=function(e,n,r){var i=e.length;return r=void 0===r?i:r,!n&&r>=i?e:o(e,n,r)}},10768:function(e,n,r){var o=r(77832);e.exports=function(e,n){for(var r=e.length;r--&&o(n,e[r],0)>-1;);return r}},51821:function(e,n,r){var o=r(77832);e.exports=function(e,n){for(var r=-1,i=e.length;++r<i&&o(n,e[r],0)>-1;);return r}},79882:function(e,n,r){var o=r(79162);e.exports=function(e){var n=new e.constructor(e.byteLength);return new o(n).set(new o(e)),n}},92175:function(e,n,r){e=r.nmd(e);var o=r(37772),i=n&&!n.nodeType&&n,a=i&&e&&!e.nodeType&&e,l=a&&a.exports===i?o.Buffer:void 0,u=l?l.allocUnsafe:void 0;e.exports=function(e,n){if(n)return e.slice();var r=e.length,o=u?u(r):new e.constructor(r);return e.copy(o),o}},34727:function(e,n,r){var o=r(79882);e.exports=function(e,n){var r=n?o(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},96058:function(e){var n=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,n.exec(e));return r.lastIndex=e.lastIndex,r}},70169:function(e,n,r){var o=r(50857),i=o?o.prototype:void 0,a=i?i.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},6190:function(e,n,r){var o=r(79882);e.exports=function(e,n){var r=n?o(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},51522:function(e){e.exports=function(e,n){var r=-1,o=e.length;for(n||(n=Array(o));++r<o;)n[r]=e[r];return n}},752:function(e,n,r){var o=r(60091),i=r(13940);e.exports=function(e,n,r,a){var l=!r;r||(r={});for(var u=-1,s=n.length;++u<s;){var c=n[u],f=a?a(r[c],e[c],c,r,e):void 0;void 0===f&&(f=e[c]),l?i(r,c,f):o(r,c,f)}return r}},7680:function(e,n,r){var o=r(752),i=r(80633);e.exports=function(e,n){return o(e,i(e),n)}},19987:function(e,n,r){var o=r(752),i=r(12680);e.exports=function(e,n){return o(e,i(e),n)}},55463:function(e){e.exports=function(e){return function(n,r,o){for(var i=-1,a=Object(n),l=o(n),u=l.length;u--;){var s=l[e?u:++i];if(!1===r(a[s],s,a))break}return n}}},83126:function(e,n,r){var o=r(23895),i=r(33880),a=r(8435),l=r(66188);e.exports=function(e){return function(n){var r=i(n=l(n))?a(n):void 0,u=r?r[0]:n.charAt(0),s=r?o(r,1).join(""):n.slice(1);return u[e]()+s}}},34311:function(e,n,r){var o=r(81207),i=r(97329),a=r(11618),l=RegExp("['â]","g");e.exports=function(e){return function(n){return o(a(i(n).replace(l,"")),e,"")}}},4579:function(e,n,r){var o=r(39310),i=r(1054),a=r(23895),l=r(33880),u=r(82302),s=r(8435),c=Math.ceil;e.exports=function(e,n){var r=(n=void 0===n?" ":i(n)).length;if(r<2)return r?o(n,e):n;var f=o(n,c(e/u(n)));return l(n)?a(s(f),0,e).join(""):f.slice(0,e)}},45006:function(e,n,r){var o=r(7642);e.exports=function(e){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=o(n),r=o(r)),e(n,r)}}},67320:function(e,n,r){var o=r(37772),i=r(38101),a=r(7642),l=r(66188),u=o.isFinite,s=Math.min;e.exports=function(e){var n=Math[e];return function(e,r){if(e=a(e),(r=null==r?0:s(i(r),292))&&u(e)){var o=(l(e)+"e").split("e");return+((o=(l(n(o[0]+"e"+(+o[1]+r)))+"e").split("e"))[0]+"e"+(+o[1]-r))}return n(e)}}},48642:function(e,n,r){var o=r(97030);e.exports=function(e){return o(e)?void 0:e}},61655:function(e,n,r){var o=r(6435)({Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"});e.exports=o}
1,29097:function(e,n,r){var o=r(35676),i=r(43114),a=r(75251);e.exports=function(e){return a(i(e,void 0,o),e+"")}},76939:function(e,n,r){var o=r(1897),i=r(12680),a=r(18582);e.exports=function(e){return o(e,a,i)}},47353:function(e,n,r){var o=r(60241)(Object.getPrototypeOf,Object);e.exports=o},12680:function(e,n,r){var o=r(65067),i=r(47353),a=r(80633),l=r(30981),u=Object.getOwnPropertySymbols?function(e){for(var n=[];e;)o(n,a(e)),e=i(e);return n}:l;e.exports=u},33880:function(e){var n=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},83559:function(e){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return n.test(e)}},99917:function(e){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,o=new e.constructor(r);return r&&"string"==typeof e[0]&&n.call(e,"index")&&(o.index=e.index,o.input=e.input),o}},8222:function(e,n,r){var o=r(79882),i=r(34727),a=r(96058),l=r(70169),u=r(6190);e.exports=function(e,n,r){var s=e.constructor;switch(n){case"[object ArrayBuffer]":return o(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return i(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return u(e,r);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return a(e);case"[object Symbol]":return l(e)}}},78725:function(e,n,r){var o=r(39413),i=r(47353),a=r(16001);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:o(i(e))}},82406:function(e,n,r){var o=r(41225),i=r(67878),a=r(39045),l=r(29259);e.exports=function(e,n,r){if(!l(r))return!1;var u=typeof n;return("number"==u?!!(i(r)&&a(n,r.length)):"string"==u&&n in r)&&o(r[n],e)}},78265:function(e,n,r){var o=r(24019),i=r(61049),a=r(36330);e.exports=o?i:a},67271:function(e){e.exports=function(e){for(var n,r=[];!(n=e.next()).done;)r.push(n.value);return r}},62966:function(e){e.exports=function(e){var n=[];if(null!=e)for(var r in Object(e))n.push(r);return n}},62721:function(e,n,r){var o=r(13324),i=r(39872);e.exports=function(e,n){return n.length<2?e:o(e,i(n,0,-1))}},82302:function(e,n,r){var o=r(8589),i=r(33880),a=r(35555);e.exports=function(e){return i(e)?a(e):o(e)}},8435:function(e,n,r){var o=r(50217),i=r(33880),a=r(63344);e.exports=function(e){return i(e)?a(e):o(e)}},52153:function(e){var n=/\s/;e.exports=function(e){for(var r=e.length;r--&&n.test(e.charAt(r)););return r}},35555:function(e){var n="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\ud83c[\udffb-\udfff]",i="[^"+n+"]",a="(?:\ud83c[\udde6-\uddff]){2}",l="[\ud800-\udbff][\udc00-\udfff]",u="(?:"+r+"|"+o+")?",s="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[i,a,l].join("|")+")"+s+u+")*",f=RegExp(o+"(?="+o+")|(?:"+[i+r+"?",r,a,l,"["+n+"]"].join("|")+")"+(s+u+c),"g");e.exports=function(e){for(var n=f.lastIndex=0;f.test(e);)++n;return n}},63344:function(e){var n="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\ud83c[\udffb-\udfff]",i="[^"+n+"]",a="(?:\ud83c[\udde6-\uddff]){2}",l="[\ud800-\udbff][\udc00-\udfff]",u="(?:"+r+"|"+o+")?",s="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[i,a,l].join("|")+")"+s+u+")*",f=RegExp(o+"(?="+o+")|(?:"+[i+r+"?",r,a,l,"["+n+"]"].join("|")+")"+(s+u+c),"g");e.exports=function(e){return e.match(f)||[]}},75304:function(e){var n="\ud800-\udfff",r="\\u2700-\\u27bf",o="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",l="['â]",u="["+a+"]",s="["+o+"]",c="[^"+n+a+"\\d+"+r+o+i+"]",f="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",p="["+i+"]",h="(?:"+s+"|"+c+")",m="(?:"+l+"(?:d|ll|m|re|s|t|ve))?",y="(?:"+l+"(?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",b="[\\ufe0e\\ufe0f]?",g="(?:\\u200d(?:"+["[^"+n+"]",f,d].join("|")+")"+b+v+")*",w="(?:"+["["+r+"]",f,d].join("|")+")"+(b
1+v+g),k=RegExp([p+"?"+s+"+"+m+"(?="+[u,p,"$"].join("|")+")","(?:"+p+"|"+c+")+"+y+"(?="+[u,p+h,"$"].join("|")+")",p+"?"+h+"+"+m,p+"+"+y,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",w].join("|"),"g");e.exports=function(e){return e.match(k)||[]}},96009:function(e,n,r){var o=r(82108),i=r(34311)(function(e,n,r){return n=n.toLowerCase(),e+(r?o(n):n)});e.exports=i},82108:function(e,n,r){var o=r(66188),i=r(23779);e.exports=function(e){return i(o(e).toLowerCase())}},50866:function(e,n,r){var o=r(86152);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return o(e)?e:[e]}},93586:function(e,n,r){var o=r(39872),i=r(82406),a=r(38101),l=Math.ceil,u=Math.max;e.exports=function(e,n,r){n=(r?i(e,n,r):void 0===n)?1:u(a(n),0);var s=null==e?0:e.length;if(!s||n<1)return[];for(var c=0,f=0,d=Array(l(s/n));c<s;)d[f++]=o(e,c,c+=n);return d}},38696:function(e,n,r){var o=r(18874);e.exports=function(e){return o(e,4)}},9850:function(e,n,r){var o=r(18874);e.exports=function(e){return o(e,5)}},22061:function(e,n,r){var o=r(18874);e.exports=function(e,n){return o(e,5,n="function"==typeof n?n:void 0)}},2843:function(e,n,r){var o=r(18874);e.exports=function(e,n){return o(e,4,n="function"==typeof n?n:void 0)}},57585:function(e,n,r){var o=r(26874),i=r(90249);e.exports=function(e,n){return null==n||o(e,n,i(n))}},54073:function(e,n,r){var o=r(29259),i=r(61100),a=r(7642),l=Math.max,u=Math.min;e.exports=function(e,n,r){var s,c,f,d,p,h,m=0,y=!1,v=!1,b=!0;if("function"!=typeof e)throw TypeError("Expected a function");function g(n){var r=s,o=c;return s=c=void 0,m=n,d=e.apply(o,r)}function w(e){var r=e-h,o=e-m;return void 0===h||r>=n||r<0||v&&o>=f}function k(){var e,r,o,a=i();if(w(a))return O(a);p=setTimeout(k,(e=a-h,r=a-m,o=n-e,v?u(o,f-r):o))}function O(e){return(p=void 0,b&&s)?g(e):(s=c=void 0,d)}function _(){var e,r=i(),o=w(r);if(s=arguments,c=this,h=r,o){if(void 0===p)return m=e=h,p=setTimeout(k,n),y?g(e):d;if(v)return clearTimeout(p),p=setTimeout(k,n),g(h)}return void 0===p&&(p=setTimeout(k,n)),d}return n=a(n)||0,o(r)&&(y=!!r.leading,f=(v="maxWait"in r)?l(a(r.maxWait)||0,n):f,b="trailing"in r?!!r.trailing:b),_.cancel=function(){void 0!==p&&clearTimeout(p),m=0,s=h=c=p=void 0},_.flush=function(){return void 0===p?d:O(i())},_}},97329:function(e,n,r){var o=r(61655),i=r(66188),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
17f]/g,l=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(a,o).replace(l,"")}},84573:function(e,n,r){var o=r(36060),i=r(41225),a=r(82406),l=r(18582),u=Object.prototype,s=u.hasOwnProperty,c=o(function(e,n){e=Object(e);var r=-1,o=n.length,c=o>2?n[2]:void 0;for(c&&a(n[0],n[1],c)&&(o=1);++r<o;)for(var f=n[r],d=l(f),p=-1,h=d.length;++p<h;){var m=d[p],y=e[m];(void 0===y||i(y,u[m])&&!s.call(e,m))&&(e[m]=f[m])}return e});e.exports=c},17335:function(e,n,r){var o=r(85246),i=r(62034),a=r(36060),l=r(93746),u=a(function(e,n){return l(e)?o(e,i(n,1,l,!0)):[]});e.exports=u},35676:function(e,n,r){var o=r(62034);e.exports=function(e){return(null==e?0:e.length)?o(e,1):[]}},15253:function(e,n,r){var o=r(26548),i=r(89419);e.exports=function(e,n){return e&&o(e,i(n))}},95695:function(e,n,r){var o=r(84134),i=r(45006)(o);e.exports=i},66275:function(e,n,r){var o=r(45006)(function(e,n){return e>=n});e.exports=o},93352:function(e,n,r){var o=r(32726),i=r(1369);e.exports=function(e,n){return null!=e&&i(e,n,o)}},30898:function(e,n,r){var o=r(50343),i=r(88390),a=r(36060),l=r(5642),u=a(function(e){var n=o(e,l);return n.length&&n[0]===e[0]?i(n):[]});e.exports=u},14593:function(e,n,r){var o=r(5217),i=r(47826),a=r(4146),l=a&&a.isArrayBuffer,u=l?i(l):o;e.exports=u},4335:function(e,n,r){var o=r(53366),i=r(15125);e.exports=function(e){return!0===e||!1===e||i(e)&&"[object Boolean]"==o(e)}},17318:function(e,n,r){var o=r(72097),i=r(47826),a=r(4146),l=a&&a.isDate,u=l?i(l):o;e.exports=u},92301:function(e,n,r){var o=r(15125),i=r(97030);e.exports=function(e){return o(e)&&1===e.nodeType&&!i(e)}},45455:function(e,n,r){var o=r(86411),i=r(70940),a=r(79631),l=r(86152),u=r(67878),s=r(73226),c=r(16001),f=r(77598),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(u(e)&&(l(e)||"string"==typeof e||"function"==typeof e.splice||s(e)||f(e)||a(e)))return!e.length;var n=i(e);if("[object Map]"==n||"[object Set]"==n)return!e.size;if(c(e))return!o(e).length;for(var r in e)if(d.call(e,r))return!1;return!0}},18149:function(e,n,r){var o=r(88746);e.exports=function(e,n){return o(e,n)}},13383:function(e,n,r){var o=r(88746);e.exports=function(e,n,r){var i=(r="function"==typeof r?r:void 0)?r(e,n):void 0;return void 0===i?o(e,n,void 0,r):!!i}},85121:function(e,n,r){var o=r(53366),i=r(15125),a=r(97030);e.exports=function(e){if(!i(e))return!1;var n=o(e);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof e.message&&"string"==typeof e.name&&!
1a(e)}},19574:function(e,n,r){var o=r(37772).isFinite;e.exports=function(e){return"number"==typeof e&&o(e)}},73363:function(e,n,r){var o=r(38101);e.exports=function(e){return"number"==typeof e&&e==o(e)}},4714:function(e,n,r){var o=r(74511),i=r(47826),a=r(4146),l=a&&a.isMap,u=l?i(l):o;e.exports=u},61726:function(e,n,r){var o=r(37036),i=r(49882);e.exports=function(e,n){return e===n||o(e,n,i(n))}},55461:function(e,n,r){var o=r(37036),i=r(49882);e.exports=function(e,n,r){return r="function"==typeof r?r:void 0,o(e,n,i(n),r)}},16951:function(e,n,r){var o=r(80537);e.exports=function(e){return o(e)&&e!=+e}},95227:function(e,n,r){var o=r(6840),i=r(78265);e.exports=function(e){if(i(e))throw Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return o(e)}},1842:function(e){e.exports=function(e){return null==e}},25877:function(e){e.exports=function(e){return null===e}},80537:function(e,n,r){var o=r(53366),i=r(15125);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==o(e)}},97030:function(e,n,r){var o=r(53366),i=r(47353),a=r(15125),l=Object.prototype,u=Function.prototype.toString,s=l.hasOwnProperty,c=u.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=o(e))return!1;var n=i(e);if(null===n)return!0;var r=s.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==c}},40859:function(e,n,r){var o=r(24333),i=r(47826),a=r(4146),l=a&&a.isRegExp,u=l?i(l):o;e.exports=u},91456:function(e,n,r){var o=r(73363);e.exports=function(e){return o(e)&&e>=-9007199254740991&&e<=9007199254740991}},43679:function(e,n,r){var o=r(8109),i=r(47826),a=r(4146),l=a&&a.isSet,u=l?i(l):o;e.exports=u},85505:function(e,n,r){var o=r(53366),i=r(86152),a=r(15125);e.exports=function(e){return"string"==typeof e||!i(e)&&a(e)&&"[object String]"==o(e)}},84336:function(e){e.exports=function(e){return void 0===e}},8266:function(e,n,r){var o=r(70940),i=r(15125);e.exports=function(e){return i(e)&&"[object WeakMap]"==o(e)}},9922:function(e,n,r){var o=r(53366),i=r(15125);e.exports=function(e){return i(e)&&"[object WeakSet]"==o(e)}},18582:function(e,n,r){var o=r(1634),i=r(18390),a=r(67878);e.exports=function(e){return a(e)?o(e,!0):i(e)}},27609:function(e,n,r){e.exports={castArray:r(50866),clone:r(38696),cloneDeep:r(9850),cloneDeepWith:r(22061),cloneWith:r(2843),conformsTo:r(57585),eq:r(41225),gt:r(95695),gte:r(66275),isArguments:r(79631),isArray:r(86152),isArrayBuffer:r(14593),isArrayLike:r(67878),isArrayLikeObject:r(93746),isBoolean:r(4335),isBuffer:r(73226),isDate:r(17318),isElement:r(92301),isEmpty:r(45455),isEqual:r(18149),isEqualWith:r(13383),isError:r(85121),isFinite:r(19574),isFunction:r(61049),isInteger:r(73363),isLength:r(61158),isMap:r(4714),isMatch:r(61726),isMatchWith:r(55461),isNaN:r(16951),isNative:r(95227),isNil:r(1842),isNull:r(25877),isNumber:r(80537),isObject:r(29259),isObjectLike:r(15125),isPlainObject:r(97030),isRegExp:r(40859),isSafeInteger:r(91456),isSet:r(43679),isString:r(85505),isSymbol:r(4795),isTypedArray:r(77598),isUndefined:r(84336),isWeakMap:r(8266),isWeakSet:r(9922),lt:r(26834),lte:r(79679),toArray:r(7667),toFinite:r(5707),toInteger:r(38101),toLength:r(26381),toNumber:r(7642),toPlainObject:r(63329),toSafeInteger:r(15903),toString:r(66188)}},26834:function(e,n,r){var o=r(17606),i=r(45006)(o);e.exports=i},79679:function(e,n,r){var o=r(45006)(function(e,n){return e<=n});e.exports=o},61100:function(e,n,r){var o=r(37772);e.exports=function(){return o.Date.now()}},17620:function(e,n,r){var o=r(50343),i=r(18874),a=r(29078),l=r(17297),u=r(752),s=r(48642),c=r(29097),f=r(76939),d=c(function(e,n){var r={};if(null==e)return r;var c=!1;n=o(n,function(n){return n=l(n,e),c||(c=n.length>1),n}),u(e,f(e),r),c&&(r=i(r,7,s));for(var d=n.length;d--;)a(r,n[d]);return r});e.exports=d},68804:function(e,n,r){var o=r(4579),i=r(82302),a=r(38101),l=r(66188),u=Math.ceil,s=Math.floor;e.exports=function(e,n,r){e=l(e);var c=(n=a(n))?i(e):0;if(!n||c>=n)return e;var f=(n-c)/2;return o(s(f),r)+e+o(u(f),r)}},13888:function(e,n,r){var o=r(92602),i=r(29097)(function(e,n){return null==e?{}
1:o(e,n)});e.exports=i},68015:function(e,n,r){var o=r(67320)("round");e.exports=o},16765:function(e,n,r){var o=r(82857);e.exports=function(e,n,r){return null==e?e:o(e,n,r)}},7667:function(e,n,r){var o=r(50857),i=r(51522),a=r(70940),l=r(67878),u=r(85505),s=r(67271),c=r(75179),f=r(16909),d=r(8435),p=r(98346),h=o?o.iterator:void 0;e.exports=function(e){if(!e)return[];if(l(e))return u(e)?d(e):i(e);if(h&&e[h])return s(e[h]());var n=a(e);return("[object Map]"==n?c:"[object Set]"==n?f:p)(e)}},5707:function(e,n,r){var o=r(7642),i=1/0;e.exports=function(e){return e?(e=o(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},38101:function(e,n,r){var o=r(5707);e.exports=function(e){var n=o(e),r=n%1;return n==n?r?n-r:n:0}},26381:function(e,n,r){var o=r(14034),i=r(38101);e.exports=function(e){return e?o(i(e),0,4294967295):0}},7642:function(e,n,r){var o=r(51704),i=r(29259),a=r(4795),l=0/0,u=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return l;if(i(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=i(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=o(e);var r=s.test(e);return r||c.test(e)?f(e.slice(2),r?2:8):u.test(e)?l:+e}},63329:function(e,n,r){var o=r(752),i=r(18582);e.exports=function(e){return o(e,i(e))}},15903:function(e,n,r){var o=r(14034),i=r(38101);e.exports=function(e){return e?o(i(e),-9007199254740991,9007199254740991):0===e?e:0}},5648:function(e,n,r){var o=r(1054),i=r(51704),a=r(23895),l=r(10768),u=r(51821),s=r(8435),c=r(66188);e.exports=function(e,n,r){if((e=c(e))&&(r||void 0===n))return i(e);if(!e||!(n=o(n)))return e;var f=s(e),d=s(n),p=u(f,d),h=l(f,d)+1;return a(f,p,h).join("")}},23779:function(e,n,r){var o=r(83126)("toUpperCase");e.exports=o},98346:function(e,n,r){var o=r(50753),i=r(90249);e.exports=function(e){return null==e?[]:o(e,i(e))}},11618:function(e,n,r){var o=r(45981),i=r(83559),a=r(66188),l=r(75304);e.exports=function(e,n,r){return(e=a(e),void 0===(n=r?void 0:n))?i(e)?l(e):o(e):e.match(n)||[]}},72428:function(e,n,r){var o,i,a;a=function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var n,r,o={},i={},a={},l={},u={};e&&"string"==typeof e.version||E("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var s=e.version.split("."),c=+s[0],f=+s[1];function d(e){return e>96?e-87:e>64?e-29:e-48}function p(e){var n,r=0,o=e.split("."),i=o[0],a=o[1]||"",l=1,u=0,s=1;for(45===e.charCodeAt(0)&&(r=1,s=-1);r<i.length;r++)u=60*u+(n=d(i.charCodeAt(r)));for(r=0;r<a.length;r++)l/=60,u+=(n=d(a.charCodeAt(r)))*l;return u*s}function h(e){for(var n=0;n<e.length;n++)e[n]=p(e[n])}function m(e,n){var r,o=[];for(r=0;r<n.length;r++)o[r]=e[n[r]];return o}function y(e){var n=e.split("|"),r=n[2].split(" "),o=n[3].split(""),i=n[4].split(" ");return h(r),h(o),h(i),function(e,n){for(var r=0;r<n;r++)e[r]=Math.round((e[r-1]||0)+6e4*e[r]);e[n-1]=1/0}(i,o.length),{name:n[0],abbrs:m(n[1].split(" "),o),offsets:m(r,o),untils:i,population:0|n[5]}}function v(e){e&&this._set(y(e))}function b(e,n){this.name=e,this.zones=n}function g(e){var n=e.toTimeString(),r=n.match(/\([a-z ]+\)/i);"GMT"===(r=r&&r[0]?(r=r[0].match(/[A-Z]/g))?r.join(""):void 0:(r=n.match(/[A-Z]{3,5}/g))?r[0]:void 0)&&(r=void 0),this.at=+e,this.abbr=r,this.offset=e.getTimezoneOffset()}function w(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function k(e,n){return e.offsetScore!==n.offsetScore?e.offsetScore-n.offsetScore:e.abbrScore!==n.abbrScore?e.abbrScore-n.abbrScore:e.zone.population!==n.zone.population?n.zone.population-e.zone.population:n.zone.name.localeCompare(e.zone.name)}function O(e){return(e||"").toLowerCase().replace(/\//g,"_")}function _(e){var n,r,i,a;for("string"==typeof e&&(e=[e]),n=0;n<e.length;n++)o[a=O(r=(i=e[n].split("|"))[0])]=e[n],l[a]=r,function(e,n){var r,o;for(h(n),r=0;r<n.length;r++)u[o=n[r]]=u[o]||{},u[o][e]=!0}(a,i[2].split(" "))}function j(e,n){var r,a=o[e=O(e)];return a instanceof v?a:"string"==typeof a?(a=new v(a),o[e]=a,a):i[e]&&n!==j&&(r=j(i[e],j))?((a=o[e]=new v)._set(r),a.name=l[e],a):null}function P(e){var n,r,o,a;for("string"==typeof e&&(e=[e]),n=0;n<e.length;n++)o=O((r=e[n].split("|"))[0]),a=O(r[1]),i[o]=a,l[o]=r[0],i[a]=o,l[a]=r[1]}function S(e){var n="X"===e._f||"x"===e._f;return!!(e._a&&void 0===e._tzm&&!n)}function E(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}function x(n){var r=Array.prototype.slice.call(arguments,0,-1),o=arguments[arguments.length-1],i=j(o),a=e.utc.apply(null,r);return i&&!e.isMoment(n)&&S(a)&&a.add(i.parse(a),"minutes"),a.tz(o),a}(c<2||2===c&&f<6)&&E("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),v.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var n,r=+e,o=this.untils;for(n=0;n<o.length;
1n++)if(r<o[n])return n},countries:function(){var e=this.name;return Object.keys(a).filter(function(n){return -1!==a[n].zones.indexOf(e)})},parse:function(e){var n,r,o,i,a=+e,l=this.offsets,u=this.untils,s=u.length-1;for(i=0;i<s;i++)if(n=l[i],r=l[i+1],o=l[i?i-1:i],n<r&&x.moveAmbiguousForward?n=r:n>o&&x.moveInvalidForward&&(n=o),a<u[i]-6e4*n)return l[i];return l[s]},abbr:function(e){return this.abbrs[this._index(e)]},offset:function(e){return E("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(e)]},utcOffset:function(e){return this.offsets[this._index(e)]}},w.prototype.scoreOffsetAt=function(e){this.offsetScore+=Math.abs(this.zone.utcOffset(e.at)-e.offset),this.zone.abbr(e.at).replace(/[^A-Z]/g,"")!==e.abbr&&this.abbrScore++},x.version="0.5.43",x.dataVersion="",x._zones=o,x._links=i,x._names=l,x._countries=a,x.add=_,x.link=P,x.load=function(e){_(e.zones),P(e.links),function(e){var n,r,o,i;if(e&&e.length)for(n=0;n<e.length;n++)r=(i=e[n].split("|"))[0].toUpperCase(),o=i[1].split(" "),a[r]=new b(r,o)}(e.countries),x.dataVersion=e.version},x.zone=j,x.zoneExists=function e(n){return e.didShowError||(e.didShowError=!0,E("moment.tz.zoneExists('"+n+"') has been deprecated in favor of !moment.tz.zone('"+n+"')")),!!j(n)},x.guess=function(e){return(!r||e)&&(r=function(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&e.length>3){var n=l[O(e)];if(n)return n;E("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var r,o,i,a=function(){var e,n,r,o=new Date().getFullYear()-2,i=new g(new Date(o,0,1)),a=[i];for(r=1;r<48;r++)(n=new g(new Date(o,r,1))).offset!==i.offset&&(a.push(e=function(e,n){for(var r,o;o=((n.at-e.at)/12e4|0)*6e4;)(r=new g(new Date(e.at+o))).offset===e.offset?e=r:n=r;return e}(i,n)),a.push(new g(new Date(e.at+6e4)))),i=n;for(r=0;r<4;r++)a.push(new g(new Date(o+r,0,1))),a.push(new g(new Date(o+r,6,1)));return a}(),s=a.length,c=function(e){var n,r,o,i=e.length,a={},s=[];for(n=0;n<i;n++)for(r in o=u[e[n].offset]||{})o.hasOwnProperty(r)&&(a[r]=!0);for(n in a)a.hasOwnProperty(n)&&s.push(l[n]);return s}(a),f=[];for(o=0;o<c.length;o++){for(i=0,r=new w(j(c[o]),s);i<s;i++)r.scoreOffsetAt(a[i]);f.push(r)}return f.sort(k),f.length>0?f[0].zone.name:void 0}()),r},x.names=function(){var e,n=[];for(e in l)l.hasOwnProperty(e)&&(o[e]||o[i[e]])&&l[e]&&n.push(l[e]);return n.sort()},x.Zone=v,x.unpack=y,x.unpackBase60=p,x.needsOffset=S,x.moveInvalidForward=!0,x.moveAmbiguousForward=!1,x.countries=function(){return Object.keys(a)},x.zonesForCountry=function(e,n){if(!(e=a[e.toUpperCase()]||null))return null;var r=e.zones.sort();return n?r.map(function(e){var n=j(e);return{name:e,offset:n.utcOffset(new Date)}}):r};var C=e.fn;function R(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function A(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=x,e.defaultZone=null,e.updateOffset=function(n,r){var o,i=e.defaultZone;if(void 0===n._z&&(i&&S(n)&&!n._isUTC&&(n._d=e.utc(n._a)._d,n.utc().add(i.parse(n),"minutes")),n._z=i),n._z){if(16>Math.abs(o=n._z.utcOffset(n))&&(o/=60),void 0!==n.utcOffset){var a=n._z;n.utcOffset(-o,r),n._z=a}else n.zone(o,r)}},C.tz=function(n,r){if(n){if("string"!=typeof n)throw Error("Time zone name must be a string, got "+n+" ["+typeof n+"]");return this._z=j(n),this._z?e.updateOffset(this,r):E("Moment Timezone has no data for "+n+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},C.zoneName=R(C.zoneName),C.zoneAbbr=R(C.zoneAbbr),C.utc=A(C.utc),C.local=A(C.local),C.utcOffset=(n=C.utcOffset,function(){return arguments.length>0&&(this._z=null),n.apply(this,arguments)}),e.tz.setDefault=function(n){return(c<2||2===c&&f<9)&&E("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=n?j(n):null,e};var M=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(M)?(M.push("_z"),M.push("_a")):M&&(M._z=null),e},e.exports?e.exports=a(r(62584)):(o=[r(62584)],void 0===(i=a.apply(n,o))||(e.exports=i))},18947:function(e,n,r){var o,i,a,l;i="Promise",a=void 0!==r.g?r.g:this,l=function(){"use strict";var e,n,r,o=Object.prototype.toString,i="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,n,r,o){return Object.defineProperty(e,n,{value:r,writable:!0,configurable:!1!==o})}}catch(n){e=function(e,n,r){return e[n]=r,e}}function a(e,o){r.add(e,o),n||(n=i(r.drain))}function l(e){var n,r=typeof e;return null!=e&&("object"==r||"function"==r)&&(n=e.then),"function"==typeof n&&n}function u(){for(var e=0;e<this.chain.length;e++)(function(e,n,r){var o,i;try{!1===n?r.reject(e.msg):(o=!0===n?e.msg:n.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=l(o))?i.call(o,r.resolve,r.reject):r.resolve(o)}catch(e){r.reject(e)}})(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function s(e){var n,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(n=l(e))?a(function(){var o=new d(r);try{n.call(e,function(){s.apply(o,arguments)},function(){c.apply(o,arguments)})}catch(e){c.call(o,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&a(u,r))}catch(e){c.call(new d(r),e)}}}function c(e){var n=this;!n.triggered&&(n.triggered=!0,n.def&&(n=n.def),n.msg=e,n.state=2,n.chain.length>
10&&a(u,n))}function f(e,n,r,o){for(var i=0;i<n.length;i++)!function(i){e.resolve(n[i]).then(function(e){r(i,e)},o)}(i)}function d(e){this.def=e,this.triggered=!1}function p(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function h(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var n=new p(this);this.then=function(e,r){var o={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return o.promise=new this.constructor(function(e,n){if("function"!=typeof e||"function"!=typeof n)throw TypeError("Not a function");o.resolve=e,o.reject=n}),n.chain.push(o),0!==n.state&&a(u,n),o.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){s.call(n,e)},function(e){c.call(n,e)})}catch(e){c.call(n,e)}}r=function(){var e,r,o;function i(e,n){this.fn=e,this.self=n,this.next=void 0}return{add:function(n,a){o=new i(n,a),r?r.next=o:e=o,r=o,o=void 0},drain:function(){var o=e;for(e=r=n=void 0;o;)o.fn.call(o.self),o=o.next}}}();var m=e({},"constructor",h,!1);return h.prototype=m,e(m,"__NPO__",0,!1),e(h,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");n(e)})}),e(h,"reject",function(e){return new this(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),e(h,"all",function(e){var n=this;return"[object Array]"!=o.call(e)?n.reject(TypeError("Not an array")):0===e.length?n.resolve([]):new n(function(r,o){if("function"!=typeof r||"function"!=typeof o)throw TypeError("Not a function");var i=e.length,a=Array(i),l=0;f(n,e,function(e,n){a[e]=n,++l===i&&r(a)},o)})}),e(h,"race",function(e){var n=this;return"[object Array]"!=o.call(e)?n.reject(TypeError("Not an array")):new n(function(r,o){if("function"!=typeof r||"function"!=typeof o)throw TypeError("Not a function");f(n,e,function(e,n){r(n)},o)})}),h},a[i]=a[i]||l(),e.exports?e.exports=a[i]:void 0===(o=(function(){return a[i]}).call(n,r,n,e))||(e.exports=o)},97209:function(e,n,r){"use strict";r.r(n);var o=function(){if("undefined"!=typeof Map)return Map;function e(e,n){var r=-1;return e.some(function(e,o){return e[0]===n&&(r=o,!0)}),r}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},n.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},n.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},n.prototype.has=function(n){return!!~e(this.__entries__,n)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(e,n){void 0===n&&(n=null);for(var r=0,o=this.__entries__;r<o.length;r++){var i=o[r];e.call(n,i[1],i[0])}},n}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,a=void 0!==r.g&&r.g.Math===Math?r.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),l="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(a):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},u=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,n){var r=!1,o=!1,i=0;function a(){r&&(r=!1,e()),o&&s()}function u(){l(a)}function s(){var e=Date.now();if(r){if(e-i<2)return;o=!0}else r=!0,o=!1,setTimeout(u,20);i=e}return s}(this.refresh.bind(this),0)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var n=this.observers_,r=n.indexOf(e);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=void 0===n?"":n;u.some(function(e){return!!~r.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=ne
1w e),this.instance_},e.instance_=null,e}(),f=function(e,n){for(var r=0,o=Object.keys(n);r<o.length;r++){var i=o[r];Object.defineProperty(e,i,{value:n[i],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||a},p=v(0,0,0,0);function h(e){return parseFloat(e)||0}function m(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return n.reduce(function(n,r){return n+h(e["border-"+r+"-width"])},0)}var y="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function v(e,n,r,o){return{x:e,y:n,width:r,height:o}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=function(e){if(!i)return p;if(y(e)){var n;return v(0,0,(n=e.getBBox()).width,n.height)}return function(e){var n=e.clientWidth,r=e.clientHeight;if(!n&&!r)return p;var o=d(e).getComputedStyle(e),i=function(e){for(var n={},r=0,o=["top","right","bottom","left"];r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=h(a)}return n}(o),a=i.left+i.right,l=i.top+i.bottom,u=h(o.width),s=h(o.height);if("border-box"===o.boxSizing&&(Math.round(u+a)!==n&&(u-=m(o,"left","right")+a),Math.round(s+l)!==r&&(s-=m(o,"top","bottom")+l)),e!==d(e).document.documentElement){var c=Math.round(u+a)-n,f=Math.round(s+l)-r;1!==Math.abs(c)&&(u-=c),1!==Math.abs(f)&&(s-=f)}return v(i.left,i.top,u,s)}(e)}(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),g=function(e,n){var r,o,i,a,l,u=(r=n.x,o=n.y,i=n.width,a=n.height,f(l=Object.create(("undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),l);f(this,{target:e,contentRect:u})},w=function(){function e(e,n,r){if(this.activeObservations_=[],this.observations_=new o,"function"!=typeof e)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(e){return new g(e.target,e.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),k="undefined"!=typeof WeakMap?new WeakMap:new o,O=function e(n){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var r=new w(n,c.getInstance(),this);k.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){O.prototype[e]=function(){var n;return(n=k.get(this))[e].apply(n,arguments)}});var _=void 0!==a.ResizeObserver?a.ResizeObserver:O;n.default=_},54700:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return l}});class o{constructor(e,n,r,o){if(isNaN(e)||isNaN(n))throw Error(`Point is invali
1d: (${e}, ${n})`);this.x=+e,this.y=+n,this.pressure=r||0,this.time=o||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class i{constructor(e,n,r,o,i,a){this.startPoint=e,this.control2=n,this.control1=r,this.endPoint=o,this.startWidth=i,this.endWidth=a}static fromPoints(e,n){let r=this.calculateControlPoints(e[0],e[1],e[2]).c2,o=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new i(e[1],r,o,e[2],n.start,n.end)}static calculateControlPoints(e,n,r){let i=e.x-n.x,a=e.y-n.y,l=n.x-r.x,u=n.y-r.y,s={x:(e.x+n.x)/2,y:(e.y+n.y)/2},c={x:(n.x+r.x)/2,y:(n.y+r.y)/2},f=Math.sqrt(i*i+a*a),d=Math.sqrt(l*l+u*u),p=s.x-c.x,h=s.y-c.y,m=d/(f+d),y={x:c.x+p*m,y:c.y+h*m},v=n.x-y.x,b=n.y-y.y;return{c1:new o(s.x+v,s.y+b),c2:new o(c.x+v,c.y+b)}}length(){let e,n;let r=0;for(let o=0;o<=10;o+=1){let i=o/10,a=this.point(i,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),l=this.point(i,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){let o=a-e,i=l-n;r+=Math.sqrt(o*o+i*i)}e=a,n=l}return r}point(e,n,r,o,i){return n*(1-e)*(1-e)*(1-e)+3*r*(1-e)*(1-e)*e+3*o*(1-e)*e*e+i*e*e*e}}class a{constructor(){try{this._et=new EventTarget}catch(e){this._et=document}}addEventListener(e,n,r){this._et.addEventListener(e,n,r)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,n,r){this._et.removeEventListener(e,n,r)}}class l extends a{constructor(e,n={}){super(),this.canvas=e,this._drawningStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=e=>{1===e.buttons&&(this._drawningStroke=!0,this._strokeBegin(e))},this._handleMouseMove=e=>{this._drawningStroke&&this._strokeMoveUpdate(e)},this._handleMouseUp=e=>{1===e.buttons&&this._drawningStroke&&(this._drawningStroke=!1,this._strokeEnd(e))},this._handleTouchStart=e=>{if(e.cancelable&&e.preventDefault(),1===e.targetTouches.length){let n=e.changedTouches[0];this._strokeBegin(n)}},this._handleTouchMove=e=>{e.cancelable&&e.preventDefault();let n=e.targetTouches[0];this._strokeMoveUpdate(n)},this._handleTouchEnd=e=>{if(e.target===this.canvas){e.cancelable&&e.preventDefault();let n=e.changedTouches[0];this._strokeEnd(n)}},this._handlePointerStart=e=>{this._drawningStroke=!0,e.preventDefault(),this._strokeBegin(e)},this._handlePointerMove=e=>{this._drawningStroke&&(e.preventDefault(),this._strokeMoveUpdate(e))},this._handlePointerEnd=e=>{this._drawningStroke&&(e.preventDefault(),this._drawningStroke=!1,this._strokeEnd(e))},this.velocityFilterWeight=n.velocityFilterWeight||.7,this.minWidth=n.minWidth||.5,this.maxWidth=n.maxWidth||2.5,this.throttle="throttle"in n?n.throttle:16,this.minDistance="minDistance"in n?n.minDistance:5,this.dotSize=n.dotSize||0,this.penColor=n.penColor||"black",this.backgroundColor=n.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=n.compositeOperation||"source-over",this._strokeMoveUpdate=this.throttle?function(e,n=250){let r,o,i,a=0,l=null,u=()=>{a=Date.now(),l=null,r=e.apply(o,i),l||(o=null,i=[])};return function(...s){let c=Date.now(),f=n-(c-a);return o=this,i=s,f<=0||f>n?(l&&(clearTimeout(l),l=null),a=c,r=e.apply(o,i),l||(o=null,i=[])):l||(l=window.setTimeout(u,f)),r}}(l.prototype._strokeUpdate,this.throttle):l.prototype._strokeUpdate,this._ctx=e.getContext("2d"),this.clear(),this.on()}clear(){let{_ctx:e,canvas:n}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,n.width,n.height),e.fillRect(0,0,n.width,n.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(e,n={}){return new Promise((r,o)=>{let i=new Image,a=n.ratio||window.devicePixelRatio||1,l=n.width||this.canvas.width/a,u=n.height||this.canvas.height/a,s=n.xOffset||0,c=n.yOffset||0;this._reset(this._getPointGroupOptions()),i.onload=()=>{this._ctx.drawImage(i,s,c,l,u),r()},i.onerror=e=>{o(e)},i.crossOrigin="anonymous",i.src=e,this._isEmpty=!1})}toDataURL(e="image/png",n){return"image/svg+xml"===e?("object"!=typeof n&&(n=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(n))}`):("number"!=typeof n&&(n=void 0),this.canvas.toDataURL(e,n))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";let e=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!e?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e,{clear:n=!0}={}){n&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(e)}toData(){return this._data}_getPointGroupOptions(e){return{penColor:e&&"penColor"in e?e.penColor:this.penColor,dotSize:e&&"dotSize"in e?e.dotSize:this.dotSize,minWidth:e&&"minWidth"in e?e.minWidth:this.minWidth,maxWidth:e&&"maxWidth"in e?e.maxWidth:this.maxWidth,velocityFilterWeight:e&&"velocityFilterWeight"in e?e.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:e&&"compositeOperation"in e?e.compositeOperation:this.compositeOperation}}_strokeBegin(e){this.dispatchEvent(new CustomEvent("beginStroke",{detail:e}));let n=this._getPointGroupOptions(),r=Object.assign(Object.assign({},n),{points:[]});this._data.push(r),this._reset(n),this._strokeUpdate(e)}_strokeUpdate(e){if(0===this._data.length){this._strokeBegin(e);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:e}));let n=e.clientX,r=e.clientY,o=void 0!==e.pressure?e.pressure:void 0!==e.force?e.force:0,i=this._createPoint(n,r,o),a=this._data[this._data.length-1],l=a.points,u=l.length>0&&l[l.length-1],s=!!u&&i.distanceTo(u)<=this.minDistance,c=this._getPointGroupOptions(a);if(!u||!(u&&s)){let e=this._addPoint(i,c);u?e&&this._drawCurve(e,c):this._drawDot(i,c),l.push({time:i.time,x:i.x,y:i.y,pressure:i.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:e}))}_strokeEnd(e){this._strokeUpdate(e),this.dispatchEvent(new CustomEvent("endStroke",{detail:e}))}_handlePointerEvents(){this._drawningStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawningStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(e){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(e.minWidth+e.maxWidth)/2,this._ctx.fillStyle=e.penColor,this._ctx.globalCompositeOperation=e.compositeOperation}_createPoint(e,n,r){let i=this.canvas.getBoundingClientRect();return new o(e-i.left,n-i.top,r,new Date().getTime())}_addPoint(e,n){let{_lastPoints:r}=this;if(r.push(e),r.length>2){3===r.length&&r.unshift(r[0]);let e=this._calculateCurveWidths(r[1],r[2],n),o=i.fromPoints(r,e);return r.shift(),o}return null}_calculateCurveWidths(e,n,r){let o=r.velocityFilterWeight*n.velocityFrom(e)+(1-r.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(o,r),a={end:i,start:this._lastWidth};return this._lastVelocity=o,this._lastWidth=i,a}_strokeWidth(e,n){return Math.max(n.maxWidth/(e+1),n.minWidth)}_drawCurveSegment(e,n,r){let o=this._ctx;o.moveTo(e,n),o.arc(e,n,r,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(e,n){let r=this._ctx,o=e.endWidth-e.startWidth,i=2*Math.ceil(e.length());r.beginPath(),r.fillStyle=n.penColor;for(let r=0;r<i;r+=1){let a=r/i,l=a*a,u=l*a,s=1-a,c=s*s,f=c*s,d=f*e.startPoint.x;d+=3*c*a*e.control1.x+3*s*l*e.control2.x+u*e.endPoint.x;let p=f*e.startPoint.y;p+=3*c*a*e.control1.y+3*s*l*e.control2.y+u*e.endPoint.y;let h=Math.min(e.startWidth+u*o,n.maxWidth);this._drawCurveSegment(d,p,h)}r.closePath(),r.fill()}_drawDot(e,n){let r=this._ctx,o=n.dotSize>0?n.dotSize:(n.minWidth+n.maxWidth)/2;r.beginPath(),this._drawCurveSegment(e.x,e.y,o),r.closePath(),r.fillStyle=n.penColor,r.fill()}_fromData(e,n,r){for(let i of e){let{points:e}=i,a=this._getPointGroupOptions(i);if(e.length>1)for(let r=0;r<e.length;r+=1){let i=e[r],l=new o(i.x,i.y,i.pressure,i.time);0===r&&this._reset(a);let u=this._addPoint(l,a);u&&n(u,a)}else this._reset(a),r(e[0],a)}}
1toSVG({includeBackgroundColor:e=!1}={}){let n=this._data,r=Math.max(window.devicePixelRatio||1,1),o=this.canvas.width/r,i=this.canvas.height/r,a=document.createElementNS("http://www.w3.org/2000/svg","svg");if(a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),a.setAttribute("viewBox",`0 0 ${o} ${i}`),a.setAttribute("width",o.toString()),a.setAttribute("height",i.toString()),e&&this.backgroundColor){let e=document.createElement("rect");e.setAttribute("width","100%"),e.setAttribute("height","100%"),e.setAttribute("fill",this.backgroundColor),a.appendChild(e)}return this._fromData(n,(e,{penColor:n})=>{let r=document.createElement("path");if(!isNaN(e.control1.x)&&!isNaN(e.control1.y)&&!isNaN(e.control2.x)&&!isNaN(e.control2.y)){let o=`M ${e.startPoint.x.toFixed(3)},${e.startPoint.y.toFixed(3)} C ${e.control1.x.toFixed(3)},${e.control1.y.toFixed(3)} ${e.control2.x.toFixed(3)},${e.control2.y.toFixed(3)} ${e.endPoint.x.toFixed(3)},${e.endPoint.y.toFixed(3)}`;r.setAttribute("d",o),r.setAttribute("stroke-width",(2.25*e.endWidth).toFixed(3)),r.setAttribute("stroke",n),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),a.appendChild(r)}},(e,{penColor:n,dotSize:r,minWidth:o,maxWidth:i})=>{let l=document.createElement("circle");l.setAttribute("r",(r>0?r:(o+i)/2).toString()),l.setAttribute("cx",e.x.toString()),l.setAttribute("cy",e.y.toString()),l.setAttribute("fill",n),a.appendChild(l)}),a.outerHTML}}},9839:function(e){"use strict";e.exports=function(e){for(var n=5381,r=e.length;r;)n=33*n^e.charCodeAt(--r);return n>>>0}},62323:function(e,n,r){"use strict";function o(e){if(null==e)return window;if("[object Window]"!==e.toString()){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function i(e){var n=o(e).Element;return e instanceof n||e instanceof Element}function a(e){var n=o(e).HTMLElement;return e instanceof n||e instanceof HTMLElement}function l(e){if("undefined"==typeof ShadowRoot)return!1;var n=o(e).ShadowRoot;return e instanceof n||e instanceof ShadowRoot}r.r(n),r.d(n,{animateFill:function(){return e7},createSingleton:function(){return e3},default:function(){return tl},delegate:function(){return e8},followCursor:function(){return tr},hideAll:function(){return e6},inlinePositioning:function(){return to},roundArrow:function(){return ep},sticky:function(){return ti}});var u,s,c,f,d,p=Math.max,h=Math.min,m=Math.round;function y(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function v(){return!/^((?!chrome|android).)*safari/i.test(y())}function b(e,n,r){void 0===n&&(n=!1),void 0===r&&(r=!1);var l=e.getBoundingClientRect(),u=1,s=1;n&&a(e)&&(u=e.offsetWidth>0&&m(l.width)/e.offsetWidth||1,s=e.offsetHeight>0&&m(l.height)/e.offsetHeight||1);var c=(i(e)?o(e):window).visualViewport,f=!v()&&r,d=(l.left+(f&&c?c.offsetLeft:0))/u,p=(l.top+(f&&c?c.offsetTop:0))/s,h=l.width/u,y=l.height/s;return{width:h,height:y,top:p,right:d+h,bottom:p+y,left:d,x:d,y:p}}function g(e){var n=o(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function w(e){return e?(e.nodeName||"").toLowerCase():null}function k(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function O(e){return b(k(e)).left+g(e).scrollLeft}function _(e){return o(e).getComputedStyle(e)}function j(e){var n=_(e),r=n.overflow,o=n.overflowX,i=n.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+o)}function P(e){var n=b(e),r=e.offsetWidth,o=e.offsetHeight;return 1>=Math.abs(n.width-r)&&(r=n.width),1>=Math.abs(n.height-o)&&(o=n.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function S(e){return"html"===w(e)?e:e.assignedSlot||e.parentNode||(l(e)?e.host:null)||k(e)}function E(e,n){void 0===n&&(n=[]);var r,i=function e(n){return["html","body","#document"].indexOf(w(n))>=0?n.ownerDocument.body:a(n)&&j(n)?n:e(S(n))}(e),l=i===(null==(r=e.ownerDocument)?void 0:r.body),u=o(i),s=l?[u].concat(u.visualViewport||[],j(i)?i:[]):i,c=n.concat(s);return l?c:c.concat(E(S(s)))}function x(e){return a(e)&&"fixed"!==_(e).position?e.offsetParent:null}function C(e){for(var n=o(e),r=x(e);r&&["table","td","th"].indexOf(w(r))>=0&&"static"===_(r).position;)r=x(r);return r&&("html"===w(r)||"body"===w(r)&&"static"===_(r).position)?n:r||function(e){var n=/firefox/i.test(y());if(/Trident/i.test(y())&&a(e)&&"fixed"===_(e).position)return null;var r=S(e);for(l(r)&&(r=r.host);a(r)&&0>["html","body"].indexOf(w(r));){var o=_(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||n&&"filter"===o.willChange||n&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(e)||n}var R="bottom",A="right",M="left",T="auto",D=["top",R,A,M],I="start",L="viewport",V="popper",N=D.reduce(function(e,n){return e.concat([n+"-"+I,n+"-end"])},[]),F=[].concat(D,[T]).reduce(function(e,n){return e.concat([n,n+"-"+I,n+"-end"])},[]),U=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],B={placement:"bottom",modifiers:[],strategy:"absolute"};function z(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return!n.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var q={passive:!0};function H(e){return e.split("-")[0]}function W(e){return e.split("-")[1]}function K(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function G(e){var n,r=e.reference,o=e.element,i=e.placement,a=i?H(i):null,l=i?W(i):null,u=r.x+r.width/2-o.width/2,s=r.y+r.height/2-o.height/2;switch(a){case"top":n={x:u,y:r.y-o.height};break;case R:n={x:u,y:r.y+r.height};break;case A:n={x:r.x+r.width,y:s};break;case M:n={x:r.x-o.width,y:s};break;default:n={x:r.x,y:r.y}}var c=a?K(a):null;if(null!=c){var f="y"===c?"height":"width";switch(l){case I:n[c]=n[c]-(r[f]/2-o[f]/2);break;case"end":n[c]=n[c]+(r[f]/2-o[f]/2)}}return n}var Y={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(e){var n,r,i,a,l,u,s,c=e.popper,f=e.popperRect,d=e.placement,p=e.variation,h=e.offsets,y=e.position,v=e.gpuAcceleration,b=e.adaptive,g=e.roundOffsets,w=e.isFixed,O=h.x,j=void 0===O?0:O,P=h.y,S=void 0===P?0:P,E="function"==typeof g?g({x:j,y:S}):{x:j,y:S};j=E.x,S=E.y;var x=h.hasOwnProperty("x"),T=h.hasOwnProperty("y"),D=M,I="top",L=window;if(b){var V=C(c),N="clientHeight",F="clientWidth";V===o(c)&&"static"!==_(V=k(c)).position&&"absolute"===y&&(N="scrollHeight",F="scrollWidth"),("top"===d||(d===M||d===A)&&"end"===p)&&(I=R,S-=(w&&V===L&&L.visualVie
vendor: 9,886 bytes, line 1
1wport?L.visualViewport.height:V[N])-f.height,S*=v?1:-1),(d===M||("top"===d||d===R)&&"end"===p)&&(D=A,j-=(w&&V===L&&L.visualViewport?L.visualViewport.width:V[F])-f.width,j*=v?1:-1)}var U=Object.assign({position:y},b&&Y),B=!0===g?(n={x:j,y:S},r=o(c),i=n.x,a=n.y,{x:m(i*(l=r.devicePixelRatio||1))/l||0,y:m(a*l)/l||0}):{x:j,y:S};return(j=B.x,S=B.y,v)?Object.assign({},U,((s={})[I]=T?"0":"",s[D]=x?"0":"",s.transform=1>=(L.devicePixelRatio||1)?"translate("+j+"px, "+S+"px)":"translate3d("+j+"px, "+S+"px, 0)",s)):Object.assign({},U,((u={})[I]=T?S+"px":"",u[D]=x?j+"px":"",u.transform="",u))}var X={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var n=e.state;Object.keys(n.elements).forEach(function(e){var r=n.styles[e]||{},o=n.attributes[e]||{},i=n.elements[e];a(i)&&w(i)&&(Object.assign(i.style,r),Object.keys(o).forEach(function(e){var n=o[e];!1===n?i.removeAttribute(e):i.setAttribute(e,!0===n?"":n)}))})},effect:function(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow),function(){Object.keys(n.elements).forEach(function(e){var o=n.elements[e],i=n.attributes[e]||{},l=Object.keys(n.styles.hasOwnProperty(e)?n.styles[e]:r[e]).reduce(function(e,n){return e[n]="",e},{});a(o)&&w(o)&&(Object.assign(o.style,l),Object.keys(i).forEach(function(e){o.removeAttribute(e)}))})}},requires:["computeStyles"]},Z={left:"right",right:"left",bottom:"top",top:"bottom"};function Q(e){return e.replace(/left|right|bottom|top/g,function(e){return Z[e]})}var ee={start:"end",end:"start"};function et(e){return e.replace(/start|end/g,function(e){return ee[e]})}function en(e,n){var r=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(r&&l(r)){var o=n;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function er(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eo(e,n,r){var a,l,u,s,c,f,d,h,m,y;return n===L?er(function(e,n){var r=o(e),i=k(e),a=r.visualViewport,l=i.clientWidth,u=i.clientHeight,s=0,c=0;if(a){l=a.width,u=a.height;var f=v();(f||!f&&"fixed"===n)&&(s=a.offsetLeft,c=a.offsetTop)}return{width:l,height:u,x:s+O(e),y:c}}(e,r)):i(n)?((a=b(n,!1,"fixed"===r)).top=a.top+n.clientTop,a.left=a.left+n.clientLeft,a.bottom=a.top+n.clientHeight,a.right=a.left+n.clientWidth,a.width=n.clientWidth,a.height=n.clientHeight,a.x=a.left,a.y=a.top,a):er((l=k(e),s=k(l),c=g(l),f=null==(u=l.ownerDocument)?void 0:u.body,d=p(s.scrollWidth,s.clientWidth,f?f.scrollWidth:0,f?f.clientWidth:0),h=p(s.scrollHeight,s.clientHeight,f?f.scrollHeight:0,f?f.clientHeight:0),m=-c.scrollLeft+O(l),y=-c.scrollTop,"rtl"===_(f||s).direction&&(m+=p(s.clientWidth,f?f.clientWidth:0)-d),{width:d,height:h,x:m,y:y}))}function ei(){return{top:0,right:0,bottom:0,left:0}}function ea(e){return Object.assign({},ei(),e)}function el(e,n){return n.reduce(function(n,r){return n[r]=e,n},{})}function eu(e,n){void 0===n&&(n={});var r,o,l,u,s,c,f,d,m=n,y=m.placement,v=void 0===y?e.placement:y,g=m.strategy,O=void 0===g?e.strategy:g,j=m.boundary,P=m.rootBoundary,x=m.elementContext,M=void 0===x?V:x,T=m.altBoundary,I=m.padding,N=void 0===I?0:I,F=ea("number"!=typeof N?N:el(N,D)),U=e.rects.popper,B=e.elements[void 0!==T&&T?M===V?"reference":V:M],z=(r=i(B)?B:B.contextElement||k(e.elements.popper),o=void 0===j?"clippingParents":j,l=void 0===P?L:P,f=(c=[].concat("clippingParents"===o?(u=E(S(r)),i(s=["absolute","fixed"].indexOf(_(r).position)>=0&&a(r)?C(r):r)?u.filter(function(e){return i(e)&&en(e,s)&&"body"!==w(e)}):[]):[].concat(o),[l]))[0],(d=c.reduce(function(e,n){var o=eo(r,n,O);return e.top=p(o.top,e.top),e.right=h(o.right,e.right),e.bottom=h(o.bottom,e.bottom),e.left=p(o.left,e.left),e},eo(r,f,O))).width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d),q=b(e.elements.reference),H=G({reference:q,element:U,strategy:"absolute",placement:v}),W=er(Object.assign({},U,H)),K=M===V?W:q,Y={top:z.top-K.top+F.top,bottom:K.bottom-z.bottom+F.bottom,left:z.left-K.left+F.left,right:K.right-z.right+F.right},J=e.modifiersData.offset;if(M===V&&J){var X=J[v];Object.keys(Y).forEach(function(e){var n=[A,R].indexOf(e)>=0?1:-1,r=["top",R].indexOf(e)>=0?"y":"x";Y[e]+=X[r]*n})}return Y}function es(e,n,r){return p(e,h(n,r))}function ec(e,n,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-n.height-r.y,right:e.right-n.width+r.x,bottom:e.bottom-n.height+r.y,left:e.left-n.width-r.x}}function ef(e){return["top",A,R,M].some(function(n){return e[n]>=0})}var ed=(c=void 0===(s=(u={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var n=e.state,r=e.instance,i=e.options,a=i.scroll,l=void 0===a||a,u=i.resize,s=void 0===u||u,c=o(n.elements.popper),f=[].concat(n.scrollParents.reference,n.scrollParents.popper);return l&&f.forEach(function(e){e.addEventListener("scroll",r.update,q)}),s&&c.addEventListener("resize",r.update,q),function(){l&&f.forEach(function(e){e.removeEventListener("scroll",r.update,q)}),s&&c.removeEventListener("resize",r.update,q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var n=e.state,r=e.name;n.modifiersData[r]=G({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var n=e.state,r=e.options,o=r.gpuAcceleration,i=r.adaptive,a=r.roundOffsets,l=void 0===a||a,u={placement:H(n.placement),variation:W(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:void 0===o||o,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,J(Object.assign({},u,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:void 0===i||i,roundOffsets:l})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,J(Object.assign({},u,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},X,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var n=e.state,r=e.options,o=e.name,i=r.offset,a=void 0===i?[0,0]:i,l=F.reduce(function(e,r){var o,i,l,u,s,c;return e[r]=(o=n.rects,l=[M,"top"].indexOf(i=H(r))>=0?-1:1,s=(u="function"==typeof a?a(Object.assign({},o,{placement:r})):a)[0],c=u[1],s=s||0,c=(c||0)*l,[M,A].indexOf(i)>=0?{x:c,y:s}:{x:s,y:c}),e},{}),u=l[n.placement],s=u.x,c=u.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=s,n.modifiersData.popperOffsets.y+=c),n.modifiersData[o]=l}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var n=e.state,r=e.options,o=e.name;if(!n.modifiersData[o]._skip){for(var i=r.mainAxis,a=void 0===i||i,l=r.altAxis,u=void 0===l||l,s=r.fallbackPlacements,c=r.padding,f=r.boundary,d=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,m=void 0===h||h,y=r.allowedAutoPlacements,v=n.options.placement,b=H(v)===v,g=s||(b||!m?[Q(v)]:function(e){if(H(e)===T)return[];var n=Q(e);return[et(e),n,et(n)]}(v)),w=[v].concat(g).reduce(function(e,r){var o,i,a,l,u,s,p,h,v,b,g,w;return e.concat(H(r)===T?(i=(o={placement:r,boundary:f,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:y}).placement,a=o.boundary,l=o.rootBoundary,u=o.padding,s=o.flipVariations,h=void 0===(p=o.allowedAutoPlacements)?F:p,0===(g=(b=(v=W(i))?s?N:N.filter(function(e){return W(e)===v}):D).filter(function(e){return h.indexOf(e)>=0})).length&&(g=b),Object.keys(w=g.reduce(function(e,r){return e[r]=eu(n,{placement:r,boundary:a,rootBoundary:l,padding:u})[H(r)],e},{})).sort(function(e,n){return w[e]-w[n]})):r)},[]),k=n.rects.reference,O=n.rects.popper,_=new Map,j=!0,P=w[0],S=0;S<w.length;S++){var E=w[S],x=H(E),C=W(E)===I,L=["top",R].indexOf(x)>=0,V=L?"width":"height",U=eu(n,{placement:E,boundary:f,rootBoundary:d,altBoundary:p,padding:c}),B=L?C?A:M:C?R:"top";k[V]>O[V]&&(B=Q(B));var z=Q(B),q=[];if(a&&q.push(U[x]<=0),u&&q.push(U[B]<=0,U[z]<=0),q.every(function(e){return e})){P=E,j=!1;break}_.set(E,q)}if(j)for(var K=m?3:1,G=function(e){var n=w.find(function(n){var r=_.get(n);if(r)return r.slice(0,e).every(function(e){return e})});if(n)return P=n,"break"},Y=K;Y>0&&"break"!==G(Y);Y--);n.placement!==P&&(n.modifiersData[o]._skip=!0,n.placement=P,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var n=e.state,r=e.options,o=e.name,i=r.mainAxis,a=r.altAxis,l=r.boundary,u=r.rootBoundary,s=r.altBoundary,c=r.padding,f=r.tether,d=void 0===f||f,m=r.tetherOffset,y=void 0===m?0:m,v=eu(n,{boundary:l,rootBoundary:u,padding:c,altBoundary:s}),b=H(n.placement),g=W(n.placement),w=!g,k=K(b),O="x"===k?"y":"x",_=n.modifiersData.popperOffsets,j=n.rects.reference,S=n.rects.popper,E="function"==typeof y?y(Object.assign({},n.rects,{placement:n.placement})):y,x="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),T=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,D={x:0,y:0};if(_){if(void 0===i||i){var L,V="y"===k?"top":M,N="y"===k?R:A,F="y"===k?"height":"width",U=_[k],B=U+v[V],z=U-v[N],q=d?-S[F]/2:0,G=g===I?j[F]:S[F],Y=g===I?-S[F]:-j[F],J=n.elements.arrow,X=d&&J?P(J):{width:0,height:0},Z=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:ei(),Q=Z[V],ee=Z[N],et=es(0,j[F],X[F]),en=w?j[F]/2-q-et-Q-x.mainAxis:G-et-Q-x.mainAxis,er=w?-j[F]/2+q+et+ee+x.mainAxis:Y+et+ee+x.mainAxis,eo=n.elements.arrow&&C(n.elements.arrow),ea=eo?"y"===k?eo.clientTop||0:eo.clientLeft||0:0,el=null!=(L=null==T?void 0:T[k])?L:0,ec=es(d?h(B,U+en-el-ea):B,U,d?p(z,U+er-el):z);_[k]=ec,D[k]=ec-U}if(void 0!==a&&a){var ef,ed,ep="x"===k?"top":M,eh="x"===k?R:A,em=_[O],ey="y"===O?"he
1ight":"width",ev=em+v[ep],eb=em-v[eh],eg=-1!==["top",M].indexOf(b),ew=null!=(ed=null==T?void 0:T[O])?ed:0,ek=eg?ev:em-j[ey]-S[ey]-ew+x.altAxis,eO=eg?em+j[ey]+S[ey]-ew-x.altAxis:eb,e_=d&&eg?(ef=es(ek,em,eO))>eO?eO:ef:es(d?ek:ev,em,d?eO:eb);_[O]=e_,D[O]=e_-em}n.modifiersData[o]=D}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var n,r,o=e.state,i=e.name,a=e.options,l=o.elements.arrow,u=o.modifiersData.popperOffsets,s=H(o.placement),c=K(s),f=[M,A].indexOf(s)>=0?"height":"width";if(l&&u){var d=ea("number"!=typeof(n="function"==typeof(n=a.padding)?n(Object.assign({},o.rects,{placement:o.placement})):n)?n:el(n,D)),p=P(l),h="y"===c?"top":M,m="y"===c?R:A,y=o.rects.reference[f]+o.rects.reference[c]-u[c]-o.rects.popper[f],v=u[c]-o.rects.reference[c],b=C(l),g=b?"y"===c?b.clientHeight||0:b.clientWidth||0:0,w=d[h],k=g-p[f]-d[m],O=g/2-p[f]/2+(y/2-v/2),_=es(w,O,k);o.modifiersData[i]=((r={})[c]=_,r.centerOffset=_-O,r)}},effect:function(e){var n=e.state,r=e.options.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"!=typeof o||(o=n.elements.popper.querySelector(o)))&&en(n.elements.popper,o)&&(n.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var n=e.state,r=e.name,o=n.rects.reference,i=n.rects.popper,a=n.modifiersData.preventOverflow,l=eu(n,{elementContext:"reference"}),u=eu(n,{altBoundary:!0}),s=ec(l,o),c=ec(u,i,a),f=ef(s),d=ef(c);n.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:d},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:s,d=void 0===(f=u.defaultOptions)?B:f,function(e,n,r){void 0===r&&(r=d);var l,u,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},B,d),modifiersData:{},elements:{reference:e,popper:n},attributes:{},styles:{}},f=[],p=!1,h={state:s,setOptions:function(r){var o,a,l,u,p,m="function"==typeof r?r(s.options):r;y(),s.options=Object.assign({},d,s.options,m),s.scrollParents={reference:i(e)?E(e):e.contextElement?E(e.contextElement):[],popper:E(n)};var v=(a=Object.keys(o=[].concat(c,s.options.modifiers).reduce(function(e,n){var r=e[n.name];return e[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,e},{})).map(function(e){return o[e]}),l=new Map,u=new Set,p=[],a.forEach(function(e){l.set(e.name,e)}),a.forEach(function(e){u.has(e.name)||function e(n){u.add(n.name),[].concat(n.requires||[],n.requiresIfExists||[]).forEach(function(n){if(!u.has(n)){var r=l.get(n);r&&e(r)}}),p.push(n)}(e)}),U.reduce(function(e,n){return e.concat(p.filter(function(e){return e.phase===n}))},[]));return s.orderedModifiers=v.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var n=e.name,r=e.options,o=e.effect;if("function"==typeof o){var i=o({state:s,name:n,instance:h,options:void 0===r?{}:r});f.push(i||function(){})}}),h.update()},forceUpdate:function(){if(!p){var e,n,r,i,l,u,c,f,d,y,v,_,S=s.elements,E=S.reference,x=S.popper;if(z(E,x)){s.rects={reference:(n=C(x),r="fixed"===s.options.strategy,i=a(n),f=a(n)&&(u=m((l=n.getBoundingClientRect()).width)/n.offsetWidth||1,c=m(l.height)/n.offsetHeight||1,1!==u||1!==c),d=k(n),y=b(E,f,r),v={scrollLeft:0,scrollTop:0},_={x:0,y:0},(i||!i&&!r)&&(("body"!==w(n)||j(d))&&(v=(e=n)!==o(e)&&a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:g(e)),a(n)?(_=b(n,!0),_.x+=n.clientLeft,_.y+=n.clientTop):d&&(_.x=O(d))),{x:y.left+v.scrollLeft-_.x,y:y.top+v.scrollTop-_.y,width:y.width,height:y.height}),popper:P(x)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var R=0;R<s.orderedModifiers.length;R++){if(!0===s.reset){s.reset=!1,R=-1;continue}var A=s.orderedModifiers[R],M=A.fn,T=A.options,D=void 0===T?{}:T,I=A.name;"function"==typeof M&&(s=M({state:s,options:D,name:I,instance:h})||s)}}}},update:(l=function(){return new Promise(function(e){h.forceUpdate(),e(s)})},function(){return u||(u=new Promise(function(e){Promise.resolve().then(function(){u=void 0,e(l())})})),u}),destroy:function(){y(),p=!0}};if(!z(e,n))return h;function y(){f.forEach(function(e){return e()}),f=[]}return h.setOptions(r).then(function(e){!p&&r.onFirstUpdate&&r.onFirstUpdate(e)}),h}),ep='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',eh="tippy-content",em="tippy-backdrop",ey="tippy-arrow",ev="tippy-svg-arrow",eb={passive:!0,capture:!0},eg=function(){return document.body};function ew(e,n,r){if(Array.isArray(e)){var o=e[n];return null==o?Array.isArray(r)?r[n]:r:o}return e}function ek(e,n){var r=({}).toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(n+"]")>-1}function eO(e,n){return"function"==typeof e?e.apply(void 0,n):e}function e_(e,n){var r;return 0===n?e:function(o){clearTimeout(r),r=setTimeout(function(){e(o)},n)}}function ej(e,n){var r=Object.assign({},e);
vendor: 5,587 bytes, line 1
1return n.forEach(function(e){delete r[e]}),r}function eP(e){return[].concat(e)}function eS(e,n){-1===e.indexOf(n)&&e.push(n)}function eE(e){return e.split("-")[0]}function ex(e){return[].slice.call(e)}function eC(e){return Object.keys(e).reduce(function(n,r){return void 0!==e[r]&&(n[r]=e[r]),n},{})}function eR(){return document.createElement("div")}function eA(e){return["Element","Fragment"].some(function(n){return ek(e,n)})}function eM(e){return ek(e,"MouseEvent")}function eT(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function eD(e,n){e.forEach(function(e){e&&(e.style.transitionDuration=n+"ms")})}function eI(e,n){e.forEach(function(e){e&&e.setAttribute("data-state",n)})}function eL(e){var n,r=eP(e)[0];return null!=r&&null!=(n=r.ownerDocument)&&n.body?r.ownerDocument:document}function eV(e,n,r){var o=n+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(n){e[o](n,r)})}function eN(e,n){for(var r,o=n;o;){if(e.contains(o))return!0;o=null==o.getRootNode?void 0:null==(r=o.getRootNode())?void 0:r.host}return!1}var eF={isTouch:!1},eU=0;function eB(){!eF.isTouch&&(eF.isTouch=!0,window.performance&&document.addEventListener("mousemove",ez))}function ez(){var e=performance.now();e-eU<20&&(eF.isTouch=!1,document.removeEventListener("mousemove",ez)),eU=e}function eq(){var e=document.activeElement;if(eT(e)){var n=e._tippy;e.blur&&!n.state.isVisible&&e.blur()}}var eH=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,eW=Object.assign({appendTo:eg,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),eK=Object.keys(eW);function eG(e){var n=(e.plugins||[]).reduce(function(n,r){var o,i=r.name,a=r.defaultValue;return i&&(n[i]=void 0!==e[i]?e[i]:null!=(o=eW[i])?o:a),n},{});return Object.assign({},e,n)}function eY(e,n){var r,o=Object.assign({},n,{content:eO(n.content,[e])},n.ignoreAttributes?{}:((r=n.plugins)?Object.keys(eG(Object.assign({},eW,{plugins:r}))):eK).reduce(function(n,r){var o=(e.getAttribute("data-tippy-"+r)||"").trim();if(!o)return n;if("content"===r)n[r]=o;else try{n[r]=JSON.parse(o)}catch(e){n[r]=o}return n},{}));return o.aria=Object.assign({},eW.aria,o.aria),o.aria={expanded:"auto"===o.aria.expanded?n.interactive:o.aria.expanded,content:"auto"===o.aria.content?n.interactive?null:"describedby":o.aria.content},o}function e$(e,n){e.innerHTML=n}function eJ(e){var n=eR();return!0===e?n.className=ey:(n.className=ev,eA(e)?n.appendChild(e):e$(n,e)),n}function eX(e,n){eA(n.content)?(e$(e,""),e.appendChild(n.content)):"function"!=typeof n.content&&(n.allowHTML?e$(e,n.content):e.textContent=n.content)}function eZ(e){var n=e.firstElementChild,r=ex(n.children);return{box:n,content:r.find(function(e){return e.classList.contains(eh)}),arrow:r.find(function(e){return e.classList.contains(ey)||e.classList.contains(ev)}),backdrop:r.find(function(e){return e.classList.contains(em)})}}function eQ(e){var n=eR(),r=eR();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var o=eR();function i(r,o){var i=eZ(n),a=i.box,l=i.content,u=i.arrow;o.theme?a.setAttribute("data-theme",o.theme):a.removeAttribute("data-theme"),"string"==typeof o.animation?a.setAttribute("data-animation",o.animation):a.removeAttribute("data-animation"),o.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?a.setAttribute("role",o.role):a.removeAttribute("role"),(r.content!==o.content||r.allowHTML!==o.allowHTML)&&eX(l,e.props),o.arrow?u?r.arrow!==o.arrow&&(a.removeChild(u),a.appendChild(eJ(o.arrow))):a.appendChild(eJ(o.arrow)):u&&a.removeChild(u)}return o.className=eh,o.setAttribute("data-state","hidden"),eX(o,e.props),n.appendChild(r),r.appendChild(o),i(e.props,e.props),{popper:n,onUpdate:i}}eQ.$$tippy=!0;var e0=1,e1=[],e2=[];function e4(e,n){void 0===n&&(n={});var r=eW.plugins.concat(n.plugins||[]);document.addEventListener("touchstart",eB,eb),window.addEventListener("blur",eq);var o=Object.assign({},n,{plugins:r}),i=(eA(e)?[e]:ek(e,"NodeList")?ex(e):Array.isArray(e)?e:ex(document.querySelectorAll(e))).reduce(function(e,n){var r=n&&function(e,n){var r,o,i,a,l,u,s,c,f=eY(e,Object.assign({},eW,eG(eC(n)))),d=!1,p=!1,h=!1,m=!1,y=[],v=e_(K,f.interactiveDebounce),b=e0++,g=(r=f.plugins).filter(function(e,n){return r.indexOf(e)===n}),w={id:b,reference:e,popper:eR(),popperInstance:null,props:f,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:g,clearDelayTimeouts:function(){clearTimeout(o),clearTimeout(i),cancelAnimationFrame(a)},setProps:function(n){if(!w.state.isDestroyed){M("onBeforeUpdate",[w,n]),H();var r=w.props,o=eY(e,Object.assign({},r,eC(n),{ignoreAttributes:!0}));w.props=o,q(),r.interactiveDebounce!==o.interactiveDebounce&&(I(),v=e_(K,o.interactiveDebounce)),r.triggerTarget&&!
1o.triggerTarget?eP(r.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):o.triggerTarget&&e.removeAttribute("aria-expanded"),D(),A(),_&&_(r,o),w.popperInstance&&(X(),Q().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),M("onAfterUpdate",[w,n])}},setContent:function(e){w.setProps({content:e})},show:function(){var n,r,o,i=w.state.isVisible,a=w.state.isDestroyed,l=!w.state.isEnabled,u=eF.isTouch&&!w.props.touch,f=ew(w.props.duration,0,eW.duration);if(!(i||a||l||u||(c||e).hasAttribute("disabled"))&&(M("onShow",[w],!1),!1!==w.props.onShow(w))){if(w.state.isVisible=!0,x()&&(O.style.visibility="visible"),A(),F(),w.state.isMounted||(O.style.transition="none"),x()){var d=eZ(O);eD([d.box,d.content],0)}s=function(){var e;if(w.state.isVisible&&!m){if(m=!0,O.offsetHeight,O.style.transition=w.props.moveTransition,x()&&w.props.animation){var n=eZ(O),r=n.box,o=n.content;eD([r,o],f),eI([r,o],"visible")}T(),D(),eS(e2,w),null==(e=w.popperInstance)||e.forceUpdate(),M("onMount",[w]),w.props.animation&&x()&&B(f,function(){w.state.isShown=!0,M("onShown",[w])})}},r=w.props.appendTo,o=c||e,(n=w.props.interactive&&r===eg||"parent"===r?o.parentNode:eO(r,[o])).contains(O)||n.appendChild(O),w.state.isMounted=!0,X()}},hide:function(){var e,n=!w.state.isVisible,r=w.state.isDestroyed,o=!w.state.isEnabled,i=ew(w.props.duration,1,eW.duration);if(!n&&!r&&!o&&(M("onHide",[w],!1),!1!==w.props.onHide(w))){if(w.state.isVisible=!1,w.state.isShown=!1,m=!1,d=!1,x()&&(O.style.visibility="hidden"),I(),U(),A(!0),x()){var a=eZ(O),l=a.box,u=a.content;w.props.animation&&(eD([l,u],i),eI([l,u],"hidden"))}(T(),D(),w.props.animation)?x()&&(e=w.unmount,B(i,function(){!w.state.isVisible&&O.parentNode&&O.parentNode.contains(O)&&e()})):w.unmount()}},hideWithInteractivity:function(e){C().addEventListener("mousemove",v),eS(e1,v),v(e)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){w.state.isVisible&&w.hide(),w.state.isMounted&&(Z(),Q().forEach(function(e){e._tippy.unmount()}),O.parentNode&&O.parentNode.removeChild(O),e2=e2.filter(function(e){return e!==w}),w.state.isMounted=!1,M("onHidden",[w]))},destroy:function(){w.state.isDestroyed||(w.clearDelayTimeouts(),w.unmount(),H(),delete e._tippy,w.state.isDestroyed=!0,M("onDestroy",[w]))}};if(!f.render)return w;var k=f.render(w),O=k.popper,_=k.onUpdate;O.setAttribute("data-tippy-root",""),O.id="tippy-"+w.id,w.popper=O,e._tippy=w,O._tippy=w;var j=g.map(function(e){return e.fn(w)}),P=e.hasAttribute("aria-expanded");return q(),D(),A(),M("onCreate",[w]),f.showOnCreate&&ee(),O.addEventListener("mouseenter",function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()}),O.addEventListener("mouseleave",function(){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&C().addEventListener("mousemove",v)}),w;function S(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===S()[0]}function x(){var e;return!!(null!=(e=w.props.render)&&e.$$tippy)}function C(){var n=(c||e).parentNode;return n?eL(n):document}function R(e){return w.state.isMounted&&!w.state.isVisible||eF.isTouch||l&&"focus"===l.type?0:ew(w.props.delay,e?0:1,eW.delay)}function A(e){void 0===e&&(e=!1),O.style.pointerEvents=w.props.interactive&&!e?"":"none",O.style.zIndex=""+w.props.zIndex}function M(e,n,r){if(void 0===r&&(r=!0),j.forEach(function(r){r[e]&&r[e].apply(r,n)}),r){var o;(o=w.props)[e].apply(o,n)}}function T(){var n=w.props.aria;if(n.content){var r="aria-"+n.content,o=O.id;eP(w.props.triggerTarget||e).forEach(function(e){var n=e.getAttribute(r);if(w.state.isVisible)e.setAttribute(r,n?n+" "+o:o);else{var i=n&&n.replace(o,"").trim();i?e.setAttribute(r,i):e.removeAttribute(r)}})}}function D(){!P&&w.props.aria.expanded&&eP(w.props.triggerTarget||e).forEach(function(n){w.props.interactive?n.setAttribute("aria-expanded",w.state.isVisible&&n===(c||e)?"true":"false"):n.removeAttribute("aria-expanded")})}function I(){C().removeEventListener("mousemove",v),e1=e1.filter(function(e){return e!==v})}function L(n){if(!eF.isTouch||!h&&"mousedown"!==n.type){var r=n.composedPath&&n.composedPath()[0]||n.target;if(!(w.props.interactive&&eN(O,r))){if(eP(w.props.triggerTarget||e).some(function(e){return eN(e,r)})){if(eF.isTouch||w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else M("onClickOutside",[w,n]);!0!==w.props.hideOnClick||(w.clearDelayTimeouts(),w.hide(),p=!0,setTimeout(function(){p=!1}),w.state.isMounted||U())}}}function V(){h=!0}
1function N(){h=!1}function F(){var e=C();e.addEventListener("mousedown",L,!0),e.addEventListener("touchend",L,eb),e.addEventListener("touchstart",N,eb),e.addEventListener("touchmove",V,eb)}function U(){var e=C();e.removeEventListener("mousedown",L,!0),e.removeEventListener("touchend",L,eb),e.removeEventListener("touchstart",N,eb),e.removeEventListener("touchmove",V,eb)}function B(e,n){var r=eZ(O).box;function o(e){e.target===r&&(eV(r,"remove",o),n())}if(0===e)return n();eV(r,"remove",u),eV(r,"add",o),u=o}function z(n,r,o){void 0===o&&(o=!1),eP(w.props.triggerTarget||e).forEach(function(e){e.addEventListener(n,r,o),y.push({node:e,eventType:n,handler:r,options:o})})}function q(){E()&&(z("touchstart",W,{passive:!0}),z("touchend",G,{passive:!0})),w.props.trigger.split(/\s+/).filter(Boolean).forEach(function(e){if("manual"!==e)switch(z(e,W),e){case"mouseenter":z("mouseleave",G);break;case"focus":z(eH?"focusout":"blur",Y);break;case"focusin":z("focusout",Y)}})}function H(){y.forEach(function(e){var n=e.node,r=e.eventType,o=e.handler,i=e.options;n.removeEventListener(r,o,i)}),y=[]}function W(e){var n,r=!1;if(!(!w.state.isEnabled||J(e))&&!p){var o=(null==(n=l)?void 0:n.type)==="focus";l=e,c=e.currentTarget,D(),!w.state.isVisible&&eM(e)&&e1.forEach(function(n){return n(e)}),"click"===e.type&&(0>w.props.trigger.indexOf("mouseenter")||d)&&!1!==w.props.hideOnClick&&w.state.isVisible?r=!0:ee(e),"click"===e.type&&(d=!r),r&&!o&&et(e)}}function K(n){var r,o,i,a=n.target,l=(c||e).contains(a)||O.contains(a);("mousemove"!==n.type||!l)&&(r=Q().concat(O).map(function(e){var n,r=null==(n=e._tippy.popperInstance)?void 0:n.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:f}:null}).filter(Boolean),o=n.clientX,i=n.clientY,r.every(function(e){var n=e.popperRect,r=e.popperState,a=e.props.interactiveBorder,l=eE(r.placement),u=r.modifiersData.offset;if(!u)return!0;var s="bottom"===l?u.top.y:0,c="top"===l?u.bottom.y:0,f="right"===l?u.left.x:0,d="left"===l?u.right.x:0,p=n.top-i+s>a,h=i-n.bottom-c>a,m=n.left-o+f>a,y=o-n.right-d>a;return p||h||m||y})&&(I(),et(n)))}function G(e){if(!(J(e)||w.props.trigger.indexOf("click")>=0&&d)){if(w.props.interactive){w.hideWithInteractivity(e);return}et(e)}}function Y(n){0>w.props.trigger.indexOf("focusin")&&n.target!==(c||e)||w.props.interactive&&n.relatedTarget&&O.contains(n.relatedTarget)||et(n)}function J(e){return!!eF.isTouch&&E()!==e.type.indexOf("touch")>=0}function X(){Z();var n=w.props,r=n.popperOptions,o=n.placement,i=n.offset,a=n.getReferenceClientRect,l=n.moveTransition,u=x()?eZ(O).arrow:null,f=a?{getBoundingClientRect:a,contextElement:a.contextElement||c||e}:e,d=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!l}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var n=e.state;if(x()){var r=eZ(O).box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?r.setAttribute("data-placement",n.placement):n.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)}),n.attributes.popper={}}}}];x()&&u&&d.push({name:"arrow",options:{element:u,padding:3}}),d.push.apply(d,(null==r?void 0:r.modifiers)||[]),w.popperInstance=ed(f,O,Object.assign({},r,{placement:o,onFirstUpdate:s,modifiers:d}))}function Z(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function Q(){return ex(O.querySelectorAll("[data-tippy-root]"))}function ee(e){w.clearDelayTimeouts(),e&&M("onTrigger",[w,e]),F();var n=R(!0),r=S(),i=r[0],a=r[1];eF.isTouch&&"hold"===i&&a&&(n=a),n?o=setTimeout(function(){w.show()},n):w.show()}function et(e){if(w.clearDelayTimeouts(),M("onUntrigger",[w,e]),!w.state.isVisible){U();return}if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0)||!d){var n=R(!1);n?i=setTimeout(function(){w.state.isVisible&&w.hide()},n):a=requestAnimationFrame(function(){w.hide()})}}}(n,o);return r&&e.push(r),e},[]);return eA(e)?i[0]:i}e4.defaultProps=eW,e4.setDefaultProps=function(e){Object.keys(e).forEach(function(n){eW[n]=e[n]})},e4.currentInput=eF;var e6=function(e){var n=void 0===e?{}:e,r=n.exclude,o=n.duration;e2.forEach(function(e){var n=!1;if(r&&(n=eT(r)?e.reference===r:e.popper===r.popper),!n){var i=e.props.duration;e.setProps({duration:o}),e.hide(),e.state.isDestroyed||e.setProps({duration:i})}})},e5=Object.assign({}
1,X,{effect:function(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}}),e3=function(e,n){void 0===n&&(n={});var r,o,i=e,a=[],l=[],u=n.overrides,s=[],c=!1;function f(){l=i.map(function(e){return eP(e.props.triggerTarget||e.reference)}).reduce(function(e,n){return e.concat(n)},[])}function d(){a=i.map(function(e){return e.reference})}function p(e){i.forEach(function(n){e?n.enable():n.disable()})}function h(e){return i.map(function(n){var r=n.setProps;return n.setProps=function(i){r(i),n.reference===o&&e.setProps(i)},function(){n.setProps=r}})}function m(e,n){var r=l.indexOf(n);if(n!==o){o=n;var s=(u||[]).concat("content").reduce(function(e,n){return e[n]=i[r].props[n],e},{});e.setProps(Object.assign({},s,{getReferenceClientRect:"function"==typeof s.getReferenceClientRect?s.getReferenceClientRect:function(){var e;return null==(e=a[r])?void 0:e.getBoundingClientRect()}}))}}p(!1),d(),f();var y=e4(eR(),Object.assign({},ej(n,["overrides"]),{plugins:[{fn:function(){return{onDestroy:function(){p(!0)},onHidden:function(){o=null},onClickOutside:function(e){e.props.showOnCreate&&!c&&(c=!0,o=null)},onShow:function(e){e.props.showOnCreate&&!c&&(c=!0,m(e,a[0]))},onTrigger:function(e,n){m(e,n.currentTarget)}}}}].concat(n.plugins||[]),triggerTarget:l,popperOptions:Object.assign({},n.popperOptions,{modifiers:[].concat((null==(r=n.popperOptions)?void 0:r.modifiers)||[],[e5])})})),v=y.show;y.show=function(e){return(v(),o||null!=e)?o&&null==e?void 0:"number"==typeof e?a[e]&&m(y,a[e]):i.indexOf(e)>=0?m(y,e.reference):a.indexOf(e)>=0?m(y,e):void 0:m(y,a[0])},y.showNext=function(){var e=a[0];if(!o)return y.show(0);var n=a.indexOf(o);y.show(a[n+1]||e)},y.showPrevious=function(){var e=a[a.length-1];if(!o)return y.show(e);var n=a.indexOf(o),r=a[n-1]||e;y.show(r)};var b=y.setProps;return y.setProps=function(e){u=e.overrides||u,b(e)},y.setInstances=function(e){p(!0),s.forEach(function(e){return e()}),i=e,p(!1),d(),f(),s=h(y),y.setProps({triggerTarget:l})},s=h(y),y},e9={mouseover:"mouseenter",focusin:"focus",click:"click"};function e8(e,n){var r=[],o=[],i=!1,a=n.target,l=ej(n,["target"]),u=Object.assign({},l,{trigger:"manual",touch:!1}),s=Object.assign({touch:eW.touch},l,{showOnCreate:!0}),c=e4(e,u);function f(e){if(e.target&&!i){var r=e.target.closest(a);if(r){var l=r.getAttribute("data-tippy-trigger")||n.trigger||eW.trigger;if(!(r._tippy||"touchstart"===e.type&&"boolean"==typeof s.touch||"touchstart"!==e.type&&0>l.indexOf(e9[e.type]))){var u=e4(r,s);u&&(o=o.concat(u))}}}}function d(e,n,o,i){void 0===i&&(i=!1),e.addEventListener(n,o,i),r.push({node:e,eventType:n,handler:o,options:i})}
1return eP(c).forEach(function(e){var n,a=e.destroy,l=e.enable,u=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&o.forEach(function(e){e.destroy()}),o=[],r.forEach(function(e){var n=e.node,r=e.eventType,o=e.handler,i=e.options;n.removeEventListener(r,o,i)}),r=[],a()},e.enable=function(){l(),o.forEach(function(e){return e.enable()}),i=!1},e.disable=function(){u(),o.forEach(function(e){return e.disable()}),i=!0},d(n=e.reference,"touchstart",f,eb),d(n,"mouseover",f),d(n,"focusin",f),d(n,"click",f)}),c}var e7={name:"animateFill",defaultValue:!1,fn:function(e){if(!(null!=(r=e.props.render)&&r.$$tippy))return{};var n,r,o=eZ(e.popper),i=o.box,a=o.content,l=e.props.animateFill?((n=eR()).className=em,eI([n],"hidden"),n):null;return{onCreate:function(){l&&(i.insertBefore(l,i.firstElementChild),i.setAttribute("data-animatefill",""),i.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(l){var e=i.style.transitionDuration,n=Number(e.replace("ms",""));a.style.transitionDelay=Math.round(n/10)+"ms",l.style.transitionDuration=e,eI([l],"visible")}},onShow:function(){l&&(l.style.transitionDuration="0ms")},onHide:function(){l&&eI([l],"hidden")}}}},te={clientX:0,clientY:0},tt=[];function tn(e){te={clientX:e.clientX,clientY:e.clientY}}var tr={name:"followCursor",defaultValue:!1,fn:function(e){var n=e.reference,r=eL(e.props.triggerTarget||n),o=!1,i=!1,a=!0,l=e.props;function u(){return"initial"===e.props.followCursor&&e.state.isVisible}function s(){r.addEventListener("mousemove",d)}function c(){r.removeEventListener("mousemove",d)}function f(){o=!0,e.setProps({getReferenceClientRect:null}),o=!1}function d(r){var o=!r.target||n.contains(r.target),i=e.props.followCursor,a=r.clientX,l=r.clientY,u=n.getBoundingClientRect(),s=a-u.left,c=l-u.top;(o||!e.props.interactive)&&e.setProps({getReferenceClientRect:function(){var e=n.getBoundingClientRect(),r=a,o=l;"initial"===i&&(r=e.left+s,o=e.top+c);var u="horizontal"===i?e.top:o,f="vertical"===i?e.right:r,d="horizontal"===i?e.bottom:o,p="vertical"===i?e.left:r;return{width:f-p,height:d-u,top:u,right:f,bottom:d,left:p}}})}function p(){e.props.followCursor&&(tt.push({instance:e,doc:r}),function(e){e.addEventListener("mousemove",tn)}(r))}function h(){0===(tt=tt.filter(function(n){return n.instance!==e})).filter(function(e){return e.doc===r}).length&&function(e){e.removeEventListener("mousemove",tn)}(r)}return{onCreate:p,onDestroy:h,onBeforeUpdate:function(){l=e.props},onAfterUpdate:function(n,r){var a=r.followCursor;!o&&(void 0===a||l.followCursor===a||(h(),a?(p(),!e.state.isMounted||i||u()||s()):(c(),f())))},onMount:function(){!e.props.followCursor||i||(a&&(d(te),a=!1),u()||s())},onTrigger:function(e,n){eM(n)&&(te={clientX:n.clientX,clientY:n.clientY}),i="focus"===n.type},onHidden:function(){e.props.followCursor&&(f(),c(),a=!0)}}}},to={name:"inlinePositioning",defaultValue:!1,fn:function(e){var n,r=e.reference,o=-1,i=!1,a=[],l={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(i){var l=i.state;e.props.inlinePositioning&&(-1!==a.indexOf(l.placement)&&(a=[]),n!==l.placement&&-1===a.indexOf(l.placement)&&(a.push(l.placement),e.setProps({getReferenceClientRect:function(){return function(e,n,r,o){if(r.length<2||null===e)return n;if(2===r.length&&o>=0&&r[0].left>r[1].right)return r[o]||n;switch(e){case"top":case"bottom":var i=r[0],a=r[r.length-1],l="top"===e,u=i.top,s=a.bottom,c=l?i.left:a.left,f=l?i.right:a.right;return{top:u,bottom:s,left:c,right:f,width:f-c,height:s-u};case"left":case"right":var d=Math.min.apply(Math,r.map(function(e){return e.left})),p=Math.max.apply(Math,r.map(function(e){return e.right})),h=r.filter(function(n){return"left"===e?n.left===d:n.right===p}),m=h[0].top,y=h[h.length-1].bottom;return{top:m,bottom:y,left:d,right:p,width:p-d,height:y-m};default:return n}}(eE(l.placement),r.getBoundingClientRect(),ex(r.getClientRects()),o)}})),n=l.placement)}};function u(){if(!i){var n,r,o;o={popperOptions:Object.assign({},(n=e.props).popperOptions,{modifiers:[].concat(((null==(r=n.popperOptions)?void 0:r.modifiers)||[]).filter(function(e){return e.name!==l.name}),[l])})},i=!0,e.setProps(o),i=!1}}return{onCreate:u,onAfterUpdate:u,onTrigger:function(n,r){if(eM(r)){var i=ex(e.reference.getClientRects()),a=i.find(function(e){return e.left-2<=r.clientX&&e.right+2>=r.clientX&&e.top-2<=r.clientY&&e.bottom+2>=r.clientY}),l=i.indexOf(a);o=l>-1?l:o}},onHidden:function(){o=-1}}}},ti={name:"sticky",defaultValue:!1,fn:function(e){var n=e.reference,r=e.popper;function o(n){return!0===e.props.sticky||e.props.sticky===n}var i=null,a=null;return{onMount:function(){e.props.sticky&&function l(){var u=o("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:n).getBoundingClientRect():null,
vendor: 15,522 bytes, line 1
1s=o("popper")?r.getBoundingClientRect():null;(u&&ta(i,u)||s&&ta(a,s))&&e.popperInstance&&e.popperInstance.update(),i=u,a=s,e.state.isMounted&&requestAnimationFrame(l)}()}}}};function ta(e,n){return!e||!n||e.top!==n.top||e.right!==n.right||e.bottom!==n.bottom||e.left!==n.left}e4.setDefaultProps({render:eQ});var tl=e4},3230:function(e,n){"use strict";function r(e,n){return void 0===e?void 0===n?e:n:e}Object.defineProperty(n,"__esModule",{value:!0}),n.boolean=function(e,n){return"function"==typeof(e=r(e,n))?function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return!!e.apply(this,r)}:e?function(){return!0}:function(){return!1}},n.integer=function(e,n){return"function"==typeof(e=r(e,n))?function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=parseInt(e.apply(this,r),10);return i!=i?0:i}:(e=parseInt(e,10))!=e?function(){return 0}:function(){return e}},n.string=function(e,n){return"function"==typeof(e=r(e,n))?function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return""+e.apply(this,r)}:(e=""+e,function(){return e})}},66337:function(e){e.exports=function(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o},e.exports.__esModule=!0,e.exports.default=e.exports},4172:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},75817:function(e){e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},16057:function(e){e.exports=function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},77190:function(e,n,r){var o=r(39951);function i(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,o(i.key),i)}}e.exports=function(e,n,r){return n&&i(e.prototype,n),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},3161:function(e,n,r){var o=r(39951);e.exports=function(e,n,r){return(n=o(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},39681:function(e){function n(r){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},83413:function(e,n,r){var o=r(32574);e.exports=function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&o(e,n)},e.exports.__esModule=!0,e.exports.default=e.exports},18685:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},86293:function(e){e.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},83746:function(e,n,r){var o=r(19016).default,i=r(75817);e.exports=function(e,n){if(n&&("object"===o(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},32574:function(e){function n(r,o){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},86861:function(e,n,r){var o=r(4172),i=r(18685),a=r(64488),l=r(86293);e.exports=function(e){return o(e)||i(e)||a(e)||l()},e.exports.__esModule=!0,e.exports.default=e.exports},7980:function(e,n,r){var o=r(19016).default;e.exports=function(e,n){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},39951:function(e,n,r){var o=r(19016).default,i=r(7980);e.exports=function(e){var n=i(e,"string");return"symbol"===o(n)?n:String(n)},e.exports.__esModule=!0,e.exports.default=e.exports},19016:function(e){function n(r){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},64488:function(e,n,r){var o=r(66337);e.exports=function(e,n){if(e){if("string"==typeof e)return o(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},76468:function(e,n,r){"use strict";r.r(n),r.d(n,{JsonPatchError:function(){return y},_areEquals:function(){return E},applyOperation:function(){return O},applyPatch:function(){return _},applyReducer:function(){return j},compare:function(){return I},deepClone:function(){return f},default:function(){return L},escapePathComponent:function(){return p},generate:function(){return T},getValueByPointer:function(){return k},observe:function(){return M},unescapePathComponent:function(){return h},unobserve:function(){return A},validate:function(){return S},validator:function(){return P}});var o,i={};r.r(i),r.d(i,{JsonPatchError:function(){return v},_areEquals:function(){return E},applyOperation:function(){return O},applyPatch:function(){return _},applyReducer:function(){return j},deepClone:function(){return b},getValueByPointer:function(){return k},validate:function(){return S},validator:function(){return P}});var a={};r.r(a),r.d(a,{compare:function(){return I},generate:function(){return T},observe:function(){return M},unobserve:function(){return A}});var l=(o=function(e,n){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])})(e,n)},function(e,n){function r(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),u=Object.prototype.hasOwnProperty;function s(e,n){return u.call(e,n)}function c(e){if(Array.isArray(e)){for(var n=Array(e.length),r=0;r<n.length;r++)n[r]=""+r;return n}if(Object.keys)return Object.keys(e);var o=[];for(var i in e)s(e,i)&&o.push(i);return o}function f(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function d(e){for(var n,r=0,o=e.length;r<o;){if((n=e.charCodeAt(r))>=48&&n<=57){r++;continue}return!1}return!0}function p(e){return -1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function h(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function m(e,n){var r=[e];for(var o in n){var i="object"==typeof n[o]?JSON.stringify(n[o],null,2):n[o];void 0!==i&&r.push(o+": "+i)}return r.join("\n")}var y=function(e){function n(n,r,o,i,a){var l=this.constructor,u=e.call(this,m(n,{name:r,index:o,operation:i,tree:a}))||this;return u.name=r,u.index=o,u.operation=i,u.tree=a,Object.setPrototypeOf(u,l.prototype),u.message=m(n,{name:r,index:o,operation:i,tree:a}),u}return l(n,e),n}(Error),v=y,b=f,g={add:function(e,n,r){return e[n]=this.value,{newDocument:r}},remove:function(e,n,r){var o=e[n];return delete e[n],{newDocument:r,removed:o}},replace:function(e,n,r){var o=e[n];return e[n]=this.value,{newDocument:r,removed:o}},move:function(e,n,r){var o=k(r,this.path);o&&(o=f(o));var i=O(r,{op:"remove",path:this.from}).removed;return O(r,{op:"add",path:this.path,value:i}),{newDocument:r,removed:o}},copy:function(e,n,r){var o=k(r,this.from);return O(r,{op:"add",path:this.path,value:f(o)}),{newDocument:r}},test:function(e,n,r){return{newDocument:r,test:E(e[n],this.value)}},_get:function(e,n,r){return this.value=e[n],{newDocument:r}}},w={add:function(e,n,r){return d(n)?e.splice(n,0,this.value):e[n]=this.value,{newDocument:r,index:n}},remove:function(e,n,r){return{newDocument:r,removed:e.splice(n,1)[0]}},replace:function(e,n,r){var o=e[n];return e[n]=this.value,{newDocument:r,removed:o}},move:g.move,copy:g.copy,test:g.test,_get:g._get};function k(e,n){if(""==n)return e;var r={op:"_get",path:n};return O(e,r),r.value}function O(e,n,r,o,i,a){if(void 0===r&&(r=!1),void 0===o&&(o=!0),void 0===i&&(i=!0),void 0===a&&(a=0),r&&("function"==typeof r?r(n,0,e,n.path):P(n,0)),""===n.path){var l={newDocument:e};if("add"===n.op)return l.newDocument=n.value,l;if("replace"===n.op)return l.newDocument=n.value,l.removed=e,l;if("move"===n.op||"copy"===n.op)return l.newDocument=k(e,n.from),"move"===n.op&&(l.removed=e),l;if("test"===n.op){if(l.test=E(e,n.value),!1===l.test)throw new v("Test operation failed","TEST_OPERATION_FAILED",a,n,e);return l.newDocument=e,l}else{if("remove"===n.op)return l.removed=e,l.newDocument=null,l;if("_get"===n.op)return n.value=e,l;if(!r)return l;throw new v("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",a,n,e)}}o||(e=f(e));var u=(n.path||"").split("/"),s=e,c=1,p=u.length,m=void 0,y=void 0,b=void 0;for(b="function"==typeof r?r:P;;){if((y=u[c])&&-1!=y.indexOf("~")&&(y=h(y)),i&&("__proto__"==y||"prototype"==y&&c>0&&"constructor"==u[c-1]))throw TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&void 0===m&&(void 0===s[y]?m=u.slice(0,c).join("/"):c==p-1&&(m=n.path),void 0!==m&&b(n,0,e,m)),c++,Array.isArray(s)){if("-"===y)y=s.length;else{if(r&&!d(y))throw new v("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,n,e);d(y)&&(y=~~y)}if(c>=p){if(r&&"add"===n.op&&y>s.length)throw new v("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,n,e);var l=w[n.op].call(n,s,y,e);if(!1===l.test)throw new v("Test operation failed","TEST_OPERATION_FAILED",a,n,e);return l}}else if(c>=p){var l=g[n.op].call(n,s,y,e);if(!1===l.test)throw new v("Test operation failed","TEST_OPERATION_FAILED",a,n,e);return l}if(s=s[y],r&&c<p&&(!s||"object"!=typeof s))throw new v("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",a,n,e)}}function _(e,n,r,o,i){if(void 0===o&&(o=!0),void 0===i&&(i=!0),r&&!Array.isArray(n))throw new v("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");o||(e=f(e));for(var a=Array(n.length),l=0,u=n.length;l<u;l++)a[l]=O(e,n[l],r,!0,i,l),e=a[l].newDocument;return a.newDocument=e,a}function j(e,n,r){var o=O(e,n);if(!1===o.test)throw new v("Test operation failed","TEST_OPERATION_FAILED",r,n,e);return o.newDocument}function P(e,n,r,o){if("object"!=typeof e||null===e||Array.isArray(e))throw new v("Operation is not an object","OPERATION_NOT_AN_OBJECT",n,e,r);if(g[e.op]){if("string"!=typeof e.path)throw new v("Operation `path` property is not a string","OPERATION_PATH_INVALID",n,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new v('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",n,e,r);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new v("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",n,e,r);else if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new v("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",n,e,r);else if(("add"===e.op||"replace"===e.op||"test"===e.op)&&function e(n){if(void 0===n)return!0;if(n){if(Array.isArray(n)){for(var r=0,o=n.length;r<o;r++)if(e(n[r]))return!0}else if("object"==typeof n){for(var i=c(n),a=i.length,l=0;l<a;l++)if(e(n[i[l]]))return!0}}return!1}(e.value))throw new v("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",n,e,r);else if(r){if("add"==e.op){var i=e.path.split("/").length,a=o.split("/").length;if(i!==a+1&&i!==a)throw new v("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",n,e,r)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==o)throw new v("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",n,e,r)}else if("move"===e.op||"copy"===e.op){var l=S([{op:"_get",path:e.from,value:void 0}],r);if(l&&"OPERATION_PATH_UNRESOLVABLE"===l.name)throw new v("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",n,e,r)}}}else throw new v("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",n,e,r)}function S(e,n,r){try{if(!Array.isArray(e))throw new v("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(n)_(f(n),f(e),r||!0);else{r=r||P;for(var o=0;o<e.length;o++)r(e[o],o,n,void 0)}}catch(e){if(e instanceof v)return e;throw e}}function E(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){var r,o,i,a=Array.isArray(e),l=Array.isArray(n);if(a&&l){if((o=e.length)!=n.length)return!1;for(r=o;0!=r--;)if(!E(e[r],n[r]))return!1;return!0}if(a!=l)return!1;var u=Object.keys(e);if((o=u.length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!n.hasOwnProperty(u[r]))return!1;for(r=o;0!=r--;)if(!E(e[i=u[r]],n[i]))return!1;return!0}return e!=e&&n!=n}var x=new WeakMap,C=function(e){this.observers=new Map,this.obj=e},R=function(e,n){this.callback=e,this.observer=n};function A(e,n){n.unobserve()}function M(e,n){var r=x.get(e);if(r){var o,i=r.observers.get(n);o=i&&i.observer}else r=new C(e),x.set(e,r);if(o)return o;if(o={},r.value=f(e),n){o.callback=n,o.next=null;var a=function(){T(o)},l=function(){clearTimeout(o.next),o.next=setTimeout(a)};"undefined"!=typeof window&&(window.addEventListener("mouseup",l),window.addEventListener("keyup",l),window.addEventListener("mousedown",l),window.addEventListener("keydown",l),window.addEventListener("change",l))}return o.patches=[],o.object=e,o.unobserve=function(){T(o),clearTimeout(o.next),function(e,n){e.observers.delete(n.callback)}(r,o),"undefined"!=typeof window&&(window.removeEventListener("mouseup",l),window.removeEventListener("keyup",l),window.removeEventListener("mousedown",l),window.removeEventListener("keydown",l),window.removeEventListener("change",l))},r.observers.set(n,new R(n,o)),o}function T(e,n){void 0===n&&(n=!1);var r=x.get(e.object);D(r.value,e.object,e.patches,"",n),e.patches.length&&_(r.value,e.patches);var o=e.patches;return o.length>0&&(e.patches=[],e.callback&&e.callback(o)),o}
1function D(e,n,r,o,i){if(n!==e){"function"==typeof n.toJSON&&(n=n.toJSON());for(var a=c(n),l=c(e),u=!1,d=l.length-1;d>=0;d--){var h=l[d],m=e[h];if(s(n,h)&&!(void 0===n[h]&&void 0!==m&&!1===Array.isArray(n))){var y=n[h];"object"==typeof m&&null!=m&&"object"==typeof y&&null!=y&&Array.isArray(m)===Array.isArray(y)?D(m,y,r,o+"/"+p(h),i):m!==y&&(i&&r.push({op:"test",path:o+"/"+p(h),value:f(m)}),r.push({op:"replace",path:o+"/"+p(h),value:f(y)}))}else Array.isArray(e)===Array.isArray(n)?(i&&r.push({op:"test",path:o+"/"+p(h),value:f(m)}),r.push({op:"remove",path:o+"/"+p(h)}),u=!0):(i&&r.push({op:"test",path:o,value:e}),r.push({op:"replace",path:o,value:n}))}if(u||a.length!=l.length)for(var d=0;d<a.length;d++){var h=a[d];s(e,h)||void 0===n[h]||r.push({op:"add",path:o+"/"+p(h),value:f(n[h])})}}}function I(e,n,r){void 0===r&&(r=!1);var o=[];return D(e,n,o,"",r),o}var L=Object.assign({},i,a,{JsonPatchError:y,deepClone:f,escapePathComponent:p,unescapePathComponent:h})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.